<!--#include file="conn.asp"-->
<!--#include file="ConnUser.asp"-->
<!--#include file="config.asp"-->
<!--#include file="char.inc"-->
<!--#include file="chkuser.asp" -->

<%
if not(request.cookies(eChuang)("KEY")="super" or request.cookies(eChuang)("key")="bigmaster" or request.cookies(eChuang)("key")="check" or request.cookies(eChuang)("key")="typemaster") then
	Show_Err("对不起，您的后台管理权限不够操作！")
	response.end
else
	newsID=trim(request.QueryString("newsid"))
	set rs=server.createobject("adodb.recordset")
	sql="Select * from "& db_News_Table &" where newsID="&newsid
	rs.open sql,conn,1,3
	smallclassid=rs("smallclassid")
	bigclassid=rs("bigclassid")
	typeid=rs("typeid")
	if rs("istop")=0 then
		rs("istop")="1"
	else
		rs("istop")="0"
	end if
	rs.update
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing

            Response.Redirect "CheckNews1.asp?"
end if
%>