<!-- #include file="include/adovbs.inc" -->
<!-- #include file="include/dataconn.asp" -->
<!-- #include file="include/checksession.asp" -->
<!--#include file="func.asp" -->
<%
infotitle = DealInput(trim(request("infotitle")))
infocontent = display2(trim(request("infocontent")))

infoclassname = trim(request("infoclassname"))
IsFocus = trim(request("IsFocus"))

createdatetime=trim(request("createdatetime"))
if isnull(IsFocus) or IsFocus="" then
	IsFocus=0
end if


%><HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<link rel="stylesheet" href="../include/e1.css" type="text/css">
</HEAD>
<BODY>
-------------------------添加新闻中...............<br>
<%

set rs=server.CreateObject("adodb.recordset")

sql = "insert into t_InfoDetail(infotitle,infocontent,infoclassname,IsFocus,createdatetime) values("
sql = sql &"'" &  infotitle & "','" & infocontent & "'," & infoclassname & "," & IsFocus & ",'" & createdatetime & "'"
sql = sql & ")"

'Response.Write sql 
'Response.End 
rs.Open sql,conn


%>
<br>------------------------<font color=red>新闻增加成功!</font><br>
<script language="javascript">
	window.location.href="infoman.asp"
	window.parent.frames(0).location.reload();
</script>
</BODY>
</HTML>