<?php /* Smarty version 2.6.2, created on 2012-10-21 14:48:39
         compiled from traffic.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'traffic.tpl', 14, false),array('modifier', 'abs', 'traffic.tpl', 18, 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 $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "program_details.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="details traffic">
<table class="list">
<tr>
 <th>Date</th>
 <th>Hosts</th>
 <th>Hits</th>
</tr>
<?php if ($this->_tpl_vars['stats']): ?>
<?php if (isset($this->_sections['s'])) unset($this->_sections['s']);
$this->_sections['s']['name'] = 's';
$this->_sections['s']['loop'] = is_array($_loop=$this->_tpl_vars['stats']) ? 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 class="<?php echo smarty_function_cycle(array('values' => "row1,row2"), $this);?>
">
 <td><?php echo $this->_tpl_vars['stats'][$this->_sections['s']['index']]['fdate']; ?>
</td>
 <td align=center><?php echo $this->_tpl_vars['stats'][$this->_sections['s']['index']]['hosts']; ?>

 <?php if ($this->_tpl_vars['stats'][$this->_sections['s']['index']]['hosts_d'] < 0): ?>
  <span class="neg">&darr; <?php echo ((is_array($_tmp=$this->_tpl_vars['stats'][$this->_sections['s']['index']]['hosts_d'])) ? $this->_run_mod_handler('abs', true, $_tmp) : abs($_tmp)); ?>
</span>
 <?php elseif ($this->_tpl_vars['stats'][$this->_sections['s']['index']]['hosts_d'] > 0): ?>
  <span class="pos">&uarr; <?php echo $this->_tpl_vars['stats'][$this->_sections['s']['index']]['hosts_d']; ?>
</span>
 <?php endif; ?></td>
 <td align=center><?php echo $this->_tpl_vars['stats'][$this->_sections['s']['index']]['hits']; ?>

 <?php if ($this->_tpl_vars['stats'][$this->_sections['s']['index']]['hits_d'] < 0): ?>
  <span class="neg">&darr; <?php echo ((is_array($_tmp=$this->_tpl_vars['stats'][$this->_sections['s']['index']]['hits_d'])) ? $this->_run_mod_handler('abs', true, $_tmp) : abs($_tmp)); ?>
</span>
 <?php elseif ($this->_tpl_vars['stats'][$this->_sections['s']['index']]['hits_d'] > 0): ?>
  <span class="pos">&uarr; <?php echo $this->_tpl_vars['stats'][$this->_sections['s']['index']]['hits_d']; ?>
</span>
 <?php endif; ?></td>
</tr>
<?php endfor; endif; ?>
<?php else: ?>
<tr>
 <td colspan=4 align=center>No stats</td>
</tr>
<?php endif; ?>
</table>
</div>

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