archive_resume_his_list.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.util.*"%>
  3. <%@ page import = "cn.js.fan.db.*"%>
  4. <%@ page import = "cn.js.fan.web.*"%>
  5. <%@ page import = "cn.js.fan.util.*"%>
  6. <%@ page import = "com.redmoon.oa.archive.*"%>
  7. <%@ page import = "com.redmoon.oa.person.*"%>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  12. <title>人事档案管理</title>
  13. <link href="../common.css" rel="stylesheet" type="text/css">
  14. <%@ include file="../inc/nocache.jsp"%>
  15. <style type="text/css">
  16. <!--
  17. .STYLE2 {color: #0033FF}
  18. .STYLE3 {color: #FF0000}
  19. -->
  20. </style>
  21. </head>
  22. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  23. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  24. <% 
  25.     if (!privilege.isUserPrivValid(request, "archive.his")) {
  26. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  27. return;
  28. }
  29. %>
  30. <%@ include file="archive_inc_his_menu_top.jsp"%>
  31. <br>
  32. <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="main">
  33.   <tr> 
  34.     <td width="840" height="23" valign="middle" class="right-title"><span>&nbsp;履历信息管理</span></td>
  35.   </tr>
  36.   <tr> 
  37.     <td valign="top" background="images/tab-b-back.gif">
  38. <%
  39. String sql = "",userRealName = "";
  40. sql = ArchiveSQLBuilder.getUserResumeHis();
  41. String querystr = "";
  42. int pagesize = 10;
  43. Paginator paginator = new Paginator(request);
  44. int curpage = paginator.getCurPage();
  45. UserResumeHisDb urhd = new UserResumeHisDb();
  46. ListResult lr = urhd.listResult(sql, curpage, pagesize);
  47. int total = lr.getTotal();
  48. Vector v = lr.getResult();
  49. Iterator ir = null;
  50. if (v!=null)
  51. ir = v.iterator();
  52. paginator.init(total, pagesize);
  53. // 设置当前页数和总页数
  54. int totalpages = paginator.getTotalPages();
  55. if (totalpages==0)
  56. {
  57. curpage = 1;
  58. totalpages = 1;
  59. }
  60. %>
  61.       <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  62.         <tr> 
  63.           <td width="47">&nbsp;</td>
  64.           <td align="right" backgroun="images/title1-back.gif">找到符合条件的记录 <b><%=paginator.getTotal() %></b> 条 每页显示 <b><%=paginator.getPageSize() %></b> 条 页次 <b><%=curpage %>/<%=totalpages %></td>
  65.         </tr>
  66.       </table>
  67.     <table width="97%" border="0" align="center" cellpadding="2" cellspacing="0" >
  68.           <tr align="center" bgcolor="#C4DAFF">
  69.             <td width="19%" height="24" >姓名</td>
  70.             <td width="15%" bgcolor="#C4DAFF" >单位名称</td>
  71.             <td width="16%" bgcolor="#C4DAFF" >担任工作</td>
  72.             <td width="14%" >开始时间</td>
  73.             <td width="12%" >结束时间</td>
  74.             <td width="24%" >操作</td>
  75.           </tr>
  76.         </table>
  77.     <%
  78.    int i = 0;
  79. UserInfoHisDb uihd = new UserInfoHisDb();
  80. while (ir!=null && ir.hasNext()) {
  81. urhd = (UserResumeHisDb)ir.next();
  82. userRealName = uihd.getUserRealName(urhd.getUserName());  
  83. %>
  84.       <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#B6CFC5" bgcolor="#FFFFFF">
  85.         <tr align="center" >
  86.           <td width="19%" height="22"><%=userRealName%></td> 
  87.           <td width="15%"><%=urhd.getCompany()%></td>
  88.   <td width="16%"><%=urhd.getJob()%></td>
  89.   <td width="14%"><%=DateUtil.format(urhd.getBeginDate(),"yyyy-MM-dd")%></td>
  90.   <td width="12%"><%=DateUtil.format(urhd.getEndDate(),"yyyy-MM-dd")%></td>
  91.           <td><a href="archive_resume_his_show.jsp?id=<%=urhd.getId()%>">查看</a></td>
  92.   </tr>
  93.       </table>
  94.       <%}%>   
  95.       <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center" class="9black">
  96.         <tr> 
  97.           <td width="1%" height="23">&nbsp;</td>
  98.           <td height="23" valign="baseline"> 
  99.             <div align="right">
  100.              <%
  101.    out.print(paginator.getCurPageBlock("?"+querystr));
  102.  %>
  103.             &nbsp;</div></td>
  104.         </tr>
  105.       </table>    </td>
  106.   </tr>
  107.   <tr> 
  108.     <td height="30" colspan="2" align="center">
  109.     </td>
  110.   </tr>
  111. </table>
  112. </body>
  113. </html>