source: EDIS/trunk/java/tracking-server-bigboard/src/main/webapp-dev/bigboard.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: 6.0 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<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><fmt:message key="app.name"/></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 = 9;
27// Minor version of Flash required
28var requiredMinorVersion = 0;
29// Minor version of Flash required
30var requiredRevision = 28;
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.BigBoard || window.BigBoard;
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", "100%",
80 "height", "100%",
81 "align", "middle",
82 "id", "<c:out value="${clientArtifactId}"/>",
83 "quality", "high",
84 "bgcolor", "#869ca7",
85 "allowFullScreen", "true",
86 "name", "<c:out value="${clientArtifactId}"/>",
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 //var edpVars = "vljServ=localhost:7001&";
101 //SEE LINE BELOW TO LAUNCH BIG BOARD FROM FLEX BUILDER AND PASSING IN A SITE ID
102 //var edpVars = "vljServ=vhaislbll2.vha.med.va.gov:7141&siteId=442&";
103 var edpVars = "contextRoot=<c:out value="${pageContext.request.contextPath}"/>&board=<c:out value="${param.board}"/>&siteId=<c:out value="${param.siteId}"/>&area=<c:out value="${param.area}"/>&helpContextRoot=<fmt:message key="help.contextRoot"/>";
104
105 AC_FL_RunContent(
106 "src", "<c:out value="${clientFinalName}"/>",
107 "width", "100%",
108 "height", "100%",
109 "align", "middle",
110 "id", "<c:out value="${clientArtifactId}"/>",
111 "quality", "high",
112 "bgcolor", "#869ca7",
113 "allowFullScreen", "true",
114 "name", "<c:out value="${clientArtifactId}"/>",
115 "flashvars", edpVars,
116 "allowScriptAccess","sameDomain",
117 "type", "application/x-shockwave-flash",
118 "pluginspage", "http://www.adobe.com/go/getflashplayer"
119 );
120 } else { // flash is too old or we can't detect the plugin
121 var alternateContent = 'Alternate HTML content should be placed here. '
122 + 'This content requires the Adobe Flash Player. '
123 + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
124 document.write(alternateContent); // insert non-flash content
125 }
126// -->
127</script>
128<noscript>
129 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
130 id="<c:out value="${clientArtifactId}"/>" width="100%" height="100%"
131 codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
132 <param name="movie" value="<c:out value="${clientFinalName}"/>.swf" />
133 <param name="quality" value="high" />
134 <param name="allowFullScreen" value="true" />
135 <param name="bgcolor" value="#869ca7" />
136 <param name="allowScriptAccess" value="sameDomain" />
137 <embed src="<c:out value="${clientFinalName}"/>.swf" quality="high" allowFullScreen="true" bgcolor="#869ca7"
138 width="100%" height="100%" name="<c:out value="${clientArtifactId}"/>" align="middle"
139 play="true"
140 loop="false"
141 quality="high"
142 allowScriptAccess="sameDomain"
143 type="application/x-shockwave-flash"
144 pluginspage="http://www.adobe.com/go/getflashplayer">
145 </embed>
146 </object>
147</noscript>
148</body>
149</html>
Note: See TracBrowser for help on using the repository browser.