chguser.asp
来自「这个程序可以上传一个文件到指定的数据库。这个数据库可以是SQl」· ASP 代码 · 共 34 行
ASP
34 行
<%@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 + =
减小字号Ctrl + -
显示快捷键?