Viewing file: 52ddb5cbb5efe1c87a6133803eee875a11393700.file.sessions.tpl.php (5.61 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2014-09-26 22:01:59 compiled from "user/templates/laws/sessions.tpl" */ ?> <?php /*%%SmartyHeaderCode:18024868805425b8277d5393-59169132%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '52ddb5cbb5efe1c87a6133803eee875a11393700' => array ( 0 => 'user/templates/laws/sessions.tpl', 1 => 1410983472, ), ), 'nocache_hash' => '18024868805425b8277d5393-59169132', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="laws-sessions-list"> <?php $_smarty_tpl->tpl_vars['convocations'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['convocationIndex'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('rows')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['convocations']->key => $_smarty_tpl->tpl_vars['convocations']->value){ $_smarty_tpl->tpl_vars['convocationIndex']->value = $_smarty_tpl->tpl_vars['convocations']->key; ?> <a id="convocation<?php echo $_smarty_tpl->tpl_vars['convocationIndex']->value;?> "></a> <div class="convocation-title" title="convocation<?php echo $_smarty_tpl->tpl_vars['convocationIndex']->value;?> ">Скликання сесії : <?php echo $_smarty_tpl->tpl_vars['convocationIndex']->value;?> Скликання</div> <div class="convocation"> <?php $_smarty_tpl->tpl_vars['sessions'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sessionIndex'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['convocations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['sessions']->key => $_smarty_tpl->tpl_vars['sessions']->value){ $_smarty_tpl->tpl_vars['sessionIndex']->value = $_smarty_tpl->tpl_vars['sessions']->key; ?> <a id="session<?php echo $_smarty_tpl->tpl_vars['sessionIndex']->value;?> "></a> <div class="session-title<?php if (count($_smarty_tpl->tpl_vars['sessions']->value)==0){?> load<?php }?>" title="session<?php echo $_smarty_tpl->tpl_vars['sessionIndex']->value;?> ">Сесія ради: <?php echo $_smarty_tpl->tpl_vars['sessionIndex']->value;?> сесія</div> <div class="session" sess="<?php echo $_smarty_tpl->tpl_vars['sessionIndex']->value;?> " conv="<?php echo $_smarty_tpl->tpl_vars['convocationIndex']->value;?> "> <table style="width:100%" cellspacing="1" cellpadding="2" border="0"> <?php $_smarty_tpl->tpl_vars['doc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['docIndex'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['sessions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['doc']->key => $_smarty_tpl->tpl_vars['doc']->value){ $_smarty_tpl->tpl_vars['docIndex']->value = $_smarty_tpl->tpl_vars['doc']->key; ?> <tr> <td style="width:30px;text-align:center"><?php echo $_smarty_tpl->tpl_vars['doc']->value['law_number'];?> </td> <td> <a href="#" class="law-preview-link" i="<?php echo $_smarty_tpl->tpl_vars['doc']->value['law_id'];?> "><?php echo $_smarty_tpl->tpl_vars['doc']->value["law_name_".($_smarty_tpl->getVariable('ulang')->value)];?> </a> </td> <td style="width:60px"> <?php echo $_smarty_tpl->tpl_vars['doc']->value['law_date'];?> </td> <td style="width:20px; text-align: center; vertical-align: middle;"> <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['doc']->value["law_filename"];?> <?php $_tmp1=ob_get_clean();?><?php if (file_exists("data/laws/".($_smarty_tpl->tpl_vars['doc']->value["law_filename"]))&&strlen($_tmp1)>0){?> <a href="/data/laws/<?php echo $_smarty_tpl->tpl_vars['doc']->value['law_filename'];?> "><img src="/user/images/laws/download.gif" /></a> <?php }?> </td> <?php }} ?> </tr> </table> </div> <?php }} ?> </div> <?php }} ?> </div> <div id="dialog" title=""></div> <script type="text/javascript"> $(document).ready(function() { $(".convocation").toggle(); $(".convocation:first").toggle(); $(".session").hide(); $(".session:first").toggle();
$(".convocation-title").click( function() { $(".convocation").hide(); $(this).next().show(); window.location = "#" + $(this).attr('title'); } ); $(".session-title").click( function() { $(".session").hide(); $(this).next().show(); window.location = "#" + $(this).attr('title'); } ); $(".law-preview-link").click( function() { law_id = $(this).attr("i"); $.post("/user-asynch.php?law_id=" + $(this).attr("i"), '', function(res) { document.getElementById('dialog').title = res; $("#dialog").load("/user-asynch.php?mod=Laws&text&law_id="+law_id, function() { if ($("#dialog").html().length < 10) return; $("#dialog").dialog({ modal: true, position: ["center","center"], width: "800px", height: "600", close: function(event, ui) { $("#dialog").dialog('destroy'); } }); }, 'json'); }); return false; }); $(".session-title.load").click( function() { $(this).next().load("/user-asynch.php?mod=Laws&convocation_id=" + $(this).next().attr('conv') + "&session_id=" + $(this).next().attr('sess')); }); $(".session-title:first").trigger("click"); }); </script>
|