<?php /* Smarty version 2.6.2, created on 2012-10-23 00:43:18
         compiled from list.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'encurl', 'list.tpl', 5, false),array('modifier', 'escape', 'list.tpl', 15, false),array('function', 'paginator', 'list.tpl', 48, false),)), $this); ?>
<div class="list <?php echo $this->_tpl_vars['group']['type']; ?>
">
 <div class="header clearfix">
 <h1><?php echo $this->_tpl_vars['group']['name']; ?>
</h1>
 <?php if ($this->_tpl_vars['groups'][$this->_sections['g']['index']]['reg_enabled']): ?>
  <a href="<?php echo ((is_array($_tmp="?a=advertise")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
#<?php echo $this->_tpl_vars['group']['type']; ?>
" class="staff">List your program in the <?php echo $this->_tpl_vars['group']['type']; ?>
 listing</a>
 <?php endif; ?>
 </div>

<?php $this->assign('banner_group', ($this->_tpl_vars['group']['id']+100)); ?>
<?php if ($this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['enabled']): ?>
 <div class="banner rotating">
<?php if ($this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['banner']): ?>
  <div class="ad clearfix">
       <div class="adlink">
       <?php if (! $this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['flash']): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border=0 width=468 height=60 alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></a><?php else:  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "swfobj.tpl", 'smarty_include_vars' => array('width' => 468,'height' => 60,'url' => ((is_array($_tmp=$this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['banner_url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
       </div>
       <div class="info">
       <?php if (((is_array($_tmp=$this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['text'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['url'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" target=_blank class="text"><?php echo ((is_array($_tmp=$this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
 - <?php echo ((is_array($_tmp=$this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['text'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</a><?php endif; ?>
       <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=".($this->_tpl_vars['banner_group']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="expire"><?php if ($this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['exp_date']): ?>Avaliable on <?php echo $this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['exp_date']; ?>
 for $<?php echo $this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['price']; ?>
/week<?php else: ?>Buy rotating banner here right now for $<?php echo $this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['price']; ?>
/week<?php endif; ?></a>
       </div>
  </div>
<?php else: ?>
  <div class="ad clearfix">
       <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=".($this->_tpl_vars['banner_group']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" target=_blank class=adlink><img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/banner468x60.png")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" border=0 width=468 height=60 alt="buy ad now"></a>
       <div class="info">
       <a href="<?php echo ((is_array($_tmp="?a=buy_ads&tid=".($this->_tpl_vars['banner_group']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="expire">Avaliable Now for $<?php echo $this->_tpl_vars['ads'][$this->_tpl_vars['banner_group']]['price']; ?>
/week</a>
       </div>
  </div>
<?php endif; ?>
 </div>
<?php endif; ?>

<?php if ($this->_tpl_vars['group']['description']): ?>
 <div class="description clearfix">
  <?php echo $this->_tpl_vars['group']['description']; ?>

 </div>
<?php endif; ?>

<?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['group']['listings']) ? 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 $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "program_details.tpl", 'smarty_include_vars' => array('listing' => $this->_tpl_vars['group']['listings'][$this->_sections['l']['index']])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endfor; else: ?>
<br />
&nbsp;&nbsp;Currently there are no items in the <?php echo $this->_tpl_vars['group']['name']; ?>
 listing <?php if ($this->_tpl_vars['frm']['pfilter']): ?>using <?php echo $this->_tpl_vars['frm']['pfilter'];  endif; ?>
<br />
<?php endif; ?>

<?php if ($this->_tpl_vars['pages']): ?>
<?php echo smarty_function_paginator(array('col' => $this->_tpl_vars['pages']['col'],'cur' => $this->_tpl_vars['pages']['cur'],'url' => ((is_array($_tmp="?a=home&type=".($this->_tpl_vars['group']['id'])."&p=%s")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp))), $this);?>

<?php endif; ?>

</div>
