<?php /* Smarty version 2.6.2, created on 2012-10-04 02:25:47
         compiled from info_topprofitable.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'encurl', 'info_topprofitable.tpl', 4, false),array('modifier', 'intval', 'info_topprofitable.tpl', 5, false),)), $this); ?>
<?php if ($this->_tpl_vars['topprofitable']): ?>
<table border="0">
<?php if (isset($this->_sections['tp'])) unset($this->_sections['tp']);
$this->_sections['tp']['name'] = 'tp';
$this->_sections['tp']['loop'] = is_array($_loop=$this->_tpl_vars['topprofitable']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['tp']['show'] = true;
$this->_sections['tp']['max'] = $this->_sections['tp']['loop'];
$this->_sections['tp']['step'] = 1;
$this->_sections['tp']['start'] = $this->_sections['tp']['step'] > 0 ? 0 : $this->_sections['tp']['loop']-1;
if ($this->_sections['tp']['show']) {
    $this->_sections['tp']['total'] = $this->_sections['tp']['loop'];
    if ($this->_sections['tp']['total'] == 0)
        $this->_sections['tp']['show'] = false;
} else
    $this->_sections['tp']['total'] = 0;
if ($this->_sections['tp']['show']):

            for ($this->_sections['tp']['index'] = $this->_sections['tp']['start'], $this->_sections['tp']['iteration'] = 1;
                 $this->_sections['tp']['iteration'] <= $this->_sections['tp']['total'];
                 $this->_sections['tp']['index'] += $this->_sections['tp']['step'], $this->_sections['tp']['iteration']++):
$this->_sections['tp']['rownum'] = $this->_sections['tp']['iteration'];
$this->_sections['tp']['index_prev'] = $this->_sections['tp']['index'] - $this->_sections['tp']['step'];
$this->_sections['tp']['index_next'] = $this->_sections['tp']['index'] + $this->_sections['tp']['step'];
$this->_sections['tp']['first']      = ($this->_sections['tp']['iteration'] == 1);
$this->_sections['tp']['last']       = ($this->_sections['tp']['iteration'] == $this->_sections['tp']['total']);
?>
<tr><td align="left"><font color="#999999"><?php echo $this->_tpl_vars['topprofitable'][$this->_sections['tp']['index']]['no']; ?>
.</font> <a href="<?php echo ((is_array($_tmp="?a=details&lid=".($this->_tpl_vars['topprofitable'][$this->_sections['tp']['index']]['id']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" target="_blank"><b><?php echo $this->_tpl_vars['topprofitable'][$this->_sections['tp']['index']]['sub_name']; ?>
</b></a></td>
<td align="right"><font color="#009900"><?php echo ((is_array($_tmp=$this->_tpl_vars['topprofitable'][$this->_sections['tp']['index']]['ratio']*100)) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
%</font></td></tr>
<?php endfor; endif; ?>
</table><br>
<?php else: ?>No data find in database<br>
<?php endif; ?>
