<!--#include file="conn.asp"-->
<!--#include file="bbsuser.asp" -->
<!--#include file="ftbbs_nav.asp" -->
<%
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)
defaulthome=Application("FTBBSMB")(31,0)
if htm_ext="" then htm_ext=".htm"
homepage=ft_home(defaulthome)

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
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<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>
<script language="javascript">
<!--
    function changetitle(txt){
	   var currentTitle = document.myform.title.value;
       if (txt.charAt(1)==" "){
           txt1=txt.substr(2);
           document.myform.title.value=txt1+currentTitle;}
      else{
	       document.myform.title.value=txt+currentTitle;}
    }
//-->
</script>
<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">
          <%if request.cookies("ftbbstype")<>1 then%>
          <tr> 
            <td height="25" colspan="3" class="f12bg">&nbsp;<%=userinfo%></td>
          </tr>
          <%end if%>
          <tr> 
            <td height="25" colspan="3" class="maintbtr3">&nbsp;<a href="<%=homepage%>">论坛首页</a> 
              >> 发布话题</td>
          </tr>
	      <tr> 
            <td width="100%" height="25" class="maintbtr1"> 
            <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="check.asp" onsubmit="return CheckForm(this)">
	<%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%">
	    <select name="zhiye" id="zhiye" style="width:60px" onChange="changetitle(document.myform.zhiye.options[document.myform.zhiye.selectedIndex].text)">
          <option value="1" selected>[原创]</option>
          <option value="2">[转载]</option>
		  <option value="3">[灌水]</option>
		  <option value="4">[讨论]</option>
		  <option value="5">[求助]</option>
		  <option value="6">[推荐]</option>
		  <option value="7">[公告]</option>
		  <option value="8">[贴图]</option>
		  <option value="9">[建议]</option>
		  <option value="10">[下载]</option>
        </select>
        <input type="text" name="title" size="50" id="title">
        <%if request.Cookies("bz")=1 then%>
        <SELECT name=titlecolor>
          <option style="background-color:#ffffff;color: #000000" value="" selected>标题颜色</option>
          <option style="background-color:#6495ED;color: #6495ED" value="#6495ED">#6495ED</option>
          <option style="background-color:#000000;color: #000000" value="#000000">#000000</option>
          <option style="background-color:#0000FF;color: #0000FF" value="#0000FF">#0000FF</option>
          <option style="background-color:#8A2BE2;color: #8A2BE2" value="#8A2BE2">#8A2BE2</option>
          <option style="background-color:#A52A2A;color: #A52A2A" value="#A52A2A">#A52A2A</option>
          <option style="background-color:#DEB887;color: #DEB887" value="#DEB887">#DEB887</option>
          <option style="background-color:#5F9EA0;color: #5F9EA0" value="#5F9EA0">#5F9EA0</option>
          <option style="background-color:#000000;color: #000000" value="#000000">#000000</option>
          <option style="background-color:#D2691E;color: #D2691E" value="#D2691E">#D2691E</option>
          <option style="background-color:#FF7F50;color: #FF7F50" value="#FF7F50">#FF7F50</option>
          <option style="background-color:#DC143C;color: #DC143C" value="#DC143C">#DC143C</option>
          <option style="background-color:#00008B;color: #00008B" value="#00008B">#00008B</option>
          <option style="background-color:#008B8B;color: #008B8B" value="#008B8B">#008B8B</option>
          <option style="background-color:#B8860B;color: #B8860B" value="#B8860B">#B8860B</option>
          <option style="background-color:#A9A9A9;color: #A9A9A9" value="#A9A9A9">#A9A9A9</option>
          <option style="background-color:#006400;color: #006400" value="#006400">#006400</option>
          <option style="background-color:#BDB76B;color: #BDB76B" value="#BDB76B">#BDB76B</option>
          <option style="background-color:#8B008B;color: #8B008B" value="#8B008B">#8B008B</option>
          <option style="background-color:#556B2F;color: #556B2F" value="#556B2F">#556B2F</option>
          <option style="background-color:#FF8C00;color: #FF8C00" value="#FF8C00">#FF8C00</option>
          <option style="background-color:#9932CC;color: #9932CC" value="#9932CC">#9932CC</option>
          <option style="background-color:#8B0000;color: #8B0000" value="#8B0000">#8B0000</option>
          <option style="background-color:#E9967A;color: #E9967A" value="#E9967A">#E9967A</option>
          <option style="background-color:#8FBC8F;color: #8FBC8F" value="#8FBC8F">#8FBC8F</option>
          <option style="background-color:#483D8B;color: #483D8B" value="#483D8B">#483D8B</option>
          <option style="background-color:#2F4F4F;color: #2F4F4F" value="#2F4F4F">#2F4F4F</option>
          <option style="background-color:#00CED1;color: #00CED1" value="#00CED1">#00CED1</option>
          <option style="background-color:#9400D3;color: #9400D3" value="#9400D3">#9400D3</option>
          <option style="background-color:#FF1493;color: #FF1493" value="#FF1493">#FF1493</option>
          <option style="background-color:#00BFFF;color: #00BFFF" value="#00BFFF">#00BFFF</option>
          <option style="background-color:#696969;color: #696969" value="#696969">#696969</option>
          <option style="background-color:#1E90FF;color: #1E90FF" value="#1E90FF">#1E90FF</option>
          <option style="background-color:#B22222;color: #B22222" value="#B22222">#B22222</option>
          <option style="background-color:#875764;color: #875764" value="#875764">#875764</option>
          <option style="background-color:#228B22;color: #228B22" value="#228B22">#228B22</option>
          <option style="background-color:#345343;color: #345343" value="#345343">#345343</option>
          <option style="background-color:#FFD700;color: #FFD700" value="#FFD700">#FFD700</option>
          <option style="background-color:#DAA520;color: #DAA520" value="#DAA520">#DAA520</option>
          <option style="background-color:#808080;color: #808080" value="#808080">#808080</option>
          <option style="background-color:#008000;color: #008000" value="#008000">#008000</option>
          <option style="background-color:#CD5C5C;color: #CD5C5C" value="#CD5C5C">#CD5C5C</option>
          <option style="background-color:#4B0082;color: #4B0082" value="#4B0082">#4B0082</option>
          <option style="background-color:#087664;color: #087664" value="#087664">#087664</option>
          <option style="background-color:#7CFC00;color: #7CFC00" value="#7CFC00">#7CFC00</option>
          <option style="background-color:#ADD8E6;color: #ADD8E6" value="#ADD8E6">#ADD8E6</option>
          <option style="background-color:#F08080;color: #F08080" value="#F08080">#F08080</option>
          <option style="background-color:#D3D3D3;color: #D3D3D3" value="#D3D3D3">#D3D3D3</option>
          <option style="background-color:#FFB6C1;color: #FFB6C1" value="#FFB6C1">#FFB6C1</option>
          <option style="background-color:#FFA07A;color: #FFA07A" value="#FFA07A">#FFA07A</option>
          <option style="background-color:#20B2AA;color: #20B2AA" value="#20B2AA">#20B2AA</option>
          <option style="background-color:#87CEFA;color: #87CEFA" value="#87CEFA">#87CEFA</option>
          <option style="background-color:#778899;color: #778899" value="#778899">#778899</option>
          <option style="background-color:#B0C4DE;color: #B0C4DE" value="#B0C4DE">#B0C4DE</option>
          <option style="background-color:#32CD32;color: #32CD32" value="#32CD32">#32CD32</option>
          <option style="background-color:#FF00FF;color: #FF00FF" value="#FF00FF">#FF00FF</option>
          <option style="background-color:#800000;color: #800000" value="#800000">#800000</option>
          <option style="background-color:#66CDAA;color: #66CDAA" value="#66CDAA">#66CDAA</option>
          <option style="background-color:#0000CD;color: #0000CD" value="#0000CD">#0000CD</option>
          <option style="background-color:#BA55D3;color: #BA55D3" value="#BA55D3">#BA55D3</option>
          <option style="background-color:#9370DB;color: #9370DB" value="#9370DB">#9370DB</option>
          <option style="background-color:#3CB371;color: #3CB371" value="#3CB371">#3CB371</option>
          <option style="background-color:#7B68EE;color: #7B68EE" value="#7B68EE">#7B68EE</option>
          <option style="background-color:#00FA9A;color: #00FA9A" value="#00FA9A">#00FA9A</option>
          <option style="background-color:#48D1CC;color: #48D1CC" value="#48D1CC">#48D1CC</option>
          <option style="background-color:#C71585;color: #C71585" value="#C71585">#C71585</option>
          <option style="background-color:#191970;color: #191970" value="#191970">#191970</option>
          <option style="background-color:#000080;color: #000080" value="#000080">#000080</option>
          <option style="background-color:#808000;color: #808000" value="#808000">#808000</option>
          <option style="background-color:#6B8E23;color: #6B8E23" value="#6B8E23">#6B8E23</option>
          <option style="background-color:#FFA500;color: #FFA500" value="#FFA500">#FFA500</option>
          <option style="background-color:#FF4500;color: #FF4500" value="#FF4500">#FF4500</option>
          <option style="background-color:#DA70D6;color: #DA70D6" value="#DA70D6">#DA70D6</option>
          <option style="background-color:#98FB98;color: #98FB98" value="#98FB98">#98FB98</option>
          <option style="background-color:#DB7093;color: #DB7093" value="#DB7093">#DB7093</option>
          <option style="background-color:#CD853F;color: #CD853F" value="#CD853F">#CD853F</option>
          <option style="background-color:#FFC0CB;color: #FFC0CB" value="#FFC0CB">#FFC0CB</option>
          <option style="background-color:#DDA0DD;color: #DDA0DD" value="#DDA0DD">#DDA0DD</option>
          <option style="background-color:#B0E0E6;color: #B0E0E6" value="#B0E0E6">#B0E0E6</option>
          <option style="background-color:#800080;color: #800080" value="#800080">#800080</option>
          <option style="background-color:#FF0000;color: #FF0000" value="#FF0000">#FF0000</option>
          <option style="background-color:#BC8F8F;color: #BC8F8F" value="#BC8F8F">#BC8F8F</option>
          <option style="background-color:#4169E1;color: #4169E1" value="#4169E1">#4169E1</option>
          <option style="background-color:#8B4513;color: #8B4513" value="#8B4513">#8B4513</option>
          <option style="background-color:#FA8072;color: #FA8072" value="#FA8072">#FA8072</option>
          <option style="background-color:#F4A460;color: #F4A460" value="#F4A460">#F4A460</option>
          <option style="background-color:#2E8B57;color: #2E8B57" value="#2E8B57">#2E8B57</option>
          <option style="background-color:#A0522D;color: #A0522D" value="#A0522D">#A0522D</option>
          <option style="background-color:#C0C0C0;color: #C0C0C0" value="#C0C0C0">#C0C0C0</option>
          <option style="background-color:#87CEEB;color: #87CEEB" value="#87CEEB">#87CEEB</option>
          <option style="background-color:#6A5ACD;color: #6A5ACD" value="#6A5ACD">#6A5ACD</option>
          <option style="background-color:#708090;color: #708090" value="#708090">#708090</option>
          <option style="background-color:#4682B4;color: #4682B4" value="#4682B4">#4682B4</option>
          <option style="background-color:#D2B48C;color: #D2B48C" value="#D2B48C">#D2B48C</option>
          <option style="background-color:#008080;color: #008080" value="#008080">#008080</option>
          <option style="background-color:#D8BFD8;color: #D8BFD8" value="#D8BFD8">#D8BFD8</option>
          <option style="background-color:#FF6347;color: #FF6347" value="#FF6347">#FF6347</option>
          <option style="background-color:#40E0D0;color: #40E0D0" value="#40E0D0">#40E0D0</option>
          <option style="background-color:#EE82EE;color: #EE82EE" value="#EE82EE">#EE82EE</option>
          <option style="background-color:#F5DEB3;color: #F5DEB3" value="#F5DEB3">#F5DEB3</option>
          <option style="background-color:#435454;color: #435454" value="#435454">#435454</option>
          <option style="background-color:#9ACD32;color: #9ACD32" value="#9ACD32">#9ACD32</option>
        </SELECT> 
        <%end if%>
      </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>
      </TD>
    </TR>
    <TR class="maintbtr1"> 
      <TD width="16%" height="25"> 
        <div align="right"><font color="#FF0000">是否加入博客：</font></div>
      </TD>
      <TD width="84%"><input type="radio" name="addblog" value="Y">
        是 (内容加入到个人博客) 
        <input name="addblog" type="radio" value="N" checked>
        否 (内容不加入个人博客)</TD>
    </TR>
	<%If getcodeoff=1 Then%>
    <TR class="maintbtr1"> 
      <TD width="16%" height="25"> 
        <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 name="bbs_img_display" type="hidden" id="bbs_img_display">
		<input name="bbs_img" type="hidden" id="bbs_img"> 
        <INPUT type="hidden" name="FileName" value="<%=session("filename")%>">
		<INPUT type="hidden" name="fd" value="<%=request("fd")%>">
		<INPUT type="hidden" name="layer_1" value="<%=BoardID_1%>">
		<INPUT type="hidden" name="layer_2" value="<%=BoardID_2%>">
        <input type="submit" value="发布话题" name="B1" <%=postqs%>>
		<input type="button" name="Submit" value="清除内容" onClick="ClearReset()">
      </TD>
    </TR>
	</form>
  </TABLE>
<!--#include file="inc/bbstail.htm"-->
<%
conn.close
%>