<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file ="../connadmin.asp"-->
<!--#include file = "tuzh_pri.asp"-->
<% 
id=request("id")
sql="select * from down where id="&id 
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
name=request.form("name")
size=request.form("size")
roof=request.form("roof")
commend=request.form("commend")
down_class=request.form("down_class")
url=request.form("url")
content=request.form("txtcontent")
down_url=request.form("MaxPic")
ReadGrade=request.form("ReadGrade")
if name=""  then 
response.Write("<script language=javascript>alert('标题不能为空！');history.go(-1)</script>") 
response.end 
end if
if content="" then 
response.Write("<script language=javascript>alert('详细内容不能为空！');history.go(-1)</script>") 
response.end 
end if
rs("name")=name
rs("size")=size
rs("roof")=roof
rs("commend")=commend
rs("down_class")=down_class
rs("url")=url
rs("content")=content
rs("down_url")=down_url
rs("ReadGrade")=ReadGrade
rs("img")=request.form("BigPic")
rs("Units")=request.form("Units")
rs.update 
rs.close 
response.Write("<script language=""javascript"">alert(""修改成功！"");window.location.href='down_manage.asp';</script>")
%>
