📄 preborrow_list.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<script type="text/javascript"><!--
//图书信息
function bookinfo(no){
document.all.preborrowlistform.bookNo.value = no;
document.all.preborrowlistform.action = "book_info.do";
document.all.preborrowlistform.submit();
}
//取消预借
function cancelpreborrow(no){
document.all.preborrowlistform.preBorrowNo.value = no;
document.all.preborrowlistform.action = "cancelPreBorrow.do";
document.all.preborrowlistform.submit();
} //借阅信息
function borrowinfo(no){
document.all.preborrowlistform.preBorrowNo.value = no;
document.all.preborrowlistform.action = "borrowinfobypre.do";
document.all.preborrowlistform.submit();
}
//--></script>
<form name="preborrowlistform" method="post" action="book_info.do">
<input type="hidden" name="bookNo" value="0">
<input type="hidden" name="preBorrowNo" value="0">
</form>
<logic:present name="pageresult" scope="request">
<logic:notEmpty name="pageresult" property="resultList">
<logic:iterate name="pageresult" property="resultList" id="prelist" indexId="index">
<logic:iterate id="preborrow" name="prelist" offset="0" length="1"></logic:iterate>
<logic:iterate id="book" name="prelist" offset="1" length="1"></logic:iterate>
<bean:define id="indexrow" value="${index%2}"></bean:define>
<logic:equal value="0" name="indexrow">
<tr>
</logic:equal>
<logic:equal value="1" name="indexrow">
<tr bgcolor="#c8c8ff">
</logic:equal>
<td width="100%">
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tr height="5"><td colspan="4"></td></tr>
<tr>
<td width="5"></td>
<td width="135" align="center">
<logic:empty name="book" property="imageFile">没有图片信息</logic:empty>
<logic:notEmpty name="book" property="imageFile">
<img border="0" src="images/book/<bean:write name="book" property="bookNo"/>/<bean:write name="book" property="imageFile"/>" WIDTH="70" HEIGHT="90">
</logic:notEmpty>
</td>
<td width="400">
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tr height="20">
<td colspan="3">
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tr>
<td width="25"><img border="0" src="images/m_center_book2.jpg" WIDTH="18" HEIGHT="18"></td>
<td width="155"><a href="#" onclick="bookinfo(<bean:write name="book" property="bookNo"/>);"><font class="font12" color="#2C4A98"><b><bean:write name="book" property="name"/></b></font></a><font color="#fd9a01"></font></td>
<td width="220" align="right">
</td>
</tr>
</table>
</td>
</tr>
<tr height="20">
<td width="33%"><font class="font12" >图书作者:<bean:write name="book" property="author"/></font></td>
<td width="33%"><font class="font12" >出版单位:<bean:write name="book" property="bookMan"/></font></td>
<td width="33%"><font class="font12" >出版日期:<bean:write name="book" property="publishDate" format="yyyy-MM-dd"/></font></td>
</tr>
</table>
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tr height="20">
<td><font class="font12" >预借号:
<bean:write name="preborrow" property="preBorrowNo"/></font></td>
<td><font class="font12" >预借时间:<bean:write name="preborrow" property="preBorrowTime" format="yyyy-MM-dd HH:mm"/></font></td>
</tr>
<tr height="20">
<td colspan="2"><font class="font12" >状态:
<logic:equal value="0" name="preborrow" property="status">预借成功,请去图书馆完成借阅</logic:equal>
<logic:equal value="1" name="preborrow" property="status">完成借阅</logic:equal>
<logic:equal value="2" name="preborrow" property="status">预借过期</logic:equal></font></td>
</tr>
<tr height="20"><td colspan="2"><font class="font12"></font></td></tr>
</table>
</td>
<td width="5"></td>
</tr>
<tr height="5"><td colspan="4"></td></tr>
<tr>
<td width="5"></td>
<td width="135"></td>
<td width="400">
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tr height="20">
<td width="70" align="center"></td>
<td width="30"></td>
<td width="70" align="center">
</td>
<td width="30"></td>
<td width="70" align="center">
</td>
<td width="30"></td>
<td width="70" align="center">
<!-- 已登陆 -->
<logic:present name="UserSession" scope="session">
<!-- 预借成功状态 -->
<logic:equal value="0" name="preborrow" property="status">
<input type="button" name="bookmod" value="取消预借" onclick="cancelpreborrow(<bean:write name="preborrow" property="preBorrowNo"/>);">
</logic:equal>
<!-- 完成借阅状态 -->
<logic:equal value="1" name="preborrow" property="status">
<input type="button" name="bookmod" value="借阅信息" onclick="borrowinfo(<bean:write name="preborrow" property="preBorrowNo"/>);">
</logic:equal>
</logic:present>
</td>
<td width="30"></td>
</tr>
</table>
</td>
<td width="5"></td>
</tr>
<tr height="5"><td colspan="4"></td></tr>
</table>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
<logic:empty name="pageresult" property="resultList">
<tr >
<td align="center" width="100%">
没有预借信息
</td>
</tr>
</logic:empty>
</logic:present>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -