<%@ codepage ="936" %>
<!-- #include file="setup.asp" -->
<%
top
%>
<title>搜索帖子</title>
<script>
var i=0;
function formCheck(){i++;if (i>1) {document.form.submit1.disabled = true;}return true;}
</script>
<table width=100% align="center" border="0">
<tr>
<td vAlign="top" width="30%">
</td>
<td vAlign="center" align="top">&nbsp;&nbsp;<img src="images/closedfold.gif" border="0">&nbsp;&nbsp;<a href="index.asp"><%=clubname%></a><br>
&nbsp;&nbsp;<img src="images/bar.gif" border="0"><img src="images/openfold.gif" border="0">&nbsp;&nbsp;搜索帖子</td>
</tr>
</table>
<form method="post" action="searchok.asp" name=form>
<div align="center">
<center>
<table id="AutoNumber1" style="border-collapse: collapse; border-left: 1px none; border-right-width: 1px; border-top: 1px none; border-bottom: 1px none; padding: 0px" borderColor="#a4b6d7" height="207" cellSpacing="0" cellPadding="0" width="100%">
<tr>
<td style="border: 1px solid; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" width="708" bgColor="#c4d4e5" colSpan="2" height="22">
<p align="center"><span style="FONT-SIZE: 9pt">请输入要搜索的关键字</span></td>
</tr>
<tr>
<td style="border: 1px solid #a4b6d7; padding: 1px" vAlign="top" width="714" bgColor="#f2f8ff" colSpan="2" height="8">
<p align="center"><input size="40" name="content" value="<%=request.querystring("wd2")%>"></td>
</tr>
<tr>
<td style="border: 1px solid #a4b6d7; padding: 1px" width="714" bgColor="#f2f8ff" colSpan="2" height="22">
<p align="center"><span style="FONT-SIZE: 9pt">搜索选项</span></td>
</tr>
<tr>
<td style="border: 1px solid #a4b6d7; padding: 1px" width="210" height="24">
<p align="right"><font style="FONT-SIZE: 9pt">作者搜索</font><input type="radio" value="author" name="search"></td>
<td style="border: 1px solid #a4b6d7; padding: 1px" vAlign="top" width="501" height="22">
&nbsp;<select size="1" name="searchxm">
<option selected value="username">搜索主题作者</option>
<option value="lastname">搜索最后回复作者</option>
</select></td>
</tr>
<tr>
<td style="border: 1px solid #a4b6d7; padding: 1px" width="210" height="21">
<p align="right"><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp; 关键字搜索</span><input type="radio" value="key" name="search" checked></td>
<td style="border: 1px solid #a4b6d7; padding: 1px" vAlign="top" height="22" width="501">
&nbsp;<select size="1" name="searchxm2">
<option value="topic">在主题中搜索关键字</option>
<--!option selected value="content">在内容中搜索关键字</option-->
</select></td>
</tr>
<tr>
<td style="border: 1px solid #a4b6d7; padding: 1px" width="210" height="23">
<p align="right"><font style="FONT-SIZE: 9pt" color="#000000">日期范围</font></td>
<td style="border: 1px solid #a4b6d7; padding: 1px" vAlign="top" width="501" height="22">
&nbsp;<select size="1" name="TimeLimit">
<option value="">所有日期</option>
<option value="1">昨天以来</option>
<option value="5" selected>5天以来</option>
<option value="10">10天以来</option>
<option value="30">30天以来</option>
</select></td>
</tr>
<tr>
<td style="border: 1px solid #a4b6d7; padding: 1px" width="210" height="26" align="right"><font style="FONT-SIZE: 9pt" color="#000000">请选择要搜索的论坛</font></td>
<td style="border: 1px solid #a4b6d7; padding: 1px" vAlign="center" width="501" height="26">
&nbsp;<select name="forumid">
<option value="" selected>全部论坛</option>
<%
sql="select * from class"
rs.Open sql,Conn,1
do while not rs.eof
%>
<option value="" style=BACKGROUND-COLOR:ECF5FF>╋ <%=rs("classname")%></option>
<%
sql="select * from bbsconfig where classid="&rs("id")&""
rs1.Open sql,Conn
do while not rs1.eof
if Request("forumid")=""&rs1("id")&"" then
selected=" selected"
else
selected=""
end if
%><option value="<%=rs1("id")%>"<%=selected%>>　├『<%=rs1("bbsname")%>』</option><%
rs1.movenext
loop
rs1.close
rs.movenext
loop
rs.close
%>
</select>&nbsp; <input type="submit" name=submit1 value="开始搜索" onclick="return formCheck()"></td>
</tr>
<tr>
<td style="border: 1px solid #a4b6d7; padding: 1px" width="714" bgColor="#c4d4e5" colSpan="2" height="22">
<p align="center">　</td>
</tr>
</table>
</center>
</div>
<%
htmlend
%>