📄 login.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"
errorPage=""%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<link href="table.css" rel="stylesheet" />
<script type="text/javascript" src="javascript/comm/comm.js"></script>
<title>欢迎进入伯乐HR系统</title>
<STYLE>
.t {
LINE-HEIGHT: 1.4
}
BODY {
FONT-FAMILY: 宋体;
FONT-SIZE: 9pt;
SCROLLBAR-HIGHLIGHT-COLOR: buttonface;
SCROLLBAR-SHADOW-COLOR: buttonface;
SCROLLBAR-3DLIGHT-COLOR: buttonhighlight;
SCROLLBAR-TRACK-COLOR: #eeeeee;
SCROLLBAR-DARKSHADOW-COLOR: buttonshadow;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
TD {
FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
DIV {
FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
FORM {
FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
P {
FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
TD {
FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
BR {
FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
.style5 {
color: #CC6699;
font-family: "Courier New", Courier, mono;
}
.style6 {color: #CC9900}
.style8 {color: #CCCCCC}
.style9 {
font-family: "幼圆", Times, serif;
color: #006633;
}
</STYLE>
<script type="text/javascript">
function login()
{
if(infchk())
{
document.forms[0].action = document.forms[0].action + "?operate=doLogin";
document.forms[0].submit();
}
}
function toEditPwd()
{
document.forms[0].action = document.forms[0].action + "?operate=toEditPwd";
document.forms[0].submit();
}
function infchk()
{
var name = document.forms[0].elements["item.UName"];
var pwd = document.forms[0].elements["item.UPassword"];
var num = document.forms[0].elements["validatorNum"];
if(name.value == "")
{
alert ("请填写用户名");
name.focus();
return false;
}
else if(pwd.value == "")
{
alert ("请填写密码");
pwd.focus();
return false;
}
else if(num.value == "")
{
alert ("请填写验证码");
num.focus();
return false;
}
else
return true;
}
function show(o){
//重载验证码
var timenow = new Date().getTime();
o.src="random.jsp?d="+timenow;
}
</script>
</head>
<body background="images/bg.jpg">
<table class="TABLE_STYLE2" height="250">
<tr class="TR_STYLE1">
<td class="TD_STYLE3">
<div id="Layer1"
style="position:absolute; width:346px; height:77px; z-index:1; left: 620px; top: 33px; font-size: 50px; font-weight: bold; font-style: italic;">
<span class="style6">Be</span><span class="style5">tt</span><span
class="style6">er</span><span class="style9">伯乐</span><span
class="style8">HR</span>
</div>
</td>
</tr>
</table>
<form method="post" action="users.do" >
<table align="center" border="1">
<tr>
<td>
<table width="100%">
<tr>
<td colspan="2" align="center">
<font color="#30358D"><b>Better伯乐HR v2.0</b>
</font>
</td>
</tr>
<tr class="TR_STYLE1">
<td class="TD_STYLE3">
<p style="line-height: 200%">
<font color="#30358D"><b>Language:</b>
</font>
</td>
<td>
<select class="SELECT_STYLE1" name="language"
style="width:150px" onChange="send(this)">
<option value="中文">
中文
</option>
<option value="English">
English
</option>
</select>
</td>
</tr>
<tr class="TR_STYLE1">
<td class="TD_STYLE3">
<p style="line-height: 200%">
<font color="#30358D"><b>界面风格:</b>
</font>
</td>
<td>
<select class="SELECT_STYLE1" name="ui" style="width:150px">
<option value="0">
经典型
</option>
<option value="1" selected>
时尚型
</option>
</select>
</td>
</tr>
<tr class="TR_STYLE1">
<td class="TD_STYLE3">
<p style="line-height: 200%">
<font color="#30358D"><b>用户名:</b>
</font>
</td>
<td>
<html:text name="usersForm" property="item.UName"
style="width:150px"></html:text>
</td>
</tr>
<tr class="TR_STYLE1">
<td class="TD_STYLE3">
<p style="line-height: 200%">
<font color="#30358D"><b>密码:</b>
</font>
</td>
<td>
<html:password name="usersForm" property="item.UPassword"
style="width:150px" />
</td>
</tr>
<tr class="TR_STYLE1">
<td class="TD_STYLE3">
<p style="line-height: 200%">
<font color="#30358D"><b>验证码:</b>
</font>
</td>
<td>
<html:text name="usersForm" property="validatorNum" style="width:70px"></html:text>
<img src="random.jsp" id="random" hspace="5" align="middle">
</td>
</tr>
<tr class="TR_STYLE1">
<td class="TD_STYLE3">
<p style="line-height: 200%">
<font color="#30358D"><b> </b>
</font>
</td>
<td align="right">
<a href="javascript:show(document.getElementById('random'))">验证码看不清</a>
</td>
</tr>
<tr class="TR_STYLE1">
<td colspan="2" class="TD_STYLE3">
</td>
</tr>
<tr class="TR_STYLE1">
<td colspan="2" class="TD_STYLE3" align="center">
<p style="line-height: 200%">
<input type="button" value="登录" class="BUTTON_STYLE1" onclick="javascript:login();">
<input type="button" class="BUTTON_STYLE1" value="注册"
onClick="javascript:toAdd();">
<input type="button" class="BUTTON_STYLE1" value="修改密码"
onClick="javascript:toEditPwd();">
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="TABLE_STYLE2" height="90">
<tr class="TR_STYLE1">
<td class="TD_STYLE3">
</td>
</tr>
</table>
<center>
<table width="80%" height="10%" align="center">
<tr class="TR_STYLE1">
<td height="10%" align="center">
<p class="testonline.style1">
<br>
<font color="#FFFFFF" size="2.5"><b>北京Better伯乐科技有限公司 版权所有
</td>
</tr>
</table>
</center>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -