source: EDIS/trunk/java/tracking-server-main/src/main/webapp/tracking.jsp@ 1426

Last change on this file since 1426 was 1227, checked in by George Lilly, 13 years ago

initial load of EDIS 1.0

File size: 6.1 KB
Line 
1<%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %><%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans//EN"
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<title><fmt:message key="app.name"/></title>
7<script src="AC_OETags.js" language="javascript"></script>
8<style type="text/css">
9 html, body {
10 height: 100%;
11 margin: 0;
12 padding: 0;
13 }
14</style>
15<script language="JavaScript" type="text/javascript">
16<!--
17// -----------------------------------------------------------------------------
18// Globals
19// Major version of Flash required
20var requiredMajorVersion = 9;
21// Minor version of Flash required
22var requiredMinorVersion = 0;
23// Minor version of Flash required
24var requiredRevision = 28;
25// -----------------------------------------------------------------------------
26// -->
27</script>
28
29<!-- BEGIN call Flex function on browser close -->
30<script language="JavaScript" type="text/javascript">
31<!--
32function shutdownHook()
33{
34 var fxControl = document.getElementById('<c:out value="${clientArtifactId}"/>');
35 var warning = fxControl.getUnsavedDataWarning();
36 if (warning != '')
37 return warning;
38 else
39 return;
40}
41
42function invalidateSwf() {
43 var AJAX;
44 if (window.XMLHttpRequest) {
45 AJAX=new XMLHttpRequest();
46 } else {
47 AJAX=new ActiveXObject("Microsoft.XMLHTTP");
48 }
49 if (AJAX) {
50 AJAX.open("GET", '<c:url value="logout.html"/>?swfID=<c:out value="${swfID}"/>', false);
51 AJAX.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
52 AJAX.send(null);
53 }
54}
55
56window.onbeforeunload = shutdownHook;
57window.onunload = invalidateSwf;
58-->
59</script>
60<!-- END call Flex function on browser close -->
61
62</head>
63
64<body scroll="no">
65<script language="JavaScript" type="text/javascript">
66<!--
67// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
68var hasProductInstall = DetectFlashVer(6, 0, 65);
69
70// Version check based upon the values defined in globals
71var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
72
73
74// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
75if ( hasProductInstall && !hasRequestedVersion ) {
76 // MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
77 // This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
78 // DO NOT MODIFY THE FOLLOWING FOUR LINES
79 // Location visited after installation is complete if installation is required
80 var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
81 var MMredirectURL = window.location;
82 document.title = document.title.slice(0, 47) + " - Flash Player Installation";
83 var MMdoctitle = document.title;
84
85 AC_FL_RunContent(
86 "src", "playerProductInstall",
87 "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
88 "width", "100%",
89 "height", "100%",
90 "align", "middle",
91 "id", "<c:out value="${clientArtifactId}"/>",
92 "quality", "high",
93 "bgcolor", "#869ca7",
94 "allowFullScreen", "true",
95 "name", "<c:out value="${clientArtifactId}"/>",
96 "allowScriptAccess","sameDomain",
97 "type", "application/x-shockwave-flash",
98 "pluginspage", "http://www.adobe.com/go/getflashplayer"
99 );
100} else if (hasRequestedVersion) {
101 // if we've detected an acceptable version
102 // embed the Flash Content SWF when all tests are passed
103
104 // Cache Server Page namespace should be set here (don't forget the ampersand)
105 //var edpVars = "cspNmsp=CPM&cspDemo=500^10vehu^vehu10&";
106 //var edpVars = "cspServ=vhaislcfgm2.vha.med.va.gov/csp/CPM&cspToken=20012^662&";
107 //var edpVars = "vljServ=10.5.17.153:7001&";
108 //var edpVars = "vljServ=10.5.17.225:7001&";
109 //var edpVars = "vljServ=localhost:7001&";
110 var edpVars = "swfID=<c:out value="${swfID}"/>&contextRoot=<c:out value="${pageContext.request.contextPath}"/>&helpContextRoot=<fmt:message key="help.contextRoot"/>";
111
112 AC_FL_RunContent(
113 "src", "<c:out value="${clientFinalName}"/>",
114 "width", "100%",
115 "height", "100%",
116 "align", "middle",
117 "id", "<c:out value="${clientArtifactId}"/>",
118 "quality", "high",
119 "bgcolor", "#869ca7",
120 "allowFullScreen", "true",
121 "name", "<c:out value="${clientArtifactId}"/>",
122 "flashvars", edpVars,
123 "allowScriptAccess","sameDomain",
124 "type", "application/x-shockwave-flash",
125 "pluginspage", "http://www.adobe.com/go/getflashplayer"
126 );
127
128 document.onload = document.getElementById('<c:out value="${clientArtifactId}"/>').focus();
129 } else { // flash is too old or we can't detect the plugin
130 var alternateContent = 'Alternate HTML content should be placed here. '
131 + 'This content requires the Adobe Flash Player. '
132 + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
133 document.write(alternateContent); // insert non-flash content
134 }
135// -->
136</script>
137<noscript>
138 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
139 id="<c:out value="${clientArtifactId}"/>" width="100%" height="100%"
140 codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
141 <param name="movie" value="<c:out value="${clientFinalName}"/>.swf" />
142 <param name="quality" value="high" />
143 <param name="allowFullScreen" value="true" />
144 <param name="bgcolor" value="#869ca7" />
145 <param name="allowScriptAccess" value="sameDomain" />
146 <embed src="<c:out value="${clientFinalName}"/>.swf" quality="high" allowFullScreen="true" bgcolor="#869ca7"
147 width="100%" height="100%" name="tracking" align="middle"
148 play="true"
149 loop="false"
150 quality="high"
151 allowScriptAccess="sameDomain"
152 type="application/x-shockwave-flash"
153 pluginspage="http://www.adobe.com/go/getflashplayer">
154 </embed>
155 </object>
156</noscript>
157</body>
158</html>
Note: See TracBrowser for help on using the repository browser.