<?php /* Smarty version 2.6.2, created on 2012-10-23 00:58:10
         compiled from last_payments_box.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'last_payments_box.tpl', 11, false),array('modifier', 'encurl', 'last_payments_box.tpl', 12, false),)), $this); ?>
<h2>Last Payouts</h2>
<div class="last_payouts">
<ul class="stats">
<?php if (isset($this->_sections['l'])) unset($this->_sections['l']);
$this->_sections['l']['name'] = 'l';
$this->_sections['l']['loop'] = is_array($_loop=$this->_tpl_vars['last_payouts']) ? 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']);
?>
  <?php if ($this->_tpl_vars['last_payouts'][$this->_sections['l']['index']]['data_type'] == 'date'): ?>
  <li>
   <span class="date"><?php echo $this->_tpl_vars['last_payouts'][$this->_sections['l']['index']]['date']; ?>
</span>
  </li>
  <?php else: ?>
  <li class="clearfix">
   <span class="amount">$<?php echo ((is_array($_tmp=$this->_tpl_vars['last_payouts'][$this->_sections['l']['index']]['amount'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</span>
   <a href="<?php echo ((is_array($_tmp="?a=go&lid=".($this->_tpl_vars['last_payouts'][$this->_sections['l']['index']]['id']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" target=_blank class="name"><?php echo $this->_tpl_vars['last_payouts'][$this->_sections['l']['index']]['name']; ?>
</a>
  </li>
  <?php endif;  endfor; endif; ?>
</ul>
</div>