isadmin.asp
来自「招标代码」· ASP 代码 · 共 16 行
ASP
16 行
<%
if Session("Session_Admin")="" then '判断管理员Session值是否存在
response.write "<script language=javascript>"
response.write"alert('你尚未登陆或者发呆时间过长!');"
response.write"location.href='AdminLogin.asp';"
response.write "</script>"
else '如果存在
set ros=conn.execute( "select * from admin where ID="&Session("Session_Admin") ) '提取对应管理员信息
if not ( ros.bof or ros.eof ) then '如果该管理员存在
Admin_Flag=ros("AdminFlag") '将管理员ID和权限标识提取出来
Admin_ID=ros("id")
end if
ros.close
set ros=nothing
end if
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?