view.jsp
上传用户:sxwtmm
上传日期:2022-08-11
资源大小:2183k
文件大小:3k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
  2. <%@ include file="../hear/hear.jsp"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  7. <title>员工查看</title>
  8. <link href="../css/work.css" rel="stylesheet" type="text/css" />
  9. <script src="../js/oa.js"></script>
  10. <style type="text/css">
  11. <!--
  12. .style1 {
  13. font-size: 16px;
  14. font-family: "宋体";
  15. font-weight: bold;
  16. }
  17. .style8 {color: #000000; font-family: "宋体"; font-size: 14px; font-weight: bold; }
  18. -->
  19. </style>
  20. </head>
  21. <body bgcolor="#FFFFDF">
  22. <table width="760" height="157" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  23.   <tr>
  24.     <td height="22" colspan="11" align="center"  background="../KCM/zs.gif"><span class="style1">员工信息一览表</span></td>
  25.   </tr>
  26.   <tr align="center" class="column">
  27.     <td height="26"><span class="style8">序号</span></td>
  28.     <td><span class="style8">姓名</span></td>
  29.     <td><span class="style8">性别</span></td>
  30.     <td><span class="style8">出生日期</span></td>
  31.     <td><span class="style8">学历</span></td>
  32.     <td><span class="style8">职称</span></td>
  33.     <td><span class="style8">部门</span></td>
  34.     <td><span class="style8">职位</span></td>
  35.     <td><span class="style8">电话</span></td>
  36.     <td><span class="style8">地址</span></td>
  37.     <td><span class="style8">状态</span></td>
  38.   </tr>
  39. <%
  40. Collection coll=(Collection)request.getAttribute("msg");
  41. if(coll==null){
  42. %>
  43.   <tr align="center">
  44.     <td height="21" colspan="11" class="advise">没有添加员工</td>
  45.   </tr>
  46.   <%
  47. }else{
  48. Iterator it=coll.iterator();
  49. while(it.hasNext()){
  50. Eminfo dep=(Eminfo)it.next();
  51. %>
  52.   <tr align="center">
  53.     <td height="22"><%= dep.getId() %></td>
  54.     <td height="22"><%= dep.getName() %></td>
  55.     <td height="22">
  56. <% 
  57. if(dep.getSex()==0){
  58. out.print("女"); 
  59. }else{
  60. out.print("男");
  61. }
  62. %></td>
  63.     <td height="22"><%= dep.getBirthday() %></td>
  64.     <td height="22"><%= dep.getLearn() %></td>
  65.     <td height="22"><%= dep.getPost() %></td>
  66.     <td height="22"><%= dep.getDepartment()%></td>
  67.     <td height="22"><%= dep.getJob() %></td>
  68.     <td height="22"><%= dep.getTel() %></td>
  69.     <td height="22"><%= dep.getAddr() %></td>
  70.     <td height="22"><%= dep.getState() %></td>
  71.   </tr>
  72.   <%
  73. }
  74. }
  75. request.removeAttribute("msg");
  76. %>
  77.   <tr align="right" bgcolor="#FFFFDF">
  78.     <td height="27" colspan="11"><span class="return" onclick="javascript:history.go(-1);">返回</span>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  79.   </tr>
  80. </table>
  81. </body>
  82. </html>