⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bookmessage.jsp

📁 图书管理系统
💻 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;				var typeid=document.getElementById("typeid").value;				var bookname=document.getElementById("bookname").value;				document.location='<c:url value='bookLookup.action' />?currentPage='+page+'&typeid='+typeid+'&bookname='+bookname;				}</script>	</head>	<body >	<center>			<table width="850" 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='bookLookup.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="center"><font color="green">图书名称:</font>         						 	<input type="text" height="20" width="30" id="bookname" name="bookname">                    		 </td>           					<td align="center"><font color="green">图书类别:</font>                				<select name="typeid" id="typeid" >                				<option value="0">所有</option>	                					 <c:forEach items="${requestScope.typeList}" var="booktype">                					 	<option value="${booktype.id }">${booktype.name }</option>                					</c:forEach>                				</select>                    		</td>                    		<td align="center">            						<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="center">							<tr bgcolor="92bff2" height="25">									<td width="10%" 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="20%" align="left"><font color="green">出版社</font></td>									<td width="10%" align="left"><font color="green">馆存数量</font></td>									<td width="10%" align="center"><font color="green">借阅标志</font></td>								</tr>							<c:if test="${requestScope.subBorrowBook!=null}">								<c:forEach items="${requestScope.subBorrowBook}" var="book">								<tr bgcolor="92bff2" height="25">									<td width="10%" align="left">										<input type="checkbox" name="bookid" value="${book.id}">										<font color="green">${book.id}</font>									</td>									<td width="15%" align="left"><font color="green">${book.type.name}</font></td>									<td width="20%" align="left"><font color="green">${book.name}</font></td>									<td width="15%" align="left"><font color="green">${book.author}</font></td>									<td width="20%" align="left"><font color="green">${book.publishing}</font></td>									<td width="10%" align="left"><font color="green">${book.maxnumber}</font></td>									<td width="10%" align="center">									<c:if test="${book.isborrow==0}">										<font color="green">外借</font>									</c:if>									<c:if test="${book.isborrow==1}">										<font color="green">未借</font>									</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='bookLookup.action' />?currentPage=${requestScope.currentPage+1}&typeid=${typeid }&bookname=${bookname }'">下一页</a>               									</c:otherwise>               								</c:choose>            							</c:when>             		  					<c:when test="${requestScope.currentPage==requestScope.pageCount}">              		 						<a href="#" onclick="self.location='<c:url value='bookLookup.action' />?currentPage=${requestScope.currentPage-1}&typeid=${typeid }&bookname=${bookname }'">上一页</a>/下一页              	   						</c:when>	      	   	   						<c:otherwise>	      				 					<a href="#" onclick="self.location='<c:url value='bookLookup.action' />?currentPage=${requestScope.currentPage-1}&typeid=${typeid }&bookname=${bookname }'">上一页</a>/<a href="#" onclick="self.location='<c:url value='bookLookup.action' />?currentPage=${requestScope.currentPage+1}&typeid=${typeid }&bookname=${bookname }'">下一页</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 + -