|
| |
|
|
rubyaim
Posts: 757 Joined: 6/22/2005 Status: offline
|
Access Level Navigation - turn off links? - 11/9/2006 21:15:43
Hi, I am redoing the navigation on an application and am using Access Levels (Spooky) to show links available to the different levels. I'd like to show all links but have them greyed out (not clickable) if a user does not have the appropriate Access Level - I don't mind them seeing all areas available. Any ideas on how to do this dynamically? This is what I have so far, the navigation is in an include file. <% ON ERROR RESUME NEXT If Session("UserName")&"" = "" Then Response.redirect "/login.asp?Redirect=" &Request.Servervariables("URL") End if If cint(Session("AccessLevel")) > 4 Then Response.redirect "/login.asp?Redirect=" &Request.Servervariables("URL") End if %> <body> <ul id="topmenu"> <% If Session("Accesslevel") <= "2" then %> <li class="main" style="border-left-width: 1px"> <div class="headers"> <div class="exp"><a href="data-entry.asp">Data Entry</a> </div> </div> <ul class="subs" style="width: 16em"> <li> <a href="test1.asp">Data Entry 1</a></li> <li> <a href="test2.asp"> Data Entry 2</a></li> </ul> </li> <% else %> <li class="main" style="border-left-width: 1px"> <div class="headers"> <span class="gry">Data Entry</span> </div> <% end if %> and so on. There are around 50 pages to call into the navigation so I was wondering if there was a way of just turning the links on or off depending on the Access Level?
_____________________________
Sally
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|