<!--#include file="../siteconfig/conn.asp"-->
<%
if session("adminlogin")<>sessionvar then
Response.Write("<script language=javascript>alert('你尚未登录，或者超时了！请重新登录');this.location.href='login.asp';</script>")
Response.End
End if
set rs=server.createobject("adodb.recordset")
%>
<HTML>
<HEAD>
<TITLE>网站审查</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<LINK REL="stylesheet" HREF="css.css" TYPE="text/css">
</HEAD>
<script language="JavaScript" type="text/javascript" src="js.js"></script>
<BODY>
<%dim Menu,Url_Name,Url_Id,Url_Yn
Url_Id=Request("Url_Id")
Url_Yn=Request("Url_Yn")
Menu=Request("Menu")
if Menu="Yn" then
   rs.open"select Url_Yn from Url where Url_Id="&Url_Id,conn,1,3
   if not rs.eof then
       rs("Url_Yn")=Url_Yn
	   rs.update
   end if
   rs.close
          Response.Write("<script language=javascript>alert('已修改审查');parent.window.location.reload();DivOpenClose('',2,0,0);</script>")
	      Response.End()
end if
rs.open"select Url_Yn,Url_Name from Url where Url_Id="&Url_Id,conn,1,3
if not rs.eof then
   Url_Name=rs("Url_Name")
   Url_Yn=rs("Url_Yn")
end if
rs.close
%>
<form name="form1" method="post" action="?Menu=Yn">
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#EEEEEE">
  <tr>
    <td width="45%">审查网站</td>
    <td width="55%" align="right"><a href="#" onClick="javascript:DivOpenClose('',2,0,0);return false">关闭</a></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td colspan="2"><div align="center">
	<%if Url_Yn=1 then%>
      <label>
      <input type="radio" name="Url_Yn" value="0">
      通过审查</label>
      <label>
      <input name="Url_Yn" type="radio" value="1" checked>
      审查网址</label>
	  <%else%>
	  <label>
      <input type="radio" name="Url_Yn" value="0" checked>
      通过审查</label>
      <label>
      <input name="Url_Yn" type="radio" value="1">
      审查网址</label>
	  <%end if%>
	  <input name="Url_Id" type="hidden" value="<%=Url_Id%>">
    </div></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td colspan="2"><div align="center">
      <input name="Submit" type="submit" class="SubmitCss" onClick='javascript:return confirm("确认审查！");' value="确定审查 [<%=Url_Name%>] 吗！">
    </div></td>
  </tr>
</table>
</form>
</BODY>
</HTML>

