<!--#include file="conn.asp"-->
<%
if session("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');location.href='index.asp' ;</script>"
response.End
else
if request.cookies("sundxshop")("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');location.href='index.asp' ;</script>"
response.End
end if
end if
%>
<%
if session("rank")>2 then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('你无权添加修改商品信息！');history.go(-1);</script>"
response.End
end if

dim action,id,selectm,selectkey,selectid
id=SafeRequest("id",1)
action=FormatSQL(SafeRequest("action",0))
selectid=request.form("selectid")
select case action

case "editall"

if selectid<>"" then



end if
conn.close
set conn=nothing
response.Write "<script language='javascript'>alert('你好，只要正版用户才能使用该功能！');history.go(-1);</script>"
response.End

case "del"


if selectid<>"" then

conn.execute "delete from product where id in ("&selectid&")"
response.Redirect "admin_allpro.asp"
response.End
end if
end select
%>
