Viewing file: 378384e334e756e8a85d51efd04eac86ae8b7af4.file.document.tpl.php (15.21 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2014-09-27 16:31:26 compiled from "modules/laws/templates/document.tpl" */ ?> <?php /*%%SmartyHeaderCode:1928426244dda6dfadd3551-82528187%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '378384e334e756e8a85d51efd04eac86ae8b7af4' => array ( 0 => 'modules/laws/templates/document.tpl', 1 => 1410983426, ), ), 'nocache_hash' => '1928426244dda6dfadd3551-82528187', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <form class="editorform" method="post" enctype="multipart/form-data"> <table class="editor-table"> <tr> <th> <div id="current-language"> <?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('languages')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} $_smarty_tpl->tpl_vars['smarty']->value['foreach']['loop']['iteration']=0; if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ $_smarty_tpl->tpl_vars['smarty']->value['foreach']['loop']['iteration']++; ?> <input type="radio" <?php if ($_smarty_tpl->tpl_vars['lang']->value==$_smarty_tpl->getVariable('alang')->value){?> checked="checked" <?php }?> id="current-language<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['loop']['iteration'];?> " name="current-language" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> " /><label for="current-language<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['loop']['iteration'];?> "><img src="/admin/images/<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> 30x20.gif" /></label> <?php }} ?> </div> </th> </tr> <tr> <td> <div class="ukr"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_name'];?> (<img src="/admin/images/ukr30x20.gif" align="absmiddle" height="10" />):<br /> <textarea name="law_name_ukr" cols="65" rows="3" id="law_name_ukr"><?php echo $_smarty_tpl->getVariable('law_name_ukr')->value;?> </textarea> </div> <div class="rus"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_name'];?> (<img src="/admin/images/rus30x20.gif" align="absmiddle" height="10" />):<br /> <textarea name="law_name_rus" cols="65" rows="3" id="law_name_rus"><?php echo $_smarty_tpl->getVariable('law_name_rus')->value;?> </textarea> </div> <div class="eng"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_name'];?> (<img src="/admin/images/eng30x20.gif" align="absmiddle" height="10" />):<br /> <textarea name="law_name_eng" cols="65" rows="3" id="law_name_eng"><?php echo $_smarty_tpl->getVariable('law_name_eng')->value;?> </textarea> </div> </td> </tr> <tr> <td> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_type_id'];?> :<br /> <select name="law_type_id"> <?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('types')->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){ ?> <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['type_id'];?> "}<?php if ($_smarty_tpl->getVariable('law_type_id')->value==$_smarty_tpl->tpl_vars['row']->value['type_id']){?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value["type_name_ukr"];?> </option> <?php }} ?> </select> </td> </tr> <tr> <td> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_publisher_id'];?> :<br /> <select name="law_publisher_id"> <?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('publishers')->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){ ?> <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['publisher_id'];?> "}<?php if ($_smarty_tpl->getVariable('law_publisher_id')->value==$_smarty_tpl->tpl_vars['row']->value['publisher_id']){?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value["publisher_name_ukr"];?> </option> <?php }} ?> </select> </td> </tr> <tr> <td> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_number'];?> :<br /> <input name="law_number" type="text" id="law_number" value="<?php echo $_smarty_tpl->getVariable('law_number')->value;?> " size="5"> </td> </tr> <tr> <td> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_date'];?> :<br /> <input name="law_date_year" id="law_date_year" type="text" value="<?php echo ParseDate(($_smarty_tpl->getVariable('law_date')->value),"year");?> " size="4" maxlength="4" /> - <select name="law_date_month" id="law_date_month"> <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['month']); $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['name'] = 'month'; $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['start'] = (int)1; $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['loop'] = is_array($_loop=13) ? count($_loop) : max(0, (int)$_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['step'] = ((int)1) == 0 ? 1 : (int)1; $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['start'] < 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['start']); else $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['loop']-1); if ($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['max']); if ($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['total'] == 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['show'] = false; } else $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['total'] = 0; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['show']):
for ($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['iteration']++): $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['iteration'] == 1); $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['month']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['month']['total']); ?> <option value="<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['month']['index'];?> " <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['month']['index']==ParseDate(($_smarty_tpl->getVariable('law_date')->value),"month")){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->getVariable('ALANG')->value["CoreMonth".($_smarty_tpl->getVariable('smarty')->value['section']['month']['index'])];?> </option> <?php endfor; endif; ?> </select> - <select name="law_date_day" id="law_date_day"> <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['day']); $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['name'] = 'day'; $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['start'] = (int)1; $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['loop'] = is_array($_loop=32) ? count($_loop) : max(0, (int)$_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['step'] = ((int)1) == 0 ? 1 : (int)1; $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['start'] < 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['start']); else $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['loop']-1); if ($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['max']); if ($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['total'] == 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['show'] = false; } else $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['total'] = 0; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['show']):
for ($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['iteration']++): $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['iteration'] == 1); $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['day']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['day']['total']); ?> <option value="<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['day']['index'];?> " <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['day']['index']==ParseDate(($_smarty_tpl->getVariable('law_date')->value),"day")){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['day']['index'];?> </option> <?php endfor; endif; ?> </select> </td> </tr> <tr> <td><?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_session_number'];?> : <input name="law_session_number" type="text" id="law_session_number" value="<?php echo $_smarty_tpl->getVariable('law_session_number')->value;?> " size="5" /> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_session_convocation'];?> : <input name="law_session_convocation" type="text" id="law_session_convocation" value="<?php echo $_smarty_tpl->getVariable('law_session_convocation')->value;?> " size="5" /></td> </tr> <tr> <td><?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_filename'];?> :<br /> <label> <input name="law_filename" type="file" id="law_filename" size="50" /> </label> </td> </tr> <tr> <td><?php echo $_smarty_tpl->getVariable('ALANG')->value['Laws_law_preview'];?> :<br /> <textarea name="law_preview" id="law_preview" cols="65" rows="5" class="ckeditor"><?php echo $_smarty_tpl->getVariable('law_preview')->value;?> </textarea></td> </tr> <tr> <td><input value="<?php echo $_smarty_tpl->getVariable('ALANG')->value['CoreSave'];?> " type="submit" name="submit" id="submit" class="ui-state-default ui-widget ui-corner-all" /></td> </tr> </table> <input type="hidden" name="<?php echo $_smarty_tpl->getVariable('oper')->value;?> " value="yes" /> </form>
|