<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../../Common/Config.asp"-->
<!--#include file="../Include/Check.asp"-->
<%

if Trim(Request.QueryString("action"))="Web_BackPageNumA" then
	conn.execute "UPDATE [Jin_Config] SET Web_BackPageNumA = '"&Trim(Request.QueryString("value"))&"' where exists(select top 1 sysID from Jin_Config)"
end if

'  -------      Article Manage        ----------------------------------------
if Trim(Request.QueryString("action"))="articleDel" then
	conn.execute "delete from [Jin_Article] where SysID = " & Trim(Request.QueryString("id"))
end if
if Trim(Request.Form("action"))="articleplsc" then
	conn.execute "delete from [Jin_Article] where SysID in (" & replace(Trim(Request.Form("ids"))," ",", ") & ")"
end if


if Trim(Request.QueryString("action"))="Recommend" then
	conn.execute "UPDATE [Jin_Article] SET Recommend = false WHERE SysID <> "&Trim(Request.QueryString("id"))
	conn.execute "UPDATE [Jin_Article] SET Recommend = true WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="Verify" then
	conn.execute "UPDATE [Jin_Article] SET Verify = true WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="Verifyno" then
	conn.execute "UPDATE [Jin_Article] SET Verify = false WHERE SysID = "&Trim(Request.QueryString("id"))
end if

conn.close
set conn=nothing
%>