Viewing file: 971534d1495eb119ead5c9826b057aa0f053c864.file.user-year-form.tpl.php (5.35 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2011-05-10 23:18:03 compiled from "user/templates/actual/user-year-form.tpl" */ ?> <?php /*%%SmartyHeaderCode:1572907674dc99d7b06ace0-76564596%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '971534d1495eb119ead5c9826b057aa0f053c864' => array ( 0 => 'user/templates/actual/user-year-form.tpl', 1 => 1285103383, ), ), 'nocache_hash' => '1572907674dc99d7b06ace0-76564596', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="archive-selector">
<form name="actual-year-form" method="get" id="actual-year-form">
<label><?php echo $_smarty_tpl->getVariable('ULANG')->value['ActualYearSelector'];?> : </label><select name="actual-year-select" id="actual-year-select">
<option value="now"><?php echo $_smarty_tpl->getVariable('ULANG')->value['ActualCurrentYear'];?> </option>
<?php ob_start();?><?php echo GetCurrentYear()+1;?> <?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo GetParam("StartYear");?> <?php $_tmp2=ob_get_clean();?><?php ob_start();?><?php echo GetCurrentYear()-$_tmp2+1;?> <?php $_tmp3=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)$_tmp3; $_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['list']){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->getVariable('ULANG')->value['ActualArchive'];?> <?php echo $_smarty_tpl->getVariable('smarty')->value['section']['year']['index'];?> <?php echo $_smarty_tpl->getVariable('ULANG')->value['CoreYearRP'];?> </option>
<?php endfor; endif; ?>
</select>
</form>
</div>
<script type="text/javascript">
$(document).ready(function()
{
$("#actual-year-select").change(function()
{
document.location.href = "/actual/archive/" + $("#actual-year-select").val();
});
});
</script>
|