<?php /* Smarty version 2.6.2, created on 2012-10-10 13:03:28
         compiled from index.plans.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'myescape', 'index.plans.tpl', 13, false),array('modifier', 'escape', 'index.plans.tpl', 17, false),array('modifier', 'string_format', 'index.plans.tpl', 29, false),)), $this); ?>
<?php echo '
<script language="javascript"><!--
function openCalculator(id)
{
  w = 225; h = 400;
  t = (screen.height-h-30)/2;
  l = (screen.width-w-30)/2;
  window.open(\'?a=calendar&type=\' + id, \'calculator\' + id, "top="+t+",left="+l+",width="+w+",height="+h+",resizable=1,scrollbars=0");
}
--></script>
'; ?>


<?php if (isset($this->_sections['plans'])) unset($this->_sections['plans']);
$this->_sections['plans']['name'] = 'plans';
$this->_sections['plans']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['index_plans'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['plans']['show'] = true;
$this->_sections['plans']['max'] = $this->_sections['plans']['loop'];
$this->_sections['plans']['step'] = 1;
$this->_sections['plans']['start'] = $this->_sections['plans']['step'] > 0 ? 0 : $this->_sections['plans']['loop']-1;
if ($this->_sections['plans']['show']) {
    $this->_sections['plans']['total'] = $this->_sections['plans']['loop'];
    if ($this->_sections['plans']['total'] == 0)
        $this->_sections['plans']['show'] = false;
} else
    $this->_sections['plans']['total'] = 0;
if ($this->_sections['plans']['show']):

            for ($this->_sections['plans']['index'] = $this->_sections['plans']['start'], $this->_sections['plans']['iteration'] = 1;
                 $this->_sections['plans']['iteration'] <= $this->_sections['plans']['total'];
                 $this->_sections['plans']['index'] += $this->_sections['plans']['step'], $this->_sections['plans']['iteration']++):
$this->_sections['plans']['rownum'] = $this->_sections['plans']['iteration'];
$this->_sections['plans']['index_prev'] = $this->_sections['plans']['index'] - $this->_sections['plans']['step'];
$this->_sections['plans']['index_next'] = $this->_sections['plans']['index'] + $this->_sections['plans']['step'];
$this->_sections['plans']['first']      = ($this->_sections['plans']['iteration'] == 1);
$this->_sections['plans']['last']       = ($this->_sections['plans']['iteration'] == $this->_sections['plans']['total']);
 if (! ((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['closed'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<table cellspacing=1 cellpadding=2 border=0 width=100%>
<tr>
 <td colspan=3 align=center><?php if (((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['dsc'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) != ''): ?><a href=?a=show_package_info&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
><?php endif; ?><b><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</b></a></td>
</tr>
<?php if (((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['plans'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<tr>
 <td class=inheader>Plan</td>
 <td class=inheader width=200>Spent Amount (<?php echo ((is_array($_tmp=$this->_tpl_vars['currency_sign'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
)</td>
 <td class=inheader width=100 nowrap><nobr><?php echo ((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['period'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 Profit (%)</nobr></td>
</tr>
<?php if (isset($this->_sections['plan_options'])) unset($this->_sections['plan_options']);
$this->_sections['plan_options']['name'] = 'plan_options';
$this->_sections['plan_options']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['plans'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['plan_options']['show'] = true;
$this->_sections['plan_options']['max'] = $this->_sections['plan_options']['loop'];
$this->_sections['plan_options']['step'] = 1;
$this->_sections['plan_options']['start'] = $this->_sections['plan_options']['step'] > 0 ? 0 : $this->_sections['plan_options']['loop']-1;
if ($this->_sections['plan_options']['show']) {
    $this->_sections['plan_options']['total'] = $this->_sections['plan_options']['loop'];
    if ($this->_sections['plan_options']['total'] == 0)
        $this->_sections['plan_options']['show'] = false;
} else
    $this->_sections['plan_options']['total'] = 0;
if ($this->_sections['plan_options']['show']):

            for ($this->_sections['plan_options']['index'] = $this->_sections['plan_options']['start'], $this->_sections['plan_options']['iteration'] = 1;
                 $this->_sections['plan_options']['iteration'] <= $this->_sections['plan_options']['total'];
                 $this->_sections['plan_options']['index'] += $this->_sections['plan_options']['step'], $this->_sections['plan_options']['iteration']++):
$this->_sections['plan_options']['rownum'] = $this->_sections['plan_options']['iteration'];
$this->_sections['plan_options']['index_prev'] = $this->_sections['plan_options']['index'] - $this->_sections['plan_options']['step'];
$this->_sections['plan_options']['index_next'] = $this->_sections['plan_options']['index'] + $this->_sections['plan_options']['step'];
$this->_sections['plan_options']['first']      = ($this->_sections['plan_options']['iteration'] == 1);
$this->_sections['plan_options']['last']       = ($this->_sections['plan_options']['iteration'] == $this->_sections['plan_options']['total']);
?>
<tr>
 <td class=item><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['plans'][$this->_sections['plan_options']['index']]['name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</td>
 <td class=item align=right><?php echo ((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['plans'][$this->_sections['plan_options']['index']]['deposit'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
 <td class=item align=right><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['plans'][$this->_sections['plan_options']['index']]['percent'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</td>
</tr>
<?php endfor; endif;  if (((is_array($_tmp=$this->_tpl_vars['settings']['enable_calculator'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) && ((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['period'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) != 'Floating'): ?>
<tr>
 <td colspan=3 align=right><a href="javascript:openCalculator('<?php echo ((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
')">Calculate your profit &gt;&gt;</a></td>
</tr>
<?php endif;  endif; ?>
</table>

<?php if (((is_array($_tmp=$this->_tpl_vars['userinfo']['logged'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<br>
<form method=post>
<input type=hidden name=a value=deposit>
<input type=submit value="Make deposit" class=sbmt>
<input type=hidden name=h_id value=<?php echo ((is_array($_tmp=$this->_tpl_vars['index_plans'][$this->_sections['plans']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
>
</form>
<br><br>
<?php endif;  endif;  endfor; endif; ?>