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

<%
if not(request.cookies(echsys)("KEY")="super" or request.cookies(echsys)("key")="bigmaster" or request.cookies(echsys)("key")="check" or request.cookies(echsys)("key")="typemaster") then
	Show_Err("对不起，您的后台管理权限不够操作！")
	response.end
else
	EC_ArticleID=ChkRequest(request.QueryString("EC_ArticleID"), 1)
	set rs=server.createobject("adodb.recordset")
	sql="Select * from "& db_wygkcn_Article_Table &" where EC_ArticleID="&EC_ArticleID
	rs.open sql,conn,1,3
	E_SmallClassID=rs("E_SmallClassID")
	E_BigClassID=rs("E_BigClassID")
	E_typeid=rs("E_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
	
	if E_SmallClassID<>"" then
		Response.Redirect "ListNews.asp?E_SmallClassID="&E_SmallClassID
	else if E_BigClassID<>"" then
		Response.Redirect "wygkcn_SmallNO.asp?E_BigClassID="&E_BigClassID
		else
			Response.Redirect "wygkcn_bigclassNO.asp?E_typeid="&E_typeid
		end if
	end if
end if
%>