<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../head.asp"-->



<%
if issession=0 then
 	username=Replace_Text(request.Cookies("Yxmember"))

 	else
 	username=session("user")
 	
end if 


id=request.QueryString("id")
title=Replace_Text(request("title"))
typeid=request("typeid")
tjnews=Replace_Text(request("tjnews"))
content=request("content")
if content="" then
response.write"<SCRIPT language=JavaScript>alert('您没有填写新闻内容，请返回重新填写！');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
if tjnews="" then
tjnews=0
else
tjnews=1
end if
set rs=server.CreateObject ("adodb.recordset")
sql="update yixiang_news set title='"&title&"',content='"&content&"',tjnews='"&tjnews&"',typeid='"&typeid&"', Auditing=0 where newsid="&id
rs.open sql,conn,1,1
conn.execute(sql)
response.write "<br><center><span style='color:red; font-size:14px'>恭喜您，新闻修改成功！<br><br><a onclick='javascript:history.go(-1)'> [返回上一页]<a></span></center>"
conn.close
set conn=nothing
%>