Viewing file: 642d7c1dc7b83db9a31f11621ef7bef2669f615e.file.rows.tpl.php (3.04 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2014-09-26 22:02:05 compiled from "user/templates/laws/rows.tpl" */ ?> <?php /*%%SmartyHeaderCode:2619732015425b82dbb8536-37352010%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '642d7c1dc7b83db9a31f11621ef7bef2669f615e' => array ( 0 => 'user/templates/laws/rows.tpl', 1 => 1410983472, ), ), 'nocache_hash' => '2619732015425b82dbb8536-37352010', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="laws-list"> <?php $_smarty_tpl->tpl_vars['row'] = 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['row']->key => $_smarty_tpl->tpl_vars['row']->value){ ?> <div class="document"> <div class="index" i="<?php echo $_smarty_tpl->tpl_vars['row']->value['law_id'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value['index'];?> </div> <?php if ($_smarty_tpl->tpl_vars['row']->value["law_filename"]!=null&&file_exists("data/laws/".($_smarty_tpl->tpl_vars['row']->value["law_filename"]))){?> <div class="download" i="<?php echo $_smarty_tpl->tpl_vars['row']->value['law_id'];?> "><a href="/data/laws/<?php echo $_smarty_tpl->tpl_vars['row']->value["law_filename"];?> "><img src="/user/icons/download.gif" /></a></div> <?php }?> <div class="info" i="<?php echo $_smarty_tpl->tpl_vars['row']->value['law_id'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value["law_type"];?> № <?php echo $_smarty_tpl->tpl_vars['row']->value["law_number"];?> від <?php echo GetUsefulDate($_smarty_tpl->tpl_vars['row']->value['law_date'],true,false);?> (<?php echo $_smarty_tpl->tpl_vars['row']->value["law_publisher"];?> )</div> <div class="title" i="<?php echo $_smarty_tpl->tpl_vars['row']->value['law_id'];?> "> <?php echo $_smarty_tpl->tpl_vars['row']->value["law_name_".($_smarty_tpl->getVariable('ulang')->value)];?> </div> </div> <?php }} ?> </div> <div id="dialog" title=""></div> <script type="text/javascript"> $(document).ready( function() { $(".laws-list .document .title, .laws-list .document .info, .laws-list .document .index").css({ "cursor" : "pointer" }); $(".laws-list .document .title, .laws-list .document .info, .laws-list .document .index").click( function() { law_id = $(this).attr("i"); $.post("/user-asynch.php?mod=Laws&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'); }); }); }); </script>
|