📄 admin_manager.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%const need_purview=3%>
<!--#include file="../localhost.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="../lockip.asp"-->
<!--#include file="show_error.asp"-->
<!--#include file="../purview.asp"-->
<%
response.expires=0
%>
<SCRIPT language=javascript>
//确认窗口
function ConfirmDel(id)
{
url="show_detail_info.asp?action=del_manager&id="+id
if(confirm("确定要删除该账号吗?删除将不能恢复!所有该教师布置的作业和学生上传的作业将删除!以及相关学生的注册信息。请慎重!?"))
location=url
}
</SCRIPT>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../eric.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body>
<table width="600" border="0" align="center" cellpadding="4" cellspacing="1" id="table_01">
<tr>
<td width="50" class="white_bold_blue">用户名</td>
<td width="50" class="white_bold_blue">姓名:</td>
<td width="90" class="white_bold_blue">班级:</td>
<td width="70" class="white_bold_blue">备注:</td>
<td width="90" class="white_bold_blue">权限:</td>
<td width="90" class="white_bold_blue">操作:</td>
</tr>
<%
dim sql_50
sql_50="select * from eric_manager"
call opendb()
set rs=conn.execute (sql_50)
do while not rs.eof
%>
<tr>
<td width="50"><%=trim(rs("eric_manager"))%></td>
<td width="50"><%=trim(rs("teacher"))%></td>
<td width="90"><%=trim(rs("class_e"))%></td>
<td width="70"><%=trim(rs("remark"))%></td>
<td width="90">
<%
if rs("purview")=2 then
response.write "普通教师"
elseif rs("purview")=3 then
response.write "系统管理员<span class='style1'>* </span> "
end if
%></td>
<td width="200" class="center"><input name="modify" type="button" id="modify" onclick="window.location.href='show_detail_info.asp?action=update_manager&id=<%=rs("id")%>'" value="修改">
<input type="button" name="is_lock" value="<%dim act
if rs("is_lock")=false then
act="锁定"
else
act="解锁"
end if
response.write act
%>" onclick="window.location.href='show_detail_info.asp?action=lock_manager&id=<%=rs("id")%>&is_lock=<%=act%>'">
<input name="del" type="submit" id="del" value="删除" onclick="return ConfirmDel(<%=rs("id")%>)"></td>
</tr>
<%
rs.movenext
loop
call closers()
call closedb()
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -