<!--#include virtual="inc/General.inc.asp"-->
<%
CheckManageUser()
id = clng("0"&request.form("idh"))
Title = replace(request.form("Title")&"","'","''")
Info = replace(request.form("Info")&"","'","''")
if id&""="" or id&""="0" then
	msg = "添加"
	strsql = "insert into marquee (Title,Content,AddDateTime) values('" & Title & "','" & Info & "','" & now & "')"
else
	msg = "修改"
	strsql = "update marquee set Title='" & Title & "',Content='" & Info & "' where id=" & id
end if
conn.execute strsql
CloseConnection()
if id&""="" or id&""="0" then
Response.Write "<script language='javascript'>alert('" & msg & "成功！');if(confirm('你还要添加吗？'))window.location.href='addmarquee.asp';else window.location.href='marquee.asp';</script>"
else
Response.Write "<script language='javascript'>alert('" & msg & "成功！');window.location.href='marquee.asp';</script>"
end if
%>