?? login.jsp
字號:
<%@ page language="java" pageEncoding="gb2312" import="java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />
<title></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>.style1 {
COLOR: #000000
}
</STYLE>
<LINK href="/manage/css/Css(1).css"
type=text/css rel=stylesheet>
<script type="text/javascript">
function check()
{
if(document.form1.name.value=="")
{
alert("用戶名不能為空");
return false;
}
}
</script>
</head>
<%
String name = "";
String pwd = "";
%>
<body background=/manage/images/25.JPG leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="form1.name.focus();">
<br><br><br><br><br><br><br><br><br><br><br><br>
<form name="form1" method="post" action="/manage/servlet/LoginServlet" onsubmit="return check()">
<p align="center" ><font color="yellow" size="6"><b>企業人事檔案管理系統</font></p>
<table width="295" border="1" align="center">
<tr>
<td width="75" align="center"><font color="yellow" size="4"><b>姓名:</td>
<td width="204" align="center">
<%
if(session.getAttribute("loginName") != null){
name = session.getAttribute("loginName").toString();
%>
<input type="text" name="name" maxlength="8" value="<%=name %>">
<%}else{ %>
<input type="text" name="name" maxlength="8">
<%} %>
</td>
</tr>
<tr>
<td align="center"><font color="yellow" size="4"><b>密碼:</td>
<td align="center"><input type="password" name="pwd" maxlength="8"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</div></td>
</tr>
<%if (session.getAttribute("login") != null) {%>
<tr>
<td align="center" colspan="2">
<p><font color=red size=5><b><%=(String)session.getAttribute("login") %></b></font></p>
</td>
</tr>
<%}%>
</table>
</form>
<script >
form1.name.focus();
</script>
</body>
</html:html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -