📄 tsjy.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><%@ taglib uri="/WEB-INF/c.tld" prefix="c" %><%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %><!DOCTYPE html PUBLIC "-//W3C//Dtd html 4.0 transitional//EN"><html> <head> <TITLE>湖南科技学院网上图书管理系统</TITLE> <link href="<c:url value='/css/style.css' />" rel="stylesheet" type="text/css"> <script type="text/javascript"> function subPage(){ var page=document.getElementById("page").value; document.location='<c:url value='bookBorrow.action' />?currentPage='+page; }</script> </head> <body > <center> <table width="760" border="0" style="margin:20px 0;" align="center" cellpadding="0" cellspacing="0" > <tr> <td background="<c:url value='/images/centerleft.gif' />"></td> <td width="100%"> <form action="<c:url value='bookBorrow.action' />" method="post" name="matchFriendForm"> <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center"> <tr> <td bgcolor="#e6ffd6" align="left" height="35" colspan="4"> <font color="green">::图书借阅::</font> </td> </tr> <tr> <td bgcolor="#cccccc" height="3" colspan="4"></td> </tr> <tr bgcolor="#fff5d6"> <td align="left"><font color="green">读者姓名:</font> <input type="text" height="20" width="60" id="readername"> </td> <td align="left"><font color="green">读者编号:</font> <input type="text" height="20" width="60" id="readerid"> </td> <td align="left"> <input type="submit" name="submit" value="开始查询" /> </td> </tr> <tr> <td bgcolor="#cccccc" height="3" colspan="4"></td> </tr> </table> </form> <table width="100%" border="0" cellspacing="1" cellpadding="3" align="left"> <tr bgcolor="92bff2" height="25"> <td width="15%" align="left"><font color="green">读者编号</font></td> <td width="15%" align="left"><font color="green">读者姓名</font></td> <td width="20%" align="left"><font color="green">读者身份证</font></td> <td width="15%" align="left"><font color="green">最大借阅数</font></td> <td width="15%" align="left"><font color="green">是否有效</font></td> <td width="20%" align="center"><font color="green">操作</font></td> </tr> <c:if test="${requestScope.subReader!=null}"> <c:forEach items="${requestScope.subReader}" var="reader"> <tr bgcolor="92bff2" height="25"> <td width="15%" align="left"> <input type="checkbox" name="readerid" value="${reader.id}"> <font color="green">${reader.id}</font> </td> <td width="15%" align="left"><font color="green">${reader.name}</font></td> <td width="15%" align="left"><font color="green">${reader.cardid}</font></td> <td width="20%" align="left"><font color="green">${reader.maxborrownum}</font></td> <c:if test="${reader.isvalidate=='1'}"> <td width="15%" align="left"><font color="green">有效</font></td> </c:if> <c:if test="${reader.isvalidate=='0'}"> <td width="15%" align="left"><font color="green">无效</font></td> </c:if> <td width="20%" align="center"> <c:if test="${reader.isvalidate=='1'}"> <a href="<c:url value='registerBorrowBook.action?readerid=${reader.id }'/>">借书登记单</a> </c:if> </td> </tr> </c:forEach> <tr> <td colspan="10" align="right"> 共 <span class="fontred">${requestScope.messageCount}</span> 条信息 当前第 <span class="fontred">${requestScope.currentPage}</span> 页 共有 <span class="fontred">${requestScope.pageCount}</span> 页 <c:choose> <c:when test="${requestScope.currentPage==1}"> <c:choose> <c:when test="${requestScope.pageCount==1}" > 上一页/下一页 </c:when> <c:otherwise> 上一页/<a href="#" onclick="self.location='<c:url value='bookBorrow.action' />?currentPage=${requestScope.currentPage+1}'">下一页</a> </c:otherwise> </c:choose> </c:when> <c:when test="${requestScope.currentPage==requestScope.pageCount}"> <a href="#" onclick="self.location='<c:url value='bookBorrow.action' />?currentPage=${requestScope.currentPage-1}'">上一页</a>/下一页 </c:when> <c:otherwise> <a href="#" onclick="self.location='<c:url value='bookBorrow.action' />?currentPage=${requestScope.currentPage-1}'">上一页</a>/<a href="#" onclick="self.location='<c:url value='bookBorrow.action' />?currentPage=${requestScope.currentPage+1}'">下一页</a> </c:otherwise> </c:choose> 转到 <select name="select" id="page" onchange="subPage();" style="width: 50;height: 25"> <c:forEach begin="1" end="${requestScope.pageCount}" var="num"> <c:choose> <c:when test="${requestScope.currentPage==num}"> <option value="${num}" selected>${num}</option> </c:when> <c:otherwise> <option value="${num}" >${num}</option> </c:otherwise> </c:choose> </c:forEach> </select> </td> </tr> </c:if> </table> </td> <td background="<c:url value='/images/centeright.gif' />"></td> </tr> <tr> <td> <img src="<c:url value='/images/bottomleft.gif' />" /> </td> <td background="<c:url value='/images/bottomcenter.gif' />"></td> <td> <img src="<c:url value='/images/bottomright.gif' />" /> </td> </tr> </table> </center> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -