<!--#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



action=FormatSQL(SafeRequest("action",0))

  
function array_no(cxstr1,cxstr2,cxstr3)
  

  
if len(cxstr3) > 0 then
  
if not IsNumeric(cxstr3) then
  
array_no = ""
  
Exit Function
  
end if
  
else
  
array_no = ""
  
Exit Function
  
end if
  

  
if isarray(cxstr1) then
  
array_no = ""
  
Exit Function
  
end if
  

  
if cxstr1 = "" or isempty(cxstr1) then
  
array_no = ""
  
Exit Function
  
end if
  

  
ss = split(cxstr1,cxstr2)
  
cxs=cxstr2&ss(0)&cxstr2
  
sss=cxs
  
for m = 0 to ubound(ss)
  
cc = cxstr2&ss(m)&cxstr2
  
if instr(sss,cc)=0 then
  
sss = sss&ss(m)&cxstr2
  
end if
  
next
  
array_no = right(sss,len(sss)-len(cxstr2))
  
array_no = left(array_no,len(array_no)-len(cxstr2))
  
if cxstr3 <> 0 then
  
cx_sp = split(array_no,cxstr2)
  
if cxstr3 > ubound(cx_sp) then
  
array_no = cx_sp(ubound(cx_sp))
  
else
  
array_no = cx_sp(cxstr3)
  
end if
  
end if
 end function 





srtsortsid=request.form("sortsid")
allsortsid=array_no(srtsortsid,",",0)




allcategoryid=array_no(strcategoryid,",",0)


select case action
case "add"

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

case "editall"
currentpage=request.form("currentpage")
selectid=request.form("selectid")
if selectid<>"" then

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

