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

图形图象

开发平台:

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="com.actionForm.ReaderForm" %>
  5. <%@ page import="java.util.*"%>
  6. <html>
  7. <%
  8. ReaderForm readerForm=(ReaderForm)request.getAttribute("readerinfo");
  9. Collection coll=(Collection)request.getAttribute("borrowinfo");
  10. %>
  11. <head>
  12. <title>图书馆管理系统</title>
  13. <link href="CSS/style.css" rel="stylesheet">
  14. </head>
  15. <body onLoad="clockon(bgclock)">
  16. <table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
  17.   <tr>
  18.     <td height="183">
  19. <%@include file="navigation.jsp"%>
  20. </td>
  21. </tr>
  22. <td>
  23. <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  24.   <tr>
  25.     <td valign="top" bgcolor="#FFFFFF"><table width="99%" height="510"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
  26.   <tr>
  27.     <td height="510" align="center" valign="top" style="padding:5px;"><table width="98%" height="487"  border="0" cellpadding="0" cellspacing="0">
  28.       <tr>
  29.         <td height="22" valign="top" class="word_orange">当前位置:图书借还 &gt; 图书续借 &gt;&gt;&gt;</td>
  30.       </tr>
  31.       <tr>
  32.         <td align="center" valign="top">
  33. <script language="javascript">
  34. function checkreader(form){
  35. if(form.barcode.value==""){
  36. alert("请输入读者条形码!");form.barcode.focus();return;
  37. }
  38. form.submit();
  39. }
  40. </script>
  41. <form name="form1" method="post" action="borrow.do?action=bookrenew">
  42. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableBorder_gray">
  43.    <tr>
  44.      <td valign="top"><table width="100%" border="0" cellpadding="02" cellspacing="2" bordercolor="#E3F4F7">
  45.        <tr>
  46.          <td height="27" bgcolor="#E3F4F7">&nbsp;<img src="Images/bookrenew.jpg" width="73" height="23"></td>
  47.        </tr>
  48.        <tr>
  49.          <td valign="top" bgcolor="#E3F4F7">
  50. <%
  51. int ID=0;
  52. String name="";
  53. String sex="";
  54. String barcode="";
  55. String birthday="";
  56. String paperType="";
  57. String paperNO="";
  58. int number=0;
  59. String typename="";
  60. if(readerForm!=null){
  61. ID=readerForm.getId().intValue();
  62. name=chStr.toChinese(readerForm.getName());
  63. sex=chStr.toChinese(readerForm.getSex());
  64. barcode=readerForm.getBarcode();
  65. birthday=readerForm.getBirthday();
  66. paperType=chStr.toChinese(readerForm.getPaperType());
  67. paperNO=readerForm.getPaperNO();
  68. number=readerForm.getNumber();
  69. typename=chStr.toChinese(readerForm.getTypename());
  70. }
  71. %>
  72.  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  73.            <tr>
  74.              <td width="33%"><table width="100%" height="74" border="0" cellpadding="0" cellspacing="0">
  75.                <tr>
  76.                  <td height="27" colspan="2" align="center"><table width="90%" height="21" border="0" cellpadding="0" cellspacing="0">
  77.                    <tr>
  78.                      <td background="Images/reader_checkbg.jpg">&nbsp;读者验证</td>
  79.                    </tr>
  80.                  </table></td>
  81.                </tr>
  82.                <tr>
  83.                  <td width="8%" height="27">&nbsp;</td>
  84.                  <td width="92%">读者条形码:</td>
  85.                </tr>
  86.                <tr>
  87.                  <td height="27" colspan="2" align="center"><input name="barcode" type="text" id="barcode" value="<%=barcode%>" size="24">
  88.                    &nbsp;
  89.                    <input name="Button" type="button" class="btn_grey" value="确定" onClick="checkreader(form1)"></td>
  90.                </tr>
  91.              </table></td>
  92.              <td width="1%" align="center" valign="bottom"><img src="Images/borrow_fg.gif" width="18" height="111"></td>
  93.              <td width="66%" align="right">
  94.  <table width="96%" border="0" cellpadding="0" cellspacing="0">
  95.                <tr>
  96.                  <td height="27">姓&nbsp;&nbsp;&nbsp;&nbsp;名:
  97.                        <input name="readername" type="text" id="readername" value="<%=name%>"></td>
  98.                  <td>性&nbsp;&nbsp;&nbsp;&nbsp;别:
  99.                    <input name="sex" type="text" id="sex" value="<%=sex%>"></td>
  100.                </tr>
  101.                <tr>
  102.                  <td height="27">证件类型:
  103.                    <input name="paperType" type="text" id="paperType" value="<%=paperType%>"></td>
  104.                  <td>证件号码:
  105.                    <input name="paperNo" type="text" id="paperNo" value="<%=paperNO%>"></td>
  106.                </tr>
  107.                <tr>
  108.                  <td height="27">读者类型:
  109.                    <input name="readerType" type="text" id="readerType" value="<%=typename%>"></td>
  110.                  <td>可借数量:
  111.                    <input name="number" type="text" id="number" value="<%=number%>" size="17">
  112.                    册
  113.                    &nbsp;</td>
  114.                </tr>
  115.              </table>  </td>
  116.            </tr>
  117.          </table>
  118.  </td>
  119.        </tr>
  120.        <tr>
  121.          <td valign="top"><table width="100%" height="35" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#D2E3E6" bgcolor="#FFFFFF">
  122.                    <tr align="center" bgcolor="#e3F4F7">
  123.                      <td width="24%" height="25" bgcolor="#F0FAFB">图书名称</td>
  124.                      <td width="12%" bgcolor="#F0FAFB">借阅时间</td>
  125.                      <td width="13%" bgcolor="#F0FAFB">应还时间</td>
  126.                      <td width="14%" bgcolor="#F0FAFB">出版社</td>
  127.                      <td width="12%" bgcolor="#F0FAFB">书架</td>
  128.                      <td bgcolor="#F0FAFB">定价(元)</td>
  129.                      <td width="12%" bgcolor="#F0FAFB"><input name="Button22" type="button" class="btn_grey" value="完成续借" onClick="window.location.href='bookRenew.jsp'"></td>
  130.                    </tr>
  131. <%
  132. int id=0;
  133. String bookname="";
  134. String borrowTime="";
  135. String backTime="";
  136. Float price=new Float(0);
  137. String pubname="";
  138. String bookcase="";
  139. if(coll!=null && !coll.isEmpty()){
  140. Iterator it=coll.iterator();
  141. while(it.hasNext()){
  142. BorrowForm borrowForm=(BorrowForm)it.next();
  143.         id=borrowForm.getId().intValue();
  144. bookname=chStr.toChinese(borrowForm.getBookName());
  145. borrowTime=borrowForm.getBorrowTime();
  146. backTime=borrowForm.getBackTime();
  147. price=borrowForm.getPrice();
  148. pubname=chStr.toChinese(borrowForm.getPubName());
  149. bookcase=chStr.toChinese(borrowForm.getBookcaseName());
  150. %>
  151.                    <tr>
  152.                      <td height="25" style="padding:5px;">&nbsp;<%=bookname%></td>
  153.                      <td style="padding:5px;">&nbsp;<%=borrowTime%></td>
  154.                      <td style="padding:5px;">&nbsp;<%=backTime%></td>
  155.                      <td align="center">&nbsp;<%=pubname%></td>
  156.                      <td align="center">&nbsp;<%=bookcase%></td>
  157.                      <td width="13%" align="center">&nbsp;<%=price%></td>
  158.                      <td width="12%" align="center"><a href="borrow.do?action=bookrenew&barcode=<%=barcode%>&id=<%=id%>">续借</a>&nbsp;</td>
  159.                    </tr>
  160. <% }
  161. }%>
  162.                  </table>
  163.                  </td>
  164.        </tr>
  165.      </table></td>
  166.    </tr>
  167. </table>
  168.  </form>
  169.  </td>
  170.       </tr>
  171.     </table>
  172. </td>
  173.   </tr>
  174. </table><%@ include file="copyright.jsp"%></td>
  175.   </tr>
  176. </table>
  177. </td>
  178. </table>
  179. </body>
  180. </html>