<?php /* Smarty version 2.6.2, created on 2012-03-23 20:12:39
         compiled from ads_side125_banners.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'encurl', 'ads_side125_banners.tpl', 7, false),)), $this); ?>
<div class="box">
<div class="box_title">Sidebar Banner(125x125)</div>
<div class="box_body">
<div style="text-align: center">
<?php if (isset($this->_sections['b7'])) unset($this->_sections['b7']);
$this->_sections['b7']['name'] = 'b7';
$this->_sections['b7']['loop'] = is_array($_loop=$this->_tpl_vars['ads']['7']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['b7']['show'] = true;
$this->_sections['b7']['max'] = $this->_sections['b7']['loop'];
$this->_sections['b7']['step'] = 1;
$this->_sections['b7']['start'] = $this->_sections['b7']['step'] > 0 ? 0 : $this->_sections['b7']['loop']-1;
if ($this->_sections['b7']['show']) {
    $this->_sections['b7']['total'] = $this->_sections['b7']['loop'];
    if ($this->_sections['b7']['total'] == 0)
        $this->_sections['b7']['show'] = false;
} else
    $this->_sections['b7']['total'] = 0;
if ($this->_sections['b7']['show']):

            for ($this->_sections['b7']['index'] = $this->_sections['b7']['start'], $this->_sections['b7']['iteration'] = 1;
                 $this->_sections['b7']['iteration'] <= $this->_sections['b7']['total'];
                 $this->_sections['b7']['index'] += $this->_sections['b7']['step'], $this->_sections['b7']['iteration']++):
$this->_sections['b7']['rownum'] = $this->_sections['b7']['iteration'];
$this->_sections['b7']['index_prev'] = $this->_sections['b7']['index'] - $this->_sections['b7']['step'];
$this->_sections['b7']['index_next'] = $this->_sections['b7']['index'] + $this->_sections['b7']['step'];
$this->_sections['b7']['first']      = ($this->_sections['b7']['iteration'] == 1);
$this->_sections['b7']['last']       = ($this->_sections['b7']['iteration'] == $this->_sections['b7']['total']);
?>
<?php if ($this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['no']): ?>
<a href="<?php echo ((is_array($_tmp="?a=goads&aid=7&id=".($this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['no']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" target="_blank" title="<?php echo $this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['desc']; ?>
"><?php if ($this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['format'] == 'flash'): ?><embed width="125" height="125" src="<?php echo $this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['imgurl']; ?>
"><noembed><?php echo ((is_array($_tmp="?a=goads&aid=7&id=".($this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['no']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
</noembed><?php else: ?><img src="<?php echo $this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['imgurl']; ?>
" width="125" height="125" alt="<?php echo $this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['desc']; ?>
" border="0"><?php endif; ?></a><br><a href="<?php echo ((is_array($_tmp="?a=advertise&ad=7")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Cost of Ad - $<?php echo $this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['price']; ?>
</a><br>Expires: <?php echo $this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['expired']; ?>

<?php else: ?>
<a href="<?php echo ((is_array($_tmp="?a=advertise&ad=7")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" title="Advertise your banner here."><img src="<?php echo ((is_array($_tmp="images/125.png")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" width="125" height="125" alt="Place Your AD Here" border="0"></a><br><a href="<?php echo ((is_array($_tmp="?a=advertise&ad=7")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
">Place AD Here - $<?php echo $this->_tpl_vars['ads']['7'][$this->_sections['b7']['index']]['price']; ?>
</a>
<?php endif; ?><br><br>
<?php endfor; endif; ?>

</div></div>
</div>