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

if Trim(Request.QueryString("action"))="PhotoDel" then
	conn.execute "delete from [Jin_Photos] where SysID = " & Trim(Request.QueryString("id"))
end if
if Trim(Request.Form("action"))="photodelplsc" then
	conn.execute "delete from [Jin_Photos] where SysID in (" & replace(Trim(Request.Form("ids"))," ",", ") & ")"
end if

if Trim(Request.QueryString("Action"))="SortID" then
	conn.execute "UPDATE [Jin_Photos] SET SortID = "&Trim(Request.QueryString("value"))&" WHERE sysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("Action"))="recommend" then
	conn.execute "UPDATE [Jin_Photos] SET Recommend = true WHERE sysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("Action"))="recommendno" then
	conn.execute "UPDATE [Jin_Photos] SET Recommend = false WHERE sysID = "&Trim(Request.QueryString("id"))
end if


conn.close
set conn=nothing
%>