📄 login.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'login.jsp' starting page</title>
<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">
<style type="text/css">
.loginTable
{
text-align:left;
}
.Input {
border:solid 1px #cecfce;
}
body
{
font-size:12px;
}
a
{
font-size:12px;
}
A:visited {
COLOR: #2e4690; FONT-FAMILY: Arial; TEXT-DECORATION: none; font-size:12px;
}
A:active {
FONT-FAMILY: Arial; TEXT-DECORATION: none; font-size:12px;
}
A:hover {
BORDER-TOP-WIDTH: 1px; BACKGROUND-POSITION: 50% bottom; font-size:12px;BORDER-LEFT-WIDTH: 1px; LEFT: 1px; BORDER-BOTTOM-WIDTH: 1px; COLOR: #3399cc; BACKGROUND-REPEAT: repeat-x; POSITION: relative; TOP: 1px; BORDER-RIGHT-WIDTH: 1px; TEXT-DECORATION: none
}
</style>
<script type="text/javascript">
function doSubmit()
{
var name=document.getElementById("username").value;
var pass=document.getElementById("password").value;
if(name=="")
{
window.alert('用户名不能为空!');
return;
}
if(pass=="")
{
window.alert('密码不能为空!');
return;
}
document.forms[0].action="/ChinaHR/doUser.do?operate=doLogin&uid="+name+"&pass="+pass;
document.forms[0].submit();
}
function doRegister()
{
document.forms[0].action="/ChinaHR/doUser.do?operate=toRegister";
document.forms[0].submit();
}
</script>
</head>
<body>
<form action="" method="post">
<center><DIV
style="BORDER-RIGHT: #a3bfe7 1px solid; BORDER-TOP: #a3bfe7 1px solid; BORDER-LEFT: #a3bfe7 1px solid; WIDTH: 240px; BORDER-BOTTOM: #a3bfe7 1px solid; HEIGHT: 130px">
<TABLE width=240>
<TR>
<TD
style="FONT-WEIGHT: bold; WIDTH: 100%; COLOR: #2e4690; HEIGHT: 25px">
<img src="/ChinaHR/EnterpriseServer/Image/chr_logo.gif" width="151" height="47" /><img alt="" src="/ChinaHR/EnterpriseServer/Image/ehr_logo.gif">
</TD>
</TR>
<TR>
<TD style="WIDTH: 100%" align=middle>
<CENTER>
<html:errors property="err1"/>
<TABLE cellSpacing=5 cellPadding=0 width=222 border=0>
<TR>
<TD width="59" height=25 align=right style="FONT-SIZE: 13px">
<SPAN class=visited style="COLOR: #2e4690">用户名:</SPAN>
</TD>
<TD width="148" height=25>
<SPAN class=visited> <INPUT style="WIDTH: 120px" id="username"> </SPAN>
</TD>
</TR>
<TR>
<TD style="FONT-SIZE: 13px; HEIGHT: 25px" align=right>
<SPAN class=Login_Left_Span style="COLOR: #2e4690">密 码:</SPAN>
</TD>
<TD style="HEIGHT: 25px">
<SPAN class=Login_Right_Span><INPUT style="WIDTH: 120px" type=password id="password"> </SPAN>
</TD>
</TR>
<TR align=middle>
<TD height=25>
<INPUT
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
type=image src="/ChinaHR/EnterpriseServer/Image/submit.jpg" onclick="javascript:doSubmit();">
</TD>
<TD>
<INPUT
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
onclick="javascript:doRegister();" type=image src="/ChinaHR/EnterpriseServer/Image/Reg.jpg">
</TD>
</TR>
</TABLE>
</CENTER>
</TD>
</TR>
</TABLE>
</DIV></center>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -