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

图形图象

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java"%>
  2. <%@ page import="com.dao.BorrowDAO"%>
  3. <%@ page import="com.actionForm.BorrowForm"%>
  4. <%@ page import="java.util.*"%>
  5. <html>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <head>
  8. <title>图书馆管理系统</title>
  9. <link href="CSS/style.css" rel="stylesheet">
  10. </head>
  11. <body onLoad="clockon(bgclock)">
  12. <table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
  13.   <tr>
  14.     <td height="183">
  15. <%@include file="navigation.jsp"%>
  16. </td>
  17. </tr>
  18. <td bgcolor="#FFFFFF">
  19. <%
  20. BorrowDAO borrowDAO=new BorrowDAO();
  21. Collection coll_reader=(Collection)borrowDAO.readerBorrowSort();
  22. Collection coll_book=(Collection)borrowDAO.bookBorrowSort();
  23. %>
  24. <table width="100%"  border="0" cellspacing="0" cellpadding="0" >
  25.   <tr>
  26.     <td valign="top" bgcolor="#FFFFFF"><table width="99%" height="510"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
  27.   <tr>
  28.     <td align="center" valign="top" style="padding:5px;"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
  29.       <tr>
  30.   
  31.         <td height="20" align="right" valign="middle" class="word_orange">
  32. 当前位置:首页 &gt;&gt;&gt;&nbsp;</td>
  33.       </tr>
  34.       <tr>
  35.         <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
  36.           <tr>
  37.             <td height="57" background="Images/main_booksort.gif">&nbsp;</td>
  38.           </tr>
  39.           <tr>
  40.             <td height="72" valign="top" background="Images/main_booksort_1.gif"><table width="100%" height="63"  border="0" cellpadding="0" cellspacing="0">
  41.               <tr>
  42.                 <td width="2%">&nbsp;</td>
  43.                 <td width="96%" align="center" valign="top"><table width="100%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
  44.                   <tr align="center">
  45.                     <td width="6%" height="25">排名</td>
  46.     <td width="11%">图书条形码</td>
  47.     <td width="17%">图书名称</td>
  48.     <td width="15%">图书类型</td>
  49.     <td width="16%">书架</td>
  50.     <td width="14%">出版社</td>
  51.     <td width="11%">作者</td>
  52.     <td colspan="2">定价(元)</td>
  53.                       </tr>
  54. <%if(coll_book!=null && !coll_book.isEmpty()){
  55.   Iterator it_book=coll_book.iterator();
  56.   int i=1;
  57.   int degree=0;
  58.   String bookname="";
  59.   String typename="";
  60.   String barcode_book="";
  61.   String bookcase="";
  62.   String pub="";
  63.   String author="";
  64.   String translator="";
  65.   Float price=new Float(0);
  66.   while(it_book.hasNext() && i<6){
  67.       BorrowForm borrowForm=(BorrowForm)it_book.next();
  68. bookname=chStr.toChinese(borrowForm.getBookName());
  69.         barcode_book=borrowForm.getBookBarcode();
  70.         typename=chStr.toChinese(borrowForm.getBookType());
  71. degree=borrowForm.getDegree();
  72. bookcase=chStr.toChinese(borrowForm.getBookcaseName());
  73.         pub=chStr.toChinese(borrowForm.getPubName());
  74.         author=chStr.toChinese(borrowForm.getAuthor());
  75.         price=borrowForm.getPrice();
  76. %> 
  77.                   <tr>
  78.                     <td height="25" align="center"><%=i%></td>
  79.     <td style="padding:5px;">&nbsp;<%=barcode_book%></td>
  80.     <td style="padding:5px;"><%=bookname%></td>
  81.     <td style="padding:5px;"><%=typename%></td>
  82.     <td align="center">&nbsp;<%=bookcase%></td>
  83.     <td align="center">&nbsp;<%=pub%></td>
  84.     <td width="11%" align="center"><%=author%></td>
  85.     <td width="8%" align="center"><%=price%></td>
  86.   </tr>
  87. <%
  88. i++;
  89. }
  90. }%>
  91.                 </table>
  92.                   <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  93.                     <tr>
  94.                       <td height="39" align="right"><a href=borrow.do?action=bookBorrowSort><img src="Images/more.GIF" width="50" height="20" border="0"></a></td>
  95.                     </tr>
  96.                   </table></td>
  97.                 <td width="2%">&nbsp;</td>
  98.               </tr>
  99.             </table></td>
  100.           </tr>
  101.           <tr>
  102.             <td height="19" background="Images/main_booksort_2.gif">&nbsp;</td>
  103.           </tr>
  104.         </table>
  105.           <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  106.             <tr>
  107.               <td height="57" background="Images/main_readersort_1.gif">&nbsp;</td>
  108.             </tr>
  109.             <tr>
  110.               <td height="72" valign="top" background="Images/main_booksort_1.gif">
  111.                 <table width="100%" height="63"  border="0" cellpadding="0" cellspacing="0">
  112.                   <tr>
  113.                     <td width="2%">&nbsp;</td>
  114.                     <td width="96%" align="center" valign="top"><table width="100%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#eeeeee" bordercolorlight="#FFFFFF">
  115.                       <tr align="center" bordercolordark="#D2E3E6">
  116.                         <td width="6%" height="25" align="center">排名</td>
  117.     <td width="11%">读者条形码</td>
  118.     <td width="12%">读者姓名</td>
  119.     <td width="13%">读者类型</td>
  120.     <td width="23%">证件类型</td>
  121.     <td width="14%">证件号码</td>
  122.     <td width="12%">电话</td>
  123.     <td colspan="2">性别</td>
  124.                       </tr>
  125.   <%if(coll_book!=null && !coll_book.isEmpty()){
  126.   Iterator it_reader=coll_reader.iterator();
  127.   int j=1;
  128.   String readername="";
  129.   String typename="";
  130.   String barcode_reader="";
  131.   String paperType="";
  132.   String paperNo="";
  133.   String tel="";
  134.   String sex="";
  135.   while(it_reader.hasNext() && j<6){
  136.       BorrowForm borrowForm=(BorrowForm)it_reader.next();
  137. readername=chStr.toChinese(borrowForm.getReaderName());
  138.         barcode_reader=borrowForm.getReaderBarcode();
  139.         typename=chStr.toChinese(borrowForm.getReaderType());
  140.         paperType=chStr.toChinese(borrowForm.getPaperType());
  141.         paperNo=borrowForm.getPaperNo();
  142.         tel=borrowForm.getTel();
  143.         sex=chStr.toChinese(borrowForm.getSex());
  144. %> 
  145.                   <tr>
  146.                     <td height="25" align="center"><%=j%></td>
  147.     <td style="padding:5px;">&nbsp;<%=barcode_reader%></td>
  148.     <td style="padding:5px;"><%=readername%></td>
  149.     <td style="padding:5px;"><%=typename%></td>
  150.     <td align="center">&nbsp;<%=paperType%></td>
  151.     <td align="center">&nbsp;<%=paperNo%></td>
  152.     <td width="12%" align="center"><%=tel%></td>
  153.     <td width="7%" align="center"><%=sex%></td>
  154.                   </tr>
  155. <%
  156. j++;
  157. }
  158. }%>
  159.                     </table>
  160.                       <table width="100%" height="42"  border="0" cellpadding="0" cellspacing="0">
  161.                         <tr>
  162.                           <td height="35" align="right"><a href=borrow.do?action=readerBorrowSort><img src="Images/more.GIF" width="50" height="20" border="0"></a></td>
  163.                         </tr>
  164.                       </table></td>
  165.                     <td width="2%">&nbsp;</td>
  166.                   </tr>
  167.                 </table></td>
  168.             </tr>
  169.             <tr>
  170.               <td height="19" background="Images/main_booksort_2.gif">&nbsp;</td>
  171.             </tr>
  172.           </table></td>
  173.       </tr>
  174.     </table>
  175.       </td>
  176.   </tr>
  177. </table></td>
  178.   </tr>
  179. </table>
  180. <%@ include file="copyright.jsp"%></td>
  181. </table>
  182. </body>
  183. </html>