yns_right.asp
上传用户:yjkj1008
上传日期:2020-10-17
资源大小:1496k
文件大小:2k
源码类别:

电子政务应用

开发平台:

HTML/CSS

  1. <%@LANGUAGE="VBSCRIPT"%>
  2. <%
  3. ' *** Restrict Access To Page: Grant or deny access to this page
  4. MM_authorizedUsers="1,2,3"
  5. MM_authFailedURL="default.asp"
  6. MM_grantAccess=false
  7. If Session("MM_Username") <> "" Then
  8.   If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
  9.          (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
  10.     MM_grantAccess = true
  11.   End If
  12. End If
  13. If Not MM_grantAccess Then
  14.   MM_qsChar = "?"
  15.   If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
  16.   MM_referrer = Request.ServerVariables("URL")
  17.   if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
  18.   MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
  19.   Response.Redirect(MM_authFailedURL)
  20. End If
  21. %>
  22. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  23. <html>
  24. <head>
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  26. <link href="style/css.css" rel="stylesheet" type="text/css">
  27. </head>
  28. <body>
  29. <p><font color="#990000"><%= Session("MM_Username") %></font>你好, 
  30.   <% If Session("MM_UserAuthorization")="3" Then %>
  31.   你是管理员 
  32.   <% End If %>
  33.   <% If Session("MM_UserAuthorization")="2" Then %>
  34.   你是审核员 
  35.   <% End If %>
  36.   <% If Session("MM_UserAuthorization")="1" Then %>
  37.   你是录入员 
  38.   <% End If %> 欢迎使用<strong>武宁网</strong>后台管理系统!<br>
  39.   你现在的等级是<font color="#990000"> <%= Session("MM_UserAuthorization") %> </font>你可以进行的操作是: 
  40.   <font color="#990000"> 
  41.   <% If Session("MM_UserAuthorization")="3" Then %>
  42.   所有操作 
  43.   <% End If %>
  44.   <% If Session("MM_UserAuthorization")="2" Then %>
  45.   审核新闻、添加新闻 
  46.   <% End If %>
  47.   <% If Session("MM_UserAuthorization")="1" Then %>
  48.   添加新闻 
  49.   <% End If %>
  50.   
  51. </body>
  52. </html>