<%response.buffer=true%>
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=bbsinfo("bbsname")%></title>
<LINK 
href="css.css" type=text/css rel=stylesheet>
</head>
<body>
<!--#include file="top.asp"-->
<%  username=Request.Cookies("esung")("username")
    password=Request.Cookies("esung")("password")
   
    if username="" or password="" then
    response.redirect"login.asp"
    end if
    bid=request.querystring("bid")'版面号
    fid=request.querystring("id")'回复号
    quo=request.querystring("quo")
    dd=request.querystring("dd")
 
set bidreco=server.createobject("adodb.recordset")
sqlstr="select * from board where bid="&bid
bidreco.open sqlstr,conn,1,1
if bidreco("lock")=1 then
response.write"<script language='javascript'>alert('此论坛已锁定，不能发贴！')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end 
end if

    if dd<>"" then
   set yy=conn.execute("select body from book where id="&cint(dd)&"")
   end if
    if isempty(bid) then bid=1
    if not isempty(fid) then

    fidstr="<input type='hidden' name='fid' value=" &cint(fid)& ">"
    set preco=server.createobject("adodb.recordset")
    preco.open "select title from book where bid=" &cint(bid)& " and id=" &cint(fid),conn,1,1
        if not preco.eof then 
            retitle="re:" + preco("title")
        else
            retitle=""
        end if
    set preco=nothing
    set conn=nothing
    end if
%>

<SCRIPT LANGUAGE="JavaScript">         
<!-- Begin   
maxLen = 1000; // max number of characters allowed   
function checkMaxInput(form) {   
if (form.body.value.length > maxLen) // if too long.... trim it!   
form.body.value = form.body.value.substring(0, maxLen);   
// otherwise, update 'characters left' counter   
else form.remLen.value = maxLen - form.body.value.length;   
}   
//  End -->   
</script>  

<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="8" background="images/left.gif">&nbsp;</td>
    <td valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height=6></td>
              </tr>
            </table>
            <table width="754" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width=6 height=6><img src="images/index_2.gif" width="6" height="6"></td>
                      <td width="742" background="images/index_3.gif"></td>
                      <td width=6> <div align="right"><img src="images/index_1.gif" width="6" height="6"></div></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width=1 bgcolor="C6C3C4"></td>
                      <td height=6 bgcolor="FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="8">
                          <tr>
                            <td><img src="images/Order_26.gif" width="10" height="10"> 
                              <a href=index.asp><%=bbsinfo("bbsname")%></a>  →<a href=list.asp?bid=<%=request.querystring("bid")%>><%=request.querystring("bidname")%></a>→ 发表帖子 </td>                                                                                            
                          </tr>                                                                                            
                        </table></td>                                                                                                                        
                      <td width=1 bgcolor="C6C3C4"></td>                                                                                                                        
                    </tr>                                                                                                                        
                  </table>                                                                                                                        
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">                                                                                                                        
                    <tr>                                                                                                                         
                      <td width=5 height=5><img src="images/left_data_4.gif" width="5" height="5"></td>                                                                                                                        
                      <td width="742" background="images/left_data_6.gif"></td>                                                                                                                        
                      <td width=5> <div align="right"><img src="images/left_data_5.gif" width="5" height="5"></div></td>                                                                                                                        
                    </tr>                                                                                                                        
                  </table></td>                                                                                                                        
              </tr>                                                                                                                        
            </table>                                                                                                                        
           <form method="post" action="save.asp"  name="esung"> 
        
            <br>                                                                           
            <div align="center">                                                                         
              <center> 
                  <table width="90%" border="0" cellpadding="1" cellspacing="1" bgcolor="F6F6F6">
                    <tr bgcolor="#FFFFFF"> 
                      <TD width="21%" height=30 align="left"><B>&nbsp;用户名：</B></TD>                                                                          
                      <TD width="79%" height=30>&nbsp; 
                        <INPUT name=username type=text class="textbox_shiixian_hui" value="<%=username%>" size="20">                                                                           
      <FONT                                                                              
      color=#2953c0>*</FONT> </TD>                                                                          
              </tr>                                                                          
                    <tr bgcolor="#FFFFFF"> 
                      <TD width="21%" height=30 align="left">&nbsp;<B>密&nbsp;码：</B></TD>                                                                            
                      <TD width="79%">&nbsp; 
                        <INPUT name=password type=password class="textbox_shiixian_hui" value="<%=password%>" size="20"> <FONT                                                                              
      color=#2953c0>*</FONT> </TD>                                                                          
              </tr>                                                                          
                    <tr bgcolor="#FFFFFF"> 
                      <TD width="21%" height=30 align="left">&nbsp;<B>帖子主题：</B></TD>                                                                            
                      <TD width="79%">&nbsp; 
                        <input type="text" name="title" maxlength="30" size="70" class=textbox_shiixian_hui value="<%=retitle%>">
                        <FONT                                                                              
      color=#2953c0>*</FONT> <input type="hidden" name="bid" value=<%=cint(bid)%>>                                                
        <%=fidstr%> </TD>                                                                           
              </tr>                                                                           
                    <tr bgcolor="#FFFFFF"> 
                      <TD width="21%" height=50 align="left"> 
                        <P                                                                              
      style="LINE-HEIGHT: 150%; MARGIN-LEFT: 5px; MARGIN-TOP: 5px"><B>你的表情：</B>                                                                              
      <BR>·放在帖子前面。</P></TD>                                                                             
                      <TD width="79%"> 
                        <input type="radio" name="faceimg" value="07" checked>                                                                             
