source: EDIS/trunk/java/tracking-ui-main/html-template/index.template.html@ 1435

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

initial load of EDIS 1.0

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