📄 admin_adminmodify.asp
字号:
<!--#include file=../conn/conn1.asp --><!--#include file="char.inc"-->
<% if request.cookies("okadmin")="" and request.cookies("rank")="" then
response.redirect "login.asp"
end if %>
<%
id=request.QueryString("id")
set rs=server.createobject("adodb.recordset")
sql="select * from admin where id="&id
rs.open sql,conn,1,1
if rs.eof then
response.write"<SCRIPT language=JavaScript>alert('服务器出错,请联系管理员!');"
response.write"javascript:history.go(-1)</SCRIPT>"
else
username=rs("username")
password=rs("password")
rank=rs("rank")
%>
<META http-equiv=Content-Type content=text/html; charset=gb2312>
<link href="../images/realty.css" rel="stylesheet" type="text/css">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<form method="POST" action="admin_adminSave.asp?id=<%=id%>">
<tr bgcolor="#99CC00">
<td width="100%" height="24" colspan=2 align=center><b>修 改 管 理 员 资 料</b></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="30%" height="22" align="right">用户名:</td>
<td width="70%">
<input type="text" name="username" value="<%=username%>" size="20"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="30%" height="22" align="right">密码:</td>
<td width="70%">
<input type="password" name="password" value="<%=password%>" size="20"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="30%" height="22" align="right">权限:</td>
<td width="70%" height="22">
<select name="aleave" style="font-size:9pt">
<option value=super<%if rank="3" then%> selected<%end if%>>超级管理员</option>
</select>
</td>
</tr>
<tr align="center" bgcolor="#FFFFFF" height="24">
<td height="30" colspan=2>
<input type="hidden" value="edit" name="act">
<input name="cmdok" type="submit" id="cmdok" value=" 修 改 ">
<input name="cmdcance" type="reset" id="cmdcance" value=" 清 除 ">
</td>
</tr>
</form>
</table>
</body>
</html>
<%
end if
rs.close
set rs=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -