📄 admin_modiuser.asp
字号:
<!--#include file="conn.asp" -->
<!--#include file="admin_check.asp" -->
<%
call manager(session("grade"),session("adminname"),3)
id =trim(request("id"))
adminname=trim(request.form("adminname"))
adminpass=trim(request.form("adminpass"))
grade=trim(request.form("grade"))
if id<>"" and adminname<>"" and adminpass<>"" and grade<>"" then
conn.execute"update admin set 管理员名='"&adminname&"',密码='"&adminpass&"',级别="&grade&" where 编号="&id
response.Write "<br><font color=red>管理员修改成功!</font>"
response.write ref("admin_manage.asp",2)
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后台管理 - 修改密码</title>
<link href="admin.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="760" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td width="160" valign="top">
<!--#include file="admin_left.asp" -->
</td>
<td width="600" valign="top">
<table width="553" border="0" cellspacing="0" cellpadding="1">
<tr>
<td height="91" width="551">
<font color="#FF0000">请注意,此操作不可逆!</font><span class="fontline1"><br>
级别暂时没有启用,请选择默认3 </span>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from admin where 编号="&id,conn,1,1
if rs.eof or rs.bof then
response.write "没有该管理员!"
response.write ref("admin_manage.asp",3)
end if
%>
<form name="adminform" method="post" action="admin_modiuser.asp?id=<%=id%>">
<font color="#FF0000">修改</font>|用户名
<input name="adminname" type="text" id="adminname" value="<%=RS("管理员名")%>" size="10" maxlength="12">
密码
<input name="adminpass" type="password" id="adminpass" value="<%=RS("密码")%>" size="10" maxlength="20">
类
<select name="grade" id="grade">
<option value=1 <%if rs("级别")="1" then response.write"selected"%>>1</option>
<option value=2 <%if rs("级别")="2" then response.write"selected"%>>2</option>
<option value=3 <%if rs("级别")="3" then response.write"selected"%>>3</option>
<option value=4 <%if rs("级别")="4" then response.write"selected"%>>4</option>
</select>
<input type="submit" name="bu" value="提交">
<input type="button" name="aaa" value="取消" onClick="javascript:history.back()">
</form>
<%
rs.close:set rs=nothing
conn.close:set conn=nothing
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -