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

📄 admin_get_one_book.jsp

📁 图书管理系统,B/S,C/S都有,附有源代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<%@ page import="book.bookInfo"%>
<%request.setCharacterEncoding("GBK");%>
<jsp:useBean id="admin" scope="page" class="admin.admin" />
<jsp:useBean id="Books" scope="page" class="book.Books" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<link rel=stylesheet href="../../css/library.css" type="text/css">
<title>图书管理系统</title>
</head>

<body>
<%
String supervisor=(String)session.getAttribute("supervisor");//从SESSION中获取管理员ID
if(supervisor!=null){
	String bookSN=request.getParameter("bookSN");//取得图书编号
	String err_title=null;
	String err_msg=null;
%>
	<table cellpadding="0" cellspacing="0" border="0" width="760" bgcolor="#2E79BE" align="center">
		<tr>
			<td>
				<table cellpadding="3" cellspacing="1" border="0" width="760">
					<tr>
					<td colspan="2" height="22" bgcolor="#6CA6D5" align="center"><p style="font-size: 16px;"><strong>图书管理系统</strong></p></td>
					</tr>
					<tr bgcolor="#DCEFFA">
						<td width="130" height="30" align="left" valign="top"><%@include file="admin_left.jsp"%></td>
						<td width="630" align="center" valign="middle">
							<%
							if (bookSN!=null) {
							  if(Books.getOneBook(bookSN)){
								bookInfo bi=(bookInfo)Books.getBookList().elementAt(0);
							%>
								<br />
								<table cellpadding=0 cellspacing=0 border=0 width=550 bgcolor="#2E79BE" align="center"  style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
									<tr>
										<td>
											<table cellpadding=3 cellspacing=1 border=0 width=100%>
												<tr>
													<td colspan="3" height="22" bgcolor="#6CA6D5" align="center"><strong>图书基本信息</strong></td>
												</tr>
												<tr bgcolor="#DCEFFA">
													<td width="130" align="right" height="25">图书编号:</td>
													<td width="285" height="25"><%=bi.getBookSN()%></td>
													<td width="135" height="32" rowspan="5" align="center">
														<a onClick="window.open('../BookPicture/<%=bi.getBookSN()%>.jpg','','')" style="cursor: hand;"><img src="../BookPicture/resize/<%=bi.getBookSN()%>.jpg" alt="点击看大图~" align="absmiddle" /></a>
													</td>
												</tr>
												<tr bgcolor="#D8FAFA">
													<td width="143" height="25" align="right">书&nbsp;&nbsp;名:</td>
													<td height="25"><%=bi.getBookName()%></td>
												</tr>
												<tr bgcolor="#DCEFFA">
													<td align="right" height="25">作&nbsp;&nbsp;者:</td>
													<td height="25"><%=bi.getBookAuthor()%></td>
												</tr>
												<tr bgcolor="#D8FAFA">
													<td align="right" height="25">出版社:</td>
													<td height="25"><%=bi.getBookPress()%></td>
												</tr>
												<tr bgcolor="#DCEFFA">
													<td align="right" height="25">I&nbsp;S&nbsp;B&nbsp;N:</td>
													<td height="25"><%=bi.getBookISBN()%></td>
												</tr>
												<tr>
													<td colspan="2" height="15" bgcolor="#6CA6D5" align=right>
														<a href="admin_update_book.jsp?bookSN=<%=bi.getBookSN()%>">修改图书信息</a>
													</td>
													<td height="15" bgcolor="#6CA6D5" align=right>
														<a href="admin_del_book.jsp?bookSN=<%=bi.getBookSN()%>">删除图书</a>			
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
								<br />
								<table cellpadding="0" cellspacing="0" border="0" width="550" bgcolor="#2E79BE" align="center"  style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
									<tr>
										<td>
											<table cellpadding="3" cellspacing="1" border="0" width="100%">
												<tr>
													<td colspan="4" height="22" bgcolor="#6CA6D5" align="center"><strong>图书详细信息</strong></td>
												</tr>
												<tr bgcolor="#DCEFFA">
													<td width="130" height="25" align="right">图书分类:</td>
													<td width="145" height="25" align="left"><%=bi.getBookClass()%></td>
													<td width="130" height="25" align="right">单&nbsp;&nbsp;价:</td>
													<td width="145" height="25" align="left"><%=bi.getBookPrice()%></td>
												</tr>
												<tr bgcolor="#D8FAFA">
													<td height="25" align="right">借阅等级:</td>
													<td height="25" align="left"><%=bi.getBookLevel()+"级"%></td>
													<td height="25" align="right">图书状态:</td>
													<td height="25" align="left"><%=(bi.getBookIn().equals("1"))?"在库":"不在库"%></td>
												</tr>
												<tr bgcolor="#DCEFFA">
													<td height="25" align="right">备&nbsp;&nbsp;注:</td>
													<td height="25" colspan="3" align="left"><%=bi.getBookComment()%></td>
												</tr>
												<%
												if(bi.getBookIn().equals("不在库")){
													if(Books.getBorrow(bookSN)){
												%>
														<tr bgcolor="#D8FAFA">
															<td height="25" align="right">读者编号:</td>
															<td height="25" align="left"><%=Books.getReaderSN()%></td>
															<td height="25" align="right">读者姓名:</td>
															<td height="25" align="left"><%=Books.getReaderName()%></td>
														</tr>
														<tr bgcolor="#DCEFFA">
															<td height="25" align="right">借书日期:</td>
															<td height="25" align="left"><%=Books.getBD()%></td>
															<td height="25" align="right">还书日期:</td>
															<td height="25" align="left"><%=Books.getRD()%></td>
														</tr>
												<%
													}
												}
												%>
												<tr>
													<td colspan="4" height="15" bgcolor="#6CA6D5" align="center">&nbsp;</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
								<br />
								<%
								}else{
									err_title="没有记录";
									err_msg="对不起,您所查询的图书编号为"+bookSN+"的图书不存在,请确认您输入的图书编号是否正确!";
								}
							}else{
								err_title="图书编号为空";
								err_msg="对不起,您的查询的图书编号为空,无法进行查询!";
							}
							%>
							<%if(err_title!=null){%>
								<table cellpadding="0" cellspacing="0" border="0" width="550" bgcolor="#2E79BE" align="center"  style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
									<tr>
										<td>
											<table cellpadding="3" cellspacing="1" border="0" width="100%">
												<tr>
													<td width="100%" height="22" align="center" bgcolor="#6CA6D5"><%=err_title%></td>
												</tr>
												<tr bgcolor="#DCEFFA">
													<td height="30" align="center"><%=err_msg%></td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							<%}%>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="20" bgcolor="#6CA6D5" align="center">&nbsp;</td>
		</tr>
	</table>
<%}else{%>
	<table cellpadding="0" cellspacing="0" border="0" width="760" bgcolor="#2E79BE" align="center">
		<tr>
			<td>
				<table cellpadding="3" cellspacing="1" border="0" width="760">
					<tr>
						<td height="22" bgcolor="#6CA6D5" align="center"><p style="font-size: 16px;"><strong>图书管理系统</strong></p></td>
					</tr>
					<tr bgcolor="#DCEFFA">
						<td height="30" align="center">对不起,您尚未登录!</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="20" bgcolor="#6CA6D5" align="center">&nbsp;</td>
		</tr>
	</table>
<%}%>
</body>
</html>

⌨️ 快捷键说明

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