123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <%@ page language="java" pageEncoding="UTF-8"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <HTML>
- <HEAD>
- <meta http-equiv="Content-Language" content="zh-cn">
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="${pageContext.request.contextPath}/css/Style.css" rel="stylesheet" type="text/css" />
- <script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
- <script type="text/javascript">
- function addUser(){
- window.location.href = "${pageContext.request.contextPath}/user/add.jsp";
- }
-
- function deletePerson(pid) {
- var flag = window.confirm("是否删除?");
- if(flag) {
- location.href="${pageContext.request.contextPath}/person?method=delete&pid="+pid;
- }
- }
- </script>
- </HEAD>
- <body>
- <br>
- <form id="Form1" name="Form1" action="${pageContext.request.contextPath}/person?method=selectPerson¤tPage=1" method="post">
- <table cellSpacing="1" cellPadding="0" width="100%" align="center" bgColor="#f5fafe" border="0">
- <TBODY>
- <tr>
- <td class="ta_01" align="center" bgColor="#afd1f3">
- <strong>查 询 条 件</strong>
- </td>
- </tr>
- <tr>
- <td>
- <table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- <td height="22" align="center" bgColor="#f5fafe" class="ta_01">
- 用户姓名
- </td>
- <td class="ta_01" bgColor="#ffffff">
- <input type="text" name="realname" size="15" value="" id="Form1_userName" class="bg"/>
- </td>
- <td height="22" align="center" bgColor="#f5fafe" class="ta_01">
- 性别:
- </td>
- <td class="ta_01" bgColor="#ffffff">
-
- <select name="gender" id="sex">
- <option value="">--选择性别--</option>
- <option value="男">男</option>
- <option value="女">女</option>
-
-
- </select>
- </td>
- </tr>
- <tr>
- <td height="22" align="center" bgColor="#f5fafe" class="ta_01">
- 学历:
- </td>
- <td class="ta_01" bgColor="#ffffff">
-
- <select name="education" id="education">
- <option value="">--选择学历--</option>
- <option value="博士">博士</option>
- <option value="硕士">硕士</option>
- <option value="研究生">研究生</option>
- <option value="本科">本科</option>
- <option value="专科">专科</option>
- <option value="高中">高中</option>
-
-
- </select>
- </td>
- <td height="22" align="center" bgColor="#f5fafe" class="ta_01">
- 是否上传简历
- </td>
- <td class="ta_01" bgColor="#ffffff">
-
- <select name="resume" id="isUpload">
- <option value="">--请选择--</option>
- <option value="1">有</option>
- <option value="2">无</option>
- </select>
- </td>
- </tr>
- <tr>
- <td width="100" height="22" align="center" bgColor="#f5fafe"
- class="ta_01">
- </td>
- <td class="ta_01" bgColor="#ffffff">
- <font face="宋体" color="red"> </font>
- </td>
- <td align="right" bgColor="#ffffff" class="ta_01"><br><br></td>
- <td align="right" bgColor="#ffffff" class="ta_01">
- <button type="submit" id="search" name="search" value="查询" class="button_view">
- 查询
- </button>
-
- <input type="reset" name="reset" value="重置" class="button_view"/>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td class="ta_01" align="center" bgColor="#afd1f3">
- <strong>人员 列 表</strong>
- </TD>
- </tr>
- <tr>
- <td class="ta_01" align="right">
- <button type="button" id="add" name="add" value="添加" class="button_add" onclick="addUser()">
- 添加
- </button>
- </td>
- </tr>
- <tr>
- <td class="ta_01" align="center" bgColor="#f5fafe">
- <table cellspacing="0" cellpadding="1" rules="all"
- bordercolor="gray" border="1" id="DataGrid1"
- 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">
- <tr
- style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">
- <td align="center" width="18%">
- 登录名
- </td>
- <td align="center" width="17%">
- 用户姓名
- </td>
- <td align="center" width="8%">
- 性别
- </td>
- <td align="center" width="23%">
- 联系电话
- </td>
- <td width="11%" align="center">
- 学历
- </td>
- <td width="7%" align="center">
- 编辑
- </td>
- <td width="7%" align="center">
- 查看
- </td>
- <td width="7%" align="center">
- 删除
- </td>
- </tr>
- <c:forEach items="${pageBean.list }" var="p">
- <tr onmouseover="this.style.backgroundColor = 'white'"
- onmouseout="this.style.backgroundColor = '#F5FAFE';">
- <td style="CURSOR: hand; HEIGHT: 22px" align="center"
- width="18%">
- ${p.username }
- </td>
- <td style="CURSOR: hand; HEIGHT: 22px" align="center"
- width="17%">
- ${p.realname }
- </td>
- <td style="CURSOR: hand; HEIGHT: 22px" align="center"
- width="8%">
- ${p.gender }
- </td>
- <td style="CURSOR: hand; HEIGHT: 22px" align="center"
- width="23%">
- ${p.phone }
- </td>
- <td style="CURSOR: hand; HEIGHT: 22px" align="center">
- ${p.education }
- </td>
- <td align="center" style="HEIGHT: 22px">
- <a href="${pageContext.request.contextPath}/person?method=toUpdatePage&pid=${p.pid }">
- <img src="${pageContext.request.contextPath}/images/i_edit.gif" border="0" style="CURSOR: hand">
- </a>
- </td>
- <td align="center" style="HEIGHT: 22px">
- <a href="${pageContext.request.contextPath}/person?method=viewPerson&pid=${p.pid}">
- <img src="${pageContext.request.contextPath}/images/button_view.gif" border="0" style="CURSOR: hand">
- </a>
- </td>
- <td align="center" style="HEIGHT: 22px">
- <a href="#" onclick="deletePerson('${p.pid}');">
- <img src="${pageContext.request.contextPath}/images/i_del.gif" width="16" height="16" border="0" style="CURSOR: hand">
- </a>
- </td>
- </tr>
- </c:forEach>
- </table>
- <span>
- 当前 ${pageBean.currentPage} 页/ ${pageBean.totalPage}页,共 ${pageBean.totalCount}记录
-
- <a href="${pageContext.request.contextPath}/person?method=list¤tPage=1">首页</a>
- <c:if test="${pageBean.currentPage!=1 }">
- <a href="${pageContext.request.contextPath}/person?method=list¤tPage=${pageBean.currentPage-1}">上一页</a>
- </c:if>
- <c:if test="${pageBean.currentPage!=pageBean.totalPage }">
- <a href="${pageContext.request.contextPath}/person?method=list¤tPage=${pageBean.currentPage+1}">下一页</a>
- </c:if>
- <a href="${pageContext.request.contextPath}/person?method=list¤tPage=${pageBean.totalPage}">尾页</a>
- </span>
- </td>
- </tr>
- </TBODY>
- </table>
- </form>
- </body>
- </HTML>
|