Viewing file: 7bab0dee94e81371af86a65277b4d452b213aa70.file.form.tpl.php (30.54 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/form.tpl" */ ?> <?php /*%%SmartyHeaderCode:4500759075425b8273ee227-81788928%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '7bab0dee94e81371af86a65277b4d452b213aa70' => array ( 0 => 'user/templates/laws/form.tpl', 1 => 1410983472, ), ), 'nocache_hash' => '4500759075425b8273ee227-81788928', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <?php if (!is_callable('smarty_function_html_radios')) include 'modules-alien/smarty/libs/plugins/function.html_radios.php'; ?><form name="lawsearch" method="get"> <table border="0" align="center" cellpadding="3" cellspacing="0" class="LawForm"> <tr> <th><input name="laws" type="hidden" id="laws" value="true" /> <?php echo $_smarty_tpl->getVariable('ULANG')->value['LawsSearchFormKeywords'];?> :</th> <td><input name="law_text" size="40" type="text" value="<?php echo $_GET['law_text'];?> " /></td> </tr> <tr> <th><?php echo $_smarty_tpl->getVariable('ULANG')->value['LawsSearchFormNumber'];?> :</th> <td><input name="law_number" size="10" type="text" value="<?php echo $_GET['law_number'];?> "/></td> </tr> <tr> <th><?php echo $_smarty_tpl->getVariable('ULANG')->value['LawsSearchFormType'];?> :</th> <td> <select name="law_type_id"> <option> </option> <?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 ($_GET['law_type_id']==$_smarty_tpl->tpl_vars['row']->value['type_id']){?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value["type_name_".($_smarty_tpl->getVariable('ulang')->value)];?> </option> <?php }} ?> </select> </td> </tr> <tr> <th><?php echo $_smarty_tpl->getVariable('ULANG')->value['LawsSearchFormPublisher'];?> :</th> <td> <select name="law_publisher_id"> <option> </option> <?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 ($_GET['law_publisher_id']==$_smarty_tpl->tpl_vars['row']->value['publisher_id']){?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value["publisher_name_".($_smarty_tpl->getVariable('ulang')->value)];?> </option> <?php }} ?> </select> </td> </tr> <tr> <th><?php echo $_smarty_tpl->getVariable('ULANG')->value['LawsSessionNumber'];?> :</th> <td><input name="law_session_number" size="6" type="text" id="law_session_number" value="<?php echo $_GET['law_session_number'];?> " /></td> </tr> <tr> <th><?php echo $_smarty_tpl->getVariable('ULANG')->value['LawsSessionConvocation'];?> :</th> <td><input name="law_session_convocation" size="6" type="text" id="law_session_convocation" value="<?php echo $_GET['law_session_convocation'];?> "/></td> </tr> <tr> <th valign="top"><?php echo $_smarty_tpl->getVariable('ULANG')->value['LawsDate'];?> :</th> <td><?php echo smarty_function_html_radios(array('name'=>"date_type",'values'=>array("nodate","onedate","twodate"),'output'=>array($_smarty_tpl->getVariable('ULANG')->value['LawsAllDates'],$_smarty_tpl->getVariable('ULANG')->value['LawsOneDate'],$_smarty_tpl->getVariable('ULANG')->value['LawsTwoDate']),'selected'=>$_smarty_tpl->getVariable('date_type')->value,'separator'=>" "),$_smarty_tpl->smarty,$_smarty_tpl);?> </td> </tr> <tr> <th><div class="lawdateblock2"><?php echo $_smarty_tpl->getVariable('ULANG')->value['LawsSearchFormDate_first'];?> </div></th> <td><div class="lawdateblock1"> <select name="law_date_day1" id="law_date_day1"> <?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']==$_GET['law_date_day1']){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['day']['index'];?> </option> <?php endfor; endif; ?> </select> - <select name="law_date_month1" id="law_date_month1"> <?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']==$_GET['law_date_month1']){?> 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_year1" id="law_date_year1"> <?php ob_start();?><?php echo GetCurrentYear()+1;?> <?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo GetCurrentYear()-1998+1;?> <?php $_tmp2=ob_get_clean();?><?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['year']); $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['name'] = 'year'; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['loop'] = is_array($_loop=$_tmp1) ? count($_loop) : max(0, (int)$_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['max'] = (int)$_tmp2; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'] = ((int)-1) == 0 ? 1 : (int)-1; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['show'] = true; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['max'] < 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['loop']-1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['max']); if ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total'] == 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['show'] = false; } else $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total'] = 0; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['show']):
for ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration']++): $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration'] == 1); $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total']); ?> <option value="<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['year']['index'];?> " <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['year']['index']==$_GET['law_date_year1']){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['year']['index'];?> </option> <?php endfor; endif; ?> </select> </div></td> </tr> <tr> <th><div class="lawdateblock2"><?php echo $_smarty_tpl->getVariable('ULANG')->value['LawsSearchFormDate_last'];?> </div></th> <td><div class="lawdateblock2"> <select name="law_date_day2" id="law_date_day2"> <?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']==$_GET['law_date_day2']){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['day']['index'];?> </option> <?php endfor; endif; ?> </select> - <select name="law_date_month2" id="law_date_month2"> <?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']==$_GET['law_date_month2']){?> 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_year2" id="law_date_year2"> <?php ob_start();?><?php echo GetCurrentYear()+1;?> <?php $_tmp3=ob_get_clean();?><?php ob_start();?><?php echo GetCurrentYear()-1998+1;?> <?php $_tmp4=ob_get_clean();?><?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['year']); $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['name'] = 'year'; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['loop'] = is_array($_loop=$_tmp3) ? count($_loop) : max(0, (int)$_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['max'] = (int)$_tmp4; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'] = ((int)-1) == 0 ? 1 : (int)-1; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['show'] = true; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['max'] < 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['loop']-1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['max']); if ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total'] == 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['show'] = false; } else $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total'] = 0; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['show']):
for ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration']++): $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration'] == 1); $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['year']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['year']['total']); ?> <option value="<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['year']['index'];?> " <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['year']['index']==$_GET['law_date_year2']){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['year']['index'];?> </option> <?php endfor; endif; ?> </select> </div></td> </tr> <tr> <th> </th> <td> <button type="submit" name="submit" id="submit" class="ui-state-default ui-widget ui-corner-all"><?php echo $_smarty_tpl->getVariable('ULANG')->value['SearchButton'];?> </button></td> </tr> </table> </form> <script type="text/javascript"> $("input[name=date_type]").change(show_hide); show_hide(); function show_hide() { if ($("input[name=date_type]").filter(":checked").val() == "nodate") { $(".lawdateblock2").css({ "display" : "none" }); $(".lawdateblock1").css({ "display" : "none" }); } if ($("input[name=date_type]").filter(":checked").val() == "onedate") { $(".lawdateblock2").css({ "display" : "none" }); $(".lawdateblock1").css({ "display" : "block" }); } if ($("input[name=date_type]").filter(":checked").val() == "twodate") { $(".lawdateblock2").css({ "display" : "block" }); $(".lawdateblock1").css({ "display" : "block" }); } } </script>
|