<?php /* Smarty version 2.6.2, created on 2012-10-11 15:51:17
         compiled from deposit.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'myescape', 'deposit.tpl', 14, false),array('modifier', 'escape', 'deposit.tpl', 65, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?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");

'; ?>

  <?php if (((is_array($_tmp=$this->_tpl_vars['qplans'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) > 1): ?>
<?php echo '
  for (i = 0; i < document.spendform.h_id.length; i++)
  {
    if (document.spendform.h_id[i].value == id)
    {
      document.spendform.h_id[i].checked = true;
    }
  }
'; ?>

  <?php endif; ?>
<?php echo '
}
--></script>
'; ?>


<?php if (((is_array($_tmp=$this->_tpl_vars['frm']['say'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'deposit_success'): ?>
<h3>The deposit has been successfully saved.</h3>
<br><br>
<?php endif; ?>

<?php if (((is_array($_tmp=$this->_tpl_vars['frm']['say'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'deposit_saved'): ?>
<h3>The deposit has been saved. It will become active when the administrator checks statistics.</h3><br><br>
<?php endif; ?>

<h3>Make a Deposit:</h3>
<br>
<form method=post name="spendform">
<input type=hidden name=a value=deposit>
  <?php if (((is_array($_tmp=$this->_tpl_vars['qplans'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) > 1): ?> Select a plan:<br>
<?php endif; ?>

<?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['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']);
?>
<table cellspacing=1 cellpadding=2 border=0 width=100%>
<tr>
 <td colspan=3>
<?php if (((is_array($_tmp=$this->_tpl_vars['qplans'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) > 1): ?>
	<input type=radio name=h_id value='<?php echo ((is_array($_tmp=$this->_tpl_vars['plans'][$this->_sections['plans']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
' <?php if (( ( ((is_array($_tmp=$this->_sections['plans']['first'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 1 ) && ( ((is_array($_tmp=$this->_tpl_vars['frm']['h_id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == '' ) ) || ( ((is_array($_tmp=$this->_tpl_vars['frm']['h_id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == ((is_array($_tmp=$this->_tpl_vars['plans'][$this->_sections['plans']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) )): ?> checked <?php endif; ?> > 
<!--	<input type=radio name=h_id value='<?php echo ((is_array($_tmp=$this->_tpl_vars['plans'][$this->_sections['plans']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
' <?php if (( ( ((is_array($_tmp=$this->_sections['plans']['first'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 1 ) && ( ((is_array($_tmp=$this->_tpl_vars['frm']['h_id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == '' ) ) || ( ((is_array($_tmp=$this->_tpl_vars['frm']['h_id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == ((is_array($_tmp=$this->_tpl_vars['plans'][$this->_sections['plans']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) )): ?> checked <?php endif; ?> <?php if (((is_array($_tmp=$this->_tpl_vars['compounding_available'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) > 0): ?>onclick="document.spendform.compound.disabled=<?php if (((is_array($_tmp=$this->_tpl_vars['plans'][$this->_sections['plans']['index']]['use_compound'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 1): ?>false<?php else: ?>true<?php endif; ?>;"<?php endif; ?>> -->
<?php else: ?>
	<input type=hidden name=h_id value='<?php echo ((is_array($_tmp=$this->_tpl_vars['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=$this->_tpl_vars['plans'][$this->_sections['plans']['index']]['name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</b></td>
</tr><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['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['options'])) unset($this->_sections['options']);
$this->_sections['options']['name'] = 'options';
$this->_sections['options']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['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['options']['show'] = true;
$this->_sections['options']['max'] = $this->_sections['options']['loop'];
$this->_sections['options']['step'] = 1;
$this->_sections['options']['start'] = $this->_sections['options']['step'] > 0 ? 0 : $this->_sections['options']['loop']-1;
if ($this->_sections['options']['show']) {
    $this->_sections['options']['total'] = $this->_sections['options']['loop'];
    if ($this->_sections['options']['total'] == 0)
        $this->_sections['options']['show'] = false;
} else
    $this->_sections['options']['total'] = 0;
if ($this->_sections['options']['show']):

            for ($this->_sections['options']['index'] = $this->_sections['options']['start'], $this->_sections['options']['iteration'] = 1;
                 $this->_sections['options']['iteration'] <= $this->_sections['options']['total'];
                 $this->_sections['options']['index'] += $this->_sections['options']['step'], $this->_sections['options']['iteration']++):
$this->_sections['options']['rownum'] = $this->_sections['options']['iteration'];
$this->_sections['options']['index_prev'] = $this->_sections['options']['index'] - $this->_sections['options']['step'];
$this->_sections['options']['index_next'] = $this->_sections['options']['index'] + $this->_sections['options']['step'];
$this->_sections['options']['first']      = ($this->_sections['options']['iteration'] == 1);
$this->_sections['options']['last']       = ($this->_sections['options']['iteration'] == $this->_sections['options']['total']);
?>
<tr>
 <td class=item><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['plans'][$this->_sections['plans']['index']]['plans'][$this->_sections['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['plans'][$this->_sections['plans']['index']]['plans'][$this->_sections['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=$this->_tpl_vars['plans'][$this->_sections['plans']['index']]['plans'][$this->_sections['options']['index']]['percent'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
</tr>
<?php endfor; endif; ?>
<?php if (((is_array($_tmp=$this->_tpl_vars['settings']['enable_calculator'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<tr>
 <td colspan=3 align=right><a href="javascript:openCalculator('<?php echo ((is_array($_tmp=$this->_tpl_vars['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; ?>
</table><br><br>
<?php endfor; endif; ?>


<table cellspacing=0 cellpadding=2 border=0>
<tr>
 <td>Your account balance (<?php echo ((is_array($_tmp=$this->_tpl_vars['currency_sign'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
):</td>
 <td align=right><?php echo ((is_array($_tmp=$this->_tpl_vars['currency_sign'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp));  echo ((is_array($_tmp=$this->_tpl_vars['ab_formated']['total'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
</tr>
<tr><td>&nbsp;</td>
 <td align=right>
  <small>
<?php if (isset($this->_sections['p'])) unset($this->_sections['p']);
$this->_sections['p']['name'] = 'p';
$this->_sections['p']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['ps'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['p']['show'] = true;
$this->_sections['p']['max'] = $this->_sections['p']['loop'];
$this->_sections['p']['step'] = 1;
$this->_sections['p']['start'] = $this->_sections['p']['step'] > 0 ? 0 : $this->_sections['p']['loop']-1;
if ($this->_sections['p']['show']) {
    $this->_sections['p']['total'] = $this->_sections['p']['loop'];
    if ($this->_sections['p']['total'] == 0)
        $this->_sections['p']['show'] = false;
} else
    $this->_sections['p']['total'] = 0;
if ($this->_sections['p']['show']):

            for ($this->_sections['p']['index'] = $this->_sections['p']['start'], $this->_sections['p']['iteration'] = 1;
                 $this->_sections['p']['iteration'] <= $this->_sections['p']['total'];
                 $this->_sections['p']['index'] += $this->_sections['p']['step'], $this->_sections['p']['iteration']++):
$this->_sections['p']['rownum'] = $this->_sections['p']['iteration'];
$this->_sections['p']['index_prev'] = $this->_sections['p']['index'] - $this->_sections['p']['step'];
$this->_sections['p']['index_next'] = $this->_sections['p']['index'] + $this->_sections['p']['step'];
$this->_sections['p']['first']      = ($this->_sections['p']['iteration'] == 1);
$this->_sections['p']['last']       = ($this->_sections['p']['iteration'] == $this->_sections['p']['total']);
?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['balance'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) > 0):  echo ((is_array($_tmp=$this->_tpl_vars['currency_sign'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp));  echo ((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['balance'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 of <?php echo ((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp));  if (((is_array($_tmp=$this->_tpl_vars['hold'][$this->_sections['p']['index']]['amount'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) > 0): ?> / <?php echo ((is_array($_tmp=$this->_tpl_vars['currency_sign'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp));  echo ((is_array($_tmp=$this->_tpl_vars['hold'][$this->_sections['p']['index']]['amount'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 on hold<?php endif; ?><br><?php endif; ?>
<?php endfor; endif; ?>
  </small>
 </td>
</tr><tr>
      <td>Amount to Spend (<?php echo ((is_array($_tmp=$this->_tpl_vars['currency_sign'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
):</td>
 <td align=right><input type=text name=amount value='<?php echo ((is_array($_tmp=$this->_tpl_vars['min_deposit'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
' class=inpts size=15 style="text-align:right;"></td>
</tr>
<tr>
  <td colspan=2>
   <table cellspacing=0 cellpadding=2 border=0>
<?php if (isset($this->_sections['p'])) unset($this->_sections['p']);
$this->_sections['p']['name'] = 'p';
$this->_sections['p']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['ps'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['p']['show'] = true;
$this->_sections['p']['max'] = $this->_sections['p']['loop'];
$this->_sections['p']['step'] = 1;
$this->_sections['p']['start'] = $this->_sections['p']['step'] > 0 ? 0 : $this->_sections['p']['loop']-1;
if ($this->_sections['p']['show']) {
    $this->_sections['p']['total'] = $this->_sections['p']['loop'];
    if ($this->_sections['p']['total'] == 0)
        $this->_sections['p']['show'] = false;
} else
    $this->_sections['p']['total'] = 0;
if ($this->_sections['p']['show']):

            for ($this->_sections['p']['index'] = $this->_sections['p']['start'], $this->_sections['p']['iteration'] = 1;
                 $this->_sections['p']['iteration'] <= $this->_sections['p']['total'];
                 $this->_sections['p']['index'] += $this->_sections['p']['step'], $this->_sections['p']['iteration']++):
$this->_sections['p']['rownum'] = $this->_sections['p']['iteration'];
$this->_sections['p']['index_prev'] = $this->_sections['p']['index'] - $this->_sections['p']['step'];
$this->_sections['p']['index_next'] = $this->_sections['p']['index'] + $this->_sections['p']['step'];
$this->_sections['p']['first']      = ($this->_sections['p']['iteration'] == 1);
$this->_sections['p']['last']       = ($this->_sections['p']['iteration'] == $this->_sections['p']['total']);
?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['balance'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) > 0 && ((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['status'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 1): ?>
    <tr>
     <td><input type=radio name=type value="account_<?php echo ((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
"></td>
     <td>Spend funds from the Account Balance <?php echo ((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
    </tr>
   <?php endif; ?>
<?php endfor; endif; ?>
<?php if (isset($this->_sections['p'])) unset($this->_sections['p']);
$this->_sections['p']['name'] = 'p';
$this->_sections['p']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['ps'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['p']['show'] = true;
$this->_sections['p']['max'] = $this->_sections['p']['loop'];
$this->_sections['p']['step'] = 1;
$this->_sections['p']['start'] = $this->_sections['p']['step'] > 0 ? 0 : $this->_sections['p']['loop']-1;
if ($this->_sections['p']['show']) {
    $this->_sections['p']['total'] = $this->_sections['p']['loop'];
    if ($this->_sections['p']['total'] == 0)
        $this->_sections['p']['show'] = false;
} else
    $this->_sections['p']['total'] = 0;
if ($this->_sections['p']['show']):

            for ($this->_sections['p']['index'] = $this->_sections['p']['start'], $this->_sections['p']['iteration'] = 1;
                 $this->_sections['p']['iteration'] <= $this->_sections['p']['total'];
                 $this->_sections['p']['index'] += $this->_sections['p']['step'], $this->_sections['p']['iteration']++):
$this->_sections['p']['rownum'] = $this->_sections['p']['iteration'];
$this->_sections['p']['index_prev'] = $this->_sections['p']['index'] - $this->_sections['p']['step'];
$this->_sections['p']['index_next'] = $this->_sections['p']['index'] + $this->_sections['p']['step'];
$this->_sections['p']['first']      = ($this->_sections['p']['iteration'] == 1);
$this->_sections['p']['last']       = ($this->_sections['p']['iteration'] == $this->_sections['p']['total']);
?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['status'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
    <tr>
     <td><input type=radio name=type value="process_<?php echo ((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
" <?php if (((is_array($_tmp=$this->_sections['p']['index'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 0): ?>checked<?php endif; ?>></td>
     <td>Spend funds from <?php echo ((is_array($_tmp=$this->_tpl_vars['ps'][$this->_sections['p']['index']]['name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
    </tr>
   <?php endif; ?>
<?php endfor; endif; ?>
   </table>
  </td>
</tr>
<tr>
 <td colspan=2><input type=submit value="Spend" class=sbmt></td>
</tr></table>
</form>
<?php echo '
<script language=javascript>
for (i = 0; i<document.spendform.type.length; i++) {
  if ((document.spendform.type[i].value.match(\'/process_/\'))) {
    document.spendform.type[i].checked = true;
    break;
  }
}
</script>
'; ?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
