⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.jsp

📁 员工信息登记管理;试用期登记管理;转正及聘用合同管理;离职、退休登记管理;主要业绩、培训经历登记管理
💻 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 + -