<!--#include file="0.asp"--><!--#include file="../../conn/zkconn.asp" -->
<%
lbid=request("lbid")
xlbid=request("xlbid")
slb=request("slb")
mc=request("mc")
js=request("js")
jp=request("jp")
cang=request("cang")
jg1=request("jg1")
jg2=request("jg2")
jg3=request("jg3")
xt=request("xt")
zt=request("zt")
dt=request("dt")
cj=request("cj")
userlb=request("userlb")
If request("jg1")="" then
	jg1=request("jg2")
end if
If request("xt")="" then
	xt="xt.gif"
end if
If request("zt")="" then
	zt="zt.gif"
end if
set rs = conn.execute("select id from user_name where name='"&session("www.loogoo.com")&"'")
userid=rs("id")
rs.close
set rs = conn.execute("select userid from chanpin where id="&Request("id")&"")
userid2=rs("userid")
rs.close
if userid=userid2 then
set rs=server.createobject("adodb.recordset")
sql="select * from chanpin where id="&request("id")&"" 
rs.open sql,conn,1,3
rs("lbid")=lbid
rs("xlbid")=xlbid
rs("slb")=slb
rs("userlb")=userlb
rs("mc")=mc
rs("jg1")=jg1
rs("jg2")=jg2
rs("jg3")=jg3
rs("jp")=jp
rs("js")=js
rs("xt")=xt
rs("zt")=zt
rs("dt")=dt
rs("cj")=cj
rs("cang")=cang
rs.update
rs.close
set rs=nothing
Response.Write "<script>alert(""修改产品成功"");location.href=""guanli.asp?page="&request("page")&"&keywords="&request("keywords")&""";</script>"
else
Response.Write("对不起，您不能删除该条产品信息。如有疑问请与网站管理员联系。")
end if
%>
