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




'  -------      Flash Class Manage        ----------------------------------------
if Trim(Request.QueryString("action"))="BannerTypeAdd" then
	conn.execute "insert into [Jin_FlashClass] (SortID) values ("&Trim(Request.QueryString("id"))&")"
end if
if Trim(Request.QueryString("action"))="classDel" then
	conn.execute "delete from [Jin_FlashClass] where SysID = " & Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="SortID" then
	conn.execute "UPDATE [Jin_FlashClass] SET SortID = '"&Trim(Request.QueryString("value"))&"' WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="Name" then
	conn.execute "UPDATE [Jin_FlashClass] SET Name = '"&Trim(Request.QueryString("value"))&"' WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="Name_en" then
	conn.execute "UPDATE [Jin_FlashClass] SET Name_en = '"&Trim(Request.QueryString("value"))&"' WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="Content" then
	conn.execute "UPDATE [Jin_FlashClass] SET Content = '"&Trim(Request.QueryString("value"))&"' WHERE SysID = "&Trim(Request.QueryString("id"))
end if



if Trim(Request.QueryString("action"))="BannerShow" then
	conn.execute "UPDATE [Jin_Flash] SET Show = true WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="BannerShowNO" then
	conn.execute "UPDATE [Jin_Flash] SET Show = false WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="BannerSortID" then
	conn.execute "UPDATE [Jin_Flash] SET SortID = '"&Trim(Request.QueryString("value"))&"' WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="flashDel" then
	conn.execute "delete from [Jin_Flash] where SysID = " & Trim(Request.QueryString("id"))
end if
if Trim(Request.Form("action"))="flashplsc" then
	conn.execute "delete from [Jin_Flash] where SysID in (" & replace(Trim(Request.Form("ids"))," ",", ") & ")"
end if

conn.close
set conn=nothing
%>