?? admin_del_reader.jsp
字號:
<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<%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.delReader(request,session)) {
msg_title="讀者刪除成功";
msg_content="讀者編號為"+readerSN+"的讀者刪除成功!";
}else{
msg_title="讀者刪除失敗";
msg_content=Readers.getErrMsg();
}
}else{
msg_title="讀者編號為空";
msg_content="對不起,讀者編號為空,無法進行刪除!";
}
%>
<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 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"> </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"> </td>
</tr>
</table>
<%}%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -