home *** CD-ROM | disk | FTP | other *** search
- <%@ LANGUAGE="VBSCRIPT" %>
-
- <% if Session("username") = "" then
- Response.Redirect("logon.asp")
- end if
-
- ' Netscape Navigator 3.x and lower will not be able to view the ASP source due to a JavaScript problem in the
- ' browser itself
- Set bt = Server.CreateObject("MSWC.BrowserType")
- if bt.browser = "Netscape" and bt.majorver <= "3" then
- customer = "<a href=" & chr(34) & "report.asp?rpt=customer" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
- empsales = "<a href=" & chr(34) & "report.asp?rpt=empsales" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
- invent = "<a href=" & chr(34) & "report.asp?rpt=invent" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
- statemnt = "<a href=" & chr(34) & "report.asp?rpt=statemnt" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
- prodcat = "<a href=" & chr(34) & "report.asp?rpt=prodcat" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
- else
- customer = "<a href=javascript:rock('customer')>"
- empsales = "<a href=javascript:rock('empsales')>"
- invent = "<a href=javascript:rock('invent')>"
- statemnt = "<a href=javascript:rock('statemnt')>"
- prodcat = "<a href=javascript:rock('prodcat')>"
- end if
- %>
-
- <html>
- <head>
- <SCRIPT>
- function rock(report)
- {
- document.open ()
- document.writeln("<body bgcolor=\"#003366\" text=\"#FF8000\" vlink=\"#00ffff\" link=\"#FF8000\">")
- document.writeln("<a href=\"report.asp?rpt=customer\" target=\"main\" ><img src=\"images/profile.gif\" border=0></a><br><br>")
- document.writeln("<a href=\"report.asp?rpt=empsales\" target=\"main\" ><img src=\"images/sales.gif\" border=0></a><br><br>")
- document.writeln("<a href=\"report.asp?rpt=invent\" target=\"main\" ><img src=\"images/inventory.gif\" border=0></a><br><br>")
- document.writeln("<a href=\"report.asp?rpt=statemnt\" target=\"main\" ><img src=\"images/order.gif\" border=0></a><br><br>")
- document.writeln("<a href=\"report.asp?rpt=prodcat\" target=\"main\"><img src=\"images/prodcat.gif\" border=0></a><br><br>")
- document.writeln("<a href=\"addcust.asp\" target=\"main\"><img src=\"images/addcust.gif\" border=0></a><br><br>")
- document.writeln("<a href=code.asp?source=report.asp target=\"main\"><img src=\"images/source.gif\" border=0></a><br>")
- document.writeln("</body>")
- document.close()
- parent.frames[1].location="report.asp?rpt=" + report
- }
- </SCRIPT>
- </head>
-
- <body bgcolor="#003366" text="#FF8000" vlink="#00ffff"link="#FF8000">
- <% response.write customer %><img src="images/profile.gif" border=0></a><br><br>
- <% response.write empsales %><img src="images/sales.gif" border=0></a><br><br>
- <% response.write invent %><img src="images/inventory.gif" border=0></a><br><br>
- <% response.write statemnt %><img src="images/order.gif" border=0></a><br><br>
- <% response.write prodcat %><img src="images/prodcat.gif" border=0></a><br><br>
- <a href="addcust.asp" target="main"><img src="images/addcust.gif" border=0></a><br><br>
- </body>
-
- </html>
-