📄 usermod.asp
字号:
<!--#include file="../include/bkconn.asp"-->
<!--#include file="checkUser.asp"-->
<%
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="select * from users where id="&Request("id")
'response.write sql
'response.End
rs.open sql,conn,1,1
if not (rs.eof or err) then
%>
<html>
<head>
<title>管理员管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../main.css" type="text/css">
<script language=Javascript>
<!--
function deleteMe(){
if (confirm("确定删除?可是恢复不了的啊。")==1){
window.location="saveUserDel.asp?id=<%=Request("id")%>";
}
}
//-->
</script>
</head>
<body bgcolor="#9CC7EF" text="#000000">
<br>
<br>
<br>
<br>
<form method="post" action="saveUserMod.asp" name="form1">
<table width="98%" border="1" bordercolordark=#9CC7EF bordercolorlight=#145AA0 cellspacing="0" cellpadding="4" align="center">
<tbody>
<tr>
<td colspan=2 height="18" bgcolor="#4296E7"> <p align="center"><font color="#ffffff">管理员管理</font></p></td>
</tr>
<tr>
<td width=84 align="right" height="25"> <div align="right">管理用户帐号:</div></td>
<td width="361" height="25"> <input type="text" name="userID" size="20" value="<%=rs("userID")%>" readOnly>
<input type="hidden" name="id" value="<%=Request("id")%>"> </td>
</tr>
<tr>
<td width=84 align="right" height="25" > <div align="right">管理用户姓名:</div></td>
<td width="361" height="25"> <input type="text" name="name" size="20" value="<%=rs("name")%>">
</td>
</tr>
<tr>
<td align="right" height="26" ><div align="left">用户权限:</div></td>
<td height="26"><select name="right" >
<%if rs("right")=0 then%>
<option value="0" selected>操作员</option>
<option value="1" >管理员</option>
<%else%>
<option value="0" >操作员</option>
<option value="1" selected >管理员</option>
<%end if%>
</select></td>
</tr>
<tr>
<td width=84 align="right" height="26" > <div align="right">管理用户密码:</div></td>
<td width="361" height="26"> <input type="checkbox" name="modifyPassword" value="1">
<font color="#FF0000">修改密码</font> <input type="password" name="password1" size="12">
<input type="password" name="password2" size="12"> </td>
</tr>
<tr>
<td colspan="2" align="right" height="26" nowrap bgcolor="#4296E7"> <div align="center">
<input type="button" name="Submit" value="删除" onClick="deleteMe()">
<input type="submit" name="Submit2" value="修改">
<input type="button" name="Submit3" value="返回" onClick="window.location='<%=session("adminOldUrl")%>'">
</div></td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
<%end if %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -