remind.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("remind");
  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.   String bookname="";
  43.   String bookbarcode="";
  44.   String readerbar="";
  45.   String readername="";
  46.   String borrowTime="";
  47.   String backTime="";
  48.   %>
  49.           <table width="98%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
  50.   <tr align="center" bgcolor="#e3F4F7">
  51.     <td width="13%">图书条形码</td>  
  52.     <td width="26%">图书名称</td>
  53.     <td width="15%">读者条形码</td>
  54.     <td width="14%">读者名称</td>
  55.     <td width="12%">借阅时间</td>
  56.     <td width="9%">应还时间</td>
  57.     </tr>
  58. <%
  59.   while(it.hasNext()){
  60.     BorrowForm borrowForm=(BorrowForm)it.next();
  61. bookname=chStr.toChinese(borrowForm.getBookname());
  62. barcode=borrowForm.getBarcode();
  63. typename=chStr.toChinese(borrowForm.getTypeName());
  64. publishing=chStr.toChinese(borrowForm.getPublishing());
  65. bookcase=chStr.toChinese(borrowForm.getBookcaseName());
  66. storage=borrowForm.getStorage();
  67. %> 
  68.   <tr>
  69.     <td style="padding:5px;">&nbsp;<%=barcode%></td>  
  70.     <td style="padding:5px;"><a href="book.do?action=bookDetail&ID=<%=ID%>"><%=bookname%></a></td>
  71.     <td style="padding:5px;">&nbsp;<%=typename%></td>  
  72.     <td style="padding:5px;">&nbsp;<%=publishing%></td>  
  73.     <td style="padding:5px;">&nbsp;<%=bookcase%></td>  
  74.     <td style="padding:5px;">&nbsp;<%=storage%></td>  
  75.     </tr>
  76. <%
  77.   }
  78. }
  79. %>  
  80. </table></td>
  81.       </tr>
  82.     </table>
  83. </td>
  84.   </tr>
  85. </table></td>
  86.   </tr>
  87. </table>
  88. </td>
  89.   </tr>
  90. </table>
  91. </body>
  92. </html>