<img src="images/01.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="02">                                                                             
        <img src="images/02.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="03">                                                                             
        <img src="images/03.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="04">                                                                             
        <img src="images/04.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="05">                                                                             
        <img src="images/05.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="06">                                                                             
        <img src="images/06.gif" width="15" height="15"><BR>                                                                             
        <input type="radio" name="faceimg" value="07">                                                                             
        <img src="images/07.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="08">                                                                             
        <img src="images/08.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="09">                                                                             
        <img src="images/09.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="10">                                                                             
        <img src="images/10.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="11">                                                                             
        <img src="images/11.gif" width="15" height="15">                                                                              
        <input type="radio" name="faceimg" value="12">                                                                             
        <img src="images/12.gif" width="15" height="15">                                                                             
        </TD>                                                                           
              </tr>                                                                           
                    <tr bgcolor="#FFFFFF"> 
                      <TD width="21%" height=250 align="left" vAlign=top><BR>
                        <B>&nbsp;帖子内容:</b> <BR>                                                                            
      ·HTML标签： 不可用<BR>                                                                             
      ·UBB标签： 可用<BR>                                                                             
      ·贴图标签： 可用<BR>                                                                             
      ·Flash标签：可用<BR>                                                                             
      ·表情字符转换：可用<BR>                                                                             
      ·上传图片：可用<BR>                                                                             
      <BR> <SCRIPT>                                                                          
