📄 admin_dj.asp
字号:
<!--#include file="md5.asp" -->
<!--#include file="conn.asp" -->
<!--#include file="sub.asp" -->
<head>
<link href="css.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%></title>
</head>
<%
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
if session("user")="" and session("zdqx")<>"alladmin" then
response.write"<script language=javascript>alert('你不能执行该操作,可能原因\n\n1、不是管理员\n\n2、你还没有登陆\n\n3、或者登陆超时\n\n4、没有该操作权限');location.href='index.asp' </script>"
response.End()
end if
if request.QueryString("act")="edit" then
if request.Form("dj")="no" then
mgbox"请选者用户的等级"
response.End()
end if
set rsu=server.createobject("adodb.recordset")
rsu.open "select * from zdu where u_name='"&request.Form("username")&"'",conn,1,3
if rsu.recordcount=0 then
mgbox"对不起,你输入的用户名不存在"
response.End()
else
rsu("u_qx")=request.Form("dj")
rsu.update
rsu.close
response.write"<script language=javascript>alert('操作成功');location.href='admin_dj.asp' </script>"
response.End()
end if
end if
%>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" >
<tr bordercolor="#0099CC" bgcolor="#0099CC">
<td colspan="3" align="center" class="dhzi" >用户等级修改</td>
</tr>
<form action="admin_dj.asp?act=edit" method="post">
<tr bordercolor="#0099CC" bgcolor="#0099CC">
<td width="32%" align="center" bgcolor="#FFFFFF" class="biaogebiankuang" >用户名:
<input name="username" type="text" id="username"></td>
<td width="34%" align="center" bgcolor="#FFFFFF" class="biaogebiankuang" >等级:
<select name="dj" id="dj">
<option value="no">请选者用户等级</option>
<option value="user">会员</option>
<option value="admin">管理员</option>
<option value="alladmin">超级管理员</option>
</select></td>
<td width="34%" align="center" bgcolor="#FFFFFF" class="biaogebiankuang" >
<input name="Submit23" type="submit" class="biaogebiankuang" style="BACKGROUND-COLOR: #2071a0; BORDER-BOTTOM: 1px double; BORDER-LEFT: 1px double; BORDER-RIGHT: 1px double; BORDER-TOP: 1px double; COLOR: #eeeeee; TEXT-ALIGN: center" onMouseOver="this.style.color='#ffff00'"onMouseOut="this.style.color='#eeeeee'" value="修 改" /></td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -