<!--#include file="conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="../webconfig.asp"-->
<!--#include file="../fuction.asp"-->
<%

 bid	=	Request.querystring("bid")
 class1	=	Request.querystring("class1")
 class2	=	Request.querystring("class2")
 class3	=	Request.querystring("class3")
  if class1 <> "" then
 bid = class1
 end if
 
 if bid <> "" then
	 bid = cint(nosql(bid))
 else
	 response.Write  ("分类参数错误！[bid/class1]")
	 response.End()
 end if



%>

<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
<!--#include file="../webtop.asp"-->

<table width="1000" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
  <tr>
    <td width="20"></td>
    <td valign="bottom"><img src="<%=weburl%>images/arrow01.gif" width="11" height="11" /> Your present position: <a href="<%=weburl%>"><%=webname%></a> -> <span class="table-shangxia"><span class="b14"><a href=index.asp><%=bbsname%></a> → <a href=list.asp?bid=<%=bid%>><%=bidname%></a> → 发表帖子</span></span></td>
    <td valign="bottom"></td>
  </tr>
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
</table>
<!--#include file="top.asp"-->
<% if session("username")=empty then
response.redirect "login.asp"
end if
bid=int(Request.querystring("bid"))
 findstr=trim(request("findstr")) 
sql="select * from board where bid="&bid&""
Set Rs=Conn.Execute(sql)
bidname=rs("bidname")
rs.close
%>
<script>
function showadv(){
if (document.esung.advshow.checked == true) {
adv.style.display = "";
}else{
adv.style.display = "none";
}
}

function title_color(color){document.esung.topic.style.color = color;}
</script><br><br>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top">
            <form method="post" action="save.asp?bid=<%=bid%>"  name="esung" onSubmit="return ck1()">
			<script language="javascript">
			function ck1()
			{
			if(esung.title.value=="")
			{
			alert("请输入标题")
			esung.title.focus()
			return false
			}
			return CheckForm(esung);			
			}
			</script>
              <input name="body" type="hidden">
              <div align="center">
                <center>
                  <table width="721" border="0" cellpadding="1" cellspacing="1" bgcolor="#999999" height="487">
                    <tr bgcolor="CCCCCC">
                      <TD width="141" height=26 align="left"><B>&nbsp;用户名：</B></TD>
                      <TD width="573" height=26>&nbsp;&nbsp; <font color="#2953c0"><%=session("username")%></font> 
					  <input type="hidden" name="class1"  value="<%=bid%>">
					  <input type="hidden" name="class2"  value="<%=class2%>">
					  <input type="hidden" name="class3"  value="<%=class3%>">
					  </TD>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <TD width="141" height=41 align="left" bgcolor="F7FEFF">&nbsp;<B>帖子主题：</B></TD>
                      <TD width="573" height="41">&nbsp;
                          <input type="text" name="title" maxlength="28" size="70" class=wenbenkuang>
                      <FONT                                                                                                                              
      color=#2953c0>*</FONT> </TD>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <TD width="141" height=53 align="left" bgcolor="F7FEFF">
                        <P                                                                                                                       
      style="LINE-HEIGHT: 150%; MARGIN-LEFT: 5px; MARGIN-TOP: 5px"><B>你的表情：</B> <BR>
                      ·放在帖子前面。</P></TD>
                      <TD height="53" width="573">
                        <%For I=1 to 57%>
                        <input type="radio" name="faceimg" value="<%=i%>" checked>
                        <img src="images/Mood/<%=i%>.gif" width="20" height="20">
                      <%                               
Next                               
%>                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <TD width="141" height=326 align="left" vAlign=top bgcolor="F7FEFF"><BR>
                          <B>&nbsp;帖子内容:</b> <BR>
            ·HTML标签： 不可用<BR>
            ·UBB标签： 可用<BR>
            ·贴图标签： 可用<BR>
            ·Flash标签：可用<BR>
            ·表情字符转换：可用<BR>
            ·上传图片：可用<BR>
            <BR>
            · <a href="javascript:CheckLength();">查看内容长度<br>
            <br>
            </a>
            <INPUT id=advshow name=advshow type=checkbox value=1 onclick=showadv()>
            <label for=advshow> 显示投票选项</label>                      </TD>
                      <TD width="573" vAlign=center height="326">
                        <p align="center">
                          <SCRIPT src="post.js"></SCRIPT>
                          <br>
                    </tr>
                    <tr bgcolor="#FFFFFF" id=adv style=DISPLAY:none>
                      <TD width=141 align=left vAlign=top bgcolor="F7FEFF" class=a4> <FONT color=000000><B>投票项目</B><BR>
                        <br>

            </FONT>              <span class="STYLE1">&nbsp;*每行一个投票项目<br>
            (即:多少投票选项就写多少行[回车换行])</span><FONT color=000000><BR>
            <BR>
            <INPUT type=radio CHECKED value=0 name=vote_dx id=radio>
            <label for=radio>单选投票</label>
            <BR>
            <INPUT type=radio value=1 name=vote_dx id=radio2>
            <label for=radio2>多选投票</label>
                      </FONT> </TD>
                      <TD class=a4>
                        <TEXTAREA name=vote rows=5 style="width:100%" cols="20" class=wenbenkuang></TEXTAREA>                      </TD>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td width="141" height="21" align="center" bgcolor="F7FEFF"></td>
                      <td width="573" height="21">
                        <p align="center">
                          <input name="submit1" type="submit" class="go-wenbenkuang" value="发 表" >
&nbsp;
              <input name=preview type="Button" value="预 览" onClick="Gopreview()" class="go-wenbenkuang">
&nbsp;
              <input name="return" type="button" class="go-wenbenkuang" onClick="javascript:history.go(-1)" value="返 回" >
                      </td>
                    </tr>
                  </table>
                </center>
              </div>
            </form>
            <form name=preview action=view.asp method=post target=preview_page>
              <input name="body" type="hidden">
          </form>            <p>&nbsp;</p></td>
        </tr>
    </table></td>
  </tr>
</table>
<!--#include file="../copyright.asp"-->             