JSP的一个后台页面

博客围绕JSP的一个后台页面展开,但具体内容缺失。JSP是后端开发常用技术,可用于动态生成网页内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>admin</title>
</head>
<style type="text/css">
    *{
        margin: 0;
        padding: 0;
    }
    body{
        width: 100%;

    }
    a{
     text-decoration: none;
      color: #f5fff5;
    }
    .contain{
        margin-left: 1%;
        width: 98%;
        border-left-width: 5px;
        border-right-width: 5px;
        border-top-width: 0px;
        height: 830px;
    }
    /*顶部*/
    .top{
        padding-top: 10px;
        width: 100%;
        height: 40px;
    }
    .system{
        font-size: 30px;
        font-family: 华文新魏;
        float: left;
        color: #0ca0ff;
    }
    .admin{
        float: right;
        margin-right: 2%;
        color: #37080a;
    }

    /*中间内容区*/
    .content{
        height: 820px;
        background-color: #daffea;
        width: 100%;
    }
    .menu{
        width: 12%;
        float: left;
        height: 800px;
        background-color: #31372d;
    }
    .headimg_name{
        margin-top: 10px;
        text-align: center;
        font-size: 20px;
        color: #f5fff5;
    }
    .headimg{
        margin-top: 100px;
        margin-left: 25%;
        border-radius: 50px;
    }
    .address{
        margin-top: 5px;
        text-align: center;
        font-size: 10px;
        color: rgba(255, 252, 229, 0.67);
    }
    .exit{
        padding-top: 2px;
        margin-top: 10px;
        display: block;
        height: 25px;
        width: 40%;
        margin-left: 30%;
        margin-right: 30%;
        text-align: center;
        font-size: 15px;
        border-radius: 15px;
        color: #f5fff5;
        border-style: solid;
        border-width: 1px;
        border-color: #75ffdf;
    }
    .exit:hover{
        color: #75ffdf;
    }
    .menu_ul{
        margin-top: 50px;
        color: #f5fff5;
    }
    img{
        border-radius: 50px;
    }
    li{
        display: block;
        list-style: none;
        height: 40px;
        border-top-width: 1px;
        border-bottom-width: 0px;
        border-left-width: 0px;
        border-right-width: 0px;
        border-style: solid;
        padding-top: 15px;
    }
    .lastli{
        border-bottom-width: 1px;
    }
    li:hover{
        color: #75ffdf;
        border-left-width: 1px;
    }
    
    
    /*右侧内容部分*/
    #right_content{
        width: 88%;
        float: left;
        height: 840px;
    }
    </style>
<body>
  <div class="contain">
      <div class="top"><div class="system">农村特色产品销售系统</div><div class="admin"><strong>欢迎您!超级管理员</strong></div></div>
      <div class="content">
          <div class="menu">
              <div class="headimg"><img width="100px" height="100px" src="img/admin.jpg"></div>
              <div class="headimg_name">超级管理员</div>
              <div class="address">西安邮电大学</div>
              <div class="exit"><a href="/RuralSales/adminexit">退出登录</a></div>
              <div class="menu_ul">
                  <ul>
                      <li onclick="goodstype()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品类型管理</li>
                      <li onclick="shop()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商户管理</li>
                      <li onclick="user()" class="lastli">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;消费者管理</li>
                      <li onclick="user()" class="lastli">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;购物车管理</li>
                      <li onclick="user()" class="lastli">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;订单管理</li>
                  </ul>
              </div>
          </div>
          <div id="right_content">

          </div>
      </div>
  </div>
  <script type="text/javascript">
//创建访问对象
  function createXMLHTTPObject(){
      var XMLHttpFactories=[
       function () {
           return new XMLHttpRequest();
       },
       function () {
           return new ActiveXObject("Msxml2.XMLHTTP");
       },
       function(){
          return new ActiveXObject("Msxml3.XMLHTTP");
       },
       function () {
           return new ActiveXObject("Microsoft.XMLHTTP");
       }
      ];
      var xmlhttp=false;
      for(var i=0;i<XMLHttpFactories.length;i++) {
      	try{
      		xmlhttp=XMLHttpFactories[i]();
      	}catch (e) {
				continue;
			}
      	break;
      }
      return xmlhttp;       //返回是对象实例
  }
  function goodstype() {
      var x=createXMLHTTPObject();
      var url="/RuralSales/querytype";
      x.open("GET",url,true);
      x.onreadystatechange=function () {
          if(x.readyState==4&&x.status==200){
              var o=document.getElementById("right_content");
           
              o.innerHTML=x.responseText;
          }
      }
      x.send(null);
  }
  function shop() {
	  var x=createXMLHTTPObject();
      var url="/RuralSales/queryshop";
      x.open("GET",url,true);
      x.onreadystatechange=function () {
          if(x.readyState==4&&x.status==200){
              var o=document.getElementById("right_content");
              o.innerHTML=x.responseText;
          }
      }
      x.send(null);
  }
  function user() {
	  var x=createXMLHTTPObject();
      var url="/RuralSales/queryuser";
      x.open("GET",url,true);
      x.onreadystatechange=function () {
          if(x.readyState==4&&x.status==200){
              var o=document.getElementById("right_content");
              o.innerHTML=x.responseText;
          }
      }
      x.send(null);
}
  </script>
</body>
</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值