www.gusucode.com > 528人才招聘网整站源代码-蓝色经典 精简版 2.0源码程序 > admin/updata_notice.asp

    <!--#include file="conn.asp"-->
<%
if session("login")<>"yes" then
response.write "<script language=JavaScript>" & chr(13) & "alert('您还未登陆或者超时,请重登陆!');"&"window.location.href = '../'"&" </script>"
response.end
end if
if request("cht")="0" then
sql="update notice set notice='"&request("notice")&"' where id=1"
else
sql="update notice set notice='"&request("notice")&"',chtime='"&now()&"' where id=1"
end if
rs.open sql,conn,1,1
set rs=nothing
set conn=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('修改成功!');"&"window.location.href = 'admin_up_notice.asp'"&" </script>"
%>