<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx1<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<%dim action,id
id=request.QueryString("id")
action=request.querystring("action")
select case action
'//添加新数据
case "add" 
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gouwuliucheng",conn,1,3
rs.AddNew
rs("qbj1")=int(request("qbj1"))
rs("zengpin1")=trim(request("zengpin1"))
rs("qbj2")=int(request("qbj2"))
rs("zengpin2")=trim(request("zengpin2"))
rs("qbj3")=int(request("qbj3"))
rs("zengpin3")=trim(request("zengpin3"))
rs("qbj4")=int(request("qbj4"))
rs("zengpin4")=trim(request("zengpin4"))
rs.Update
rs.Close
set rs=nothing
response.Redirect "zengpin_manage.asp"
'//修改数据
case "edit"
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gouwuliucheng where gouwuliuchengid="&id,conn,1,3
rs("qbj1")=int(request("qbj1"))
rs("zengpin1")=trim(request("zengpin1"))
rs("qbj2")=int(request("qbj2"))
rs("zengpin2")=trim(request("zengpin2"))
rs("qbj3")=int(request("qbj3"))
rs("zengpin3")=trim(request("zengpin3"))
rs("qbj4")=int(request("qbj4"))
rs("zengpin4")=trim(request("zengpin4"))
rs.Update
rs.Close
set rs=nothing
response.Redirect "zengpin_manage.asp"
'//删除数据
'case "del"
'conn.execute ("delete from shop_gouwuliucheng where gouwuliuchengid="&id)
'conn.execute ("delete from shop_nclass where gouwuliuchengid="&id)
'conn.execute ("delete from wygkcn_shop where gouwuliuchengid="&id)
'response.Redirect "zengpin_manage.asp"
end select
%>