bookBorrowSort.jsp
上传用户:ycdfsj258
上传日期:2022-08-04
资源大小:1094k
文件大小:3k
源码类别:

图形图象

开发平台:

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("bookBorrowSort");
  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="510"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
  24.   <tr>
  25.     <td height="510" 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 bookname="";
  44.   String typename="";
  45.   String barcode_book="";
  46.   String bookcase="";
  47.   String pub="";
  48.   String author="";
  49.   String translator="";
  50.   Float price=new Float(0);
  51.   %>
  52.  <table width="98%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
  53.   <tr align="center" bgcolor="#e3F4F7">
  54.   <td width="8%">借阅次数</td>
  55.     <td width="11%">图书条形码</td>
  56.     <td width="17%">图书名称</td>
  57.     <td width="15%">图书类型</td>
  58.     <td width="16%">书架</td>
  59.     <td width="14%">出版社</td>
  60.     <td width="11%">作者</td>
  61.     <td colspan="2">定价(元)</td>
  62.     </tr>
  63. <%
  64.   while(it.hasNext()){
  65.     BorrowForm borrowForm=(BorrowForm)it.next();
  66. bookname=chStr.toChinese(borrowForm.getBookName());
  67.         barcode_book=borrowForm.getBookBarcode();
  68.         typename=chStr.toChinese(borrowForm.getBookType());
  69. degree=borrowForm.getDegree();
  70. bookcase=chStr.toChinese(borrowForm.getBookcaseName());
  71.         pub=chStr.toChinese(borrowForm.getPubName());
  72.         author=chStr.toChinese(borrowForm.getAuthor());
  73.         price=borrowForm.getPrice();
  74. %>
  75.   <tr>
  76.     <td align="center">&nbsp;<%=degree%></td>
  77.     <td style="padding:5px;">&nbsp;<%=barcode_book%></td>
  78.     <td style="padding:5px;"><%=bookname%></td>
  79.     <td style="padding:5px;"><%=typename%></td>
  80.     <td align="center">&nbsp;<%=bookcase%></td>
  81.     <td align="center">&nbsp;<%=pub%></td>
  82.     <td width="11%" align="center"><%=author%></td>
  83.     <td width="8%" align="center"><%=price%></td>
  84.   </tr>
  85. <%
  86.   }
  87. }
  88. %>
  89. </table></td>
  90.       </tr>
  91.     </table>
  92. </td>
  93.   </tr>
  94. </table><%@ include file="copyright.jsp"%></td>
  95.   </tr>
  96. </table>
  97. </td>
  98. </table>
  99. </body>
  100. </html>