<?php /* Smarty version 2.6.2, created on 2012-03-07 03:04:13
         compiled from showads.tpl */ ?>

<TABLE border=0 cellSpacing=0 cellPadding=2 width="100%">
<TBODY>
<TR>
<TD align=middle>
<DIV id=show_ad_site>
<FIELDSET style="WIDTH: 86%" align=center><LEGEND><B 
style="COLOR: #111111">&nbsp;ADs currently displaying&nbsp;</B></LEGEND>
<TABLE border=0 cellSpacing=2 cellPadding=2 width="100%" bgColor=#ffffff>
<TBODY>
<TR>
<TD colSpan=4><STRONG style="COLOR: #666666"><?php echo $this->_tpl_vars['ad_name']; ?>

</STRONG></TD></TR>

<TR bgColor=#dedede>
<TD align=middle><STRONG>#</STRONG></TD>
<TD align=middle><STRONG>Site</STRONG></TD>
<TD align=middle><STRONG>Expired Date</STRONG></TD>
<TD align=middle><STRONG>Price($)</STRONG></TD></TR>

<?php if (isset($this->_sections['n'])) unset($this->_sections['n']);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['ads']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
<TR bgColor=#f8f8f8>
<TD align=middle><?php echo $this->_tpl_vars['ads'][$this->_sections['n']['index']]['a']; ?>
</TD>
<TD align=middle><FONT color=green><?php echo $this->_tpl_vars['ads'][$this->_sections['n']['index']]['b']; ?>
</FONT></TD>
<TD align=middle><?php echo $this->_tpl_vars['ads'][$this->_sections['n']['index']]['c']; ?>
</TD>
<TD align=middle>$<?php echo $this->_tpl_vars['ads'][$this->_sections['n']['index']]['d']; ?>
/week</TD>
</TR>
<?php endfor; endif; ?>
</TBODY></TABLE></FIELDSET> 
</DIV></TD></TR></TBODY></TABLE>