<!--#include file="../conn.asp"-->
<!-- #include file="../admin/check_master.asp" -->
<%
searchcontent=trim(request("searchcontent"))
searchkind=request("searchkind")
if searchkind="" then
	str="select * from bbs_arrest order by id desc"
else
	str="select * from bbs_arrest where kind='"&searchkind&"' and content like '%"&searchcontent&"%' order by id desc"

end if
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open str,conn,3,1
page=request("page")
if page="" then
page=1
else 
page=cint(trim(request("page")))
end if
ipagesize=20
rs.pagesize=ipagesize

%>
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/xmwy.css" rel="stylesheet" type="text/css">

</head>

<body bgcolor="#FFFFFF" text="#000000">
<br>
<table width="90%" border="0" align="center">
  <TR align=center>
<FORM METHOD=POST ACTION="<%=request.servervariables("script_name")%>" >
	  <TD> 
        <INPUT TYPE="text" NAME="searchcontent" size=20>
        <select name="searchkind">
          <option value="Keyword">关键字</option>
          <option value="IP">IP地址</option>
        </select>
        <INPUT TYPE="submit" value="搜索" name="">	<A HREF="bbs_arrest_ope.asp?ope=add">[添加内容]</A></TD>
</FORM>
</TR>
</TABLE>
<table width="90%" border="0" bgcolor="#333333" cellspacing="1" cellpadding="0" align="center">
  <tr bgcolor="#cccccc" align=center> 
    <td height="20" width="10%">编号</td>
    <td width="20%">类别</td>
    <td bgcolor="#cccccc" width="20%">内容</td>
    <td bgcolor="#cccccc">日期</td>
    <td width="10%">修改</td>
    <td width="10%">删除</td>
  </tr>
  <%if not rs.eof then
	  rs.absolutepage=page
	  i=1
	  do while not rs.eof
	  %>
  <tr bgcolor="#FFFFFF" align=center> 
    <td height="20"><%=i%></td>
    <td><%=rs("kind")%></td>
    <td><%=rs("content")%></td>
    <td><%=rs("indbdate")%></td>
    <td><A HREF="bbs_arrest_ope.asp?ope=mod&id=<%=rs("id")%>">[修改]</A></td>
    <td><A HREF="bbs_arrest_ope_act.asp?ope=del&id=<%=rs("id")%>">[删除]</A></td>
  </tr>
  <%
  rs.movenext
  i=i+1
  if i>ipagesize then exit do
  loop
  %>
  <tr align=center bgcolor="#FFFFFF"> 
    <td colspan="14"> 
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="77%"> 
            <div align="center">共<%=rs.recordcount%>个话题 第<%=page%>页/共<%=rs.pagecount%>页　 
              <%if page>1 then%>
              <a href="<%=request.servervariables("script_name")%>?page=1&searchcontent=<%=searchcontent%>&searchkind=<%=searchkind%>">［首　页］</a> 
              <%else%>
              ［首　页］ 
              <%end if%>
              <%if page>1 then%>
              <a href="<%=request.servervariables("script_name")%>?page=<%=page-1%>&searchcontent=<%=searchcontent%>&searchkind=<%=searchkind%>">［上一页］</a> 
              <%else%>
              ［上一页］ 
              <%end if%>
              <%if page<rs.pagecount then%>
              <a href="<%=request.servervariables("script_name")%>?page=<%=page+1%>&searchcontent=<%=searchcontent%>&searchkind=<%=searchkind%>">［下一页］</a> 
              <%else%>
              ［下一页］ 
              <%end if%>
              <%if page<>rs.pagecount then%>
              <a href="<%=request.servervariables("script_name")%>?page=<%=rs.pagecount%>&searchcontent=<%=searchcontent%>&searchkind=<%=searchkind%>">［尾　页］</a> 
              <%else%>
              ［尾　页］ 
              <%end if%>
              　</div>
          </td>
          <form name="form2" method="post" action="<%=request.servervariables("script_name")%>">
            <td width="23%"> 
              <div align="center">第 
                <input type="text" name="page" size="3">
                页 
                <INPUT TYPE="hidden" name="searchcontent" value="<%=searchcontent%>">
                <INPUT TYPE="hidden" name="searchkind" value="<%=searchkind%>">
                <input type="submit" name="Submit" value="GO！">
              </div>
            </td>
          </form>
        </tr>
      </table>
    </td>
  </tr>
  <%else%>
  <tr bgcolor="#F2F9F9"> 
    <td colspan=14> 
      <div align=center> 找不到纪录！ </div>
    </td>
  </tr>
  <%end if%>
</table>
<br>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>