<!--#include file="../here99login/0.asp"-->
<!--#include file="../conn/zkconn.asp"-->
 <%
if request("jg")="" or request("rmb")="" then
Response.Write("<script>alert(""产品价格或售价不能为空！"");history.back();</script>")
response.end
end if 
page=request("page")
cpid=request("cpid")
bh=request("bh")
mc=request("mc")
jg=request("jg")
rmb=request("rmb")
js=request("js")
if request("st")<>"" then
st=request("st")
else
st="image/no.gif"
end if
tp=request("tp")
cj=request("cj")
cjurl=request("cjurl")
lbid=request("lbid")
xlbid=request("xlbid")
rq=request("rq")
sl=request("sl")
if request("cang")="" then
   cang="false"
else
cang=request("cang")
end if
v1=request("v1")
v2=request("v2")
v3=request("v3")
v4=request("v4")
v5=request("v5")

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from chanpin where cpid="&cpid
rs.open sql,conn,1,3

rs("bh")=bh
rs("mc")=mc
rs("jg")=jg
rs("rmb")=rmb
rs("js")=js
rs("st")=st
rs("tp")=tp
rs("cj")=cj
rs("cjurl")=cjurl
rs("lbid")=lbid
rs("xlbid")=xlbid
rs("sl")=sl
rs("rq")=rq
rs("cang")=cang
rs("v1")=v1
rs("v2")=v2
rs("v3")=v3
rs("v4")=v4
rs("v5")=v5
rs.update
rs.close
set rs=nothing
Response.write "<script>alert(""修改成功"");location.href=""guanli.asp?page="&page&""";</script>"
%>