📄 delczy.asp
字号:
<!--#include file="../conn/conn.asp"-->
<%'判断权限
set rs=server.createobject("adodb.recordset")
sql="select * from userlist where name='"&session("name")&"' and quan='a'"
rs.open sql,conn,1,3
if rs.eof then%>
<script language="javascript">
alert("对不起!您没有这个权限")
history.back(1)
</script>
<%response.end()
end if
rs.close()
set rs=nothing
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from userlist order by quan"
rs.open sql,conn,1,3
if rs.eof then%>
<script language="javascript">
alert("暂无操作员信息!");
parent.location.href="login.asp";
</script>
<%
response.End()
else%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>删除操作员</title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" height="292" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="27" valign="top"> </td>
</tr>
<tr>
<td height="140" valign="top">
<table width="80%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#9CA6C6" bordercolordark="#CCE3FF">
<tr bgcolor="#FF9933">
<td height="18" colspan="3" nowrap class="word_white"> 当前位置:系统设置> 删除操作员 >>></td>
</tr>
<tr bgcolor="#CCE3FF">
<td width="38%" height="20" align="center" class="word_yellow">操作员姓名</td>
<td width="38%" align="center" class="word_yellow">操作员权限</td>
<td width="24%" align="center" class="word_yellow">删除</td>
</tr>
<% for i=1 to rs.recordcount%>
<tr bgcolor="#CCE3FF">
<td align="center"><%=rs("name")%></td>
<%
if rs("quan")="a" then quan="系统管理员"
if rs("quan")="c" then quan="普通管理员"
%>
<td align="center"><%=quan%></td>
<td align="center"><a href="delczy_deal.asp?id=<%=rs("id")%>"><img src="../images/del.gif" width="22" height="22" border="0"></a></td>
</tr>
<%rs.movenext
next
%>
</table>
</tr>
</table>
<!--#include file="../Bottom.asp"-->
</body>
</html>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -