archive_user_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 = "",sex = "",userRealName = "",userName = "";
  40. sql = ArchiveSQLBuilder.getUserInfoHis();
  41. String querystr = "";
  42. int pagesize = 10;
  43. Paginator paginator = new Paginator(request);
  44. int curpage = paginator.getCurPage();
  45. UserInfoHisDb uihd = new UserInfoHisDb();
  46. ListResult lr = uihd.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. while (ir!=null && ir.hasNext()) {
  80. uihd = (UserInfoHisDb)ir.next();
  81. %>
  82.       <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#B6CFC5" bgcolor="#FFFFFF">
  83.         <tr align="center" >
  84.           <td width="19%" height="22"><%=uihd.getUserRealName()%></td> 
  85.           <td width="15%"><%=uihd.getSex()%></td>
  86.   <td width="16%"><%=DateUtil.format(uihd.getBirthday(),"yyyy-MM-dd")%></td>
  87.   <td width="14%"><%=DateUtil.format(uihd.getJoinWorkDate(),"yyyy-MM-dd")%></td>
  88.   <td width="12%"><%=uihd.getCulture()%></td>
  89.           <td width="24%"><a href="archive_user_his_show.jsp?id=<%=uihd.getId()%>">查看</a></td>
  90.         </tr>
  91.       </table>
  92.       <%}%>  
  93.       <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center" class="9black">
  94.         <tr> 
  95.           <td width="1%" height="23">&nbsp;</td>
  96.           <td height="23" valign="baseline"> 
  97.             <div align="right">
  98.              <%
  99.    out.print(paginator.getCurPageBlock("?"+querystr));
  100.  %>
  101.             &nbsp;</div></td>
  102.         </tr>
  103.       </table>    </td>
  104.   </tr>
  105.   <tr> 
  106.     <td height="30" colspan="2" align="center">
  107.     </td>
  108.   </tr>
  109. </table>
  110. </body>
  111. </html>