📄 main.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gbk" %>
<%@include file="../admin/getsession.jsp"%>
<%@page import="net.ijsp.news.news.*"%>
<%@page errorPage="error.jsp"%>
<html>
<title>管理页面</title>
<link rel="stylesheet" href="../inc/admin.css" type="text/css">
<meta NAME=GENERATOR Content="Microsoft FrontPage 3.0" CHARSET=GBK>
<BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<table>
<tr>
<td height=50 >
</td></tr>
</table>
<table width="65%" border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder">
<tr>
<th width="100%" class="tableHeaderText" colspan=2 height=25>管理页面
</th>
</tr>
<tr>
<td class="forumrow">
<B>操作选项</B>: <a href="addediter.jsp">增加编辑人员</a> <a href="resetpass.jsp">更改密码</a> <a href="login.jsp">重新登录</a>
</td>
</tr>
</table>
<table>
<tr>
<td height=50 >
</td></tr>
</table>
<%
// 验证管理员身份
Factory factory = Factory.getInstance();
UserFactory userFactroy = factory.getUserFactory();
try{
sessionUser = userFactroy.chkUser(sessionUser);
}catch(UserNotFoundException ue) {
throw new Exception("<li>您正在尝试进行非法的操作。");
}catch(UserPasswordException u) {
throw new Exception("<li>您输入的用户名或密码错误。");
}
if(sessionUser.getFlag()!=1)
throw new Exception("<li>您不是管理员,无权进行操作。");
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -