 <!--#include file="../head.asp"-->

  <%
userid=request("userid")
aa=request("aa")
vv=replace(aa,",","")
mm=replace(vv," ","")
bb=request("bb")
set rs=server.CreateObject("adodb.recordset")
sql="select * from websen_corporation where id="&userid
rs.open sql,conn,1,3
gradename=rs("Demand")
rs.close
set rss=server.CreateObject("adodb.recordset")
sqls="select * from Websen_vipgrade where gradename='"&gradename&"'"
rss.open sqls,conn,1,1
roleid=rss("roleid")
rss.close
set rsd=server.CreateObject("adodb.recordset")
sqd="select * from websen_corporation where id="&userid
rsd.open sqd,conn,1,3
if roleid <> "" then 
rsd("gradeid")=roleid
rsd("leixing")=0
rsd.update
response.write("<script language='javascript'>alert('³É¹¦Éý¼¶£¡');window.location.href='xianshi.asp?gradename="&mm&"&gradeid="&bb&"'</script>")
else
response.write("<script language='javascript'>alert('´íÎóÉý¼¶£¡');window.location.href='xianshi.asp?gradename="&mm&"&gradeid="&bb&"'</script>")
end if
rsd.close
%>
