bookBorrowSort.jsp~1~
上传用户: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("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="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 ID=0;
  43.   int degree=0;
  44.   String bookname="";
  45.   String typename="";
  46.   String barcode_book="";
  47.   String bookcase="";
  48.   String pub="";
  49.   String author="";
  50.   String translator="";
  51.   Float price=new Float(0);
  52.   %>
  53.  <table width="95%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
  54.   <tr align="center" bgcolor="#e3F4F7">
  55.   <td width="12%">借阅次数</td>  
  56.     <td width="12%">图书条形码</td>  
  57.     <td width="9%">图书名称</td>j
  58.     <td width="10%">图书类型</td>
  59.     <td width="8%">书架</td>
  60.     <td width="11%">出版社</td>
  61.     <td width="19%">作者</td>
  62.     <td width="19%">译者</td>
  63.     <td colspan="2">定价</td>
  64.     </tr>
  65. <%
  66.   while(it.hasNext()){
  67.     BorrowForm borrowForm=(BorrowForm)it.next();
  68. ID=borrowForm.getId().intValue();
  69. bookname=chStr.toChinese(borrowForm.getBookName());
  70. degree=borrowForm.getDegree();
  71. %> 
  72.   <tr>
  73.     <td align="center">&nbsp;<%=degree%></td>
  74.     <td style="padding:5px;">&nbsp;<%=barcode_book%></td>  
  75.     <td style="padding:5px;">><%=bookname%></td>
  76.     <td style="padding:5px;"><%=typename%></td>
  77.     <td align="center">&nbsp;<%=bookcase%></td>
  78.     <td align="center">&nbsp;<%=pub%></td>
  79.     <td width="11%" align="center"><%=author%></td>
  80.     <td width="11%" align="center"><%=translator%></td>
  81.     <td width="11%" align="center"><%=price%></td>
  82.   </tr>
  83. <%
  84.   }
  85. }
  86. %>  
  87. </table></td>
  88.       </tr>
  89.     </table>
  90. </td>
  91.   </tr>
  92. </table></td>
  93.   </tr>
  94. </table>
  95. </td>
  96.   </tr>
  97. </table>
  98. </body>
  99. </html>