<?php /* Smarty version 2.6.19, created on 2008-05-23 01:50:17
         compiled from bbs_bk.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'bbs_bk.tpl', 23, false),array('function', 'getcountsmalltype', 'bbs_bk.tpl', 55, false),)), $this); ?>
<table width="96%" height="60" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#58BAE9">
  <tr>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table>
<table width="96%" height="8" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FFFFFF"></td>
  </tr>
</table>


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

            for ($this->_sections['bigtypeid']['index'] = $this->_sections['bigtypeid']['start'], $this->_sections['bigtypeid']['iteration'] = 1;
                 $this->_sections['bigtypeid']['iteration'] <= $this->_sections['bigtypeid']['total'];
                 $this->_sections['bigtypeid']['index'] += $this->_sections['bigtypeid']['step'], $this->_sections['bigtypeid']['iteration']++):
$this->_sections['bigtypeid']['rownum'] = $this->_sections['bigtypeid']['iteration'];
$this->_sections['bigtypeid']['index_prev'] = $this->_sections['bigtypeid']['index'] - $this->_sections['bigtypeid']['step'];
$this->_sections['bigtypeid']['index_next'] = $this->_sections['bigtypeid']['index'] + $this->_sections['bigtypeid']['step'];
$this->_sections['bigtypeid']['first']      = ($this->_sections['bigtypeid']['iteration'] == 1);
$this->_sections['bigtypeid']['last']       = ($this->_sections['bigtypeid']['iteration'] == $this->_sections['bigtypeid']['total']);
?>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#349ED8">
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr>
        <td height="22" bgcolor="#58BAE9" ><table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="5%"><div align="center"><img src="images/bbs_biao.gif" width="16" height="14"></div></td>
            <td width="47%"><font color="#FFFFFF"><?php echo $this->_tpl_vars['arraybigtype'][$this->_sections['bigtypeid']['index']]['bigtypename']; ?>
</font></td>
            <td width="16%"><font color="#FFFFFF">创建时间：<?php echo ((is_array($_tmp=$this->_tpl_vars['arraybigtype'][$this->_sections['bigtypeid']['index']]['createtime'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10, true) : smarty_modifier_truncate($_tmp, 10, true)); ?>
</font></td>
            <td width="4%"><div align="center"></div></td>
            <td width="15%"><font color="#FFFFFF">总版主：<?php echo $this->_tpl_vars['arraybigtype'][$this->_sections['bigtypeid']['index']]['usernc']; ?>
</font></td>
          </tr>
        </table></td>
        </tr>
      
      
      <tr>
        <td height="22" ><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr>
            <td height="16" colspan="3" valign="bottom" bgcolor="#CCCCCC">&nbsp;&nbsp;版块名称</td>
            <td width="15%" bgcolor="#CCCCCC" valign="bottom"><div align="center">创建时间</div></td>
            <td width="15%" bgcolor="#CCCCCC" valign="bottom"><div align="center">版主</div></td>
            <td width="13%" bgcolor="#CCCCCC" valign="bottom"><div align="center">帖子总数</div></td>
          </tr>
         
	   <?php if ($this->_tpl_vars['issmalltype'] == 'T'): ?> 
		 <?php 
          $i=1; 
          ?>
		  <?php unset($this->_sections['smallid']);
$this->_sections['smallid']['name'] = 'smallid';
$this->_sections['smallid']['loop'] = is_array($_loop=$this->_tpl_vars['arraysmalltype']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['smallid']['show'] = true;
$this->_sections['smallid']['max'] = $this->_sections['smallid']['loop'];
$this->_sections['smallid']['step'] = 1;
$this->_sections['smallid']['start'] = $this->_sections['smallid']['step'] > 0 ? 0 : $this->_sections['smallid']['loop']-1;
if ($this->_sections['smallid']['show']) {
    $this->_sections['smallid']['total'] = $this->_sections['smallid']['loop'];
    if ($this->_sections['smallid']['total'] == 0)
        $this->_sections['smallid']['show'] = false;
} else
    $this->_sections['smallid']['total'] = 0;
if ($this->_sections['smallid']['show']):

            for ($this->_sections['smallid']['index'] = $this->_sections['smallid']['start'], $this->_sections['smallid']['iteration'] = 1;
                 $this->_sections['smallid']['iteration'] <= $this->_sections['smallid']['total'];
                 $this->_sections['smallid']['index'] += $this->_sections['smallid']['step'], $this->_sections['smallid']['iteration']++):
$this->_sections['smallid']['rownum'] = $this->_sections['smallid']['iteration'];
$this->_sections['smallid']['index_prev'] = $this->_sections['smallid']['index'] - $this->_sections['smallid']['step'];
$this->_sections['smallid']['index_next'] = $this->_sections['smallid']['index'] + $this->_sections['smallid']['step'];
$this->_sections['smallid']['first']      = ($this->_sections['smallid']['iteration'] == 1);
$this->_sections['smallid']['last']       = ($this->_sections['smallid']['iteration'] == $this->_sections['smallid']['total']);
?>
		     <?php if ($this->_tpl_vars['arraybigtype'][$this->_sections['bigtypeid']['index']]['id'] == $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['bigtypeid']): ?>
		   <?php 
		     if($i%2==0){
		    ?>
		  <tr>
            <td width="4%" height="50"><div align="center"><img src="images/bbs_mark1.gif" width="22" height="22"></div></td>
            <td width="46%" style="line-height:2"><a href="bbs_list.php?id=<?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['id']; ?>
" class="a1"><?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['smalltypename']; ?>
</a><br><font color="#999999"><?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['shuoming']; ?>
</font></td>
            <td width="7%"><div align="center"><?php if ($this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['address'] != ""): ?><img src="<?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['address']; ?>
" width="40" height="40"><?php endif; ?></div></td>
            <td height="40"><div align="center"><?php echo ((is_array($_tmp=$this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['createtime'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10, true) : smarty_modifier_truncate($_tmp, 10, true)); ?>
</div></td>
            <td height="40"><div align="center"><?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['usernc']; ?>
</div></td>
            <td height="40"><div align="center"><?php echo getcountsmalltype(array('id' => $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['id']), $this);?>
</div></td>
          </tr>
		  <?php 
		    }else{
		   ?>
		   <tr>
            <td width="4%" height="50" bgcolor="#F5F5F5"><div align="center"><img src="images/bbs_mark2.gif" width="22" height="22"></div></td>
            <td width="46%" bgcolor="#F5F5F5" style="line-height:2"><a href="bbs_list.php?id=<?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['id']; ?>
" class="a1"><?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['smalltypename']; ?>
</a><br>
              <font color="#999999"><?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['shuoming']; ?>
</font></td>
            <td width="7%" bgcolor="#F5F5F5"><div align="center"><?php if ($this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['address'] != ""): ?><img src="<?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['address']; ?>
" width="40" height="40"><?php endif; ?></div></td>
            <td height="40" bgcolor="#F5F5F5"><div align="center"><?php echo ((is_array($_tmp=$this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['createtime'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10, true) : smarty_modifier_truncate($_tmp, 10, true)); ?>
</div></td>
            <td height="40" bgcolor="#F5F5F5"><div align="center"><?php echo $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['usernc']; ?>
</div></td>
            <td height="40" bgcolor="#F5F5F5"><div align="center"><?php echo getcountsmalltype(array('id' => $this->_tpl_vars['arraysmalltype'][$this->_sections['smallid']['index']]['id']), $this);?>
</div></td>
          </tr>
		 <?php 
		     }
           $i++; 
          ?>
		    <?php endif; ?>
		 <?php endfor; endif; ?> 
		  
		<?php endif; ?>  
        </table></td>
        </tr>
     
      
    </table></td>
  </tr>
</table>
<table width="96%" height="8" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FFFFFF"></td>
  </tr>
</table>
 <?php endfor; endif; ?>
<?php endif; ?>


