<!--#include file="conn.asp"-->
<!--#include file="bbsuser.asp" -->
<script language=javascript src="js/resetcode.js"></script>
<script language=javascript src="inc/cookies.js"></script>
<script>
var stylecook = getCookie("STYLESHOW");
var style;
var strstyle;
if(stylecook=="")
{
 stylecook=1;
}
else
{
 stylecook++;
}
style="main0"+stylecook+".css";
strstyle="<link href=\"css/"+style+"\"  rel=\"stylesheet\" type=\"text/css\"> ";
document.write(strstyle);
</script>
<%
call FTBBS_HTML_MB
url=Application("FTBBSMB")(10,0)
upfiletype=Application("FTBBSMB")(12,0)
upfilesize=Application("FTBBSMB")(13,0)
getcodeoff=Application("FTBBSMB")(30,0)
htm_ext=Application("FTBBSMB")(32,0)
if htm_ext="" then htm_ext=".htm"

BoardID_1=request("layer_1")
BoardID_2=request("layer_2")

if BoardID_1<>"" then
   call FTBBS_BZ_NAME(BoardID_1)
   BBS_Cate_QS1=Application("BBS_Cate_QS1")
end if
if BoardID_2<>"" then
  call FTBBS_BZ_NAME2(BoardID_1,BoardID_2)
  BBS_Cate_QS2=Application("BBS_Cate_QS2")
end if

if (request.cookies("bz")<>1 and request.cookies("bbsadmin")<>1) and (BBS_Cate_QS1=4 or BBS_Cate_QS1=5 or BBS_Cate_QS2=4 or BBS_Cate_QS2=5) then
  postqs="disabled"
end if

page=request("page")
session("filename")=""
vfname = makefilename(now())
Randomize
Random=Int((1000 - 100 + 1) * Rnd + 100)
filename=vfname&"a"&Random&htm_ext
session("filename")=filename
BBS_Back_Url="main.asp?Page="&page&"&BoardID_1="&BoardID_1&"&BoardID_2="&BoardID_2	
%>

<body leftmargin="0" topmargin="2">
<%
if request.cookies("ftbbstype")=1 then
  response.write headhtml
end if
%> 
  <table border="0" width="99%" align="center" cellpadding="2" cellspacing="1" class="maintbbg">
    <tr> 
      <td width="100%" height="25" class="f12bg"> 
        <div align="center"><b>论 坛 话 题 发 布 </b></div>
      </td>
  </tr>
</table>
  <table width="99%" border="0" cellspacing="1" cellpadding="2" align="center" class="maintbbg">
<form name="myform" method="POST" action="bbspollact.asp" onsubmit="return CheckPollForm(this);this.disabled=true;" style="MARGIN-BOTTOM: 0px">
	<%IF BoardID_1="" or BoardID_2="" then%>
    <script LANGUAGE="javascript">
<!--
var onecount;
onecount=0;
var j;
  
subcat = new Array();
<%
strsql="select BBS_Cate_ID,BBS_Cate_PID,BBS_Cate_Name,Initial from BBS_Cate where BBS_Cate_PID<>'0' and deleted=0 order by totop asc"
set rsr_BBS_Cate=server.createobject("adodb.recordset")
rsr_BBS_Cate.open strsql,conn,3,1
j=0
do while not rsr_BBS_Cate.eof
%>
subcat[<%=j%>] = new Array("<%=rsr_BBS_Cate("Initial") & " " & rsr_BBS_Cate("BBS_Cate_Name")%>","<%=rsr_BBS_Cate("BBS_Cate_PID")%>","<%=rsr_BBS_Cate("BBS_Cate_ID")%>");
<%
j=j+1
rsr_BBS_Cate.movenext
loop
rsr_BBS_Cate.close
set rsr_BBS_Cate=nothing
%>

onecount=<%=j%>;

