<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file ="../connadmin.asp"-->
<!--#include file = "tuzh_pri.asp"-->
<% 
id=request("id")
sql="select * from star where id="&id 
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
name=request.form("name")
Professional=request.form("Professional")
age=request.form("age")
sex=request.form("sex")
photo=request.form("photo")
content=request.form("content")
Recommended=request.form("Recommended")
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("Professional")=Professional
rs("age")=age
rs("sex")=sex
rs("photo")=photo
rs("content")=content
rs("Recommended")=Recommended
rs.update 
rs.close 
response.Write("<script language=""javascript"">alert(""修改成功！"");window.location.href='pic_manage.asp';</script>")
%>
