<%On Error Resume Next%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<link href="css.css" rel="stylesheet" type="text/css">
<!--#include file="conn.asp"-->
<!--#include file="chk_logs.asp"-->
<%

set rs=server.createobject("adodb.recordset")
cpmc=trim(request.Form("cpmc"))
cpbh=trim(request.Form("cpbh"))
jg=trim(request.Form("jg"))
bz=trim(request.Form("bz"))
content=trim(request.Form("content"))
xtp=trim(request.Form("xtp"))
dtp=trim(request.Form("dtp"))
lb=request("lb")


sql="select * from product"
rs.open sql,conn,1,2
rs.addnew
if cpbh<>"" then rs("cpbh")=cpbh
if cpmc<>"" then rs("cpmc")=cpmc
if jg<>"" then rs("jg")=jg
if bz<>"" then rs("bz")=bz
if content<>"" then rs("content")=content
if cpjg<>"" then rs("cpjg")=cpjg
if dtp<>"" then rs("dtp")=dtp
if xtp<>"" then rs("xtp")=xtp
if lb<>"" then rs("lb")=lb
rs.update
id=rs("id")
if rs("xtp")<>"" then
response.Redirect "chicun.asp"&"?id="&id&"&lb="&lb
else
response.Redirect "product.asp?lb="&lb
end if
rs.close
%>