TestByJRE.jsp
4.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%
String serverstr=request.getScheme()+"://"+request.getHeader("Host");
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=SystemEnv.getHtmlLabelName(22006,user.getLanguage())%>:<%=SystemEnv.getHtmlLabelName(22042,user.getLanguage())%></title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
}
.STYLE8 {
font-size: 12px;
font-weight: bold;
color: #3169ce;
}
.STYLE9 {
font-size: 12px;
font-weight: bold;
color:#008d42;
}
-->
</style>
<script language="JavaScript">
<!--
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
//-->
function window.onload()
{
try
{
obj = new ActiveXObject("JavaWebStart.isInstalled");
obj=null;
jreobj.style.display='';
document.all("spnResult").innerHTML = "<span style='font-size:12px;font-weight:bold;color:#008d42;'><%=SystemEnv.getHtmlLabelName(22038, user.getLanguage())%></span>";
document.all("imgtd").innerHTML=" <img src='/images/plugin/right_wev8.gif' width=40 height=40/>";
}
catch(e)
{
document.all("imgtd").innerHTML=" <img src='/images/plugin/warning_wev8.gif' width=40 height=40/>";
document.all("spnResult").innerHTML = "<span style='font-size:12px;font-weight:bold;color:#FF0000;'><%=SystemEnv.getHtmlLabelName(22039, user.getLanguage())%></span>";
}
}
</script>
</head>
<body>
<table width="660" height="10" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="57759F">
<tr>
<td colspan="2" valign="top">
<table width="660" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="64" background="/images/plugin/back_2_wev8.gif">
<table width="226" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="56" rowspan="3" id="imgtd"> </td>
<td width="170">
<span class="STYLE8"><%=SystemEnv.getHtmlLabelName(22011,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(22042,user.getLanguage())%></span>
</td>
</tr>
<tr>
<td><img src="/images/plugin/line_1_wev8.gif" width="84" height="2"/></td>
</tr>
<tr>
<td>
<div id="spnResult" class="STYLE9"><img src="/images/loading2_wev8.gif" /><%=SystemEnv.getHtmlLabelName(22372, user.getLanguage())%></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<object name="jreobj" style="display:none;width:100%;height:500;bgcolor:#FFFFFF;" classid="clsid:CAFEEFAC-0013-0001-0004-ABCDEFFEDCBA" codebase="<%=serverstr%>/resource/j2re-1_3_1_04-windows-i586.exe">
<param name = CODE value = weaver.workflow.layout.WorkflowEditor.class >
<param name = CODEBASE value = /classbean >
<param name="type" value="application/x-java-applet;jpi-version=1.3.1">
<param name="scriptable" value="false">
<param name="MAYSCRIPT" value="true">
<param name = "downloadUrl" value="<%=serverstr%>/weaver/weaver.workflow.layout.DownloadWFLayoutServlet"/>
<param name = "id" value="1">
<param name = actionRedirectToLogin value = "redirect"/>
</object>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>