archive_family_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. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <title>人事档案管理</title>
  12. <link href="../common.css" rel="stylesheet" type="text/css">
  13. <%@ include file="../inc/nocache.jsp"%>
  14. <style type="text/css">
  15. <!--
  16. .STYLE2 {color: #0033FF}
  17. .STYLE3 {color: #FF0000}
  18. -->
  19. </style>
  20. </head>
  21. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  22. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  23. <% 
  24.     if (!privilege.isUserPrivValid(request, "archive.his")) {
  25. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  26. return;
  27. }
  28. %>
  29. <%@ include file="archive_inc_his_menu_top.jsp"%>
  30. <br>
  31. <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="main">
  32.   <tr> 
  33.     <td width="840" height="23" valign="middle" class="right-title"><span>&nbsp;家庭信息管理</span></td>
  34.   </tr>
  35.   <tr> 
  36.     <td valign="top" background="images/tab-b-back.gif">
  37. <%
  38.     String sql = ArchiveSQLBuilder.getUserFamilyHis();
  39. String querystr = "";
  40. int pagesize = 10;
  41. Paginator paginator = new Paginator(request);
  42. int curpage = paginator.getCurPage();
  43. UserFamilyHisDb ufhd = new UserFamilyHisDb();
  44. ListResult lr = ufhd.listResult(sql, curpage, pagesize);
  45. int total = lr.getTotal();
  46. Vector v = lr.getResult();
  47.     Iterator ir = null;
  48. if (v!=null)
  49. ir = v.iterator();
  50. paginator.init(total, pagesize);
  51. // 设置当前页数和总页数
  52. int totalpages = paginator.getTotalPages();
  53. if (totalpages==0)
  54. {
  55. curpage = 1;
  56. totalpages = 1;
  57. }
  58. %>
  59.       <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  60.         <tr> 
  61.           <td width="47">&nbsp;</td>
  62.           <td align="right" backgroun="images/title1-back.gif">找到符合条件的记录 <b><%=paginator.getTotal() %></b> 条 每页显示 <b><%=paginator.getPageSize() %></b> 条 页次 <b><%=curpage %>/<%=totalpages %></td>
  63.         </tr>
  64.       </table>
  65.     <table width="97%" border="0" align="center" cellpadding="2" cellspacing="0" >
  66.           <tr align="center" bgcolor="#C4DAFF">
  67.             <td width="19%" height="24" >称谓</td>
  68.             <td width="15%" bgcolor="#C4DAFF" >成员姓名</td>
  69.             <td width="16%" bgcolor="#C4DAFF" >年龄</td>
  70.             <td width="14%" >政治面貌</td>
  71.             <td width="12%" >联系电话</td>
  72.             <td width="24%" >操作</td>
  73.           </tr>
  74.         </table>
  75.     <%
  76.    int i = 0;
  77. while (ir!=null && ir.hasNext()) {
  78. ufhd = (UserFamilyHisDb)ir.next();
  79. %>
  80.       <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#B6CFC5" bgcolor="#FFFFFF">
  81.         <tr align="center" >
  82.           <td width="19%" height="22"><%=ufhd.getAppellation()%></td> 
  83.           <td width="15%"><%=ufhd.getName()%></td>
  84.   <td width="16%"><%=ufhd.getAge()%></td>
  85.   <td width="14%"><%=ufhd.getPolitic()%></td>
  86.   <td width="12%"><%=ufhd.getPhone()%></td>
  87.           <td><a href="archive_family_his_show.jsp?id=<%=ufhd.getId()%>">查看</a></td>
  88.     </tr>
  89.       </table>
  90.       <%}%>  
  91.       <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center" class="9black">
  92.         <tr> 
  93.           <td width="1%" height="23">&nbsp;</td>
  94.           <td height="23" valign="baseline"> 
  95.             <div align="right">
  96.              <%
  97.    out.print(paginator.getCurPageBlock("?"+querystr));
  98.  %>
  99.             &nbsp;</div></td>
  100.         </tr>
  101.       </table>    </td>
  102.   </tr>
  103.   <tr> 
  104.     <td height="30" colspan="2" align="center">
  105.     </td>
  106.   </tr>
  107. </table>
  108. </body>
  109. </html>