|
|
|
|
<%@ page import="com.zky.pub.*"%>
|
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
|
|
|
pageEncoding="utf-8"%>
|
|
|
|
|
<jsp:useBean id="getPara" scope="application"
|
|
|
|
|
class="com.zky.para.SyncPara" />
|
|
|
|
|
<%@ page import="java.util.Date"%>
|
|
|
|
|
<%@ page import="com.zky.util.CheckCoderTool"%>
|
|
|
|
|
<%
|
|
|
|
|
response.setHeader("Cache-Control", "no-cache");
|
|
|
|
|
response.setHeader("Expires", "Thu,01 Jan 1970 00:00:01 GMT");
|
|
|
|
|
String checkCode = CheckCoderTool.randomChars(4);
|
|
|
|
|
session.setAttribute("c", checkCode);//验证码存入session中
|
|
|
|
|
long t = (new Date()).getTime();//确保每次刷新都生成新的验证码图片
|
|
|
|
|
%>
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<title>保密辅助业务管理系统</title>
|
|
|
|
|
<style>
|
|
|
|
|
body {
|
|
|
|
|
width: 980px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
background: url(/images/beij.jpg) repeat;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top {
|
|
|
|
|
background: url(/images/logo.jpg) no-repeat;
|
|
|
|
|
width: 980px;
|
|
|
|
|
height: 124px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main {
|
|
|
|
|
background: url(/images/bj.jpg) repeat-x;
|
|
|
|
|
width: 980px;
|
|
|
|
|
height: 476px
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
background: url(/images/btn.gif) no-repeat;
|
|
|
|
|
width: 67px;
|
|
|
|
|
height: 23px;
|
|
|
|
|
border: none;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:link {
|
|
|
|
|
font-family: 宋体;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #006699;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
|
color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:visited {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
color: #006699;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.z {
|
|
|
|
|
font-family: 宋体;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #CCC;
|
|
|
|
|
padding-top: 30px;
|
|
|
|
|
text-align: center
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<script>
|
|
|
|
|
function textToUpperCase() {
|
|
|
|
|
if (event.keyCode >= 65 && event.keyCode <= 90
|
|
|
|
|
|| event.type == "change") {
|
|
|
|
|
event.srcElement.value = event.srcElement.value.toUpperCase();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//浏览器版本
|
|
|
|
|
function version() {
|
|
|
|
|
var ua = window.navigator.userAgent
|
|
|
|
|
var msie = ua.indexOf("MSIE")
|
|
|
|
|
if (msie > 0)
|
|
|
|
|
return parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)))
|
|
|
|
|
else
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
function setCookie(name, value) {
|
|
|
|
|
var Days = 30;
|
|
|
|
|
var exp = new Date(); //new Date("December 31, 9998");
|
|
|
|
|
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
|
|
|
|
|
document.cookie = name + "=" + escape(value) + ";expires="
|
|
|
|
|
+ exp.toGMTString();
|
|
|
|
|
}
|
|
|
|
|
function getCookie(name) {
|
|
|
|
|
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
|
|
|
|
|
if (arr = document.cookie.match(reg))
|
|
|
|
|
return unescape(arr[2]);
|
|
|
|
|
else
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
function check() {
|
|
|
|
|
var form = document.forms[0];
|
|
|
|
|
if (form.username.value == '') {
|
|
|
|
|
alert("请输入人员编号!");
|
|
|
|
|
form.username.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (form.password.value == '') {
|
|
|
|
|
alert("请输入人员密码!");
|
|
|
|
|
form.password.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (form.check_code.value == '') {
|
|
|
|
|
alert("请输入验证码");
|
|
|
|
|
form.check_code.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
q1.style.display = "none";
|
|
|
|
|
q2.style.display = "block";
|
|
|
|
|
|
|
|
|
|
form.submit();
|
|
|
|
|
}
|
|
|
|
|
function init() {
|
|
|
|
|
q1.style.display = "block";
|
|
|
|
|
q2.style.display = "none";
|
|
|
|
|
|
|
|
|
|
if (version() == 0) {
|
|
|
|
|
alert("你使用的不是Internet Explorer浏览器,请使用IE6.0的版本");
|
|
|
|
|
return false;
|
|
|
|
|
} else if (version() < 6) {
|
|
|
|
|
alert("你当前的浏览器版本太低,请升级到Internet Explorer 6.0以上版本");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function keyDown() {
|
|
|
|
|
var key = window.event.keyCode;
|
|
|
|
|
var form = document.forms[0];
|
|
|
|
|
if (key == 13) {
|
|
|
|
|
check(document.all["subimg"]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
setTimeout('top.moveTo(0,0)', 50);
|
|
|
|
|
setTimeout('top.resizeTo(screen.availWidth,screen.availHeight)', 50);
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div style="text-align: center; margin-top: 50px;">
|
|
|
|
|
<form action="/servlet/loginServlet" method="post">
|
|
|
|
|
<input name="versionOfJxc" value='1' checked type="hidden" size="24" />
|
|
|
|
|
<div class="top"></div>
|
|
|
|
|
<div class="main">
|
|
|
|
|
<table width="913px" border="0" height="444px" align="center">
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style="background: url(images/map.jpg) no-repeat; width: 898px; height: 444px;">
|
|
|
|
|
<table width="670" height="415" border="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="230" height="79"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td height="330"></td>
|
|
|
|
|
<td>
|
|
|
|
|
<table width="404" border="0"
|
|
|
|
|
style="font-family: 宋体; font-size: 14px; color: #006699;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="107" height="33" align="right"
|
|
|
|
|
style="padding-right: 5px">用户名:</td>
|
|
|
|
|
<td colspan="2"><input id=username value="ADMIN" name=username
|
|
|
|
|
onChange="textToUpperCase()" maxsize="8"
|
|
|
|
|
style="behavior: url(#default#savehistory);" type="text"
|
|
|
|
|
size="20" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td height="33" align="right" style="padding-right: 5px">密 码:</td>
|
|
|
|
|
<td colspan="2"><INPUT class=textbox id=txtUserPassword
|
|
|
|
|
value="123456" type=password name=password datatype="text"
|
|
|
|
|
size="21" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td height="33" align="right" style="padding-right: 5px">验证码:</td>
|
|
|
|
|
<td width="90"><input type="text" name="check_code"
|
|
|
|
|
value="" size=6 maxlength="4" onkeydown="keyDown()">
|
|
|
|
|
</td>
|
|
|
|
|
<td width="192"
|
|
|
|
|
style="font-family: 宋体; font-size: 12px; color: #006699;"><a
|
|
|
|
|
href="#"> <IMG src=<%=request.getContextPath()%>
|
|
|
|
|
/CheckCoder?t=<%=t%> alt="请把看到的4位数字输入左边的验证码框内"
|
|
|
|
|
onclick="location.reload()">
|
|
|
|
|
</a> <A id=LinkButton1
|
|
|
|
|
href="javascript:window.location.reload()"
|
|
|
|
|
style="font-size: 12px;">不清楚,再来一张</A></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td colspan="2" height="25px"><input name="btnLogin"
|
|
|
|
|
onclick="return check();" type="image"
|
|
|
|
|
src="/images/btn.gif" />
|
|
|
|
|
|
|
|
|
|
<%-- <A id=LinkButton2--%>
|
|
|
|
|
<%-- href="/login.html"--%>
|
|
|
|
|
<%-- style="font-size: 15px;">UKEY检测--%>
|
|
|
|
|
<%-- </A>--%>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div id="q1" style="display: block;" align="center">
|
|
|
|
|
<%
|
|
|
|
|
String type = request.getParameter("type");
|
|
|
|
|
String errorinfo = request.getParameter("errorinfo");
|
|
|
|
|
String optrid = request.getParameter("optrid");
|
|
|
|
|
if (optrid == null)
|
|
|
|
|
optrid = "";
|
|
|
|
|
|
|
|
|
|
if (type != null) {
|
|
|
|
|
if (type.equals("relogin")) {
|
|
|
|
|
out.println("<font size=\"4\" color=\"#FF0000\">"
|
|
|
|
|
+ errorinfo + "</font>");
|
|
|
|
|
}
|
|
|
|
|
if (type.equals("session")) {
|
|
|
|
|
out.println("<font size=\"4\" color=\"#FF0000\" >由于您长时间没有操作,系统需要您重新登陆!</font>");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%>
|
|
|
|
|
</div>
|
|
|
|
|
<p>
|
|
|
|
|
<div class="z">Copyright◎ 甘肃中科园 版权所有</div>
|
|
|
|
|
</p>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|