<?php /* Smarty version 2.6.2, created on 2012-10-10 13:58:48
         compiled from referals.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'myescape', 'referals.tpl', 4, 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);
 ?>

<h1>Your Referrals:</h1><br>
<?php if (((is_array($_tmp=$this->_tpl_vars['upline']['email'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) != ""): ?>
Your upline is <a href=mailto:<?php echo ((is_array($_tmp=$this->_tpl_vars['upline']['email'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
><?php echo ((is_array($_tmp=$this->_tpl_vars['upline']['name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</a><br><br>
<?php endif; ?>
<br>
<table width=300 cellspacing=1 cellpadding=1>
<tr>
  <td class=item>Referrals:</td>
  <td class=item><?php echo ((is_array($_tmp=$this->_tpl_vars['total_ref'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
</tr><tr>
  <td class=item>Active referrals:</td>
  <td class=item><?php echo ((is_array($_tmp=$this->_tpl_vars['active_ref'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
</tr><tr>
  <td class=item>Total referral commission:</td>
  <td class=item>$<?php echo ((is_array($_tmp=$this->_tpl_vars['commissions'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
</tr>
</table>
<br>
<?php if (((is_array($_tmp=$this->_tpl_vars['settings']['show_refstat'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>

<h1>Referral ins/signups</h1><br>
<table cellspacing=0 cellpadding=1 border=0>
<form method=post name=opts>
<input type=hidden name=a value=referals>
 <td align=right>
From: </td>
<td>
<select name=month_from class=inpts>
<?php if (isset($this->_sections['month_from'])) unset($this->_sections['month_from']);
$this->_sections['month_from']['name'] = 'month_from';
$this->_sections['month_from']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['month'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['month_from']['show'] = true;
$this->_sections['month_from']['max'] = $this->_sections['month_from']['loop'];
$this->_sections['month_from']['step'] = 1;
$this->_sections['month_from']['start'] = $this->_sections['month_from']['step'] > 0 ? 0 : $this->_sections['month_from']['loop']-1;
if ($this->_sections['month_from']['show']) {
    $this->_sections['month_from']['total'] = $this->_sections['month_from']['loop'];
    if ($this->_sections['month_from']['total'] == 0)
        $this->_sections['month_from']['show'] = false;
} else
    $this->_sections['month_from']['total'] = 0;
if ($this->_sections['month_from']['show']):

            for ($this->_sections['month_from']['index'] = $this->_sections['month_from']['start'], $this->_sections['month_from']['iteration'] = 1;
                 $this->_sections['month_from']['iteration'] <= $this->_sections['month_from']['total'];
                 $this->_sections['month_from']['index'] += $this->_sections['month_from']['step'], $this->_sections['month_from']['iteration']++):
$this->_sections['month_from']['rownum'] = $this->_sections['month_from']['iteration'];
$this->_sections['month_from']['index_prev'] = $this->_sections['month_from']['index'] - $this->_sections['month_from']['step'];
$this->_sections['month_from']['index_next'] = $this->_sections['month_from']['index'] + $this->_sections['month_from']['step'];
$this->_sections['month_from']['first']      = ($this->_sections['month_from']['iteration'] == 1);
$this->_sections['month_from']['last']       = ($this->_sections['month_from']['iteration'] == $this->_sections['month_from']['total']);
?>
<option value=<?php echo ((is_array($_tmp=$this->_sections['month_from']['index']+1)) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 <?php if (((is_array($_tmp=$this->_sections['month_from']['index']+1)) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == ((is_array($_tmp=$this->_tpl_vars['frm']['month_from'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>selected<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['month'][$this->_sections['month_from']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>

<?php endfor; endif; ?>
</select> &nbsp;
<select name=day_from class=inpts>
<?php if (isset($this->_sections['day_from'])) unset($this->_sections['day_from']);
$this->_sections['day_from']['name'] = 'day_from';
$this->_sections['day_from']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['day'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['day_from']['show'] = true;
$this->_sections['day_from']['max'] = $this->_sections['day_from']['loop'];
$this->_sections['day_from']['step'] = 1;
$this->_sections['day_from']['start'] = $this->_sections['day_from']['step'] > 0 ? 0 : $this->_sections['day_from']['loop']-1;
if ($this->_sections['day_from']['show']) {
    $this->_sections['day_from']['total'] = $this->_sections['day_from']['loop'];
    if ($this->_sections['day_from']['total'] == 0)
        $this->_sections['day_from']['show'] = false;
} else
    $this->_sections['day_from']['total'] = 0;
if ($this->_sections['day_from']['show']):

            for ($this->_sections['day_from']['index'] = $this->_sections['day_from']['start'], $this->_sections['day_from']['iteration'] = 1;
                 $this->_sections['day_from']['iteration'] <= $this->_sections['day_from']['total'];
                 $this->_sections['day_from']['index'] += $this->_sections['day_from']['step'], $this->_sections['day_from']['iteration']++):
$this->_sections['day_from']['rownum'] = $this->_sections['day_from']['iteration'];
$this->_sections['day_from']['index_prev'] = $this->_sections['day_from']['index'] - $this->_sections['day_from']['step'];
$this->_sections['day_from']['index_next'] = $this->_sections['day_from']['index'] + $this->_sections['day_from']['step'];
$this->_sections['day_from']['first']      = ($this->_sections['day_from']['iteration'] == 1);
$this->_sections['day_from']['last']       = ($this->_sections['day_from']['iteration'] == $this->_sections['day_from']['total']);
?>
<option value=<?php echo ((is_array($_tmp=$this->_sections['day_from']['index']+1)) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 <?php if (((is_array($_tmp=$this->_sections['day_from']['index']+1)) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == ((is_array($_tmp=$this->_tpl_vars['frm']['day_from'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>selected<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['day'][$this->_sections['day_from']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>

<?php endfor; endif; ?>
</select> &nbsp;
<select name=year_from class=inpts>
<?php if (isset($this->_sections['year_from'])) unset($this->_sections['year_from']);
$this->_sections['year_from']['name'] = 'year_from';
$this->_sections['year_from']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['year'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['year_from']['show'] = true;
$this->_sections['year_from']['max'] = $this->_sections['year_from']['loop'];
$this->_sections['year_from']['step'] = 1;
$this->_sections['year_from']['start'] = $this->_sections['year_from']['step'] > 0 ? 0 : $this->_sections['year_from']['loop']-1;
if ($this->_sections['year_from']['show']) {
    $this->_sections['year_from']['total'] = $this->_sections['year_from']['loop'];
    if ($this->_sections['year_from']['total'] == 0)
        $this->_sections['year_from']['show'] = false;
} else
    $this->_sections['year_from']['total'] = 0;
if ($this->_sections['year_from']['show']):

            for ($this->_sections['year_from']['index'] = $this->_sections['year_from']['start'], $this->_sections['year_from']['iteration'] = 1;
                 $this->_sections['year_from']['iteration'] <= $this->_sections['year_from']['total'];
                 $this->_sections['year_from']['index'] += $this->_sections['year_from']['step'], $this->_sections['year_from']['iteration']++):
$this->_sections['year_from']['rownum'] = $this->_sections['year_from']['iteration'];
$this->_sections['year_from']['index_prev'] = $this->_sections['year_from']['index'] - $this->_sections['year_from']['step'];
$this->_sections['year_from']['index_next'] = $this->_sections['year_from']['index'] + $this->_sections['year_from']['step'];
$this->_sections['year_from']['first']      = ($this->_sections['year_from']['iteration'] == 1);
$this->_sections['year_from']['last']       = ($this->_sections['year_from']['iteration'] == $this->_sections['year_from']['total']);
?>
<option value=<?php echo ((is_array($_tmp=$this->_tpl_vars['year'][$this->_sections['year_from']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 <?php if (((is_array($_tmp=$this->_tpl_vars['year'][$this->_sections['year_from']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == ((is_array($_tmp=$this->_tpl_vars['frm']['year_from'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>selected<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['year'][$this->_sections['year_from']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>

<?php endfor; endif; ?>
</select>
</td>
 <td rowspan=2>
	&nbsp; <input type=submit value="Go" class=sbmt>
 </td>
</tr>
<tr><td align=right>To:</td><td> <select name=month_to class=inpts>
<?php if (isset($this->_sections['month_to'])) unset($this->_sections['month_to']);
$this->_sections['month_to']['name'] = 'month_to';
$this->_sections['month_to']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['month'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['month_to']['show'] = true;
$this->_sections['month_to']['max'] = $this->_sections['month_to']['loop'];
$this->_sections['month_to']['step'] = 1;
$this->_sections['month_to']['start'] = $this->_sections['month_to']['step'] > 0 ? 0 : $this->_sections['month_to']['loop']-1;
if ($this->_sections['month_to']['show']) {
    $this->_sections['month_to']['total'] = $this->_sections['month_to']['loop'];
    if ($this->_sections['month_to']['total'] == 0)
        $this->_sections['month_to']['show'] = false;
} else
    $this->_sections['month_to']['total'] = 0;
if ($this->_sections['month_to']['show']):

            for ($this->_sections['month_to']['index'] = $this->_sections['month_to']['start'], $this->_sections['month_to']['iteration'] = 1;
                 $this->_sections['month_to']['iteration'] <= $this->_sections['month_to']['total'];
                 $this->_sections['month_to']['index'] += $this->_sections['month_to']['step'], $this->_sections['month_to']['iteration']++):
$this->_sections['month_to']['rownum'] = $this->_sections['month_to']['iteration'];
$this->_sections['month_to']['index_prev'] = $this->_sections['month_to']['index'] - $this->_sections['month_to']['step'];
$this->_sections['month_to']['index_next'] = $this->_sections['month_to']['index'] + $this->_sections['month_to']['step'];
$this->_sections['month_to']['first']      = ($this->_sections['month_to']['iteration'] == 1);
$this->_sections['month_to']['last']       = ($this->_sections['month_to']['iteration'] == $this->_sections['month_to']['total']);
?>
<option value=<?php echo ((is_array($_tmp=$this->_sections['month_to']['index']+1)) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 <?php if (((is_array($_tmp=$this->_sections['month_to']['index']+1)) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == ((is_array($_tmp=$this->_tpl_vars['frm']['month_to'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>selected<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['month'][$this->_sections['month_to']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>

<?php endfor; endif; ?>
</select> &nbsp;
<select name=day_to class=inpts>
<?php if (isset($this->_sections['day_to'])) unset($this->_sections['day_to']);
$this->_sections['day_to']['name'] = 'day_to';
$this->_sections['day_to']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['day'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['day_to']['show'] = true;
$this->_sections['day_to']['max'] = $this->_sections['day_to']['loop'];
$this->_sections['day_to']['step'] = 1;
$this->_sections['day_to']['start'] = $this->_sections['day_to']['step'] > 0 ? 0 : $this->_sections['day_to']['loop']-1;
if ($this->_sections['day_to']['show']) {
    $this->_sections['day_to']['total'] = $this->_sections['day_to']['loop'];
    if ($this->_sections['day_to']['total'] == 0)
        $this->_sections['day_to']['show'] = false;
} else
    $this->_sections['day_to']['total'] = 0;
if ($this->_sections['day_to']['show']):

            for ($this->_sections['day_to']['index'] = $this->_sections['day_to']['start'], $this->_sections['day_to']['iteration'] = 1;
                 $this->_sections['day_to']['iteration'] <= $this->_sections['day_to']['total'];
                 $this->_sections['day_to']['index'] += $this->_sections['day_to']['step'], $this->_sections['day_to']['iteration']++):
$this->_sections['day_to']['rownum'] = $this->_sections['day_to']['iteration'];
$this->_sections['day_to']['index_prev'] = $this->_sections['day_to']['index'] - $this->_sections['day_to']['step'];
$this->_sections['day_to']['index_next'] = $this->_sections['day_to']['index'] + $this->_sections['day_to']['step'];
$this->_sections['day_to']['first']      = ($this->_sections['day_to']['iteration'] == 1);
$this->_sections['day_to']['last']       = ($this->_sections['day_to']['iteration'] == $this->_sections['day_to']['total']);
?>
<option value=<?php echo ((is_array($_tmp=$this->_sections['day_to']['index']+1)) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 <?php if (((is_array($_tmp=$this->_sections['day_to']['index']+1)) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == ((is_array($_tmp=$this->_tpl_vars['frm']['day_to'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>selected<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['day'][$this->_sections['day_to']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>

<?php endfor; endif; ?>
</select> &nbsp;

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

            for ($this->_sections['year_to']['index'] = $this->_sections['year_to']['start'], $this->_sections['year_to']['iteration'] = 1;
                 $this->_sections['year_to']['iteration'] <= $this->_sections['year_to']['total'];
                 $this->_sections['year_to']['index'] += $this->_sections['year_to']['step'], $this->_sections['year_to']['iteration']++):
$this->_sections['year_to']['rownum'] = $this->_sections['year_to']['iteration'];
$this->_sections['year_to']['index_prev'] = $this->_sections['year_to']['index'] - $this->_sections['year_to']['step'];
$this->_sections['year_to']['index_next'] = $this->_sections['year_to']['index'] + $this->_sections['year_to']['step'];
$this->_sections['year_to']['first']      = ($this->_sections['year_to']['iteration'] == 1);
$this->_sections['year_to']['last']       = ($this->_sections['year_to']['iteration'] == $this->_sections['year_to']['total']);
?>
<option value=<?php echo ((is_array($_tmp=$this->_tpl_vars['year'][$this->_sections['year_to']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 <?php if (((is_array($_tmp=$this->_tpl_vars['year'][$this->_sections['year_to']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == ((is_array($_tmp=$this->_tpl_vars['frm']['year_to'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>selected<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['year'][$this->_sections['year_to']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>

<?php endfor; endif; ?>
</select>

 </td>
</tr></form></table>


<table width=300 celspacing=1 cellpadding=1 border=0>
<tr>
 <td class=inheader>Date</td>
 <td class=inheader>Ins</td>
 <td class=inheader>Signups</td>
</tr>
<?php if (((is_array($_tmp=$this->_tpl_vars['show_refstat'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<?php if (isset($this->_sections['s'])) unset($this->_sections['s']);
$this->_sections['s']['name'] = 's';
$this->_sections['s']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['refstat'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['s']['show'] = true;
$this->_sections['s']['max'] = $this->_sections['s']['loop'];
$this->_sections['s']['step'] = 1;
$this->_sections['s']['start'] = $this->_sections['s']['step'] > 0 ? 0 : $this->_sections['s']['loop']-1;
if ($this->_sections['s']['show']) {
    $this->_sections['s']['total'] = $this->_sections['s']['loop'];
    if ($this->_sections['s']['total'] == 0)
        $this->_sections['s']['show'] = false;
} else
    $this->_sections['s']['total'] = 0;
if ($this->_sections['s']['show']):

            for ($this->_sections['s']['index'] = $this->_sections['s']['start'], $this->_sections['s']['iteration'] = 1;
                 $this->_sections['s']['iteration'] <= $this->_sections['s']['total'];
                 $this->_sections['s']['index'] += $this->_sections['s']['step'], $this->_sections['s']['iteration']++):
$this->_sections['s']['rownum'] = $this->_sections['s']['iteration'];
$this->_sections['s']['index_prev'] = $this->_sections['s']['index'] - $this->_sections['s']['step'];
$this->_sections['s']['index_next'] = $this->_sections['s']['index'] + $this->_sections['s']['step'];
$this->_sections['s']['first']      = ($this->_sections['s']['iteration'] == 1);
$this->_sections['s']['last']       = ($this->_sections['s']['iteration'] == $this->_sections['s']['total']);
?>
<tr>
 <td class=item align=center><b><?php echo ((is_array($_tmp=$this->_tpl_vars['refstat'][$this->_sections['s']['index']]['date'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</b></td>
 <td class=item align=right><?php echo ((is_array($_tmp=$this->_tpl_vars['refstat'][$this->_sections['s']['index']]['income'])) ? $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['refstat'][$this->_sections['s']['index']]['reg'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
</tr>
<?php endfor; endif; ?>
<?php else: ?>
<tr>
 <td class=item align=center colspan=3>No statistics found for this period.</td>
</tr>
<?php endif; ?>
</table><br>
<?php endif; ?>

<?php if (((is_array($_tmp=$this->_tpl_vars['settings']['show_referals'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<?php if (((is_array($_tmp=$this->_tpl_vars['show_referals'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<h1>Your referrals:</h1>
<table cellspacing=1 cellpadding=1 border=0>
<tr>
 <td class=inheader>Nickname</td>
 <td class=inheader>E-mail</td>
 <td class=inheader>Status</td>
</tr>
<?php if (isset($this->_sections['s'])) unset($this->_sections['s']);
$this->_sections['s']['name'] = 's';
$this->_sections['s']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['referals'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['s']['show'] = true;
$this->_sections['s']['max'] = $this->_sections['s']['loop'];
$this->_sections['s']['step'] = 1;
$this->_sections['s']['start'] = $this->_sections['s']['step'] > 0 ? 0 : $this->_sections['s']['loop']-1;
if ($this->_sections['s']['show']) {
    $this->_sections['s']['total'] = $this->_sections['s']['loop'];
    if ($this->_sections['s']['total'] == 0)
        $this->_sections['s']['show'] = false;
} else
    $this->_sections['s']['total'] = 0;
if ($this->_sections['s']['show']):

            for ($this->_sections['s']['index'] = $this->_sections['s']['start'], $this->_sections['s']['iteration'] = 1;
                 $this->_sections['s']['iteration'] <= $this->_sections['s']['total'];
                 $this->_sections['s']['index'] += $this->_sections['s']['step'], $this->_sections['s']['iteration']++):
$this->_sections['s']['rownum'] = $this->_sections['s']['iteration'];
$this->_sections['s']['index_prev'] = $this->_sections['s']['index'] - $this->_sections['s']['step'];
$this->_sections['s']['index_next'] = $this->_sections['s']['index'] + $this->_sections['s']['step'];
$this->_sections['s']['first']      = ($this->_sections['s']['iteration'] == 1);
$this->_sections['s']['last']       = ($this->_sections['s']['iteration'] == $this->_sections['s']['total']);
?>
<tr>
 <td class=item><b><?php echo ((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['username'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</b></td>
 <td class=item><a href=mailto:<?php echo ((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['email'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
><?php echo ((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['email'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</a></td>
 <td class=item><?php if (((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['q_deposits'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) > 0): ?>Deposited<?php else: ?>No deposit yet<?php endif; ?></td>
</tr>
<?php if (((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['ref_stats'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<tr>
 <td colspan=3>
  User referrals:
  <?php if (isset($this->_sections['l'])) unset($this->_sections['l']);
$this->_sections['l']['name'] = 'l';
$this->_sections['l']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['ref_stats'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['l']['show'] = true;
$this->_sections['l']['max'] = $this->_sections['l']['loop'];
$this->_sections['l']['step'] = 1;
$this->_sections['l']['start'] = $this->_sections['l']['step'] > 0 ? 0 : $this->_sections['l']['loop']-1;
if ($this->_sections['l']['show']) {
    $this->_sections['l']['total'] = $this->_sections['l']['loop'];
    if ($this->_sections['l']['total'] == 0)
        $this->_sections['l']['show'] = false;
} else
    $this->_sections['l']['total'] = 0;
if ($this->_sections['l']['show']):

            for ($this->_sections['l']['index'] = $this->_sections['l']['start'], $this->_sections['l']['iteration'] = 1;
                 $this->_sections['l']['iteration'] <= $this->_sections['l']['total'];
                 $this->_sections['l']['index'] += $this->_sections['l']['step'], $this->_sections['l']['iteration']++):
$this->_sections['l']['rownum'] = $this->_sections['l']['iteration'];
$this->_sections['l']['index_prev'] = $this->_sections['l']['index'] - $this->_sections['l']['step'];
$this->_sections['l']['index_next'] = $this->_sections['l']['index'] + $this->_sections['l']['step'];
$this->_sections['l']['first']      = ($this->_sections['l']['iteration'] == 1);
$this->_sections['l']['last']       = ($this->_sections['l']['iteration'] == $this->_sections['l']['total']);
?>
   <nobr><?php echo ((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['ref_stats'][$this->_sections['l']['index']]['cnt_active'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 active of <?php echo ((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['ref_stats'][$this->_sections['l']['index']]['cnt'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 on level <?php echo ((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['ref_stats'][$this->_sections['l']['index']]['level'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp));  if (! ((is_array($_tmp=$this->_sections['l']['last'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>;<?php endif; ?></nobr>
  <?php endfor; endif; ?>
 </td>
</tr>
<?php endif; ?>
<?php if (((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['came_from'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
<tr><td colspan=3>
<a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['referals'][$this->_sections['s']['index']]['came_from'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
" target=_blank>[User came from]</a>
</td></tr>
<?php endif; ?>
<?php endfor; endif; ?>
<tr>
 <td colspan=3>&nbsp;</td>
</tr>
<tr>
 <td colspan=3><b>2-10 level referrals:</b> <?php echo ((is_array($_tmp=$this->_tpl_vars['cnt_other'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
</tr>
<tr>
 <td colspan=3><b>2-10 level active referrals:</b> <?php echo ((is_array($_tmp=$this->_tpl_vars['cnt_other_active'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
</td>
</tr>
</table>
<?php endif; ?>
<?php endif; ?>
<?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);
 ?>

