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

📄 manager.jsp

📁 一个仿造淘宝的jsp网站。功能比较完善
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<base href="<%=basePath%>">
	<title>My JSP 'Manager.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="CSS/manager.css" rel="stylesheet" type="text/css">
	<script language="javascript">
function show(obj,maxg,obj2){
  if(obj.style.pixelHeight<maxg){
    obj.style.pixelHeight+=maxg/10;
	obj.filters.alpha.opacity+=20;
	obj2.background="image/manager/title_hide.gif";
    if(obj.style.pixelHeight==maxg/10)
	  obj.style.display='block';
	myObj=obj;
	mymaxg=maxg;
	myObj2=obj2;
	setTimeout('show(myObj,mymaxg,myObj2)','5');
  }
}
function hide(obj,maxg,obj2){
  if(obj.style.pixelHeight>0){
    if(obj.style.pixelHeight==maxg/5)
	  obj.style.display='none';
    obj.style.pixelHeight-=maxg/5;
	obj.filters.alpha.opacity-=10;
	obj2.background="image/manager/title_show.gif";
	myObj=obj;
	mymaxg=maxg
	myObj2=obj2;
	setTimeout('hide(myObj,mymaxg,myObj2)','5');
  }
  else if(whichContinue) whichContinue.click();
}

function chang(obj,maxg,obj2){
  if(obj.style.pixelHeight){
    hide(obj,maxg,obj2);
	nopen='';
	whichcontinue='';
  }else if(nopen){
	  whichContinue=obj2;
      nopen.click();
	}else{
	  show(obj,maxg,obj2);
	  nopen=obj2;
	  whichContinue='';
	}
}
    </script>
	<STYLE type=text/css>
BODY {
	 MARGIN: 0px; FONT: 9pt 宋体
}
TABLE {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px
}
TD {
	FONT: 12px 宋体
}
img {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px
}
A {
	FONT: 12px 宋体; COLOR: #215dc6; TEXT-DECORATION: none
}
A:hover {
	COLOR: #428eff
}
.sec_menu {
	OVERFLOW: hidden;
}
.list_title {
	
}
.list_title SPAN {
	FONT-WEIGHT: bold;
	LEFT: 8px;
	COLOR: #215dc6;
	POSITION: relative;
	TOP: 2px;
	visibility: visible;
}
.list_title2 {
	
}
.list_title2 SPAN {
	FONT-WEIGHT: bold; LEFT: 8px; COLOR: #428eff; POSITION: relative; TOP: 2px
}
.style1 {
	font-size: 14pt;
	font-weight: bold;
	color: #467ACB;
}
.style2 {
	font-size: 15px;
	font-weight: bold;
}
.style3 {font-size: 14px}
.style4 {font-size: 13px}
.style6 {font-size: 14pt}
    .style9 {font-size: 12pt}
    .style10 {
	font-size: 12px;
	color: #467ACB;
}
    .style13 {font-size: 12pt; color: #467ACB; }
    </STYLE>
	<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
    </script>
    <script type="text/javascript">
    /*function loadlogin()
    {
    window.open('ChangePwd.jsp','changpassword','width=450,height=300');
    }*/
    </script>
	</head>

	<body>
		<div id="buttomdiv">
			<div id="managerhead">
			<div id="taobaoheadpic"><img src="image/Head/2.bmp" width="240" height="31"></div>
			</div>
			<div align="left">
			  <div id="managertop">&nbsp;&nbsp;&nbsp;<span class="style6"><a href="">[淘宝网后台管理]</a>   <a href="">商品管理</a> <span class="style10">&gt;&gt;</span>  <a href="">用户管理</a> <span class="style10">&gt;&gt;</span>  <a href="">论坛管理</a> <span class="style10">&gt;&gt;</span>  <a href="">订单管理</a> <span class="style10">&gt;&gt;</span> <a href="">类别管理</a> </span><%
 	String username = (String) session.getAttribute("loginusername");
 	if (username == null) {
 		out.print("你好,");
 	} else {
 %> <%=username%>管理员, <%
 }
 %>欢迎您来淘宝后台管理!</div>
		  </div>
			<div id="managerfront">
				<div id="managerfrontleft">
	
      <table cellSpacing="0" cellPadding="0" width=158 align=center>
        
        <tr style="CURSOR: hand">
          <td vAlign=bottom height=31><img height=30 
            src="image/manager/title.gif" width=158></td>
        </tr></table>
      <table cellSpacing="0" cellPadding="0" width=158 align=center>
        
        <tr style="CURSOR: hand">
            <td class=list_title id=list1 
          onmouseover="this.typename='list_title2';" 
          onclick=chang(menu1,50,list1); 
          onmouseout="this.typename='list_title';" 
          background="image/manager/title_show.gif" 
            height=25><span>淘宝网管理</span> </td>
        </tr>
        <tr>
            <td align="center" valign="middle"> 
              <div class=sec_menu id=menu1 
            style="DISPLAY: none; FILTER: alpha(Opacity=0); width: 158px; height: 0px">
                <table  cellSpacing="0" 
            cellPadding="0" width=152 align="center"  background="image/manager/bg.gif" style="padding-left:5px">
                  
                    <tr> 
                      <td height=25>
                       <%
 	              if (username == null) {
 	                out.print("更改初始信息");
 	               } else {%>
 	               <a href="ManagerSystem.jsp" target="main">更改初始信息</a>
 	              <%}%>
                      </td>
                    </tr>
           
                    <tr> 
                      <td height=25>
                      <%
 	              if (username == null) {
 	                out.print("查看服务器信息");
 	               } else {%>
 	               <a href="ManagerSystem.jsp" target="main">查看服务器信息</a>
 	              <%}%>
                      
                      </td>
                    </tr>
                  
                  
                </table>
              </div></td></tr></table>


<table cellSpacing="0" cellPadding="0" width=158 align=center>
        
        <tr style="CURSOR: hand">
            <td class=list_title id=list2 
          onmouseover="this.typename='list_title2';" 
          onclick=chang(menu2,160,list2); 
          onmouseout="this.typename='list_title';" 
          background="image/manager/title_show.gif" 
            height=25><span>论坛信息管理</span> </td>
      </tr>
        <tr>
            <td align="center"> 
              <div class=sec_menu id=menu2 
            style="DISPLAY: none; FILTER: alpha(Opacity=0); width: 158px; height: 0px">
                <table  cellSpacing=2 
            cellPadding="0" width=152 align="center"  background="image/manager/bg.gif" style="padding-left:5px">
                  <tr> 
                    <td height=25>
                    <%
 	              if (username == null) {
 	                out.print("主贴管理");
 	               } else {%>
                    <a href="MainMasterManager.jsp" target="main">主贴管理</a>
                    <%} %>
                    </td>
                  </tr>
                  
                    <tr> 
                      <td height=25>
                      <%
 	              if (username == null) {
 	                out.print("从贴管理");
 	               } else {%>
                      <a href="FollowMasterManager.jsp" target="main">从贴管理</a>
                      <%} %>
                      </td>

⌨️ 快捷键说明

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