<!--#include file="conn.asp"-->
<!--#include file="ConnUser.asp"-->
<!--#include file="config.asp"-->
<!--#include file="char.inc"-->
<!--#include file="chkuser.asp" -->
<!--#include file="ChkURL.asp"-->
<%
if not(request.cookies(echsys)("KEY")="super" or request.cookies(echsys)("KEY")="check" or request.cookies(echsys)("KEY")="typemaster" or request.cookies(echsys)("KEY")="bigmaster") then
	Show_Err("对不起，您的后台管理权限不够操作！")
	response.end
else
	dim ComplainID,Checked,Checked1
	ComplainID=ChkRequest(request("ComplainID"),1)	'防注入
	Checked=request("Checked")
	set rs=server.createobject("adodb.recordset")
	sql="Select ComplainID,Checked from "& db_wygkcn_Complain_Table &" where ComplainID="&ComplainID
	rs.open sql,conn,1,3
	if not (rs.bof or rs.eof) then
		if rs("Checked")=0 then
			rs("Checked")=1
		else
			rs("Checked")=0
		end if
		rs.update
		rs.close
		set rs=nothing
		conn.close
		set conn=nothing	
        Response.Redirect "ComplainList.asp"
	else
		rs.close
		set rs=nothing
		conn.close
		set conn=nothing
		Show_Err("未找到相关记录，操作失败！<br><br><a href=history.go(-1)>返回</a>")
		response.end
	end if
end if%>