readerBorrowSort.jsp~4~
上传用户:toby828
上传日期:2015-06-26
资源大小:8558k
文件大小:3k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ page import="com.dao.BorrowDAO" %>
  3. <%@ page import="com.actionForm.BorrowForm" %>
  4. <%@ page import="java.util.*"%>
  5. <html>
  6. <%
  7. Collection coll=(Collection)request.getAttribute("readerBorrowSort");
  8. %>
  9. <head>
  10. <title>图书馆管理系统</title>
  11. <link href="CSS/style.css" rel="stylesheet">
  12. </head>
  13. <body onLoad="clockon(bgclock)">
  14. <table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
  15.   <tr>
  16.     <td height="183">
  17. <%@include file="navigation.jsp"%>
  18. </td>
  19. </tr>
  20. <td>
  21. <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  22.   <tr>
  23.     <td valign="top" bgcolor="#FFFFFF"><table width="99%" height="966"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
  24.   <tr>
  25.     <td height="966" valign="top" style="padding:5px;"><table width="98%" height="487"  border="0" cellpadding="0" cellspacing="0">
  26.       <tr>
  27.         <td height="22" valign="top" class="word_orange">当前位置:排行榜 &gt; 读者借阅排行榜 &gt;&gt;&gt;</td>
  28.       </tr>
  29.       <tr>
  30.         <td align="center" valign="top"><%
  31. if(coll==null || coll.isEmpty()){
  32. %>
  33.           <table width="100%" height="30"  border="0" cellpadding="0" cellspacing="0">
  34.             <tr>
  35.               <td height="36" align="center">暂无读者借阅信息!</td>
  36.             </tr>
  37.           </table>
  38.           <%
  39. }else{
  40.   //通过迭代方式显示数据
  41.   Iterator it=coll.iterator();
  42.   int degree=0;
  43.   String readername="";
  44.   String typename="";
  45.   String barcode_reader="";
  46.   String paperType="";
  47.   String paperNo="";
  48.   String tel="";
  49.   String sex="";
  50.   %>
  51.  <table width="98%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
  52.   <tr align="center" bgcolor="#e3F4F7">
  53.   <td width="8%">借阅次数</td>
  54.     <td width="11%">读者条形码</td>
  55.     <td width="12%">读者姓名</td>
  56.     <td width="13%">读者类型</td>
  57.     <td width="23%">证件类型</td>
  58.     <td width="14%">证件号码</td>
  59.     <td width="12%">电话</td>
  60.     <td colspan="2">性别</td>
  61.     </tr>
  62. <%
  63.   while(it.hasNext()){
  64.     BorrowForm borrowForm=(BorrowForm)it.next();
  65. readername=chStr.toChinese(borrowForm.getReaderName());
  66.         barcode_reader=borrowForm.getReaderBarcode();
  67.         typename=chStr.toChinese(borrowForm.getReaderType());
  68.         degree=borrowForm.getDegree();
  69.         paperType=chStr.toChinese(borrowForm.getPaperType());
  70.         paperNo=borrowForm.getPaperNo();
  71.         tel=borrowForm.getTel();
  72.         sex=chStr.toChinese(borrowForm.getSex());
  73. %>
  74.   <tr>
  75.     <td align="center">&nbsp;<%=degree%></td>
  76.     <td style="padding:5px;">&nbsp;<%=barcode_book%></td>
  77.     <td style="padding:5px;"><%=bookname%></td>
  78.     <td style="padding:5px;"><%=typename%></td>
  79.     <td align="center">&nbsp;<%=bookcase%></td>
  80.     <td align="center">&nbsp;<%=pub%></td>
  81.     <td width="12%" align="center"><%=author%></td>
  82.     <td width="7%" align="center"><%=price%></td>
  83.   </tr>
  84. <%
  85.   }
  86. }
  87. %>
  88. </table></td>
  89.       </tr>
  90.     </table>
  91. </td>
  92.   </tr>
  93. </table></td>
  94.   </tr>
  95. </table>
  96. </td>
  97.   </tr>
  98. </table>
  99. </body>
  100. </html>