?? admin_logout.jsp
字號:
<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<!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
String msg_title;
String msg_content;
if(supervisor!=null){
session.setAttribute("supervisor",null);
msg_title="成功";
msg_content="注銷成功!";
}else{
msg_title="錯誤";
msg_content="對不起,您尚未登錄!";
}
//自動跳轉返回首頁
response.setHeader("Refresh","2;url=admin_login.jsp");
%>
<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"><%=msg_title%></td>
</tr>
<tr bgcolor="#DCEFFA">
<td height="30" align="center"><%=msg_content%></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -