- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <%@ page import="com.dao.BorrowDAO" %>
- <%@ page import="com.actionForm.BorrowForm" %>
- <%@ page import="com.actionForm.ReaderForm" %>
- <%@ page import="java.util.*"%>
- <html>
- <%
- ReaderForm readerForm=(ReaderForm)request.getAttribute("readerinfo");
- BorrowForm borrowForm=(BorrowForm)request.getAttribute("borrowinfo");
- %>
- <head>
- <title>图书馆管理系统</title>
- <link href="CSS/style.css" rel="stylesheet">
- </head>
- <body onLoad="clockon(bgclock)">
- <table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
- <tr>
- <td height="183">
- <%@include file="navigation.jsp"%>
- </td>
- </tr>
- <td>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top" bgcolor="#FFFFFF"><table width="99%" height="966" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
- <tr>
- <td height="966" align="center" valign="top" style="padding:5px;"><table width="98%" height="487" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="22" valign="top" class="word_orange">当前位置:图书借还 > 图书借阅 >>></td>
- </tr>
- <tr>
- <td align="center" valign="top">
- <script language="javascript">
- function checkreader(form){
- if(form.barcode.value==""){
- alert("请输入读者条形码!");form.barcode.focus();return;
- }
- form.submit();
- }
- function checkbook(form){
- if(form.inputkey.value==""){
- alert("请输入查询关键字!");form.inputkey.focus();return;
- }
- form.submit();
- }
- </script>
- <form name="form1" method="post" action="borrow.do?action=bookborrow">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableBorder_gray">
- <tr>
- <td valign="top"><table width="100%" border="0" cellpadding="02" cellspacing="2" bordercolor="#E3F4F7">
- <tr>
- <td height="27" bgcolor="#E3F4F7"> <img src="Images/bookBorrow.jpg" width="73" height="23"></td>
- </tr>
- <tr>
- <td valign="top" bgcolor="#E3F4F7">
- <%
- int ID=0;
- String name="";
- String sex="";
- String barcode="";
- String birthday="";
- String paperType="";
- String paperNO="";
- int number=0;
- String typename="";
- if(readerForm!=null){
- ID=readerForm.getId().intValue();
- name=chStr.toChinese(readerForm.getName());
- sex=chStr.toChinese(readerForm.getSex());
- barcode=readerForm.getBarcode();
- birthday=readerForm.getBirthday();
- paperType=chStr.toChinese(readerForm.getPaperType());
- paperNO=readerForm.getPaperNO();
- number=readerForm.getNumber();
- typename=chStr.toChinese(readerForm.getTypename());
- }
- %>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <tr>
- <td width="33%"><table width="100%" height="74" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="27" colspan="2" align="center"><table width="90%" height="21" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td background="Images/reader_checkbg.jpg"> 读者验证</td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td width="8%" height="27"> </td>
- <td width="92%">读者条形码:</td>
- </tr>
- <tr>
- <td height="27" colspan="2" align="center"><input name="barcode" type="text" id="barcode" value="<%=barcode%>" size="24">
-
- <input name="Button" type="button" class="btn_grey" value="确定" onClick="checkreader(form1)"></td>
- </tr>
- </table></td>
- <td width="1%" align="center" valign="bottom"><img src="Images/borrow_fg.gif" width="18" height="111"></td>
- <td width="66%" align="right">
- <table width="96%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="27">姓 名:
- <input name="readername" type="text" id="readername" value="<%=name%>"></td>
- <td>性 别:
- <input name="sex" type="text" id="sex" value="<%=sex%>"></td>
- </tr>
- <tr>
- <td height="27">证件类型:
- <input name="paperType" type="text" id="paperType" value="<%=paperType%>"></td>
- <td>证件号码:
- <input name="paperNo" type="text" id="paperNo" value="<%=paperNO%>"></td>
- </tr>
- <tr>
- <td height="27">读者类型:
- <input name="readerType" type="text" id="readerType" value="<%=typename%>"></td>
- <td>可借数量:
- <input name="number" type="text" id="number" value="<%=number%>" size="20">
- 册</td>
- </tr>
- </table> </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="55" valign="top" bgcolor="#E3F4F7"><table width="100%" height="88" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="38"> 添加的依据:
- <label>
- <input name="f" type="radio" class="noborder" value="barcode" checked>
- 图书条形码
- <input name="f" type="radio" class="noborder" value="bookname">
- 图书名称
- <input name="inputkey" type="text" id="inputkey" size="50">
- <input name="Submit2" type="button" class="btn_grey" value="确定" onClick="checkbook(form1)">
- <input name="operator" type="hidden" id="operator" value="<%=chStr.toChinese(manager)%>">
- </label></td>
- </tr>
- <tr>
- <td align="center"><table width="99%" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#D2E3E6" bgcolor="#FFFFFF">
- <tr align="center" bgcolor="#e3F4F7">
- <td width="8%" height="25" bgcolor="#F0FAFB">借阅次数</td>
- <td width="11%" bgcolor="#F0FAFB">图书条形码</td>
- <td width="17%" bgcolor="#F0FAFB">图书名称</td>
- <td width="15%" bgcolor="#F0FAFB">图书类型</td>
- <td width="16%" bgcolor="#F0FAFB">书架</td>
- <td width="14%" bgcolor="#F0FAFB">出版社</td>
- <td width="11%" bgcolor="#F0FAFB">作者</td>
- <td colspan="2" bgcolor="#F0FAFB">定价(元)</td>
- </tr>
- <%
- String bookname="";
- String borrowTime="";
- String backTime="";
- Float price=new Float(0);
- String pubname="";
- String bookcase="";
- if(borrowForm!=null){
- bookname=chStr.toChinese(readerForm.getName());
- borrowTime=borrowForm.getBarcode();
- backTime=borrowForm.getBirthday();
- price=borrowForm.getPaperType();
- pubname=chStr.toChinese(borrowForm.getPaperNO());
- bookcase=chStr.toChinese(borrowForm.getTypename());
- }
- %>
- <tr>
- <td height="25" align="center"> </td>
- <td style="padding:5px;"> </td>
- <td style="padding:5px;"> </td>
- <td style="padding:5px;"> </td>
- <td align="center"> </td>
- <td align="center"> </td>
- <td width="11%" align="center"> </td>
- <td width="8%" align="center"> </td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>