home *** CD-ROM | disk | FTP | other *** search
Wrap
<%@ LANGUAGE="VBSCRIPT" %> <% On error resume next response.expires = 0 if Session("IsValid") <> "TRUE" then Session("username") = Request.Form("username") if UCase(Session("username")) = UCase("Mark Ellison") then 'accesslevel 1 is management Session("accesslevel") = 1 elseif UCase(Session("username")) = UCase("Andrew Fuller") then Session("accesslevel") = 1 elseif UCase(Session("username")) = UCase("Vlad Chlumsky") then 'accesslevel 3 is warehouse Session("accesslevel") = 3 elseif UCase(Session("username")) = UCase("Anne Dodsworth") then 'accesslevel 2 is sales Session("accesslevel") = 2 elseif UCase(Session("username")) = UCase("Murray Peacock") then Session("accesslevel") = 2 elseif UCase(Session("username")) = UCase("Caroline Patterson") then 'accesslevel 4 is employee Session("accesslevel") = 4 elseif UCase(Session("username")) = UCase("Laurie Periera") then 'accesslevel 4 is employee Session("accesslevel") = 1 else Response.Redirect("logon.asp") end if Session.timeout = 30 Session("page") = Request.Form("page") Session("IsValid") = "TRUE" else Session("page") = Request.QueryString("page") end if %><html> <head> <meta http-equiv="Content-Type" content="text/html; iso-8859-1"> <title>Xtreme Mountain Bikes Inc.</title> <meta name="FORMATTER" content="Microsoft FrontPage 2.0"> </head> <frameset rows="30,*" frameborder="0" framespacing="0" border="no"> <frame src="navbar.asp?page=<%response.write(Session("page"))%>" name="navigation" marginwidth="2" marginheight="1" scrolling="no"> <frame src="<%response.write(Session("page"))%>.asp" name="content" marginwidth="1" marginheight="1"> <noframes> <body> <p><!--webbot bot="PurpleText" preview="The frameset on this page can be edited with the FrontPage Frames Wizard; use the Open or Open With option from the FrontPage Explorer's edit menu. This page must be saved to a web before you can edit it with the Frames Wizard. Browsers that don't support frames will display the contents of this page, without these instructions. Use the Frames Wizard to specify an alternate page for browsers without frames." s-viewable=" " --> </p> <p>This web page uses frames, but your browser doesn't support them.</p> </body> </noframes> </frameset> </html>