<?php /* Smarty version 2.6.19, created on 2008-05-24 01:32:38
         compiled from bbs_editbbs.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'bbs_editbbs.tpl', 35, false),)), $this); ?>

<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#58BAE9">
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%" height="24" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr>
        <td bgcolor="#3EA6DD"><table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="4%"><div align="center"><img src="images/bbs_biao.gif" width="16" height="14" /></div></td>
            <td width="96%" bgcolor="#3EA6DD"><font color="#FFFFFF">修改帖子</font></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="100%" height="200" border="0" align="center" cellpadding="0" cellspacing="1">
     
	 <form name="form_bbs" method="post" action="bbs_editbbs.php" onsubmit="return chkinputeditbbs(this)" enctype="multipart/form-data">
	  <tr>
        <td height="30" bgcolor="#EDF2F6"><div align="center">发帖人：</div></td>
        <td height="30" bgcolor="#EDF2F6">&nbsp;<?php echo $this->_tpl_vars['arraynowbbs'][0]['usernc']; ?>
</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="100" class="inputcss1" value="<?php echo $this->_tpl_vars['arraynowbbs'][0]['title']; ?>
"></td>
          </tr>
          <tr>
            <td height="25">&nbsp;*&nbsp;请将发贴的目的或帖子的中心思想填写在此</td>
          </tr>
        </table></td>
      </tr>
	  <tr>
        <td width="14%" height="30" bgcolor="#EDF2F6"><div align="center">所属版块：</div></td>
        <td width="86%" bgcolor="#EDF2F6">&nbsp;<select name="typeid">
	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrayoption'],'selected' => $this->_tpl_vars['nowkey']), $this);?>

</select></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="89" 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="9"></td>
        <td width="24"><img src="images/B.gif" width="21" height="20" onClick="connectText(form_bbs.content,getStart(form_bbs.content),getEnd(form_bbs.content),'[strong]','[/strong]')"></td>
        <td width="24"><img src="images/I.gif" width="21" height="20" onClick="connectText(form_bbs.content,getStart(form_bbs.content),getEnd(form_bbs.content),'[em]','[/em]')"></td>
        <td width="21"><img src="images/U.gif" width="21" height="20" onClick="connectText(form_bbs.content,getStart(form_bbs.content),getEnd(form_bbs.content),'[u]','[/u]')"></td>
        <td width="58"><div align="center">
          <select name="color" onChange=" connectText(form_bbs.content,getStart(form_bbs.content),getEnd(form_bbs.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="58"><div align="center">
          <select name="font" onChange="connectText(form_bbs.content,getStart(form_bbs.content),getEnd(form_bbs.content),'[font face='+this.value+']','[/font]');">
            <option>字体</option>
            <option value="楷体_GB2312">楷体</option>
            <option value="宋体">宋体</option>
            <option value="隶书">隶书</option>
          </select>
        </div></td>
        <td width="58"><div align="center">
          <select name="size" onChange="connectText(form_bbs.content,getStart(form_bbs.content),getEnd(form_bbs.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="394"><a href="setwordnull.php"></a><a href="deluser.php"></a></td>
        <td width="26"><img src="images/c_jia.gif" width="13" height="13" onclick="javascript:changtextarea(form_bbs.content,'+')" style="cursor:hand"/></td>
        <td width="109"><img src="images/c_jian.gif" width="13" height="5"  onclick="javascript:changtextarea(form_bbs.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="98" rows="12" class="inputcss1"><?php echo $this->_tpl_vars['arraynowbbs'][0]['content']; ?>
</textarea></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td height="50" bgcolor="#EDF2F6" style="padding:5"><div align="center">版块公告：</div></td>
        <td bgcolor="#EDF2F6"><table width="100%" height="50" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25">&nbsp;<input type="checkbox" name="top" value="1" <?php if ($this->_tpl_vars['usertype'] != '1'): ?> disabled="disabled" <?php endif; ?> <?php if ($this->_tpl_vars['arraynowbbs'][0]['top'] == '1'): ?>  checked="checked" <?php endif; ?>></td>
          </tr>
          <tr>
            <td height="25">&nbsp;*&nbsp;版块公告将显示在帖子主题最上，只有版主有权设置版块公告</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="50" colspan="2" bgcolor="#EDF2F6"><div align="center"><input type="hidden" name="edit" value="edit"><input type="hidden" name="id" value="<?php echo $this->_tpl_vars['arraynowbbs'][0]['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>

