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

📄 record.jsp

📁 用jsp,servlet实现人力资源管理系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ page import="com.entity.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'record.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">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  
  <%List list = (List)request.getAttribute("list"); %>
  
    <div id="Layer1" 
style="position:absolute; 
left:0px; 
top:0px; 
width:1000px; 
height:100px; 
z-index:1">
  <table width="1000" height="100" border="0">
    <tr bgcolor="#00A4D1">
      <th colspan="3" scope="col"><div align="center"><img src="image/bu1.gif" width="299" height="70"><img src="image/bu1.gif" width="299" height="70"><a href="servlet/IndexServlet?method=queryEmpInfo"><img src="image/zy-1-1.gif" width="56" height="70" border="0"></a><a href="servlet/MoveToServlet?method=queryEmpChange"><img src="image/zy-3.gif" width="56" height="70" border="0"></a><a href="trasort.htm"><img src="image/zy-6-6.gif" width="56" height="70" border="0"></a><a href="inslevel.htm"><img src="image/zy-8.gif" width="56" height="70" border="0"></a></div></th>
    </tr>
    <tr>
      <td width="888" height="25" bgcolor="#EAEAEA"><div align="left"><img src="image/index-18.gif" width="20" height="20"> <span class="style1">用户名: <%=(String)session.getAttribute("userName") %></span></div></td>
      <td width="67" bgcolor="#EAEAEA"><a href="form/index.jsp"><img src="image/index-19.gif" width="67" height="20" border="0"></a></td>
      <td width="74" bgcolor="#EAEAEA"><a href="form/denglu.jsp"><img src="image/an.gif" width="67" height="20" border="0"></a></td>
    </tr>
  </table>
</div>

<div id="Layer2" 
style="position:absolute; 
left:3px; 
top:102px; 
width:180px; 
height:601px; 
z-index:2">

<table width="200" border="0">
      <tr>
        <th height="50" colspan="2" scope="col"><div align="left" class="style2">人员档案</div></th>
      </tr>
      <tr>
        <td width="22"><img src="image/tree_blank.gif" width="16" height="18"></td>
        <td width="168"><a href="servlet/IndexServlet?method=queryEmpInfo">人员基本信息</a></td>
      </tr>
      <tr>
        <td><img src="image/tree_blank.gif" width="16" height="18"></td>
        <td><a href="servlet/FileDetailServlet?method=queryEmpRecord&recid=a">员工档案</a></td>
      </tr>
      <tr>
        <td><img src="image/tree_blank.gif" width="16" height="18"></td>
        <td><a href="servlet/RecordToServlet?method=queryEmpStory">员工履历</a></td>
      </tr>
      <tr>
        <td><img src="image/tree_blank.gif" width="16" height="18"></td>
        <td><a href="servlet/ContractDetailServlet?method=queryEmpBargain&barid=a">员工合同</a></td>
      </tr>
      <tr>
        <td><img src="image/tree_blank.gif" width="16" height="18"></td>
        <td><a href="servlet/AwardDetailServlet?method=queryRewManage&rewid=a">奖惩管理</a></td>
      </tr>
      <tr>
        <td><img src="image/tree_blankln.gif" width="16" height="22"></td>
        <td><a href="form/Infosea.jsp">人员基本信息查询</a></td>
      </tr>
  </table>
</div>
 

<div id="Layer3" 
style="position:absolute; 
left:200px; 
top:105px; 
width:799px; 
height:675px; 
z-index:3">
<form name="form1" action="servlet/RecordServlet">
  <table width="800" height="674" border="1">
    <tr>
      <td width="801" height="613" valign="top" bgcolor="#EAEAEA"><p><strong>员工履历</strong></p>
        <p><hr/>
        </p>
        <table width="159" height="34" border="0" bordercolor="#EAEAEA">
          <tr>
            <%String partid=(String)session.getAttribute("partid");
      if(partid.equals("1")){%>
            <td width="48"> <input type="Submit" name="Submit" value="add"></td>
            <td width="48"><input type="Submit" name="Submit" value="del"></td>
        <%} %>  
            
            <td width="49">&nbsp;</td>
          </tr>
        </table>      
        <table width="695" height="250" border="1" bgcolor="#FFFFFF">
          <tr>
            <td width="33">&nbsp;</td>
            <td width="67" align="center">人员编号</td>
            <td width="82" align="center">姓名</td>
            <td width="57" align="center">性别</td>
            <td width="127" align="center">出生日期</td>
            <td width="191" align="center">身份证号</td>
            <td width="92" align="center">&nbsp;</td>
          </tr>
          
           <%for(int i = 0;i<list.size();i++){
              EmpInfo empInfo = (EmpInfo)list.get(i); %>
          
          
          <tr>
            <td><input type="checkbox" name="checkbox" value=<%=empInfo.getEmpId() %>></td>
            <td><%=empInfo.getEmpId() %></td>
            <td><%=empInfo.getEmpName() %></td>
            <td><%=empInfo.getEmpSex() %></td>
            <td><%=empInfo.getEmpBirth() %></td>
            <td><%=empInfo.getEmpIdenfy()%></td>
            <td><div align="center"><a href="servlet/RecordDetailServlet?method=queryEmpStoryByEmpId&EmpId=<%=empInfo.getEmpId()%>">详细信息</a></div></td>
          </tr>
          
   <%
 	 }
  %>
          
        </table>
        <p>&nbsp;</p></td>
    </tr>
  </table>
</div>

<form name="form1" method="post" action="">
</form>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -