<!--#include file="../conn.asp"-->
<!-- #include file="../admin/check_master.asp" -->
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/xmwuye.css" rel="stylesheet" type="text/css">
<script language="javascript">
<!--
	function check(form)
		{
		if (form.content.value=="")
			{
			alert("请填写内容！");
			form.content.focus();
			return false;
			}
			return true;
		}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<%
ope=request("ope")

if ope="add" then
%>
<form name="form1" method="post" action="bbs_arrest_ope_act.asp?ope=add" onsubmit="return check(this)">
  <table width="70%" border="0" align="center" bgcolor="#333333" cellspacing="1" cellpadding="0">
    <tr bgcolor="#cccccc"> 
      <td colspan="2" height="20"> 
        <div align="center">关键词、IP限制</div>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="30%" height="20"> 
        <div align="right">类别：</div>
      </td>
      <td>
        <select name="kind">
          <option value="Keyword">关键词</option>
          <option value="IP" selected>IP地址</option>
        </select>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="20"> 
        <div align="right">内容：</div>
      </td>
      <td>
        <input type="text" name="content">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="20" colspan="2"> 
        <div align="center"> 
          <input type="submit" name="Submit" value="提交" <%if instr(session("admin_qs"),1)<=0 then%>disabled<%end if%>>
          <input type="reset" name="Submit2" value="重置">
        </div>
      </td>
    </tr>
  </table>
</form>
<%elseif ope="mod" then
id=request("id")
sql="select * from bbs_arrest where id="&id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<form name="form1" method="post" action="bbs_arrest_ope_act.asp?ope=mod&id=<%=id%>" onsubmit="return check(this)">
  <table width="70%" border="0" align="center" bgcolor="#333333" cellspacing="1" cellpadding="0">
    <tr bgcolor="#cccccc"> 
      <td colspan="2" height="20"> 
        <div align="center">关键词、IP限制</div>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="30%" height="20"> 
        <div align="right">类别：</div>
      </td>
      <td>
        <select name="kind">
          <option value="Keyword" <%if rs("kind")="Keyword" then%>selected<%end if%>>关键词</option>
          <option value="IP" <%if rs("kind")="IP" then%>selected<%end if%>>IP地址</option>
        </select>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="20"> 
        <div align="right">内容：</div>
      </td>
      <td>
        <input type="text" name="content" value="<%=rs("content")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="20" colspan="2"> 
        <div align="center"> 
          <input type="submit" name="Submit" value="提交" <%if instr(session("admin_qs"),2)<=0 then%>disabled<%end if%>>
          <input type="reset" name="Submit2" value="重置">
        </div>
      </td>
    </tr>
  </table>
</form>

<%
rs.close
set rs=nothing
end if%>
</body>
</html>
<%
conn.close
set conn=nothing
%>
