guanli.jsp

来自「jsp做的一个个人网站」· JSP 代码 · 共 78 行

JSP
78
字号
<%@ page contentType="text/html;charset=gb2312"  import="java.sql.*" errorPage="" %>
<%if(session.getAttribute("flag")=="1")
{out.print("<script language='javascript'>alert('对不起,普通用户没有管理权限!');location.href='index.jsp'</script>");
}else if(session.getAttribute("flag1")!="2")
out.print("<script language='javascript'>alert('普通用户没有管理权限,管理员请登录!');location.href='load1.jsp'</script>");
%>

<html>
<title>后台管理</title>
<style type="text/css">
<!--
a:link {
	color: #0000CC;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #FF0000;
}
a:hover {
	text-decoration: none;
	color: #FFFF00;
}
a:active {
	text-decoration: none;
	color: #FF6666;
}
-->
</style><head ><marquee onMouseOver=this.stop(); onMouseOut=this.start(); scrollamount=5 
      width="100%" height=10>
     &nbsp;&nbsp;&nbsp;&nbsp;<img src="picture/welclome.gif"><br><h1>欢迎来到管理页面!</h1><br>
	  &nbsp;&nbsp;<script language=JavaScript>
          var enabled = 0; today = new Date();
          var day; var date;
          if(today.getDay()==0) day = "星期日"
          if(today.getDay()==1) day = "星期一"
          if(today.getDay()==2) day = "星期二"
          if(today.getDay()==3) day = "星期三"
          if(today.getDay()==4) day = "星期四"
          if(today.getDay()==5) day = "星期五"
          if(today.getDay()==6) day = "星期六"
          document.fgColor = "000000";
          date = "今天是  "+(today.getYear()) + "年" + (today.getMonth() + 1 ) +"月" + today.getDate() + "日" +"&nbsp"+ day +"";
          document.write(date);
          // -->
                </script>
</marquee></head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<style type="text/css">
<!--
body {
	background-repeat: no-repeat;
	margin-left: 100px;
	margin-top: 0px;
	margin-right: 100px;
	margin-bottom: 20px;
}
-->
</style><body   style="min-width:780" marginwidth="780" bgcolor="#99CCCC">
<%//request.setCharacterEncoding("gb2312");
//String id=request.getParameter("id");
%>

<table width="780"   align="center" bordercolor="#99CC00" cellspacing="0" height="300" border="1" ><div align="center"><tr><td><a href="index.jsp" target="_self">返回首页</a>
<h2 align="center">1.<a href="allleavewords.jsp">留言管理</a></h2>
<h2 align="center">2.<a href="zhongshuofenyun.jsp">论坛管理</a></h2>

<h2 align="center">3.<a href="chakan.jsp?flag=1">管理用户</a></h2>
<h2 align="center">4.<a href="updategonggao.jsp">更新公告</a></h2>
<p align="center">&nbsp;</p>
<h3 align="right"><a href="loadout.jsp" target="_self">登出</a></h3>
</td></tr></div>
</table>

</body>
</html>

⌨️ 快捷键说明

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