function emoticon(theSmilie){                                                                          
document.esung.body.value +=theSmilie + '';                                                                          
document.esung.body.focus();                                                                          
}                                                                          
</SCRIPT>
<script src="ybbcode.js"></script> 
</TD>                                                                             
                      <TD width="79%" vAlign=center> 
                        <p align="center"><IFRAME name=ad src="upload.asp" frameBorder=0  width="100%" scrolling=no height=25 ></IFRAME><BR><IMG onclick=fly() alt=飞行字 src="images/fly.gif" border=0>                                                                             
        <IMG onclick=move() alt=移动字                                                                               
      src="images/move.gif" border=0>                                                                               
        <IMG                                                                               
      onclick=light() alt=发光字 src="images/glow.gif" border=0>                                                                               
        <IMG onclick=ying() alt=阴影字                                                                               
      src="images/shadow.gif" border=0>                                                                               
        <IMG                                                                               
      onclick=image() alt=图片 src="images/image.gif" border=0>                                                                               
        <IMG onclick=Cswf() alt=Flash图片                                                                               
      src="images/swf.gif" border=0>                                                                               
        <IMG onclick=Cdir() alt=Shockwave文件 src="images/Shockwave.gif" border=0>                                                                               
        <IMG onclick=Crm() alt=realplay视频文件                                                                               
      src="images/rm.gif" border=0>                                                                               
        <IMG onclick=Cwmv() alt="Media Player视频文件" src="images/mp.gif" border=0>文字大小：<select onchange=ybbsize(this.options[this.selectedIndex].value) name=a style="font-size: 9pt"><OPTION value=1>1</OPTION><OPTION value=2>2</OPTION><OPTION value=3>3</OPTION><OPTION value=4>4</OPTION></SELECT> <span lang=zh-cn>颜色：<select onchange=COLOR(this.options[this.selectedIndex].value) name="111" style="font-size: 9pt"><option style='COLOR:000000;BACKGROUND-COLOR:000000' value=000000>黑色</option><option style='COLOR:FFFFFF;BACKGROUND-COLOR:FFFFFF' value=FFFFFF>白色</option><option style='COLOR:008000;BACKGROUND-COLOR:008000' value=008000>绿色</option><option style='COLOR:800000;BACKGROUND-COLOR:800000' value=800000>褐色</option><option style='COLOR:808000;BACKGROUND-COLOR:808000' value=808000>橄榄色</option><option style='COLOR:000080;BACKGROUND-COLOR:000080' value=000080>深蓝色</option><option style='COLOR:800080;BACKGROUND-COLOR:800080' value=800080>紫色</option><option style='COLOR:808080;BACKGROUND-COLOR:808080' value=808080>灰色</option><option style='COLOR:FFFF00;BACKGROUND-COLOR:FFFF00' value=FFFF00>黄色</option><option style='COLOR:00FF00;BACKGROUND-COLOR:00FF00' value=00FF00>浅绿色</option><option style='COLOR:00FFFF;BACKGROUND-COLOR:00FFFF' value=00FFFF>浅蓝色</option><option style='COLOR:FF00FF;BACKGROUND-COLOR:FF00FF' value=FF00FF>粉红色</option><option style='COLOR:C0C0C0;BACKGROUND-COLOR:C0C0C0' value=C0C0C0>银白色</option><option style='COLOR:FF0000;BACKGROUND-COLOR:FF0000' value=FF0000>红色</option><option style='COLOR:0000FF;BACKGROUND-COLOR:0000FF' value=0000FF>蓝色</option><option style='COLOR:008080;BACKGROUND-COLOR:008080' value=008080>蓝绿色</option></select> <BR>&nbsp;                                                                                
                          <textarea name="body" cols="70" rows="15" class="textbox_shiixian_hui" onKeyDown="checkMaxInput(this.form)" onKeyUp="checkMaxInput(this.form)"><%if quo<>"" then%>引用：[<%=yy("body")%>]<%end if%></textarea>
                          <center>
                            最大留言字数: 
                            <font color=green>1000</font> 
                            你还可以留言 
                            <input readonly type=text name=remLen size=3 maxlength=3 value="1000">
                            字。 <br>
                            <input name="send" type="submit" class="textbox_shiixian_hui" value=" 发 表 " >
                            &nbsp; 
                            <input name="reset" type="reset" class="textbox_shiixian_hui" value=" 重 写 " >
                            &nbsp; 
                            <input name="return" type="button" class="textbox_shiixian_hui" onclick="javascript:history.go(-1)" value=" 返 回 " >                                                                              
      </center></span>                                                                              
              </tr>                                                                            
              <tr>                                                                                                                          
                <td width="21%" align="center"></td>                                                                                                                        
                <td width="79%"></td>                                                                                                                        
              </tr>                                                                                                                        
            </table>                                                                                                                        
              </center>                                                                           
            </div> </form>                                                                        
          </td>                                                                                                                        
        </tr>                                                                                                                        
      </table>                                                                                                                         
      <!--#include file="down.asp"-->                                                                                                                        
    </td>                                                                                                                        
    <td width="8" background="images/right.gif">&nbsp;</td>                                                                                                                        
  </tr>                                                                                                                        
</table>                                                                                                                        
</body>                                                                                                                        
</html>                                                                                                                        