function changelocation(locationid)
    {
    document.myform.BoardID_2.length = 0; 

    var locationid=locationid;
    var i;
    document.myform.BoardID_2.options[0] = new Option('==请选择==','');
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
            document.myform.BoardID_2.options[document.myform.BoardID_2.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }
//-->
</script>
    <TR class="maintbtr1"> 
      <TD width="16%"> <div align="right">主论坛：</div></TD>
      <TD width="84%"> <SELECT NAME="BoardID_1" onChange="changelocation(document.myform.BoardID_1.options[document.myform.BoardID_1.selectedIndex].value)">
          <option value="">==请选择==</option>
          <%
str="select BBS_Cate_ID,BBS_Cate_Name from BBS_CATE Where BBS_Cate_PID='0' and deleted=0 order by BBS_ID asc"
set rs_BBS_Cate=server.createobject("adodb.recordset")
rs_BBS_Cate.open str,conn,1,1
do while not rs_BBS_Cate.eof
%>
          <option value="<%=rs_BBS_Cate("BBS_Cate_ID")%>"><%=rs_BBS_Cate("BBS_Cate_Name")%></option>
          <%
rs_BBS_Cate.movenext
loop
rs_BBS_Cate.close
set rs_BBS_Cate=nothing

%>
        </SELECT> </TD>
    </TR>
    <TR class="maintbtr1"> 
      <TD width="16%"> <div align="right">分论坛：</div></TD>
      <TD width="84%"><SELECT NAME="BoardID_2">
          <option value="">==请选择==</option>
        </SELECT> </TD>
    </TR>
    <%else%>
    <TR class="maintbtr1"> 
      <TD width="16%"> <div align="right"></div></TD>
      <TD width="84%"> <INPUT TYPE="hidden" name="BoardID_1" value="<%=BoardID_1%>"> 
        <INPUT TYPE="hidden" name="BoardID_2" value="<%=BoardID_2%>"> </TD>
    </TR>
    <%end if%>
    <TR class="maintbtr1"> 
      <TD width="16%"> <div align="right">主　题：</div></TD>
      <TD width="84%"> <input type="text" name="title" size="55" > </TD>
    </TR>
    <TR class="maintbtr1">
      <TD width="16%"><div align="right">投　票：</div></TD>
      <TD> <input name=tptype type=radio value=1 checked>
        单选&nbsp;&nbsp;
        <input name=tptype type=radio value=2>
        多选<br> &nbsp;选项1&nbsp;
        <INPUT class=fminpt name=tpnl1 type=text size=50>
        <br> &nbsp;选项2&nbsp;
        <INPUT class=fminpt name=tpnl2 type=text size=50>
        <br> &nbsp;选项3&nbsp;
        <INPUT class=fminpt name=tpnl3 type=text size=50>
        <br> &nbsp;选项4&nbsp;
        <INPUT class=fminpt name=tpnl4 type=text size=50>
        <br> &nbsp;选项5&nbsp;
        <INPUT class=fminpt name=tpnl5 type=text size=50>
        <br> &nbsp;选项6&nbsp;
        <INPUT class=fminpt name=tpnl6 type=text size=50>
        <br> &nbsp;选项7&nbsp;
        <INPUT class=fminpt name=tpnl7 type=text size=50>
        <br> &nbsp;选项8&nbsp;
        <INPUT class=fminpt name=tpnl8 type=text size=50>
        <br> &nbsp;选项9&nbsp;
        <INPUT class=fminpt name=tpnl9 type=text size=50>
        <br> &nbsp;选项10
        <INPUT class=fminpt name=tpnl10 type=text size=50>
		<br>
        &nbsp;<font color="#FF0000">有效期</font> 
        <input name="daynum" type="text" id="daynum" size="8">
        天(注:从发布之日起过了输入的天数后就失效)
		</TD>
    </TR>
    <TR class="maintbtr1"> 
      <TD> <div align="right">内　容：</div></TD>
      <TD height=300> <TEXTAREA type="hidden" rows=1 cols=1 name="menu" style="position:absolute;left:0;visibility:hidden;"></textarea> 
        <SCRIPT src="htmledit/ftbbspost.js"></SCRIPT> </TD>
    </TR>
    <TR class="maintbtr1"> 
      <TD width="16%"> 
        <div align="right">上传附件：</div>
      </TD>
      <TD width="84%" height="28">
<IFRAME name=mqs marginWidth=0 marginHeight=0 src=FtbbsUpFile.asp?filename=<%=filename%> frameBorder=0 width=500 scrolling=no height=25></IFRAME>
      </TD>
    </TR>
    <TR class="maintbtr1"> 
      <TD width="16%"> <div align="right">发布状态：</div></TD>
      <TD width="84%"> <input type=radio name=ticon value=0.gif> <img src=images/0.gif width=19 height=19 > 
        <input type=radio name=ticon value=1.gif> <img src=images/1.gif width=19 height=19 > 
        <input type=radio name=ticon value=2.gif> <img src=images/2.gif width=19 height=19> 
        <input type=radio name=ticon value=3.gif> <img src=images/3.gif width=19 height=19> 
        <input type=radio name=ticon value=4.gif> <img src=images/4.gif width=19 height=19> 
        <input type=radio name=ticon value=5.gif> <img src=images/5.gif width=19 height=19> 
        <input type=radio name=ticon value=6.gif> <img src=images/6.gif width=19 height=19> 
        <input type=radio name=ticon value=7.gif> <img src=images/7.gif width=19 height=19><br> 
        <input type=radio name=ticon value=8.gif> <img src=images/8.gif width=19 height=19> 
        <input type=radio name=ticon value=9.gif> <img src=images/9.gif width=19 height=19> 
        <input type=radio name=ticon value=10.gif> <img src=images/10.gif width=19 height=19> 
        <input type=radio name=ticon value=11.gif> <img src=images/11.gif width=19 height=19> 
        <input type=radio name=ticon value=12.gif> <img src=images/12.gif width=19 height=19> 
        <input type=radio name=ticon value=13.gif> <img src=images/13.gif width=19 height=19> 
        <input type=radio name=ticon value=14.gif> <img src=images/14.gif width=19 height=19> 
        <input type=radio name=ticon value=15.gif> <img src=images/15.gif width=19 height=19> 
        <br> <input type=radio name=ticon value=16.gif> <img src=images/16.gif width=19 height=19> 
        <input type=radio name=ticon value=17.gif> <img src=images/17.gif width=19 height=19> 
        <input type=radio name=ticon value=18.gif> <img src=images/18.gif width=19 height=19> 
        <input type=radio name=ticon value=19.gif> <img src=images/19.gif width=19 height=19> 
        <input type=radio name=ticon value=20.gif> <img src=images/20.gif width=19 height=19> 
        <input type=radio name=ticon value=21.gif> <img src=images/21.gif width=19 height=19> 
        <input type=radio name=ticon value=22.gif> <img src=images/22.gif width=19 height=19> 
        <input type=radio name=ticon value=23.gif> <img src=images/23.gif width=19 height=19> 
        <br> <input type=radio name=ticon value=24.gif> <img src=images/24.gif width=19 height=19> 
        <input type=radio name=ticon value=25.gif> <img src=images/25.gif width=19 height=19> 
        <input type=radio name=ticon value=26.gif> <img src=images/26.gif width=19 height=19> 
        <input type=radio name=ticon value=27.gif> <img src=images/27.gif width=19 height=19> 
        <input type=radio name=ticon value=28.gif> <img src=images/28.gif width=19 height=19> 
        <input type=radio name=ticon value=29.gif> <img src=images/29.gif width=19 height=19> 
        <input type=radio name=ticon value=30.gif> <img src=images/30.gif width=19 height=19> 
        <input type=radio name=ticon value=31.gif> <img src=images/31.gif width=19 height=19> 
        <br> <input type=radio name=ticon value=32.gif> <img src=images/32.gif width=19 height=19> 
        <input type=radio name=ticon value=33.gif> <img src=images/33.gif width=19 height=19> 
        <input type=radio name=ticon value=34.gif> <img src=images/34.gif width=19 height=19> 
        <input type=radio name=ticon value=35.gif> <img src=images/35.gif width=19 height=19> 
        <input type=radio name=ticon value=36.gif> <img src=images/36.gif width=19 height=19> 
        <input type=radio name=ticon value=37.gif> <img src=images/37.gif width=19 height=19> 
        <input type=radio name=ticon value=38.gif> <img src=images/38.gif width=19 height=19> 
        <input type=radio name=ticon value=39.gif> <img src=images/39.gif width=19 height=19 onClick="inputs('39')"> 
        <br> <input type=radio name=ticon value=40.gif> <img src=images/40.gif width=19 height=19> 
        <input type=radio name=ticon value=41.gif> <img src=images/41.gif width=19 height=19> 
        <input type=radio name=ticon value=42.gif> <img src=images/42.gif width=19 height=19> 
        <input type=radio name=ticon value=43.gif> <img src=images/43.gif width=19 height=19> 
        <font color="#FF0000"> 
        <input type=radio name=ticon value=44.gif>
        <img src="images/44.gif" width="17" height="16"> 点击图标，加入表情符号</font> 
        <!--<input type="text" name="tel" size="20" maxlength="20">-->
      </TD>
    </TR>
	<%If getcodeoff=1 Then%>
    <TR class="maintbtr1"> 
      <TD width="16%"> 
        <div align="right">验 证 码：</div>
      </TD>
      <TD width="84%"><input name=codestr id=codestr type=text size=10 maxlength=4> <%response.write getcode%></TD>
    </TR>
	<%end if%>
    <TR class="maintbtr1"> 
      <TD height="35" colspan=2 align=center>
	    <INPUT type="hidden" name="FileName" value="<%=session("filename")%>">
		<INPUT type="hidden" name="layer_1" value="<%=BoardID_1%>">
		<INPUT type="hidden" name="layer_2" value="<%=BoardID_2%>">
        <input type="submit" value="发布话题" name="B1">
		<input type="button" name="Submit" value="清除内容" onClick="ClearReset()">
      </TD>
    </TR>
	</form>
  </TABLE>
<!--#include file="inc/bbstail.htm"-->
<%
conn.close
%>