📄 chguser.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="identify.asp"-->
<!--#include file="../conn.asp"-->
<% se_indentify(se_super)%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>改变用户属性</title>
</head>
<body>
<%
Set cmdobj=Server.CreateObject("ADODB.Command")
set cmdobj.ActiveConnection=conn
usrnum=request("usrnum")
for i=1 to usrnum
usertype=0
for j= 1 to 8
usertype=usertype+request("utype"&i&j)
next
response.Write(request("utype18")&"+")
if clng(request("usr_id"&i))=clng(session("id")) and usertype<16384 then
response.Write(usertype&"你不可以取消自己的超级管理员权限!<br/><a href='"&request("back")&"'>点此返回</a>")
response.End()
else
cmdobj.commandtext="update tbl_user SET usertype='"&usertype&"' where id='"&request("usr_id"&i)&"'"
cmdobj.execute
end if
next
set cmdobj=Nothing
Response.Redirect(request("back"))
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -