?? 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("確定要刪除該賬號嗎?刪除將不能恢復!所有該教師布置的作業(yè)和學生上傳的作業(yè)將刪除!以及相關學生的注冊信息。請慎重!?"))
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">權(quán)限:</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 "系統(tǒng)管理員<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 + -