📄 checkadmin.asp
字号:
<!-- #include file="const.asp" -->
<%
'********************************************
'目的: 检查当前用户是否为管理员级别
'开始时间: 2005-6-2
'最后修改时间: 2005-6-2
'编写人: 某某某
'********************************************
'简单检查用户是否登陆成功
if(Session("userID") = "" or Session("userType") <> "teacher") then
Alert("对不起,您的登陆信息有误或者超时,请登陆后进入系统!")
Go("../index.htm")
Response.end
end if
'限定只有级别为管理员的才能进入系统
if(Session("userFlag") <> "管理员") then
Alert("对不起,本页面只对管理员开放!")
GoBack()
Response.end
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -