source: EDIS/trunk/java/tracking-ui-bigboard/html-template/index.template.html@ 1252

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

initial load of EDIS 1.0

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