?? usermod.asp
字號(hào):
<!--#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("確定刪除?可是恢復(fù)不了的啊。")==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">管理用戶帳號(hào):</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">用戶權(quán)限:</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 %>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -