<?php /* Smarty version 2.6.19, created on 2008-05-24 04:23:20
         compiled from bbs_lookbbs.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'findunhtml', 'bbs_lookbbs.tpl', 19, false),array('function', 'unhtml', 'bbs_lookbbs.tpl', 19, false),)), $this); ?>
<table width="96%" height="22" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr>
        <td bgcolor="#E9EBEB">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="96%" height="7" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#58BAE9">
  <tr>
    <td bgcolor="#FFFFFF" valign="top"><table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr>
        <td bgcolor="#58BAE9">&nbsp;<font color="#FFFFFF"><strong>&middot;<?php if ($this->_tpl_vars['isFind'] == 'T'): ?> <?php echo findunhtml(array('content' => $this->_tpl_vars['arraybbs'][0]['title']), $this);?>
<?php else: ?><?php echo unhtml(array('content' => $this->_tpl_vars['arraybbs'][0]['title']), $this);?>
<?php endif; ?></strong></font></td>
      </tr>
    </table>
      <table width="100%" height="220" border="0" align="center" cellpadding="0" cellspacing="1">
        <tr>
          <td width="22%" bgcolor="#E6F1F7"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><div align="center"><img src="<?php echo $this->_tpl_vars['arraybbs'][0]['photo']; ?>
"><br><br><?php echo $this->_tpl_vars['arraybbs'][0]['usernc']; ?>
<br><br><br></div></td>
            </tr>
          </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><div align="center"><img src="images/email.gif" width="45" height="16" title="<?php echo $this->_tpl_vars['arraybbs'][0]['email']; ?>
" style="cursor:hand"/><img src="images/qq.gif" width="45" height="16" title="<?php echo $this->_tpl_vars['arraybbs'][0]['qq']; ?>
" style="cursor:hand"/><img src="images/ip.gif" width="55" height="16" title="<?php echo $this->_tpl_vars['arraybbs'][0]['ip']; ?>
" style="cursor:hand"/></div></td>
              </tr>
            </table></td>
          <td width="78%" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="33%" height="18" bgcolor="#E9EBEB">&nbsp;发表于：<?php echo $this->_tpl_vars['arraybbs'][0]['createtime']; ?>
</td>
              <td width="67%" bgcolor="#E9EBEB"><div align="right">
			  <?php if ($this->_tpl_vars['arraybbs'][0]['usertype'] == '1'): ?>
			    未处理&nbsp;处理中&nbsp;处理完&nbsp;
			  <?php endif; ?>
			  楼主&nbsp;&nbsp;</div></td>
            </tr>
          </table>
            <table width="100%" height="180" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="18" style="padding:10; line-height:2"><?php if ($this->_tpl_vars['isFind'] == 'T'): ?> <?php echo findunhtml(array('content' => $this->_tpl_vars['arraybbs'][0]['content']), $this);?>
<?php else: ?><?php echo unhtml(array('content' => $this->_tpl_vars['arraybbs'][0]['content']), $this);?>
<?php endif; ?></td>
              </tr>
            </table>
			<table width="100%" height="2" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="2"><hr size="1" noshade="noshade" style=" border:1px #cccccc dotted" width="98%"></td>
              </tr>
            </table>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="11%" height="18"><div align="center">
				<?php if ($this->_tpl_vars['arraybbs'][0]['address'] == ""): ?>
				  <font color="#666666">附件下载</font>
				<?php else: ?>
				<a href="download.php?n=<?php echo $this->_tpl_vars['arraybbs'][0]['address']; ?>
" class="a1">附件下载</a>
				<?php endif; ?>
				</div></td>
                <td width="89%"><div align="right"><a href="#" onclick="
				<?php if ($this->_tpl_vars['isonline'] == 'T'): ?>
				  showreplyform()
				<?php else: ?>
				  window.location.href='bbs_nologin.php?gopage=bbs_lookbbs.php?id=<?php echo $this->_tpl_vars['id']; ?>
'
				<?php endif; ?>
				
				" class="a1">回复</a>&nbsp;<?php if ($this->_tpl_vars['isonline'] == 'T'): ?>
				  <a href="bbs_lookbbs.php?id=<?php echo $this->_tpl_vars['id']; ?>
&b=<?php echo $this->_tpl_vars['id']; ?>
&f=0#form"  class="a1">引用</a>
				<?php else: ?>
				  <font color="#666666">引用</font>
				<?php endif; ?>&nbsp;<a href="bbs_jb.php?id=<?php echo $this->_tpl_vars['id']; ?>
" class="a1" target="_blank">举报</a>&nbsp;<?php if ($this->_tpl_vars['isonline'] == 'T' && ( $this->_tpl_vars['uid'] == $this->_tpl_vars['arraybbs'][0]['uid'] || $this->_tpl_vars['usertype'] == '1' )): ?>
				 
				  
				   <a href="bbs_editbbs.php?id=<?php echo $this->_tpl_vars['id']; ?>
"  class="a1">修改</a>
				<?php else: ?>
				  <font color="#666666">修改</font>
				<?php endif; ?>&nbsp;<?php if ($this->_tpl_vars['isonline'] == 'T' && ( $this->_tpl_vars['uid'] == $this->_tpl_vars['arraybbs'][0]['uid'] || $this->_tpl_vars['usertype'] == '1' )): ?>
<a href="javascript:if(window.confirm('确定删除该帖么？')==true){window.location.href='delete.php?bbsid=<?php echo $this->_tpl_vars['id']; ?>
';}" class="a1">删除</a><?php else: ?>
				   <font color="#666666">删除</font>
				<?php endif; ?>
				
				&nbsp;&nbsp;</div></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="96%" height="7" border="0" align="center" cellpadding="0" cellspacing="0" id="rform2" style="display:<?php echo $this->_tpl_vars['show']; ?>
">
  <tr>
    <td></td>
  </tr>
</table>

<a name="form" id="form">
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#58BAE9" id="rform1" style="display:<?php echo $this->_tpl_vars['show']; ?>
">
  <tr>
    <td bgcolor="#FFFFFF" valign="top"><table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr>
        <td bgcolor="#58BAE9">&nbsp;<font color="#FFFFFF"><strong>发表回复</strong></font></td>
      </tr>
    </table>
	
	<table width="100%" height="200" border="0" align="center" cellpadding="0" cellspacing="1">
     
	 <form name="form_reply" method="post" action="bbs_savereply.php" onsubmit="return chkinputreply(this)" enctype="multipart/form-data">
	  <tr>
        <td width="16%" height="30" bgcolor="#EDF2F6"><div align="center">当前用户：</div></td>
        <td width="84%" height="30" bgcolor="#EDF2F6">&nbsp;<?php echo $this->_tpl_vars['unc']; ?>
</td>
      </tr>
	  <tr>
        <td height="50" valign="top" bgcolor="#EDF2F6" style="padding:5"><div align="center">回复主题：</div></td>
        <td height="30" bgcolor="#EDF2F6"><table width="100%" height="50" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25">&nbsp;<input type="text" name="title" size="120" class="inputcss1"></td>
          </tr>
          <tr>
            <td height="25">&nbsp;*&nbsp;请将发贴的目的或帖子的中心思想填写在此</td>
          </tr>
        </table></td>
      </tr>
	  <tr>
        <td height="50" valign="top" bgcolor="#EDF2F6" style="padding:5"><div align="center">上传附件：</div></td>
        <td height="30" bgcolor="#EDF2F6"><table width="100%" height="50" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25">&nbsp;<input type="file" name="address" size="110" class="inputcss1"/></td>
          </tr>
          <tr>
            <td height="25">&nbsp;*&nbsp;请在此选择与该贴有关的附件，附件不能超过512K</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td bgcolor="#EDF2F6" valign="top" style="padding:5"><div align="center">回复内容：</div></td>
        <td bgcolor="#EDF2F6" valign="top"><table width="100%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="10"></td>
        <td width="26"><img src="images/B.gif" width="21" height="20" onClick="connectText(form_reply.content,getStart(form_reply.content),getEnd(form_reply.content),'[strong]','[/strong]')"></td>
        <td width="26"><img src="images/I.gif" width="21" height="20" onClick="connectText(form_reply.content,getStart(form_reply.content),getEnd(form_reply.content),'[em]','[/em]')"></td>
        <td width="22"><img src="images/U.gif" width="21" height="20" onClick="connectText(form_reply.content,getStart(form_reply.content),getEnd(form_reply.content),'[u]','[/u]')"></td>
        <td width="62"><div align="center">
          <select name="color" onChange=" connectText(form_reply.content,getStart(form_reply.content),getEnd(form_reply.content),'[font color='+this.value+']','[/font]');">
            <option>颜色</option>
            <option value="#FF0000" style="background-color:#FF0000">红色</option>
            <option value="#00FF00" style="background-color:#00FF00">绿色</option>
            <option value="#0000FF" style="background-color:#0000FF">蓝色</option>
          </select>
        </div></td>
        <td width="62"><div align="center">
          <select name="font" onChange="connectText(form_reply.content,getStart(form_reply.content),getEnd(form_reply.content),'[font face='+this.value+']','[/font]');">
            <option>字体</option>
            <option value="楷体_GB2312">楷体</option>
            <option value="宋体">宋体</option>
            <option value="隶书">隶书</option>
          </select>
        </div></td>
        <td width="62"><div align="center">
          <select name="size" onChange="connectText(form_reply.content,getStart(form_reply.content),getEnd(form_reply.content),'[font size='+this.value+']','[/font]');">
            <option>大小</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
            <option value="6">6</option>
          </select>
        </div></td>
        <td width="470"><a href="setwordnull.php"></a><a href="deluser.php"></a></td>
        <td width="30"><img src="images/c_jia.gif" width="13" height="13" onclick="javascript:changtextarea(form_reply.content,'+')" style="cursor:hand"/></td>
        <td width="87"><img src="images/c_jian.gif" width="13" height="5"  onclick="javascript:changtextarea(form_reply.content,'-')" style="cursor:hand"/></td>
      </tr>
    </table>
	
	  
	      <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td>&nbsp;<textarea name="content" cols="120" rows="14" class="inputcss1"><?php echo $this->_tpl_vars['ycontent']; ?>
</textarea></td>
            </tr>
          </table></td>
      </tr>
	  
       <tr>
        <td height="35" bgcolor="#EDF2F6"><div align="center">验证码：</div></td>
        <td height="30" bgcolor="#EDF2F6">
          <table width="100%" height="35" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="10%">&nbsp;<input type="text" name="xym" size="8" class="inputcss1" /><input type="hidden" value="" name="xym1"></td>
              <td width="7%"><script language="javascript">
						    var num1=Math.round(Math.random()*10000000);
						    var num=num1.toString().substr(0,4);
					        document.write("<img name=codeimg4 src='xym.php?num="+num.substr(0,1)+"'>");
							document.write("<img name=codeimg5 src='xym.php?num="+num.substr(1,1)+"'>");
						    document.write("<img name=codeimg6 src='xym.php?num="+num.substr(2,1)+"'>");
							document.write("<img name=codeimg7 src='xym.php?num="+num.substr(3,1)+"'>");
						    form_reply.xym1.value=num;
						  
						  function code_1(){
						    var num1=Math.round(Math.random()*10000000);
						    var num=num1.toString().substr(0,4);
						    document.codeimg4.src="xym.php?num="+num.substr(0,1);
							document.codeimg5.src="xym.php?num="+num.substr(1,1);
							document.codeimg6.src="xym.php?num="+num.substr(2,1);
							document.codeimg7.src="xym.php?num="+num.substr(3,1);
							form_reply.xym1.value=num;
						  }
						</script></td>
              <td width="83%"><a href="javascript:code_1()" class="a9">看不清</a></td>
            </tr>
          </table></td>
      </tr>
	  
	  
      <tr>
        <td height="50" colspan="2" bgcolor="#EDF2F6"><div align="center"><input type="hidden" name="id" value="<?php echo $this->_tpl_vars['id']; ?>
"><input type="submit" value="回复" class="btn_grey">&nbsp;&nbsp;<input type="reset" value="重写" class="btn_grey"></div></td>
      </tr>
	   
	  </form>
    </table>
	
	
	
    </td>
  </tr>
</table>
<table width="96%" height="7" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<?php if ($this->_tpl_vars['isreply'] == 'T'): ?>
  
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#58BAE9">
  <tr>
    <td bgcolor="#FFFFFF" valign="top"><table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr>
        <td bgcolor="#58BAE9">&nbsp;<font color="#FFFFFF"><strong>讨论区</strong></font></td>
      </tr>
    </table>
	<?php $i=1; ?>
	<?php unset($this->_sections['replyid']);
$this->_sections['replyid']['name'] = 'replyid';
$this->_sections['replyid']['loop'] = is_array($_loop=$this->_tpl_vars['arrayreply']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['replyid']['show'] = true;
$this->_sections['replyid']['max'] = $this->_sections['replyid']['loop'];
$this->_sections['replyid']['step'] = 1;
$this->_sections['replyid']['start'] = $this->_sections['replyid']['step'] > 0 ? 0 : $this->_sections['replyid']['loop']-1;
if ($this->_sections['replyid']['show']) {
    $this->_sections['replyid']['total'] = $this->_sections['replyid']['loop'];
    if ($this->_sections['replyid']['total'] == 0)
        $this->_sections['replyid']['show'] = false;
} else
    $this->_sections['replyid']['total'] = 0;
if ($this->_sections['replyid']['show']):

            for ($this->_sections['replyid']['index'] = $this->_sections['replyid']['start'], $this->_sections['replyid']['iteration'] = 1;
                 $this->_sections['replyid']['iteration'] <= $this->_sections['replyid']['total'];
                 $this->_sections['replyid']['index'] += $this->_sections['replyid']['step'], $this->_sections['replyid']['iteration']++):
$this->_sections['replyid']['rownum'] = $this->_sections['replyid']['iteration'];
$this->_sections['replyid']['index_prev'] = $this->_sections['replyid']['index'] - $this->_sections['replyid']['step'];
$this->_sections['replyid']['index_next'] = $this->_sections['replyid']['index'] + $this->_sections['replyid']['step'];
$this->_sections['replyid']['first']      = ($this->_sections['replyid']['iteration'] == 1);
$this->_sections['replyid']['last']       = ($this->_sections['replyid']['iteration'] == $this->_sections['replyid']['total']);
?>
	<a name="rep_<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['id']; ?>
" id="rep_<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['id']; ?>
">
        <table width="100%" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="69%" bgcolor="#E9EBEB">&nbsp;<font color="#000000"><strong>&middot;<?php if ($this->_tpl_vars['isFind'] == 'T'): ?> <?php echo findunhtml(array('content' => $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['title']), $this);?>
<?php else: ?><?php echo unhtml(array('content' => $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['title']), $this);?>
<?php endif; ?></strong></font></td>
            <td width="20%" bgcolor="#E9EBEB">&nbsp;回复于：<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['createtime']; ?>
</td>
            <td width="8%" bgcolor="#E9EBEB"><div align="right"><?php echo $i; ?>楼&nbsp;&nbsp;</div></td>
          </tr>
        </table>
        <table width="100%" height="220" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr>
            <td width="22%" bgcolor="#E6F1F7"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><div align="center"><img src="<?php echo $this->_tpl_vars['arraybbs'][0]['photo']; ?>
" /><br />
                        <br />
                    <?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['usernc']; ?>
<br />
                    <br />
                    <br />
                  </div></td>
                </tr>
              </table>
                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><img src="images/email.gif" width="45" height="16" title="<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['email']; ?>
" style="cursor:hand"/><img src="images/qq.gif" width="45" height="16" title="<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['qq']; ?>
" style="cursor:hand"/><img src="images/ip.gif" width="55" height="16" title="<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['ip']; ?>
" style="cursor:hand"/></div></td>
                  </tr>
              </table></td>
            <td width="78%" valign="top"><table width="100%" height="198" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="18" style="padding:10; line-height:2"><?php if ($this->_tpl_vars['isFind'] == 'T'): ?> <?php echo findunhtml(array('content' => $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['content']), $this);?>
<?php else: ?><?php echo unhtml(array('content' => $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['content']), $this);?>
<?php endif; ?></td>
                  </tr>
                </table>
              <table width="100%" height="2" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="2"><hr size="1" noshade="noshade" style=" border:1px #cccccc dotted" width="98%" /></td>
                  </tr>
              </table>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="11%" height="18"><div align="center">
				 <?php if ($this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['address'] == ""): ?>
				  <font color="#666666">附件下载</font>
				<?php else: ?>
				<a href="download.php?n=<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['address']; ?>
" class="a1">附件下载</a>
				<?php endif; ?></div></td>
                  <td width="89%"><div align="right"><?php if ($this->_tpl_vars['isonline'] == 'T'): ?>
				  <a href="bbs_lookbbs.php?id=<?php echo $this->_tpl_vars['id']; ?>
&r=<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['id']; ?>
&f=<?php echo $i; ?>#form"  class="a1">引用</a>
				  <?php else: ?>
				  <font color="#666666">引用</font>
				  <?php endif; ?>&nbsp;<?php if ($this->_tpl_vars['isonline'] == 'T' && ( $this->_tpl_vars['uid'] == $this->_tpl_vars['arrayreply'][0]['uid'] || $this->_tpl_vars['usertype'] == '1' )): ?>
				   <a href="bbs_editreply?id=<?php echo $this->_tpl_vars['id']; ?>
&r=<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['id']; ?>
" class="a1">修改</a>
				<?php else: ?>
				  <font color="#666666">修改</font>
				<?php endif; ?>&nbsp;<?php if ($this->_tpl_vars['isonline'] == 'T' && ( $this->_tpl_vars['uid'] == $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['uid'] || $this->_tpl_vars['usertype'] == '1' )): ?>
				 
				   <a href="javascript:if(window.confirm('确定删除该回复么？')==true){window.location.href='delete.php?replyid=<?php echo $this->_tpl_vars['arrayreply'][$this->_sections['replyid']['index']]['id']; ?>
';}" class="a1">删除</a>
				 
				<?php else: ?>
				  <font color="#666666">删除</font>
				<?php endif; ?>
				  
				  &nbsp;&nbsp;</div></td>
                </tr>
              </table></td>
          </tr>
      </table>
	    <?php $i++; ?>
	  <?php endfor; endif; ?>
    </td>
  </tr>
</table>
  
<?php endif; ?>