<?php /* Smarty version 2.6.19, created on 2008-05-24 04:33:23
         compiled from bbs_findbbs.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'findunhtml', 'bbs_findbbs.tpl', 59, false),array('function', 'listreply', 'bbs_findbbs.tpl', 62, false),array('modifier', 'truncate', 'bbs_findbbs.tpl', 61, false),)), $this); ?>

<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
      <tr>
        <td bgcolor="#E9EBEB"><table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
         <form name="findbbs" method="post" action="bbs_findbbs.php" onsubmit="return chkinputfindbbs(this)">
		  <tr>
            <td width="3%"><div align="right"><img src="images/bbs_biao.gif" width="16" height="14"></div></td>
            <td width="61%">&nbsp;明日软件网论坛&nbsp;》&nbsp;查找帖子</td>
            <td width="20%"><input type="text" name="keyword" size="30" class="inputcss1"></td>
            <td width="1%">&nbsp;</td>
            <td width="15%"><input type="image" src="images/findbbs_button.gif"></td>
          </tr>
		  </form>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="96%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FFFFFF"></td>
  </tr>
</table>
<?php if ($this->_tpl_vars['isbbs'] == 'T'): ?>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
      <tr>
        <td bgcolor="#E9EBEB"><table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td>&nbsp;<?php echo $this->_tpl_vars['showpage']; ?>
</td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="96%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FFFFFF"></td>
  </tr>
</table>
<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 width="54%" height="22" bgcolor="#58BAE9" >&nbsp;&nbsp;<font color="#FFFFFF">主题</font></td>
		<td width="15%" bgcolor="#58BAE9" ><div align="center"><font color="#FFFFFF">发贴人</font></div></td>
        <td width="20%" height="22" bgcolor="#58BAE9" ><div align="center"><font color="#FFFFFF">发帖时间</font></div>          <div align="center"></div></td>
		<td width="18%" bgcolor="#58BAE9" ><div align="center"><font color="#FFFFFF">回复&nbsp;|&nbsp;浏览</font></div></td>
      </tr>
      <?php 
      $i=1; 
       ?>
      <?php unset($this->_sections['bbsid']);
$this->_sections['bbsid']['name'] = 'bbsid';
$this->_sections['bbsid']['loop'] = is_array($_loop=$this->_tpl_vars['arraybbs']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['bbsid']['show'] = true;
$this->_sections['bbsid']['max'] = $this->_sections['bbsid']['loop'];
$this->_sections['bbsid']['step'] = 1;
$this->_sections['bbsid']['start'] = $this->_sections['bbsid']['step'] > 0 ? 0 : $this->_sections['bbsid']['loop']-1;
if ($this->_sections['bbsid']['show']) {
    $this->_sections['bbsid']['total'] = $this->_sections['bbsid']['loop'];
    if ($this->_sections['bbsid']['total'] == 0)
        $this->_sections['bbsid']['show'] = false;
} else
    $this->_sections['bbsid']['total'] = 0;
if ($this->_sections['bbsid']['show']):

            for ($this->_sections['bbsid']['index'] = $this->_sections['bbsid']['start'], $this->_sections['bbsid']['iteration'] = 1;
                 $this->_sections['bbsid']['iteration'] <= $this->_sections['bbsid']['total'];
                 $this->_sections['bbsid']['index'] += $this->_sections['bbsid']['step'], $this->_sections['bbsid']['iteration']++):
$this->_sections['bbsid']['rownum'] = $this->_sections['bbsid']['iteration'];
$this->_sections['bbsid']['index_prev'] = $this->_sections['bbsid']['index'] - $this->_sections['bbsid']['step'];
$this->_sections['bbsid']['index_next'] = $this->_sections['bbsid']['index'] + $this->_sections['bbsid']['step'];
$this->_sections['bbsid']['first']      = ($this->_sections['bbsid']['iteration'] == 1);
$this->_sections['bbsid']['last']       = ($this->_sections['bbsid']['iteration'] == $this->_sections['bbsid']['total']);
?>
      <tr>
        <td height="22" <?php  if($i%2==0){ echo "bgcolor='#F5F5F5'";} ?>>&nbsp;<img src="images/jia.gif" width="10" height="10" onClick="open_close3(imga_<?php echo $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['id']; ?>
,tba_<?php echo $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['id']; ?>
)" style="cursor:hand" alt="展开" id="imga_<?php echo $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['id']; ?>
">&nbsp;<a href="bbs_lookbbs.php?id=<?php echo $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['id']; ?>
&keyword=<?php echo $this->_tpl_vars['key']; ?>
" class="a1" target="_blank"><?php echo findunhtml(array('content' => $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['title']), $this);?>
</a></td>
        <td <?php  if($i%2==0){ echo "bgcolor='#F5F5F5'";} ?>><div align="center"><?php echo $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['usernc']; ?>
</div></td>
        <td height="22"  <?php  if($i%2==0){ echo"bgcolor='#F5F5F5'";} ?>><div align="center"><?php echo ((is_array($_tmp=$this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['createtime'])) ? $this->_run_mod_handler('truncate', true, $_tmp) : smarty_modifier_truncate($_tmp)); ?>
</div></td>
        <td height="22" <?php  if($i%2==0){ echo "bgcolor='#F5F5F5'";} ?>><div align="center"><?php echo getreply(array('id' => $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['id'],'mark' => '1'), $this);?>
|<?php echo $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['readtimes']; ?>
</div></td>
      </tr>
	    
	  
	    <tr style="display:none" id="tba_<?php echo $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['id']; ?>
">
          
		   <td height="22" colspan="4" style="line-height:2"><?php echo getreply(array('id' => $this->_tpl_vars['arraybbs'][$this->_sections['bbsid']['index']]['id'],'mark' => '0'), $this);?>
</td>
	    </tr>
	  
      <?php 
      $i++; 
       ?>
      <?php endfor; endif; ?>
    </table></td>
  </tr>
</table>
 <table width="96%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
     <td bgcolor="#FFFFFF"></td>
   </tr>
 </table>
 <table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
   <tr>
     <td bgcolor="#FFFFFF"><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
         <tr>
           <td bgcolor="#E9EBEB"><table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
               <tr>
                 <td>&nbsp;<?php echo $this->_tpl_vars['showpage']; ?>
</td>
               </tr>
           </table></td>
         </tr>
     </table></td>
   </tr>
 </table>
 <?php endif; ?>
 <?php if ($this->_tpl_vars['isbbstell'] == 'F' && $this->_tpl_vars['isbbs'] == 'F'): ?>
 <table width="96%" height="30" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#58BAE9">
  <tr>
    <td bgcolor="#FFFFFF"><div align="center"><font color="#FF0000">{该分类暂无论坛公告或帖子}</font></div></td>
  </tr>
</table>
<?php endif; ?>
 

