<!--#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 qx3<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<%dim nclassid,anclassid,xclassid
xclassid=int(request("xclassid"))
nclassid=int(request("nclassid"))
anclassid=int(request("anclassid"))

set rs=server.CreateObject("adodb.recordset")
rs.open "select nclassid,anclassid from shop_nclass where nclassid="&nclassid ,conn,1,3
rs("anclassid")=anclassid
rs.Update
rs.Close
set rs=nothing
conn.execute("update [shop_xclass] set anclassid='"&anclassid&"',nclassid='"&nclassid&"' where id="&xclassid&"")

conn.execute("update [wygkcn_shop] set anclassid='"&anclassid&"',nclassid='"&nclassid&"' where xclassid="&xclassid&"")

response.Write "<script language='javascript'>alert('转移成功！');history.go(-1);</script>"
%>