yns_right.asp
资源名称:gov_1.0.rar [点击查看]
上传用户:yjkj1008
上传日期:2020-10-17
资源大小:1496k
文件大小:2k
源码类别:
电子政务应用
开发平台:
HTML/CSS
- <%@LANGUAGE="VBSCRIPT"%>
- <%
- ' *** Restrict Access To Page: Grant or deny access to this page
- MM_authorizedUsers="1,2,3"
- MM_authFailedURL="default.asp"
- MM_grantAccess=false
- If Session("MM_Username") <> "" Then
- If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
- (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
- MM_grantAccess = true
- End If
- End If
- If Not MM_grantAccess Then
- MM_qsChar = "?"
- If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
- MM_referrer = Request.ServerVariables("URL")
- if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
- MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
- Response.Redirect(MM_authFailedURL)
- End If
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="style/css.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <p><font color="#990000"><%= Session("MM_Username") %></font>你好,
- <% If Session("MM_UserAuthorization")="3" Then %>
- 你是管理员
- <% End If %>
- <% If Session("MM_UserAuthorization")="2" Then %>
- 你是审核员
- <% End If %>
- <% If Session("MM_UserAuthorization")="1" Then %>
- 你是录入员
- <% End If %> 欢迎使用<strong>武宁网</strong>后台管理系统!<br>
- 你现在的等级是<font color="#990000"> <%= Session("MM_UserAuthorization") %> </font>你可以进行的操作是:
- <font color="#990000">
- <% If Session("MM_UserAuthorization")="3" Then %>
- 所有操作
- <% End If %>
- <% If Session("MM_UserAuthorization")="2" Then %>
- 审核新闻、添加新闻
- <% End If %>
- <% If Session("MM_UserAuthorization")="1" Then %>
- 添加新闻
- <% End If %>
- </body>
- </html>
English
