<!--#include file=CONN.ASP-->
<!--#include file=cookies.asp-->
<%dim flag
flag=request.cookies("foxwww")("fox")
if flag=10 then
response.Write "<script LANGUAGE='javascript'>alert('您只是后台测试员，请注意身份！');window.location='right.asp';</script>"
response.end
end if%>
<%
	dim sql
	dim rs
	dim biaoti
	dim neirong
	dim zhu
	zhu=request("zhu")
	if request("biaoti")="" then
	response.write "请输入新闻标题!"
	response.end
	else
	biaoti=request("biaoti")
	end if
	if request("neirong")="" then
	response.write "请输入新闻内容!"
	response.end
	else
	neirong=request("neirong")
	end if
	set rs=server.createobject("adodb.recordset")
	sql="select * from [FOX_gonggao]"
	rs.open sql,conn,1,3
	rs.addnew
    rs("biaoti")=biaoti
    rs("neirong")=neirong
    rs("zhu")=zhu
    rs("data")=now()
    rs.update
	rs.close
	conn.close
	set rs=nothing
	set conn=nothing

%>
 <meta http-equiv="Content-Language" content="zh-cn">
 <LINK href="images/fox.css" rel=stylesheet></LINK>
<title>增加公告成功</title>
<style type="text/css">
<!--
body {
	background-color: #CCCC99;
}
.style1 {color: #FF0000}
-->
</style>
<p align="center" class="style1">增加公告成功</p>
</body></html>