source: EDIS/trunk/java/tracking-server-main/src/main/webapp/board.jsp@ 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: 6.3 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
45function invalidateSwf() {
46 var AJAX;
47 if (window.XMLHttpRequest) {
48 AJAX=new XMLHttpRequest();
49 } else {
50 AJAX=new ActiveXObject("Microsoft.XMLHTTP");
51 }
52 if (AJAX) {
53 AJAX.open("GET", '<c:url value="logout.html"/>?swfID=<c:out value="${swfID}"/>', false);
54 AJAX.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
55 AJAX.send(null);
56 }
57}
58
59window.onbeforeunload = shutdownHook;
60window.onunload = invalidateSwf;
61
62-->
63</script>
64<!-- END call Flex function on browser close -->
65
66</head>
67
68<body scroll="no">
69<script language="JavaScript" type="text/javascript">
70<!--
71// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
72var hasProductInstall = DetectFlashVer(6, 0, 65);
73
74// Version check based upon the values defined in globals
75var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
76
77
78// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
79if ( hasProductInstall && !hasRequestedVersion ) {
80 // MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
81 // This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
82 // DO NOT MODIFY THE FOLLOWING FOUR LINES
83 // Location visited after installation is complete if installation is required
84 var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
85 var MMredirectURL = window.location;
86 document.title = document.title.slice(0, 47) + " - Flash Player Installation";
87 var MMdoctitle = document.title;
88
89 AC_FL_RunContent(
90 "src", "playerProductInstall",
91 "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
92 "width", "100%",
93 "height", "100%",
94 "align", "middle",
95 "id", "<c:out value="${clientArtifactId}"/>",
96 "quality", "high",
97 "bgcolor", "#869ca7",
98 "allowFullScreen", "true",
99 "name", "<c:out value="${clientArtifactId}"/>",
100 "allowScriptAccess","sameDomain",
101 "type", "application/x-shockwave-flash",
102 "pluginspage", "http://www.adobe.com/go/getflashplayer"
103 );
104} else if (hasRequestedVersion) {
105 // if we've detected an acceptable version
106 // embed the Flash Content SWF when all tests are passed
107
108 // Cache Server Page namespace should be set here (don't forget the ampersand)
109 //var edpVars = "cspNmsp=CPM&cspDemo=500^10vehu^vehu10&";
110 //var edpVars = "cspServ=vhaislcfgm2.vha.med.va.gov/csp/CPM&cspToken=20012^662&";
111 //var edpVars = "vljServ=10.5.17.153:7001&";
112 //var edpVars = "vljServ=10.5.17.225:7001&";
113 //var edpVars = "vljServ=localhost:7001&";
114 //SEE LINE BELOW TO LAUNCH BIG BOARD FROM FLEX BUILDER AND PASSING IN A SITE ID
115 //var edpVars = "vljServ=vhaislbll2.vha.med.va.gov:7141&siteId=442&";
116 var edpVars = "swfID=<c:out value="${swfID}"/>&timeout=true&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"/>";
117
118 AC_FL_RunContent(
119 "src", "<c:out value="${clientFinalName}"/>",
120 "width", "100%",
121 "height", "100%",
122 "align", "middle",
123 "id", "<c:out value="${clientArtifactId}"/>",
124 "quality", "high",
125 "bgcolor", "#869ca7",
126 "allowFullScreen", "true",
127 "name", "<c:out value="${clientArtifactId}"/>",
128 "flashvars", edpVars,
129 "allowScriptAccess","sameDomain",
130 "type", "application/x-shockwave-flash",
131 "pluginspage", "http://www.adobe.com/go/getflashplayer"
132 );
133 } else { // flash is too old or we can't detect the plugin
134 var alternateContent = 'Alternate HTML content should be placed here. '
135 + 'This content requires the Adobe Flash Player. '
136 + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
137 document.write(alternateContent); // insert non-flash content
138 }
139// -->
140</script>
141<noscript>
142 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
143 id="<c:out value="${clientArtifactId}"/>" width="100%" height="100%"
144 codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
145 <param name="movie" value="<c:out value="${clientFinalName}"/>.swf" />
146 <param name="quality" value="high" />
147 <param name="allowFullScreen" value="true" />
148 <param name="bgcolor" value="#869ca7" />
149 <param name="allowScriptAccess" value="sameDomain" />
150 <embed src="<c:out value="${clientFinalName}"/>.swf" quality="high" allowFullScreen="true" bgcolor="#869ca7"
151 width="100%" height="100%" name="<c:out value="${clientArtifactId}"/>" align="middle"
152 play="true"
153 loop="false"
154 quality="high"
155 allowScriptAccess="sameDomain"
156 type="application/x-shockwave-flash"
157 pluginspage="http://www.adobe.com/go/getflashplayer">
158 </embed>
159 </object>
160</noscript>
161</body>
162</html>
Note: See TracBrowser for help on using the repository browser.