sysLogin.jsp
7.4 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>${fns:getConfig('productName')} 登录</title>
<meta name="decorator" content="blank"/>
<!-- <style type="text/css">
html,body,table{background-color:#3E75C0;width:100%;text-align:center;}.form-signin-heading{font-family:Helvetica, Georgia, Arial, sans-serif, 黑体;font-size:36px;margin-bottom:20px;color:#0663a2;}
.form-signin{position:absolute;text-align:left;width:300px;padding:25px 29px 29px;margin:0 auto 20px;border:0;background:none;box-shadow:none;
-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05);}
.form-signin .checkbox{margin-bottom:10px;color:#0663a2;} .form-signin .input-label{font-size:16px;line-height:23px;color:#fff;}
.form-signin .input-block-level{font-size:16px;height:auto;margin-bottom:15px;padding:7px;*width:283px;*padding-bottom:0;_padding:7px 7px 9px 7px;}
.form-signin .btn.btn-large{font-size:16px;} .form-signin #themeSwitch{position:absolute;right:15px;bottom:10px;}
.form-signin div.validateCode {padding-bottom:15px;} .mid{vertical-align:middle;}
.header{height:80px;padding-top:20px;} .footer{position:absolute;} .footer, .footer a{color:#779ACA}
.alert{position:relative;width:300px;margin:0 auto;*padding-bottom:0px;}
label.error{background:none;width:270px;font-weight:normal;color:inherit;margin:0;}
body{background:url(${ctxStatic}/images/login_bg.jpg) no-repeat center center;}
</style> -->
<script type="text/javascript">
$(document).ready(function() {
$("#loginForm").validate({
/* rules: {
validateCode: {remote: "${pageContext.request.contextPath}/servlet/validateCodeServlet"}
}, */
messages: {
username: {required: "请填写用户名."},password: {required: "请填写密码."}
/* validateCode: {remote: "验证码不正确.", required: "请填写验证码."} */
},
errorLabelContainer: "#messageBox",
errorPlacement: function(error, element) {
error.appendTo($("#loginError").parent());
}
});
});
// 如果在框架或在对话框中,则弹出提示并跳转到首页
if(self.frameElement && self.frameElement.tagName == "IFRAME" || $('#left').length > 0 || $('.jbox').length > 0){
alert('未登录或登录超时。请重新登录,谢谢!');
top.location = "${ctx}";
}
</script>
<style type="text/css">
body {
background:#3c7fb5 url(${ctxStatic}/images/bg_login.jpg) repeat-x left top;
}
/* body,table,td,div {
font-size: 12px;
line-height: 24px;
} */
.textfile {
height: 29px;
width: 143px;
}
</style>
</head>
<body>
<div class="header">
<div id="messageBox" class="alert alert-error ${empty message ? 'hide' : ''}"><button data-dismiss="alert" class="close">×</button>
<label id="loginError" class="error">${message}</label>
</div>
</div>
<%-- <h1 class="form-signin-heading">${fns:getConfig('productName')}</h1> --%>
<%-- <form id="loginForm" class="form-signin" action="${ctx}/login" method="post">
<label class="input-label" for="username">登录名</label>
<input type="text" id="username" name="username" class="input-block-level required" value="${username}">
<label class="input-label" for="password">密码</label>
<input type="password" id="password" name="password" class="input-block-level required">
<c:if test="${isValidateCodeLogin}"><div class="validateCode">
<label class="input-label mid" for="validateCode">验证码</label>
<sys:validateCode name="validateCode" inputCssStyle="margin-bottom:0;"/>
</div></c:if>
<label for="mobile" title="手机登录"><input type="checkbox" id="mobileLogin" name="mobileLogin" ${mobileLogin ? 'checked' : ''}/></label>
<input class="btn btn-large btn-primary" type="submit" value="登 录"/>
<label for="rememberMe" title="下次不需要再登录"><input type="checkbox" id="rememberMe" name="rememberMe" ${rememberMe ? 'checked' : ''}/> 记住我(公共场所慎用)</label>
<div id="themeSwitch" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">${fns:getDictLabel(cookie.theme.value,'theme','默认主题')}<b class="caret"></b></a>
<ul class="dropdown-menu">
<c:forEach items="${fns:getDictList('theme')}" var="dict"><li><a href="#" onclick="location='${pageContext.request.contextPath}/theme/${dict.value}?url='+location.href">${dict.label}</a></li></c:forEach>
</ul>
<!--[if lte IE 6]><script type="text/javascript">$('#themeSwitch').hide();</script><![endif]-->
</div>
</form>
<div class="footer">
Copyright © ${fns:getConfig('copyrightYear')} <a href="${pageContext.request.contextPath}${fns:getFrontPath()}">${fns:getConfig('productName')}</a> - Powered By <a href="#" target="_blank"></a> ${fns:getConfig('version')}
</div> --%>
<div class="loginTable">
<table width="596" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="596" height="331" background="${ctxStatic}/images/top_login.jpg" ></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="139">
<td width="99" background="${ctxStatic}/images/login_06.jpg"height="139" ></td>
<td background="${ctxStatic}/images/bg_form.jpg" height="139">
<table width="250" border="0" align="center" cellpadding="0" cellspacing="0">
<form id="loginForm" action="${ctx}/login" method="post">
<tr>
<td height="35" align="right">用户名:</td>
<td>
<label>
<input name="username" type="text" maxlength="20" id="txtUserName" class="textfile" />
<span id="UserNameRequired" style="color:Red;visibility:hidden;">必填*</span>
</label>
</td>
</tr>
<tr>
<td height="35" align="right">密 码:</td>
<td><label>
<input name="password" type="password" maxlength="30" id="txtPassword" class="textfile" />
<span id="PasswordRequired" style="color:Red;visibility:hidden;">必填*</span>
</label></td>
</tr>
<tr>
<td height="35"> </td>
<td><label>
<input class="btn btn-min btn-primary" type="submit" value="登 录"/>
</label></td>
</tr>
<!-- <tr>
<td height="30"> </td>
<td> </td>
</tr> -->
</form>
</table>
</td>
<td width="98" height="139" align="right" background="${ctxStatic}/images/login_08.jpg" ></td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="${ctxStatic}/images/bottom_login.jpg" width="596" height="39" align="center">
<span id="lbMessage" style="display:inline-block;color:Red;width:350px;"></span>
</td>
</tr>
<tr>
<td> </td>
</tr>
<!-- <tr>
<td align="center" style="color:White"><b>三宝科技@版权所有</b></td>
</tr> -->
</table>
</div>
<script src="${ctxStatic}/flash/zoom.min.js" type="text/javascript"></script>
</body>
</html>