list.jsp 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <%@ page language="java" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <HTML>
  4. <HEAD>
  5. <meta http-equiv="Content-Language" content="zh-cn">
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <link href="${pageContext.request.contextPath}/css/Style.css" rel="stylesheet" type="text/css" />
  8. <script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
  9. <script type="text/javascript">
  10. function addUser(){
  11. window.location.href = "${pageContext.request.contextPath}/user/add.jsp";
  12. }
  13. function deletePerson(pid) {
  14. var flag = window.confirm("是否删除?");
  15. if(flag) {
  16. location.href="${pageContext.request.contextPath}/person?method=delete&pid="+pid;
  17. }
  18. }
  19. </script>
  20. </HEAD>
  21. <body>
  22. <br>
  23. <form id="Form1" name="Form1" action="${pageContext.request.contextPath}/person?method=selectPerson&currentPage=1" method="post">
  24. <table cellSpacing="1" cellPadding="0" width="100%" align="center" bgColor="#f5fafe" border="0">
  25. <TBODY>
  26. <tr>
  27. <td class="ta_01" align="center" bgColor="#afd1f3">
  28. <strong>查 询 条 件</strong>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td>
  33. <table cellpadding="0" cellspacing="0" border="0" width="100%">
  34. <tr>
  35. <td height="22" align="center" bgColor="#f5fafe" class="ta_01">
  36. 用户姓名
  37. </td>
  38. <td class="ta_01" bgColor="#ffffff">
  39. <input type="text" name="realname" size="15" value="" id="Form1_userName" class="bg"/>
  40. </td>
  41. <td height="22" align="center" bgColor="#f5fafe" class="ta_01">
  42. 性别:
  43. </td>
  44. <td class="ta_01" bgColor="#ffffff">
  45. <select name="gender" id="sex">
  46. <option value="">--选择性别--</option>
  47. <option value="男">男</option>
  48. <option value="女">女</option>
  49. </select>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td height="22" align="center" bgColor="#f5fafe" class="ta_01">
  54. 学历:
  55. </td>
  56. <td class="ta_01" bgColor="#ffffff">
  57. <select name="education" id="education">
  58. <option value="">--选择学历--</option>
  59. <option value="博士">博士</option>
  60. <option value="硕士">硕士</option>
  61. <option value="研究生">研究生</option>
  62. <option value="本科">本科</option>
  63. <option value="专科">专科</option>
  64. <option value="高中">高中</option>
  65. </select>
  66. </td>
  67. <td height="22" align="center" bgColor="#f5fafe" class="ta_01">
  68. 是否上传简历
  69. </td>
  70. <td class="ta_01" bgColor="#ffffff">
  71. <select name="resume" id="isUpload">
  72. <option value="">--请选择--</option>
  73. <option value="1">有</option>
  74. <option value="2">无</option>
  75. </select>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td width="100" height="22" align="center" bgColor="#f5fafe"
  80. class="ta_01">
  81. </td>
  82. <td class="ta_01" bgColor="#ffffff">
  83. <font face="宋体" color="red"> &nbsp;</font>
  84. </td>
  85. <td align="right" bgColor="#ffffff" class="ta_01"><br><br></td>
  86. <td align="right" bgColor="#ffffff" class="ta_01">
  87. <button type="submit" id="search" name="search" value="&#26597;&#35810;" class="button_view">
  88. &#26597;&#35810;
  89. </button>
  90. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  91. <input type="reset" name="reset" value="&#37325;&#32622;" class="button_view"/>
  92. </td>
  93. </tr>
  94. </table>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td class="ta_01" align="center" bgColor="#afd1f3">
  99. <strong>人员 列 表</strong>
  100. </TD>
  101. </tr>
  102. <tr>
  103. <td class="ta_01" align="right">
  104. <button type="button" id="add" name="add" value="&#28155;&#21152;" class="button_add" onclick="addUser()">
  105. &#28155;&#21152;
  106. </button>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td class="ta_01" align="center" bgColor="#f5fafe">
  111. <table cellspacing="0" cellpadding="1" rules="all"
  112. bordercolor="gray" border="1" id="DataGrid1"
  113. style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 100%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
  114. <tr
  115. style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">
  116. <td align="center" width="18%">
  117. 登录名
  118. </td>
  119. <td align="center" width="17%">
  120. 用户姓名
  121. </td>
  122. <td align="center" width="8%">
  123. 性别
  124. </td>
  125. <td align="center" width="23%">
  126. 联系电话
  127. </td>
  128. <td width="11%" align="center">
  129. 学历
  130. </td>
  131. <td width="7%" align="center">
  132. 编辑
  133. </td>
  134. <td width="7%" align="center">
  135. 查看
  136. </td>
  137. <td width="7%" align="center">
  138. 删除
  139. </td>
  140. </tr>
  141. <c:forEach items="${pageBean.list }" var="p">
  142. <tr onmouseover="this.style.backgroundColor = 'white'"
  143. onmouseout="this.style.backgroundColor = '#F5FAFE';">
  144. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  145. width="18%">
  146. ${p.username }
  147. </td>
  148. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  149. width="17%">
  150. ${p.realname }
  151. </td>
  152. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  153. width="8%">
  154. ${p.gender }
  155. </td>
  156. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  157. width="23%">
  158. ${p.phone }
  159. </td>
  160. <td style="CURSOR: hand; HEIGHT: 22px" align="center">
  161. ${p.education }
  162. </td>
  163. <td align="center" style="HEIGHT: 22px">
  164. <a href="${pageContext.request.contextPath}/person?method=toUpdatePage&pid=${p.pid }">
  165. <img src="${pageContext.request.contextPath}/images/i_edit.gif" border="0" style="CURSOR: hand">
  166. </a>
  167. </td>
  168. <td align="center" style="HEIGHT: 22px">
  169. <a href="${pageContext.request.contextPath}/person?method=viewPerson&pid=${p.pid}">
  170. <img src="${pageContext.request.contextPath}/images/button_view.gif" border="0" style="CURSOR: hand">
  171. </a>
  172. </td>
  173. <td align="center" style="HEIGHT: 22px">
  174. <a href="#" onclick="deletePerson('${p.pid}');">
  175. <img src="${pageContext.request.contextPath}/images/i_del.gif" width="16" height="16" border="0" style="CURSOR: hand">
  176. </a>
  177. </td>
  178. </tr>
  179. </c:forEach>
  180. </table>
  181. <span>
  182. 当前 ${pageBean.currentPage} 页/ ${pageBean.totalPage}页,共 ${pageBean.totalCount}记录
  183. &nbsp;
  184. <a href="${pageContext.request.contextPath}/person?method=list&currentPage=1">首页</a>
  185. <c:if test="${pageBean.currentPage!=1 }">
  186. <a href="${pageContext.request.contextPath}/person?method=list&currentPage=${pageBean.currentPage-1}">上一页</a>
  187. </c:if>
  188. <c:if test="${pageBean.currentPage!=pageBean.totalPage }">
  189. <a href="${pageContext.request.contextPath}/person?method=list&currentPage=${pageBean.currentPage+1}">下一页</a>
  190. </c:if>
  191. <a href="${pageContext.request.contextPath}/person?method=list&currentPage=${pageBean.totalPage}">尾页</a>
  192. </span>
  193. </td>
  194. </tr>
  195. </TBODY>
  196. </table>
  197. </form>
  198. </body>
  199. </HTML>