<!--#include file="../conn.asp" -->
<!--#include file="seeion.asp" -->
<% 
id=request("id")
title=request.form("title")
url=request.form("url")
body=request.form("body")
color=request.form("color")
ssfl=request.form("ssfl")
ly=request.form("ly")
zz=request.form("zz")
img=request.form("img")
tuijian=request.form("tuijian")

SQL="Select * from news where id="&id
set rs=server.createobject("adodb.recordset")
rs.open SQL,conn,1,3
if rs.eof and rs.bof then
Response.Write "<script>alert('参数不正确，ID值不存在！');history.go(-1);</script>" 
Response.End()
end if
rs("title")=title
rs("url")=url
rs("body")=body
rs("color")=color
rs("ssfl")=ssfl
rs("ly")=ly
rs("zz")=zz
rs("img")=img
rs("tuijian")=tuijian
rs.update 
rs.close 
response.write "<script>alert('恭喜你，新闻页面内容修改成功！');window.location.href='manage_news.asp';</script>" 

%> 
