📄 manager.asp
字号:
<!--#include file="session.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel=STYLESHEET type=text/css>
</head>
<body>
<%
'=======================================
'88red科技独立开发完成本程序,并提供免费技术支持与升级服务
'官方网站 http://www.88red.com QQ:8375158 TEL:13964489818
'对于商业客户,本站提供细致周到的各项售后服务;对于盗版客户恕不提供,对于散播本程序者本站将追究其法律责任
'88red科技将陆续开发其他各种先进程序,例如企业网站建站系统等等,对老客户购买其他程序给予最大程度的优惠,欢迎洽谈
'=======================================
if request("action")="del" then
conn.execute"delete from admin where admid="&request("id")
response.redirect"manager.asp"
end if
%>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainmiddle">
<tr>
<td width="29" height="32"> <div align="left">
<p class="maindaohang"> </p>
</div></td>
<td width="709"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table>
<b><font color="#000000"><b> <span class="bigNavi">管理员列表</span> </b></font></b></td>
<td width="8" class="mainrights"></td>
</tr>
</table>
<br>
<form name="formadd" method="post" action="addmanager.asp">
<table width="87%" height="22" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
<tr class="tabbgcolorli">
<td width="13%"><div align="center">管理员</div></td>
<td width="24%"><div align="center">
<input name="manager" type="text" class="border" size="15">
</div></td>
<td width="10%"><div align="center">密码</div></td>
<td width="25%"><div align="center">
<input name="pass" type="password" class="border" size="15">
</div></td>
<td width="17%"><div align="center"><select name="qx" size="1">
<option value="1">超级管理员</option>
<option value="2">中等管理员</option>
<option value="3">一般管理员</option>
</select></div></td>
<td width="11%"><div align="center">
<input name="submit" type="submit" class="border" value="添加">
</div></td>
</tr>
</table>
</form>
<table width="95%" height="22" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
<tr class="tabbgcolorli">
<td width="10%"><div align="center">管理员</div></td>
<td width="20%"><div align="center">密码</div></td>
<td width="20%"><div align="center">级别</div></td>
<td width="15%"><div align="center">操作</div></td>
</tr>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from admin order by admid desc"
rs.open sql,conn,1,1
if rs.eof then
response.write "<br><br><div align=center>暂且没有管理员</div>"
response.end
else
i=0
do while not rs.eof
i=i+1
%>
<tr class="tabbgcolorli">
<td width="10%"><div align="center"><%=rs("admname")%></div></td>
<td width="20%"><div align="center"><%=rs("admpass")%></div></td>
<td width="20%"><div align="center"><% if rs("quanxian")="1" then%>超级管理员<%end if%><% if rs("quanxian")="2" then%>中等管理员<%end if%><% if rs("quanxian")="3" then%>一般管理员<%end if%></div></td>
<td width="15%"><div align="center"><a href="manager.asp?action=del&id=<%=int(rs("admid"))%>">删除</a></div></td>
</tr>
<%rs.movenext
loop
rs.close
set rs=nothing
end if
%>
</table>
<div align="center"><br>
管理员密码采用了md5加密安全方式 </div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -