📄 admin_user.asp
字号:
<!--#include file="../film_conn.asp"-->
<!--#include file="session.asp"-->
<!--#include file="../set_url.asp"-->
<%
if session("flag")>1 then
response.write "<br><p align=center>您的操作权限不够!</p>"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>管理员</title>
</head>
<%
Set rs=Server.CreateObject("Adodb.RecordSet")
sql="select * from admin_pwd order by id"
rs.Open sql,conn,1,1
%>
<body bgcolor="#F6F6F6" topmargin="1" leftmargin="2">
<div align="center">
<p><font color="#C0C0C0">修改管理员信息</font> | <a href="admin_user_add.asp">增加管理员</a></p>
<table width="95%" border="0" cellspacing="1" cellpadding="4" fpstyle="24,011111100" height="24" style="border-style:solid; border-collapse: collapse; background-color: white">
<tr bgcolor="#145f74">
<td height="9" width="120" style="font-weight: bold; color: maroon; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid gray; background-color: silver">
<div align="center">
用户名</div>
</td>
<td height="9" width="120" style="font-weight: bold; color: maroon; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid gray; background-color: silver">
<div align="center">
密码</div>
</td>
<td height="9" width="90" style="font-weight: bold; color: maroon; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid gray; background-color: silver">
<div align="center">
权限</div>
</td>
<td height="9" width="-5" style="font-weight: bold; color: maroon; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid gray; background-color: silver">
<p align="center">最近登录IP</td>
<td height="9" width="-3" style="font-weight: bold; color: maroon; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid gray; background-color: silver">
<p align="center">最近登录时间</td>
<td height="9" width="130" style="font-weight: bold; color: maroon; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid gray; background-color: silver">
<div align="center">
操作</div>
</td>
</tr>
<%do while not rs.EOF %>
<form method="post" action="admin_user_edit.asp" style="margin:0">
<tr bgcolor="#145f74">
<td height="8" width="120" style="color: black; border-style: none" bgcolor="#F0F0F0" align="center">
<input type="text" name="manager" value="<%=rs("admin_name")%>" size="12">
<input type="hidden" name="id" value="<%=rs("id")%>" size="12"></td>
<td height="8" width="120" style="font-weight: normal; color: black; border-style: none; background-color: #F0F0F0" align="center">
<input name="newpin" value="" size="12" type="password"> </td>
<td height="8" width="90" style="font-weight: normal; color: black; border-style: none; background-color: #F0F0F0" align="center">
<select size="1" name="flag">
<option <%if rs("flag")=3 then%> selected <%end if%> value="3">初级管理员
</option>
<option <%if rs("flag")=2 then%> selected <%end if%> value="2">高级管理员
</option>
<option <%if rs("flag")=1 then%> selected <%end if%> value="1">超级管理员
</option>
<option <%if rs("flag")=4 then%> selected <%end if%> value="4">无管理权限
</option>
</select> </td>
<td height="8" width="-5" style="font-weight: normal; color: black; border-style: none; background-color: #F0F0F0" align="center"><%=rs("ip")%></td>
<td height="8" width="-3" style="font-weight: normal; color: black; border-style: none; background-color: #F0F0F0" align="center"><%=rs("logintime")%></td>
<td height="8" width="130" style="font-weight: normal; color: black; border-style: none; background-color: #F0F0F0" align="center">
<input type="submit" name="Submit" value="修改">
<input type="submit" name="Submit" value="删除">
<input type="hidden" name="oldmanager" value="<%=rs("admin_name")%>">
<input type="hidden" name="oldpin" value="<%=rs("admin_pwd")%>"></td>
</tr>
</form>
<%
rs.MoveNext
loop
%>
</table>
<%
rs.Close
set rs=Nothing
conn.Close
set conn=Nothing
%>
<p> </p>
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="500" id="AutoNumber1">
<tr><td width="100%"> </td></tr></table></center></div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -