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


if Trim(Request.QueryString("action"))="Url" then
	conn.execute "UPDATE [Jin_Class] SET Url = '"&Trim(Request.QueryString("value"))&"' WHERE ID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="ClassName" then
	conn.execute "UPDATE [Jin_Class] SET ClassName = '"&Trim(Request.QueryString("value"))&"' WHERE ID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="ClassName_en" then
	conn.execute "UPDATE [Jin_Class] SET ClassName_en = '"&Trim(Request.QueryString("value"))&"' WHERE ID = "&Trim(Request.QueryString("id"))
end if


if Trim(Request.QueryString("action"))="TypeAdd" then
	conn.execute "insert into [Jin_ClassType] (SortID) values ("&Trim(Request.QueryString("id"))&")"
end if
if Trim(Request.QueryString("action"))="TypeDel" then
	conn.execute "delete from [Jin_ClassType] where SysID = " & Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="SortID" then
	conn.execute "UPDATE [Jin_ClassType] SET SortID = '"&Trim(Request.QueryString("value"))&"' WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="TypeName" then
	conn.execute "UPDATE [Jin_ClassType] SET TypeName = '"&Trim(Request.QueryString("value"))&"' WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="TypeName_en" then
	conn.execute "UPDATE [Jin_ClassType] SET TypeName_en = '"&Trim(Request.QueryString("value"))&"' WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="Content" then
	conn.execute "UPDATE [Jin_ClassType] SET Content = '"&Trim(Request.QueryString("value"))&"' WHERE SysID = "&Trim(Request.QueryString("id"))
end if

if Trim(Request.QueryString("action"))="TypeShow" then
	conn.execute "UPDATE [Jin_ClassType] SET Show = true WHERE SysID = "&Trim(Request.QueryString("id"))
end if
if Trim(Request.QueryString("action"))="TypeShowNo" then
	conn.execute "UPDATE [Jin_ClassType] SET Show = false WHERE SysID = "&Trim(Request.QueryString("id"))
end if

if Trim(Request.QueryString("action"))="CTypeName" then
	conn.execute "UPDATE [Jin_Class] SET ClassType = '"&Trim(Request.QueryString("value"))&"' WHERE ID = "&Trim(Request.QueryString("id"))
	Response.Write ("<script language=javascript>history.go(-1);</script>")
end if

conn.close
set conn=nothing
%>