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

📄 admin_get_one_reader.jsp

📁 图书管理系统,B/S,C/S都有,附有源代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<%@ page import="reader.readerInfo"%>
<%request.setCharacterEncoding("GBK");%>
<jsp:useBean id="admin" scope="page" class="admin.admin" />
<jsp:useBean id="Readers" scope="page" class="reader.Readers" />
<!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 readerSN=request.getParameter("readerSN");//获取读者编号
	String msg_title=null;
	String msg_content=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 (readerSN!=null) {
								if (Readers.getOneReader(readerSN)) {
									readerInfo ri=(readerInfo)Readers.getReaderList().elementAt(0);
							%>
									<br />
									<table cellpadding=0 cellspacing=0 border=0 width=550 bgcolor="#2E79BE" align="center">
										<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" align="left"><%=ri.getReaderSN()%></td>
														<td width="135" height="32" rowspan="5" align="center">
														<a onClick="window.open('../ReaderPhoto/<%=ri.getReaderSN()%>.jpg','','')" style="cursor: hand;"><img src="../ReaderPhoto/resize/<%=ri.getReaderSN()%>.jpg" alt="点击看大图~" align="absmiddle" /></a></td>
													</tr>
													<tr bgcolor="#D8FAFA">
														<td width="143" height="25" align="right">读者姓名:</td>
														<td height="25" align="left"><%=ri.getReaderName()%></td>
													</tr>
													<tr bgcolor="#DCEFFA">
														<td align="right" height="25">性&nbsp;&nbsp;别:</td>
														<td height="25" align="left"><%=ri.getReaderSex()%></td>
													</tr>
													<tr bgcolor="#D8FAFA">
														<td align="right" height="25">单&nbsp;&nbsp;位:</td>
														<td height="25" align="left"><%=ri.getReaderWP()%></td>
													</tr>
													<tr bgcolor="#DCEFFA">
														<td align="right" height="25">状&nbsp;&nbsp;态:</td>
														<td height="25" align="left"><%=(ri.getReaderLocked().equals("0"))?"正常":"锁定"%></td>
													</tr>
													<tr>
														<td colspan="2" height="15" bgcolor="#6CA6D5" align=right><a href="admin_update_reader.jsp?readerSN=<%=ri.getReaderSN()%>">修改读者信息</a></td>
														<td height="15" bgcolor="#6CA6D5" align=right><a href="admin_del_reader.jsp?readerSN=<%=ri.getReaderSN()%>">删除读者</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"><%=ri.getReaderPower()+"级"%></td>
														<td width="130" height="25" align="right">联系电话:</td>
														<td width="145" height="25" align="left"><%=ri.getReaderPhone()%></td>
													</tr>
													<tr bgcolor="#D8FAFA">
														<td height="25" align="right">创建时间:</td>
														<td height="25" align="left"><%=ri.getReaderCT()%></td>
														<td height="25" align="right">有效期限:</td>
														<td height="25" align="left"><%=ri.getReaderAvail()+"年"%></td>
													</tr>
													<tr bgcolor="#DCEFFA">
														<td height="25" align="right">备&nbsp;&nbsp;注:</td>
														<td height="25" colspan="3" align="left"><%=(ri.getReaderComment().equals(""))?"&nbsp;":ri.getReaderComment()%></td>
													</tr>
													<tr>
														<td colspan="4" height="15" bgcolor="#6CA6D5" align="center">&nbsp;</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
									<br />
									<%
								}else{
									msg_title="没有记录";
									msg_content="对不起,您所查询的读者编号为"+readerSN+"的读者不存在,请确认您输入的读者编号是否正确!";
								}
							}else{
								msg_title="读者编号为空";
								msg_content="对不起,您的查询的读者编号为空,无法进行查询!";
							}
							%>	
							<%if(msg_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"><strong><%=msg_title%></strong></td>
											</tr>
											<tr bgcolor="#DCEFFA">
												<td height="30" align="center"><%=msg_content%></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 + -