-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.jsp
126 lines (120 loc) · 4.18 KB
/
login.jsp
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
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>后台管理登录</title>
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/info.css">
<script language="javascript" type="text/javascript" src=""></script>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript">
</script>
<style type="text/css">
body,td,div
{
font-size:12px;
}
</style>
</head>
<BODY>
<FORM id="info" name="info" method="post" action="LoginInSystem.action">
<DIV id=UpdatePanel1 style="margin:0px auto;width:900px">
<DIV>
<TABLE cellSpacing=0 cellPadding=0 width=900 align=center border=0>
<TBODY>
<TR>
<TD style="HEIGHT: 105px"><IMG src="images/login_1.jpg" border=0></TD>
</TR>
<TR>
<TD background=images/login_2.jpg height=300>
<TABLE height=300 cellPadding=0 width=900 border=0>
<TBODY>
<TR>
<TD colSpan=2 height=35></TD></TR>
<TR>
<TD width=360></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD style="HEIGHT: 28px" width=80>登 录 名:</TD>
<TD style="HEIGHT: 28px" width=150><INPUT id="params.user_name" name="user_name" value="${params.user_name}" style="WIDTH: 130px" name=txtName></TD>
<TD style="HEIGHT: 28px" width=370>
<SPAN id="RequiredFieldValidator1" style="FONT-WEIGHT: bold; VISIBILITY: hidden; COLOR: white">请输入登录名</SPAN>
</TD>
</TR>
<TR>
<TD style="HEIGHT: 28px">登录密码:</TD>
<TD style="HEIGHT: 28px"><INPUT id="params.user_pass" name="user_pass" style="WIDTH: 130px"
type="password"></TD>
<TD style="HEIGHT: 28px">
<SPAN id="RequiredFieldValidator2" style="FONT-WEIGHT: bold; VISIBILITY: hidden; COLOR: white">请输入密码</SPAN>
</TD>
</TR>
<TR>
<TD style="HEIGHT: 28px">验 证 码:</TD>
<TD style="HEIGHT: 28px">
<INPUT id="params.random" name="random" style="WIDTH: 60px">
<img src="Random.jsp" width="50" valign="middle" style="cursor:pointer;vertical-align:middle" title="换一张" id="safecode" border="0" onClick="reloadcode()"/>
</TD>
<TD style="HEIGHT: 28px">
<SPAN id="RequiredFieldValidator3" style="FONT-WEIGHT: bold; VISIBILITY: hidden; COLOR: white">请输入验证码</SPAN>
</TD>
</TR>
<TR>
<TD></TD>
<TD colspan="2" id="loginTip" style="HEIGHT:22px;color:orange">${tip}</TD>
</TR>
<TR>
<TD></TD>
<TD><img id="loginInBtn" style="border:0px;cursor:pointer" src="images/login_button.gif" /> </TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD>
<IMG src="images/login_3.jpg" border=0>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
</DIV>
</FORM>
<script language="javascript" type="text/javascript">
//实现验证码点击刷新
function reloadcode(){
var verify=document.getElementById('safecode');
verify.setAttribute('src','Random.jsp?'+Math.random());
}
$(document).ready(function(){
var loginInBtn = $("#loginInBtn");
var user_name = $("#params\\.user_name");
var user_pass = $("#params\\.user_pass");
var random = $("#params\\.random");
var loginTip = $("#loginTip");
loginInBtn.bind('click',function(){
if(user_name.val()==''||user_pass.val()==''||random.val()==''){
loginTip.html("用户名、密码和验证码不能为空!")
return;
}
$("#info").submit();
});
});
</script>
</BODY>
</HTML>