home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 May
/
W2KPRK.iso
/
apps
/
crystal
/
disk24
/
Xasp8
< prev
next >
Wrap
Text File
|
1999-08-23
|
2KB
|
50 lines
<%@ 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
wwsales = "<a href=" & chr(34) & "report.asp?rpt=wwsales" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
balance = "<a href=" & chr(34) & "report.asp?rpt=balance" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
finstate = "<a href=" & chr(34) & "report.asp?rpt=finstate" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
income = "<a href=" & chr(34) & "report.asp?rpt=income" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
else
wwsales = "<a href=javascript:rock('wwsales')>"
balance = "<a href=javascript:rock('balance')>"
finstate = "<a href=javascript:rock('finstate')>"
income = "<a href=javascript:rock('income')>"
end if
%>
<html>
<head>
<SCRIPT>
function rock(report)
{
document.open ()
document.writeln("<body bgcolor=\"#186666\" text=\"#E79999\" vlink=\"#00ffff\" link=\"#FF8000\">")
document.writeln("<a href=\"report.asp?rpt=wwsales\" target=\"main\" ><img src=\"images/world.gif\" border=0></a><br><br>")
document.writeln("<a href=\"report.asp?rpt=balance\" target=\"main\" ><img src=\"images/consolidated.gif\" border=0></a><br><br>")
document.writeln("<a href=\"report.asp?rpt=finstate\" target=\"main\" ><img src=\"images/financial.gif\" border=0></a><br><br>")
document.writeln("<a href=\"report.asp?rpt=income\" target=\"main\" ><img src=\"images/income.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="#186666" text="#E79999" vlink="#00ffff" link="#FF8000">
<% response.write wwsales %><img src="images/world.gif" border=0></a><br><br>
<% response.write balance %><img src="images/consolidated.gif" border=0></a><br><br>
<% response.write finstate %><img src="images/financial.gif" border=0></a><br><br>
<% response.write income %><img src="images/income.gif" border=0></a><br><br>
</body>
</html>