bremind.jsp
上传用户: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("Bremind");
  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" bgcolor="#FFFFFF" class="tableBorder">
  15.   <tr>
  16.     <td height="183">
  17. <%@include file="navigation.jsp"%>
  18. </td>
  19.   </tr>
  20. <td bgcolor="#FFFFFF">
  21. <table width="100%"  border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
  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.   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="15%">图书条形码t</td>
  52.     <td width="28%">图书名称</td>
  53.     <td width="17%">读者条形码</td>
  54.     <td width="9%">读者名称</td>
  55.     <td width="15%">借阅时间</td>
  56.     <td width="16%">应还时间</td>
  57.     </tr>
  58. <%
  59.   while(it.hasNext()){
  60.     BorrowForm borrowForm=(BorrowForm)it.next();
  61. bookname=chStr.toChinese(borrowForm.getBookName());
  62. bookbarcode=borrowForm.getBookBarcode();
  63. readerbar=chStr.toChinese(borrowForm.getReaderBarcode());
  64. readername=chStr.toChinese(borrowForm.getReaderName());
  65. borrowTime=borrowForm.getBorrowTime();
  66. backTime=borrowForm.getBackTime();
  67. %>
  68.   <tr>
  69.     <td style="padding:5px;">&nbsp;<%=bookbarcode%></td>
  70.     <td style="padding:5px;"><%=bookname%></td>
  71.     <td style="padding:5px;">&nbsp;<%=readerbar%></td>
  72.     <td style="padding:5px;">&nbsp;<%=readername%></td>
  73.     <td style="padding:5px;">&nbsp;<%=borrowTime%></td>
  74.     <td style="padding:5px;">&nbsp;<%=backTime%></td>
  75.     </tr>
  76. <%
  77.   }
  78. }
  79. %>
  80. </table></td>
  81.       </tr>
  82.     </table>
  83. </td>
  84.   </tr>
  85. </table><%@ include file="copyright.jsp"%></td>
  86.   </tr>
  87. </table>
  88. </td>
  89.   </tr>
  90. </table>
  91. </body>
  92. </html>