source: EDIS/trunk/java/tracking-server-bigboard/src/main/webapp/bigdisplayboard.jsp@ 1227

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

initial load of EDIS 1.0

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