select.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-family: "宋体";
  14. font-weight: bold;
  15. color: #000000;
  16. font-size: 16px;
  17. }
  18. -->
  19. </style>
  20. </head>
  21. <body bgcolor="#FFFFDF">
  22. <table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
  23. <form name="form1" id="form1" method="post" action="select" onsubmit="return sel()">
  24.   <tr bgcolor="#FFFFFF">
  25.     <td height="25" colspan="12" align="center" class="style1" background="../KCM/zs.gif" >员工信息查找</td>
  26.   </tr>
  27.   <tr>
  28.     <td width="287" height="62"  colspan="5" align="center">按
  29.       <select name="column">
  30.         <option value="employeeid">序号</option>
  31.         <option value="name">姓名</option>
  32.         <option value="sex">性别</option>
  33.         <option value="birthday">出生日期</option>
  34.         <option value="learn">学历</option>
  35.         <option value="post">职称</option>
  36.         <option value="departmentid">部门</option>
  37.         <option value="jobid">职位</option>
  38.         <option value="tel">电话</option>
  39.         <option value="addr">具体地址</option>
  40.         <option value="stateid">员工状态</option>
  41.       </select>
  42.       查找      </td>
  43.     <td width="491" colspan="12" align="center"><input type="text" name="sele" />
  44.       &nbsp;
  45.       <input type="submit" name="Submit" value="查找" /></td>
  46.   </tr>
  47.   <tr align="center">
  48.     <td height="30">序号</td>
  49.     <td>姓名</td>
  50.     <td >性别</td>
  51.     <td>出生日期</td>
  52.     <td >学历</td>
  53.     <td>职称</td>
  54.     <td>部门</td>
  55.     <td >职位</td>
  56.     <td >电话</td>
  57.     <td >地址</td>
  58.     <td >状态</td>
  59.     <td >删除</td>
  60.   </tr>
  61. <%
  62. Collection coll=(Collection)request.getAttribute("msg");
  63. if(coll!=null){
  64. Iterator it=coll.iterator();
  65. while(it.hasNext()){
  66. Eminfo dep=(Eminfo)it.next();
  67. %>
  68.   <tr align="center">
  69.     <td height="25"><%= dep.getId() %></td>
  70.     <td height="22"><a href="add?id=<%= dep.getId() %>"><%= dep.getName() %></a></td>
  71.     <td height="22">
  72. <% 
  73. if(dep.getSex()==0){
  74. out.print("女"); 
  75. }else{
  76. out.print("男");
  77. }
  78. %></td>
  79.     <td height="22"><%= dep.getBirthday() %></td>
  80.     <td height="22"><%= dep.getLearn() %></td>
  81.     <td height="22"><%= dep.getPost() %></td>
  82.     <td height="22"><%= dep.getDepartment() %></td>
  83.     <td height="22"><%= dep.getJob() %></td>
  84.     <td height="22"><%= dep.getTel() %></td>
  85.     <td height="22"><%= dep.getAddr() %></td>
  86.     <td height="22"><%= dep.getState() %></td>
  87.     <td height="22"><a href="del?id=<%= dep.getId() %>"><img src="../image/empty.gif" width="20" height="20" border="0" /></a></td>
  88.   </tr>
  89. <% 
  90. }//while
  91. }//coll
  92. String selmsg=(String)request.getAttribute("msg2");
  93. if(selmsg!=null){
  94. %>
  95.   <tr>
  96.     <td colspan="12" align="center" class="advise">&nbsp;<%= selmsg %> </td>
  97. </tr>
  98. <%
  99. request.removeAttribute("msg2");
  100. }
  101. request.removeAttribute("msg");
  102. %>
  103.   <tr align="right" bgcolor="#FFFFDF">
  104.     <td colspan="12"><span class="return" onclick="javascript:history.back(-1);">返回</span>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  105.   </tr>
  106. </form>
  107. </table>
  108. </body>
  109. </html>