Files
xinhaikeji_wms/deploy/wcs.jsp
2025-09-12 17:38:40 +08:00

73 lines
2.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%!
String systemName = "中鼎WCS";
String user = "江阴名鸿";
String title = systemName + "" + user;
String copy = "无锡中鼎集成技术有限公司开发<BR> 版权所有";
String about = user + systemName + "<BR>" + copy;
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">
<link rel="Shortcut Icon" href="favicon.gif">
<link rel="Bookmark" href="favicon.gif">
<TITLE><%=title%></TITLE>
</head>
<script language="javascript">
function notifyAppletStarted(width, height)
{
document.getElementById("jnlp").innerHTML="建议您使用<a href='index.jnlp'>桌面方式</a>打开";
window.document.applets[0].width=width;
window.document.applets[0].height=height;
}
</script>
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" bgColor="#C0C0C0">
<div align="center" ID="jnlp"></div>
<div style="margin-top:0" align="center">
<%
String dimension = " WIDTH=800 HEIGHT=600 "
, jre_download_url="/download/jre.exe"
, startApplet = "com.wxzd.wcs.Main.class";
StringBuffer shareParameters = new StringBuffer();
appletParameter("cache_option", "'Plugin", shareParameters);
appletParameter("cache_archive_ex", "WCS.jar;$$version(WCS.jar.pack.gz)", shareParameters);
appletParameter("version", "9.4", shareParameters);
appletParameter("progressbar", "true", shareParameters);
appletParameter("boxmessage", systemName, shareParameters);
appletParameter("initial_focus", "true", shareParameters);
appletParameter("showPlatformInApplet", "true", shareParameters);
appletParameter("showMenuBarOnStockPane", "false", shareParameters);
appletParameter("about", about, shareParameters);
appletParameter("title", title, shareParameters);
appletParameter("floorX", "1", shareParameters);
appletParameter("floorsX", "1,2", 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>");
%>
</div>
</body>
</html>