<%if request.cookies("bjx")("shjianame")="" then
response.Redirect "admin_login.asp"
response.End
end if
%>
<!--#include file="conn.asp"-->
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shjia where username='"&request.cookies("bjx")("shjianame")&"' ",conn,1,1
id=rs("shjiaid")
%>
<%dim action,id
id=request.QueryString("id")
action=request.querystring("action")
select case action
case "del"
conn.execute ("delete from shop_books where bookid="&id)
response.Write "<script language=javascript>alert('缺货商品删除成功！');window.location.href='quebook.asp?ID="&rs("shjiaID")&"';</script>"
end select
%>
<%Rs.close%>