Viewing file: 0699bf14c5135de455e018c1419417a4a7cc4c9e.file.month.tpl.php (9.25 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-02-09 01:48:16 compiled from "modules/news/templates/month.tpl" */ ?> <?php /*%%SmartyHeaderCode:2767936164f3309c0024581-85968259%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '0699bf14c5135de455e018c1419417a4a7cc4c9e' => array ( 0 => 'modules/news/templates/month.tpl', 1 => 1328738791, ), ), 'nocache_hash' => '2767936164f3309c0024581-85968259', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div style="text-align:center;"><form method="post"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['NewsSelectMonth'];?> : <select name="year" id="year" onchange="submit()"> <?php ob_start();?><?php echo GetCurrentYear()+1;?> <?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo GetCurrentYear()-GetParam("StartYear")+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']==$_smarty_tpl->getVariable('year')->value){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['year']['index'];?> </option> <?php endfor; endif; ?> </select> <select name="month" id="month" onchange="submit()"> <?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']==$_smarty_tpl->getVariable('month')->value){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->getVariable('ULANG')->value["CoreMonth".($_smarty_tpl->getVariable('smarty')->value['section']['month']['index'])];?> </option> <?php endfor; endif; ?> </select> </form></div><br />
|