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

infocontent = trim(request("infocontent"))
'infocontent = display2(dealinput(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

classid=Request("id")
pageno=trim(Request("pageno"))
findcontent=trim(request("findcontent"))


%><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 = "update t_InfoDetail set InfoTitle = '" & InfoTitle & "',InfoContent = '" & InfoContent & "',InfoClassName = "

sql = sql & InfoClassName & ",IsFocus=" & IsFocus & ",createdatetime='" & createdatetime & "'"

sql = sql & " where Infoid =" & classid


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


%>
<br>------------------------<font color=red>新闻修改成功!</font><br>
<script language="javascript">
	window.location.href="Infoman.asp?pageno=<% =pageno%>&findcontent=<%=findcontent%>"
	window.parent.frames(0).location.reload();
</script>
</BODY>
</HTML>