<!--#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")>1 then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('你无权转移商品分类！');history.go(-1);</script>"
response.End
end if
%>
<%dim sortsid,categoryid
sortsid=int(request.form("sortsid"))
categoryid=int(request.form("categoryid"))
set rs=server.CreateObject("adodb.recordset")
rs.open "select sortsid,categoryid from sorts where sortsid="&sortsid ,conn,1,3
rs("categoryid")=categoryid
rs.Update
rs.Close
set rs=nothing
response.Write "<script language='javascript'>alert('转移成功！');history.go(-1);</script>"
%>
