103 lines
3.5 KiB
Plaintext
103 lines
3.5 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK" %>
|
||
<%@ page import="java.util.*" %>
|
||
<%@ page import="java.io.*" %>
|
||
<%!
|
||
String version = "2.0";
|
||
String name = "中鼎WMS";
|
||
String copy = "无锡中鼎集成技术有限公司<br>版权所有 ©";
|
||
|
||
private void appletParameter(String name, String value, StringBuffer sb)
|
||
{
|
||
sb.append("<PARAM NAME=\"").append(name).append("\" VALUE=\"").append(value).append("\"/>\n");
|
||
}
|
||
%>
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
<HTML>
|
||
<HEAD>
|
||
<meta http-equiv="Pragma" content="no-cache">
|
||
<meta http-equiv="expires" content="0">
|
||
<meta http-equiv="cache-control" content="no-store">
|
||
<TITLE><%= name%><%= version%></TITLE>
|
||
<link rel="stylesheet" type="text/css" href="css/inputField.css">
|
||
<link rel="Shortcut Icon" href="favicon.ico">
|
||
<link rel="Bookmark" href="favicon.ico">
|
||
<script type="text/javascript" src="script/appletFocus.js"></script>
|
||
<script language="javascript">
|
||
function notifyAppletStarted(systemName, width, height)
|
||
{
|
||
document.getElementById("jnlp").innerHTML="建议您使用<a href='index.jnlp'>桌面方式</a>登录";
|
||
window.status = "友情提示:输完密码后直接按回车键登录系统";
|
||
window.document.applets[0].width=width;
|
||
window.document.applets[0].height=height;
|
||
}
|
||
function notifyStartLogin(systemName)
|
||
{
|
||
//显示进度条?
|
||
}
|
||
function notifyLoginOk(tip)
|
||
{
|
||
window.blur();
|
||
window.status = tip;
|
||
}
|
||
function notifyLoginFailed(errorMessage)
|
||
{
|
||
//window.status = errorMessage;
|
||
}
|
||
</script>
|
||
</HEAD>
|
||
<body>
|
||
<div align="center">
|
||
<TABLE cellspacing="1" cellpadding="0" border="0" width="100%">
|
||
<TR><TD class="HR"> </TD></TR>
|
||
<TR><TD align="center">
|
||
<p class="welcome">欢迎进入<%= name%><%= version%></p>
|
||
</TD></TR>
|
||
<TR><TD class="HR"> </TD></TR>
|
||
<TR><TD align="center" height="160">
|
||
<%
|
||
String explorerName = request.getHeader("User-Agent");
|
||
String cache_archive_ex = "WMS.jar;preload;$$version(WMS.jar.pack.gz)";
|
||
String archive = "";
|
||
//Opera 浏览器不支持 cache_archive 更不支持cache_archive_ex
|
||
if (explorerName.startsWith("Opera")) archive = "WMS.jar";
|
||
|
||
String dimension = " width=200 height=120 "
|
||
, jre_download_url = "/download/jre.exe"
|
||
, startApplet = "LoginApplet.class";
|
||
|
||
StringBuffer shareParameters = new StringBuffer();
|
||
|
||
appletParameter("cache_option", "Plugin", shareParameters);
|
||
appletParameter("laf", "javax.swing.plaf.metal.MetalLookAndFeel", shareParameters);
|
||
appletParameter("cache_archive_ex", cache_archive_ex, shareParameters);
|
||
appletParameter("java_archive", archive, shareParameters);
|
||
appletParameter("java_codebase", ".", shareParameters);
|
||
appletParameter("java_code", startApplet, shareParameters);
|
||
appletParameter("systemName", name, shareParameters);
|
||
appletParameter("version", version, shareParameters);
|
||
appletParameter("about", copy, shareParameters);
|
||
appletParameter("progressbar", "true", shareParameters);
|
||
appletParameter("boxmessage", name, shareParameters);
|
||
appletParameter("initial_focus", "true", shareParameters);
|
||
appletParameter("DownloadSerialCommLib", "false", shareParameters);
|
||
|
||
out.print("<APPLET name=\"loginWindow\" TABINDEX=1");
|
||
out.print(dimension);
|
||
out.print("code=");
|
||
out.print(startApplet);
|
||
out.println(" mayscript=true scriptable=true>");
|
||
out.print(shareParameters.toString());
|
||
out.print("您的浏览器不支持Java,请下载并安装");
|
||
out.print("<a href=\"");
|
||
out.print(jre_download_url);
|
||
out.print("\">客户端Java运行环境</a>");
|
||
out.print("</APPLET>");
|
||
%>
|
||
</TD></TR>
|
||
<TR><TD align="center" style="font-size:10pt" ID="jnlp"> </TD></TR>
|
||
<TR><TD height="20px"> </TD></TR>
|
||
<TR><TD class="HR"> </TD></TR>
|
||
<TR><TD class="copyRight"><%= copy%></TD></TR>
|
||
</TABLE>
|
||
</div>
|
||
</body></html> |