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

📄 bookdetail.jsp

📁 实现图书的借阅和管理信息化
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>


<table width="100%" height="100%" border="0" cellspacing="0">
	<tr>
		<td>
			<table width="100%" height="100%" border="0" cellspacing="0">
				<tr>
					<td width="100%" height="50">
						<table width="30%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="11%">
									<span class="style6"><img src="images/location.gif"
											width="23" height="20"> </span>
								</td>
								<td width="89%">
									<img src="images/location_tsxx.gif" width="60" height="20">
								</td>
							</tr>
						</table>
						<hr width="100%" size="1" />
					</td>
				</tr>
				<tr>
					<td width="100%" valign="top">
						<div align="center">
							<div align="center">
								<table width="100%" border="0" align="center" cellpadding="1"
									cellspacing="0">
									<tr>
										<td rowspan="4" align="center" valign="baseline">
											<img src="imageLoad/${book.cover}" width="100" height="147">
										</td>
										<td colspan="4">
											<div align="center">
												<span class="style14"><span class="style16">《${book.title}》</span>
												</span>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="100%" border="0" cellspacing="0"
												cellpadding="8">
												<tr valign="baseline">
													<td width="25%">
														<div align="right" class="style6">
															<div align="right">
																<div align="right">
																	【图书类型】
																</div>
															</div>
														</div>
													</td>
													<td width="25%">
														<div align="center" class="style6">
															<div align="left">
																${book.tslx }
															</div>
														</div>
													</td>
													<td width="25%">
														<div align="right" class="style6">
															【ISBN号码】
														</div>
													</td>
													<td width="25%">
														<div align="center" class="style6">
															<div align="left">
																${book.isbn }
															</div>
														</div>
													</td>
												</tr>
												<tr valign="baseline">
													<td>
														<div align="right" class="style6">
															【作者】
														</div>
													</td>
													<td>
														<span class="style18">${book.author }</span>
													</td>
													<td>
														<div align="right" class="style6">
															<div align="right">
																<div align="right">
																	【出版社】
																</div>
															</div>
														</div>
													</td>
													<td>
														<div align="center" class="style6">
															<div align="left">
																${book.cbs }
															</div>
														</div>
													</td>
												</tr>
												<tr valign="baseline">
													<td>
														<div align="right" class="style6">
															【出版时间】
														</div>
													</td>
													<td>
														<div align="center" class="style6">
															<div align="left">
																${book.cbsj }
															</div>
														</div>
													</td>
													<td>
														<div align="right" class="style6">
															【载体信息】
														</div>
													</td>
													<td>
														<div align="center" class="style6">
															<div align="left">
																${book.ztxx }
															</div>
														</div>
													</td>
												</tr>
												<tr valign="baseline">
													<td>
														<div align="right" class="style6">
															【价格】
														</div>
													</td>
													<td>
														<span class="style6">¥${book.price }</span>
														<div align="center" class="style6"></div>
													</td>
													<td>
														<div align="right" class="style6">
															【附注项】
														</div>
													</td>
													<td>
														<div align="center" class="style6">
															<div align="left">
																${book.fzx }
															</div>
														</div>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td valign="middle">
											<div align="center">
												<input name="button" type="button" class="button"
													onClick="window.location.href='bookDestineShow.do?id=${book.classId}'"
													value="预定" />
											</div>
										</td>
									</tr>
								</table>
								<hr width="100%" size="1" />
								<pg:pager url="getBookByClassId.do" index="half-full"
									maxPageItems="6" maxIndexPages="50" isOffset="<%=false%>"
									export="pageOffset,currentPageNumber=pageNumber"
									scope="request">
									<pg:param name="id" value="${book.classId}" />
									<table width="95%" border="1" align="center" cellpadding="5"
										cellspacing="0" bordercolor="#999999">
										<tr bgcolor="#CCCCCC">
											<td>
												<div align="center" class="style6">
													<strong>索取号</strong>
												</div>
											</td>
											<td>
												<div align="center" class="style6">
													<strong>条码号</strong>
												</div>
											</td>
											<td>
												<div align="center" class="style6">
													<strong>馆藏</strong>
												</div>
											</td>
											<td>
												<div align="center" class="style6">
													<strong>书刊状态</strong>
												</div>
											</td>
										</tr>
										<c:forEach items="${book.stores}" var="store">
											<pg:item>
												<tr bgcolor="#FFFFCC">
													<td>
														<div align="center" class="style6 style17">
															${store.sqh }
														</div>
													</td>
													<td>
														<div align="center" class="style6">
															${store.tmh }
														</div>
													</td>
													<td bgcolor="#FFFFCC">
														<div align="center" class="style6">
															${store.place.location }
														</div>
													</td>
													<td bgcolor="#FFFFCC">
														<div align="center" class="style6">
															<span class="style12">${store.skzt }</span>
														</div>
													</td>
												</tr>
											</pg:item>
										</c:forEach>
										<tr>
											<td colspan="4" align="right" class="style6">
												<pg:index>
													<pg:page>
		当前第<font color="red">${pageNumber}</font>页
	</pg:page>
													<pg:last>
		共<font color="red">${pageNumber}</font>页
	</pg:last>
													<pg:first>
														<c:choose>
															<c:when test="${pageNumber eq currentPageNumber}">
				首页	
			</c:when>
															<c:otherwise>
																<html:link page="/${pageUrl}">首页</html:link>
															</c:otherwise>
														</c:choose>
													</pg:first>
													<pg:prev ifnull="true">
														<c:choose>
															<c:when test="${pageUrl eq null}">
				前页	
			</c:when>
															<c:otherwise>
																<html:link page="/${pageUrl}">前页</html:link>
															</c:otherwise>
														</c:choose>
													</pg:prev>
													<pg:pages>
														<c:choose>
															<c:when test="${pageNumber eq currentPageNumber }">
																<font color="red">${pageNumber }</font>
															</c:when>
															<c:otherwise>
																<html:link page="/${pageUrl}">${pageNumber}</html:link>
															</c:otherwise>
														</c:choose>
													</pg:pages>
													<pg:next ifnull="true">
														<c:choose>
															<c:when test="${pageUrl eq null}">
				下页	
			</c:when>
															<c:otherwise>
																<html:link page="/${pageUrl}">下页</html:link>
															</c:otherwise>
														</c:choose>
													</pg:next>
													<pg:last>
														<c:choose>
															<c:when test="${pageNumber eq currentPageNumber}">
																		尾页	
																	</c:when>
															<c:otherwise>
																<html:link page="/${pageUrl}">尾页</html:link>
															</c:otherwise>
														</c:choose>
													</pg:last>
												</pg:index>
											</td>
										</tr>
									</table>
								</pg:pager>
								<hr width="100%" size="1" />
								<input type="button" class="button"
									onClick="window.history.back();" value="返回" />
							</div>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -