<!--#include file="webconn.asp"-->
<%
Title=server.HTMLEncode(trim(request("d_title")))
Tpic=server.HTMLEncode(trim(request("d_picture")))
Ttime=server.HTMLEncode(trim(request("d_time")))
tid=server.HTMLEncode(trim(request("d_pid")))
Ttop=request("txt_top")
Content=request("d_content")
if Content="" then 
response.write "<script>alert('信息提示：\n\n内容不能为空！');history.go(-1);</Script>"
else
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from product where p_id="& request("id")
rs.open sql,conn,1,3 
rs("p_name")=Title
rs("p_time")=Ttime
rs("p_content")=Content
rs("p_pid")=Tid
rs("p_top")=Ttop
rs("p_type")=request.Form("d_type")
rs("p_pic")=Tpic
rs("p_url")=request.Form("d_url")
rs.update
rs.close
set rs=nothing
response.write "<script language='javascript'>alert('信息提示：\n\n操作成功!');location='main.asp?adminjob=admincp';</script>"
end if
%>