• 引入前端AdminLTE框架


    这篇博客只是为了做一个笔记,所以话不都说

    在使用的时候应该注意的地方:

    <ul class="sidebar-menu" id="sidebar-menu">

    </ul>

    这个标签管理着左侧的标题列表,这里采用ajax的方法,直接获取到对应权限的对应资源:

    var resource = null;
    	$.ajax({
    		url : "hrssc/page/getMainResource",
    		type : "POST",
    		async : "false",
    		data : {},
    		success : function(data){
    			//alert(data);
    			resource = data;
    			var str = "";
    			
    			for(var i = 0; i < resource.length; i++){
    				str += '<li><a href="hrssc/';
    				str += resource[i].en_name;
    				str += '/';
    				str += resource[i].en_name;
    				str += '" target="menuFrame"><i class="fa fa-calendar"></i><span>';
    				str += resource[i].name;
    				str += '</span><span class="pull-right-container"></span></a></li>';
    			}
    			$("#sidebar-menu").html(str);
    		}
    	});
    

    上面代码的target属性指向的是iframe标签,a标签的href属性为嵌入页面对应的跳转的action,str打印出来的代码,该代码嵌入到sidebar-menu对应的ul标签中:

    <li>
              <a href="pages/calendar.html" target="menuFrame">
                <i class="fa fa-calendar"></i> <span>Calendar</span>
                <span class="pull-right-container">
                  <small class="label pull-right bg-red">3</small>
                  <small class="label pull-right bg-blue">17</small>
                </span>
              </a>
            </li>
    

    iframe标签代码

    <!-- 不能删除 -->
    		<div class="content-wrapper">
    	      <iframe src="hrssc/bussinessHandle/bussinessHandle" id="menuFrame" name="menuFrame" frameborder="0" style="overflow:visible;" scrolling="yes" frameborder="yes" height="100%" width="100%"></iframe>
    		</div>
    

    common.jsp

    <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    
    <c:set var="basepath" value="${pageContext.request.contextPath }"/>
    <base href="${basepath }/" />
    <link rel="stylesheet" href="base/AdminLTE/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="base/AdminLTE/dist/css/AdminLTE.min.css">
    <!-- base/AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="base/AdminLTE/dist/css/skins/_all-skins.min.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="base/AdminLTE/plugins/iCheck/flat/blue.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="base/AdminLTE/plugins/morris/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="base/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <!-- Date Picker -->
    <link rel="stylesheet" href="base/AdminLTE/plugins/datepicker/datepicker3.css">
    <!-- Daterange picker -->
    <link rel="stylesheet" href="base/AdminLTE/plugins/daterangepicker/daterangepicker.css">
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="base/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <!-- jQuery 2.2.3 -->
    <script src="base/AdminLTE/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <!-- jQuery UI 1.11.4 -->
    <script src="base/AdminLTE/plugins/jQueryUI/jquery-ui.min.js"></script>
    <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
    <script>
      $.widget.bridge('uibutton', $.ui.button);
    </script>
    <!-- Bootstrap 3.3.6 -->
    <script src="base/AdminLTE/bootstrap/js/bootstrap.min.js"></script>
    <!-- Morris.js charts -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
    <script src="base/AdminLTE/plugins/morris/morris.min.js"></script>
    <!-- Sparkline -->
    <script src="base/AdminLTE/plugins/sparkline/jquery.sparkline.min.js"></script>
    <!-- jvectormap -->
    <script src="base/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
    <script src="base/AdminLTE/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
    <!-- jQuery Knob Chart -->
    <script src="base/AdminLTE/plugins/knob/jquery.knob.js"></script>
    <!-- daterangepicker -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
    <script src="base/AdminLTE/plugins/daterangepicker/daterangepicker.js"></script>
    <!-- datepicker -->
    <script src="base/AdminLTE/plugins/datepicker/bootstrap-datepicker.js"></script>
    <!-- Bootstrap WYSIHTML5 -->
    <script src="base/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
    <!-- Slimscroll -->
    <script src="base/AdminLTE/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <!-- FastClick -->
    <script src="base/AdminLTE/plugins/fastclick/fastclick.js"></script>
    <!-- base/AdminLTE App -->
    <script src="base/AdminLTE/dist/js/app.min.js"></script>
    <!-- base/AdminLTE dashboard demo (This is only for demo purposes) -->
    <script src="base/AdminLTE/dist/js/pages/dashboard.js"></script>
    <!-- base/AdminLTE for demo purposes -->
    <script src="base/AdminLTE/dist/js/demo.js"></script>
    

    login.jsp

    <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head class="main-class">
    <%@ include file="/common/common.jsp"%>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>登录</title>
    </head>
    <body class="hold-transition login-page">
        <div class="login-box">
            <div class="login-logo">
                <a href="http://www.cnblogs.com/asen0713" target="_blank"><b>Asen</b></a>
            </div>
            <!-- /.login-logo -->
            <div class="login-box-body">
                <p class="login-box-msg">权限管理系统</p>
                    <div class="form-group has-feedback">
                        <input id="userName" type="text" class="form-control" placeholder="用户名">
                        <span id="msg" style="color: red"></span>
                        <span class="glyphicon glyphicon-user form-control-feedback"></span>
                    </div>
                    <div class="form-group has-feedback">
                        <input id="password" type="password" class="form-control" placeholder="密码">
                        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                    </div>
                    <div class="row">
                        <div class="col-xs-8">
                            <div class="checkbox icheck" style="margin-left:50px">
                                <label>
                                    <input type="checkbox"> 记住我
                                </label>
                            </div>
                        </div>
                        <!-- /.col -->
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat" onclick="login()">登录</button>
                        </div>
                        <!-- /.col -->
                    </div>
            </div>
            <!-- /.login-box-body -->
        </div>
    </body>
    </html>
    
    <script type="text/javascript">
        function login() {
            $.ajax({
                url : "hrssc/basic/loginAction",
                type : "post",
                async : false,
                data : {
                    userName : $("#userName").val(),
                    password : $("#password").val()
                },
                success : function(data){
                    if(data.status == 0){
                        window.location = "hrssc/basic/mainPage";
                    }else{
                        $("#msg").html(data.msg);
                    }
                }
            });
        }
    </script>
    

    regist.jsp

    <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head class="main-class">
    <%@ include file="/common/common.jsp" %>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>注册</title>
    </head>
    <body class="hold-transition login-page">
        <div class="login-box">
            <div class="login-logo">
                <a href="http://www.cnblogs.com/asen0713" target="_blank"><b>Asen</b></a>
            </div>
            <!-- /.login-logo -->
            <div class="login-box-body">
                <p class="login-box-msg">管理系统</p>
                <div class="form-group has-feedback">
                    <input id="userName" type="text" class="form-control" placeholder="请输入邮箱">
                    <span id="msg" style="color:red"></span>
                    <span class="glyphicon glyphicon-user form-control-feedback"></span>
                </div>
                <div class="form-group has-feedback">
                    <input id="password" type="password" class="form-control" placeholder="密码">
                </div>
                <div class="row">
                    <div class="col-xs-8">
                        <div class="checkbox icheck" style="margin-left:50px">
                            <label>
                                <input type="checkbox"> 记住我
                            </label>
                        </div>
                    </div>
                    <!-- /.col -->
                    <div class="col-xs-4">
                        <button type="submit" class="btn btn-primary btn-block btn-flat" onclick="regist()">注册</button>
                    </div>
                    <!-- /.col -->
                </div>
            </div>
            <!-- /.login-box-body -->
        </div>
    </body>
    </html>
    
    <script type="text/javascript">
        function regist() {
            $.ajax({
                url : "hrssc/basic/registAction",
                async : false,
                type : "post",
                data : {
                    userName : $("#userName").val(),
                    password : $("#password").val()
                },
                success : function(data){
                    if (data.status == 1) {
                        $("#msg").html(data.msg);
                    }else{
                        window.location = "hrssc/basic/mainPage";
                    }
                }
            });
        }
    </script>
    

    main.jsp

    <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head class="main-class">
    <%@ include file="/common/common.jsp"%>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>管理系统</title>
    
    <script type="text/javascript">
    	var resource = null;
    	$.ajax({
    		url : "hrssc/page/getMainResource",
    		type : "POST",
    		async : "false",
    		data : {},
    		success : function(data){
    			//alert(data);
    			resource = data;
    			var str = "";
    			
    			for(var i = 0; i < resource.length; i++){
    				str += '<li><a href="hrssc/';
    				str += resource[i].en_name;
    				str += '/';
    				str += resource[i].en_name;
    				str += '" target="menuFrame"><i class="fa fa-calendar"></i><span>';
    				str += resource[i].name;
    				str += '</span><span class="pull-right-container"></span></a></li>';
    			}
    			$("#sidebar-menu").html(str);
    		}
    	});	
    </script>
    
    </head>
    <body class="hold-transition skin-blue sidebar-mini">
    	<div class="wrapper">
    		<header class="main-header">
    			<div class="logo">
    				<!-- mini logo for sidebar mini 50x50 pixels -->
    				<span class="logo-mini"><b>A</b>LT</span>
    				<!-- logo for regular state and mobile devices -->
    				<span class="logo-lg"><b>Admin</b>LTE</span>
    			</div>
    
    			<nav class="navbar navbar-static-top">
    			<!-- Sidebar toggle button-->
    		      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
    		        <span class="sr-only">Toggle navigation</span>
    		      </a>
    			<div class="navbar-custom-menu">
    				<ul class="nav navbar-nav">
    					<!-- 右边用户头像信息 -->
    					<li class="dropdown user user-menu">
    					<a href="#" class="dropdown-toggle" data-toggle="dropdown"> 
    						<img  src="resource/pic/001.jpg" class="user-image" alt="User Image">
    						<span class="hidden-xs">Alexander Pierce</span>
    					</a>
    						<ul class="dropdown-menu">
    							<!-- 用户头像点击打开之后的效果 -->
    						              <li class="user-header">
    						                <img src="resource/pic/001.jpg" class="img-circle" alt="User Image">
    
    						                <p>
    						                  Alexander Pierce - Web Developer
    						                  <small>Member since Nov. 2012</small>
    						                </p>
    						              </li>
    						              <!-- Menu Body -->
    						              <li class="user-body">
    						                <div class="row">
    						                  <div class="col-xs-4 text-center">
    						                    <a href="#">Followers</a>
    						                  </div>
    						                  <div class="col-xs-4 text-center">
    						                    <a href="#">Sales</a>
    						                  </div>
    						                  <div class="col-xs-4 text-center">
    						                    <a href="#">Friends</a>
    						                  </div>
    						                </div>
    						                <!-- /.row -->
    						              </li>
    						              <!-- Menu Footer-->
    						              <li class="user-footer">
    						                <div class="pull-left">
    						                  <a href="#" class="btn btn-default btn-flat">Profile</a>
    						                </div>
    						                <div class="pull-right">
    						                  <a class="btn btn-default btn-flat" onclick="logout();">Sign out</a>
    						                </div>
    						              </li>
    						</ul>
    					</li>
    					<!-- 右边齿轮 -->
    					<li><a href="#" data-toggle="control-sidebar"><i
    							class="fa fa-gears"></i></a></li>
    				</ul>
    			</div>
    			</nav>
    		 </header>
    		
    		<!-- 侧边栏信息 -->
    		<aside class="main-sidebar">
    			<li class="header">MAIN NAVIGATION</li>
    				<section class="sidebar"> 
    					<!-- 用户头像信息栏 -->
    					<div class="user-panel">
    						<div class="pull-left image">
    							<img src="resource/pic/001.jpg" class="img-circle" alt="User Image">
    						</div>
    						<div class="pull-left info">
    							<p>Alexander Pierce</p>
    							<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
    						</div>
    					</div>
    					<!-- search form --> <!-- 搜索栏 -->
    					<form action="#" method="get" class="sidebar-form">
    						<div class="input-group">
    							<input type="text" name="q" class="form-control"
    								placeholder="Search..."> <span class="input-group-btn">
    								<button type="submit" name="search" id="search-btn"
    									class="btn btn-flat">
    									<i class="fa fa-search"></i>
    								</button>
    							</span>
    						</div>
    					</form>
    					
    					<!-- 侧边栏按钮,ajax返回信息 -->
    					<ul class="sidebar-menu" id="sidebar-menu">
    					</ul>
    				</section> 
    		</aside>
    
    		<!-- 不能删除 -->
    		<div class="content-wrapper">
    	      <iframe src="hrssc/bussinessHandle/bussinessHandle" id="menuFrame" name="menuFrame" frameborder="0" style="overflow:visible;" scrolling="yes" frameborder="yes" height="100%" width="100%"></iframe>
    		</div>
    
    		<!-- 页脚 -->
    		<footer class="main-footer">
    		<div class="pull-right hidden-xs">
    			<b>Version</b> 2.3.12
    		</div>
    		<strong>Copyright © 2014-2016 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.
    		</strong> All rights reserved. </footer>
    
    		<!-- 右边侧边栏,不能删 -->
    		<aside class="control-sidebar control-sidebar-dark">
    		<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
    			<li><a href="#control-sidebar-home-tab" data-toggle="tab"><i
    					class="fa fa-home"></i></a></li>
    			<li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i
    					class="fa fa-gears"></i></a></li>
    		</ul>
    		</aside>
    		<!-- 右边侧边栏下面内容,不能删 -->
    		<div class="control-sidebar-bg"></div>
    	</div>
    </body>
    </html>
    
    <script type="text/javascript">
    	function logout() {
    		$.ajax({
    			url : "hrssc/basic/logout",
    			data : {},
    			type : "post",
    			async : false,
    			success : function(data){
    				window.location = "hrssc/basic/login";
    			}
    		});
    	}
    
    	$("#menuFrame").load(function () {
    	    var mainheight = $(this).contents().find("body").height() + 30;
    	    $(this).height(mainheight);
    	});
    
    </script>
    

    嵌入页面测试代码

    <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head class="main-class">
    <%@ include file="/common/common.jsp"%>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    </head>
    <body class="hold-transition skin-blue sidebar-mini">
    
    	<!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Dashboard
            <small>Control panel</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li class="active">Dashboard</li>
          </ol>
        </section>
    
        <!-- Main content -->
        <section class="content">
          <!-- Small boxes (Stat box) -->
          <div class="row">
            <div class="col-lg-3 col-xs-6">
              <!-- small box -->
              <div class="small-box bg-aqua">
                <div class="inner">
                  <h3>150</h3>
    
                  <p>New Orders</p>
                </div>
                <div class="icon">
                  <i class="ion ion-bag"></i>
                </div>
                <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
              </div>
            </div>
            <!-- ./col -->
            <div class="col-lg-3 col-xs-6">
              <!-- small box -->
              <div class="small-box bg-green">
                <div class="inner">
                  <h3>53<sup style="font-size: 20px">%</sup></h3>
    
                  <p>Bounce Rate</p>
                </div>
                <div class="icon">
                  <i class="ion ion-stats-bars"></i>
                </div>
                <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
              </div>
            </div>
            <!-- ./col -->
            <div class="col-lg-3 col-xs-6">
              <!-- small box -->
              <div class="small-box bg-yellow">
                <div class="inner">
                  <h3>44</h3>
    
                  <p>User Registrations</p>
                </div>
                <div class="icon">
                  <i class="ion ion-person-add"></i>
                </div>
                <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
              </div>
            </div>
            <!-- ./col -->
            <div class="col-lg-3 col-xs-6">
              <!-- small box -->
              <div class="small-box bg-red">
                <div class="inner">
                  <h3>65</h3>
    
                  <p>Unique Visitors</p>
                </div>
                <div class="icon">
                  <i class="ion ion-pie-graph"></i>
                </div>
                <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
              </div>
            </div>
            <!-- ./col -->
          </div>
          <!-- /.row -->
          <!-- Main row -->
          <div class="row">
            <!-- Left col -->
            <section class="col-lg-7 connectedSortable">
              <!-- Custom tabs (Charts with tabs)-->
              <div class="nav-tabs-custom">
                <!-- Tabs within a box -->
                <ul class="nav nav-tabs pull-right">
                  <li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>
                  <li><a href="#sales-chart" data-toggle="tab">Donut</a></li>
                  <li class="pull-left header"><i class="fa fa-inbox"></i> Sales</li>
                </ul>
                <div class="tab-content no-padding">
                  <!-- Morris chart - Sales -->
                  <div class="chart tab-pane active" id="revenue-chart" style="position: relative; height: 300px;"></div>
                  <div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>
                </div>
              </div>
              <!-- /.nav-tabs-custom -->
    
              <!-- Chat box -->
              <div class="box box-success">
                <div class="box-header">
                  <i class="fa fa-comments-o"></i>
    
                  <h3 class="box-title">Chat</h3>
    
                  <div class="box-tools pull-right" data-toggle="tooltip" title="Status">
                    <div class="btn-group" data-toggle="btn-toggle">
                      <button type="button" class="btn btn-default btn-sm active"><i class="fa fa-square text-green"></i>
                      </button>
                      <button type="button" class="btn btn-default btn-sm"><i class="fa fa-square text-red"></i></button>
                    </div>
                  </div>
                </div>
                <div class="box-body chat" id="chat-box">
                  <!-- chat item -->
                  <div class="item">
                    <img src="dist/img/user4-128x128.jpg" alt="user image" class="online">
    
                    <p class="message">
                      <a href="#" class="name">
                        <small class="text-muted pull-right"><i class="fa fa-clock-o"></i> 2:15</small>
                        Mike Doe
                      </a>
                      I would like to meet you to discuss the latest news about
                      the arrival of the new theme. They say it is going to be one the
                      best themes on the market
                    </p>
                    <div class="attachment">
                      <h4>Attachments:</h4>
    
                      <p class="filename">
                        Theme-thumbnail-image.jpg
                      </p>
    
                      <div class="pull-right">
                        <button type="button" class="btn btn-primary btn-sm btn-flat">Open</button>
                      </div>
                    </div>
                    <!-- /.attachment -->
                  </div>
                  <!-- /.item -->
                  <!-- chat item -->
                  <div class="item">
                    <img src="dist/img/user3-128x128.jpg" alt="user image" class="offline">
    
                    <p class="message">
                      <a href="#" class="name">
                        <small class="text-muted pull-right"><i class="fa fa-clock-o"></i> 5:15</small>
                        Alexander Pierce
                      </a>
                      I would like to meet you to discuss the latest news about
                      the arrival of the new theme. They say it is going to be one the
                      best themes on the market
                    </p>
                  </div>
                  <!-- /.item -->
                  <!-- chat item -->
                  <div class="item">
                    <img src="dist/img/user2-160x160.jpg" alt="user image" class="offline">
    
                    <p class="message">
                      <a href="#" class="name">
                        <small class="text-muted pull-right"><i class="fa fa-clock-o"></i> 5:30</small>
                        Susan Doe
                      </a>
                      I would like to meet you to discuss the latest news about
                      the arrival of the new theme. They say it is going to be one the
                      best themes on the market
                    </p>
                  </div>
                  <!-- /.item -->
                </div>
                <!-- /.chat -->
                <div class="box-footer">
                  <div class="input-group">
                    <input class="form-control" placeholder="Type message...">
    
                    <div class="input-group-btn">
                      <button type="button" class="btn btn-success"><i class="fa fa-plus"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <!-- /.box (chat box) -->
    
              <!-- TO DO List -->
              <div class="box box-primary">
                <div class="box-header">
                  <i class="ion ion-clipboard"></i>
    
                  <h3 class="box-title">To Do List</h3>
    
                  <div class="box-tools pull-right">
                    <ul class="pagination pagination-sm inline">
                      <li><a href="#">«</a></li>
                      <li><a href="#">1</a></li>
                      <li><a href="#">2</a></li>
                      <li><a href="#">3</a></li>
                      <li><a href="#">»</a></li>
                    </ul>
                  </div>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                  <ul class="todo-list">
                    <li>
                      <!-- drag handle -->
                          <span class="handle">
                            <i class="fa fa-ellipsis-v"></i>
                            <i class="fa fa-ellipsis-v"></i>
                          </span>
                      <!-- checkbox -->
                      <input type="checkbox" value="">
                      <!-- todo text -->
                      <span class="text">Design a nice theme</span>
                      <!-- Emphasis label -->
                      <small class="label label-danger"><i class="fa fa-clock-o"></i> 2 mins</small>
                      <!-- General tools such as edit or delete-->
                      <div class="tools">
                        <i class="fa fa-edit"></i>
                        <i class="fa fa-trash-o"></i>
                      </div>
                    </li>
                    <li>
                          <span class="handle">
                            <i class="fa fa-ellipsis-v"></i>
                            <i class="fa fa-ellipsis-v"></i>
                          </span>
                      <input type="checkbox" value="">
                      <span class="text">Make the theme responsive</span>
                      <small class="label label-info"><i class="fa fa-clock-o"></i> 4 hours</small>
                      <div class="tools">
                        <i class="fa fa-edit"></i>
                        <i class="fa fa-trash-o"></i>
                      </div>
                    </li>
                    <li>
                          <span class="handle">
                            <i class="fa fa-ellipsis-v"></i>
                            <i class="fa fa-ellipsis-v"></i>
                          </span>
                      <input type="checkbox" value="">
                      <span class="text">Let theme shine like a star</span>
                      <small class="label label-warning"><i class="fa fa-clock-o"></i> 1 day</small>
                      <div class="tools">
                        <i class="fa fa-edit"></i>
                        <i class="fa fa-trash-o"></i>
                      </div>
                    </li>
                    <li>
                          <span class="handle">
                            <i class="fa fa-ellipsis-v"></i>
                            <i class="fa fa-ellipsis-v"></i>
                          </span>
                      <input type="checkbox" value="">
                      <span class="text">Let theme shine like a star</span>
                      <small class="label label-success"><i class="fa fa-clock-o"></i> 3 days</small>
                      <div class="tools">
                        <i class="fa fa-edit"></i>
                        <i class="fa fa-trash-o"></i>
                      </div>
                    </li>
                    <li>
                          <span class="handle">
                            <i class="fa fa-ellipsis-v"></i>
                            <i class="fa fa-ellipsis-v"></i>
                          </span>
                      <input type="checkbox" value="">
                      <span class="text">Check your messages and notifications</span>
                      <small class="label label-primary"><i class="fa fa-clock-o"></i> 1 week</small>
                      <div class="tools">
                        <i class="fa fa-edit"></i>
                        <i class="fa fa-trash-o"></i>
                      </div>
                    </li>
                    <li>
                          <span class="handle">
                            <i class="fa fa-ellipsis-v"></i>
                            <i class="fa fa-ellipsis-v"></i>
                          </span>
                      <input type="checkbox" value="">
                      <span class="text">Let theme shine like a star</span>
                      <small class="label label-default"><i class="fa fa-clock-o"></i> 1 month</small>
                      <div class="tools">
                        <i class="fa fa-edit"></i>
                        <i class="fa fa-trash-o"></i>
                      </div>
                    </li>
                  </ul>
                </div>
                <!-- /.box-body -->
                <div class="box-footer clearfix no-border">
                  <button type="button" class="btn btn-default pull-right"><i class="fa fa-plus"></i> Add item</button>
                </div>
              </div>
              <!-- /.box -->
    
              <!-- quick email widget -->
              <div class="box box-info">
                <div class="box-header">
                  <i class="fa fa-envelope"></i>
    
                  <h3 class="box-title">Quick Email</h3>
                  <!-- tools box -->
                  <div class="pull-right box-tools">
                    <button type="button" class="btn btn-info btn-sm" data-widget="remove" data-toggle="tooltip" title="Remove">
                      <i class="fa fa-times"></i></button>
                  </div>
                  <!-- /. tools -->
                </div>
                <div class="box-body">
                  <form action="#" method="post">
                    <div class="form-group">
                      <input type="email" class="form-control" name="emailto" placeholder="Email to:">
                    </div>
                    <div class="form-group">
                      <input type="text" class="form-control" name="subject" placeholder="Subject">
                    </div>
                    <div>
                      <textarea class="textarea" placeholder="Message" style=" 100%; height: 125px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
                    </div>
                  </form>
                </div>
                <div class="box-footer clearfix">
                  <button type="button" class="pull-right btn btn-default" id="sendEmail">Send
                    <i class="fa fa-arrow-circle-right"></i></button>
                </div>
              </div>
    
            </section>
            <!-- /.Left col -->
            <!-- right col (We are only adding the ID to make the widgets sortable)-->
            <section class="col-lg-5 connectedSortable">
    
              <!-- Map box -->
              <div class="box box-solid bg-light-blue-gradient">
                <div class="box-header">
                  <!-- tools box -->
                  <div class="pull-right box-tools">
                    <button type="button" class="btn btn-primary btn-sm daterange pull-right" data-toggle="tooltip" title="Date range">
                      <i class="fa fa-calendar"></i></button>
                    <button type="button" class="btn btn-primary btn-sm pull-right" data-widget="collapse" data-toggle="tooltip" title="Collapse" style="margin-right: 5px;">
                      <i class="fa fa-minus"></i></button>
                  </div>
                  <!-- /. tools -->
    
                  <i class="fa fa-map-marker"></i>
    
                  <h3 class="box-title">
                    Visitors
                  </h3>
                </div>
                <div class="box-body">
                  <div id="world-map" style="height: 250px;  100%;"></div>
                </div>
                <!-- /.box-body-->
                <div class="box-footer no-border">
                  <div class="row">
                    <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                      <div id="sparkline-1"></div>
                      <div class="knob-label">Visitors</div>
                    </div>
                    <!-- ./col -->
                    <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                      <div id="sparkline-2"></div>
                      <div class="knob-label">Online</div>
                    </div>
                    <!-- ./col -->
                    <div class="col-xs-4 text-center">
                      <div id="sparkline-3"></div>
                      <div class="knob-label">Exists</div>
                    </div>
                    <!-- ./col -->
                  </div>
                  <!-- /.row -->
                </div>
              </div>
              <!-- /.box -->
    
              <!-- solid sales graph -->
              <div class="box box-solid bg-teal-gradient">
                <div class="box-header">
                  <i class="fa fa-th"></i>
    
                  <h3 class="box-title">Sales Graph</h3>
    
                  <div class="box-tools pull-right">
                    <button type="button" class="btn bg-teal btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
                    </button>
                    <button type="button" class="btn bg-teal btn-sm" data-widget="remove"><i class="fa fa-times"></i>
                    </button>
                  </div>
                </div>
                <div class="box-body border-radius-none">
                  <div class="chart" id="line-chart" style="height: 250px;"></div>
                </div>
                <!-- /.box-body -->
                <div class="box-footer no-border">
                  <div class="row">
                    <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                      <input type="text" class="knob" data-readonly="true" value="20" data-width="60" data-height="60" data-fgColor="#39CCCC">
    
                      <div class="knob-label">Mail-Orders</div>
                    </div>
                    <!-- ./col -->
                    <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                      <input type="text" class="knob" data-readonly="true" value="50" data-width="60" data-height="60" data-fgColor="#39CCCC">
    
                      <div class="knob-label">Online</div>
                    </div>
                    <!-- ./col -->
                    <div class="col-xs-4 text-center">
                      <input type="text" class="knob" data-readonly="true" value="30" data-width="60" data-height="60" data-fgColor="#39CCCC">
    
                      <div class="knob-label">In-Store</div>
                    </div>
                    <!-- ./col -->
                  </div>
                  <!-- /.row -->
                </div>
                <!-- /.box-footer -->
              </div>
              <!-- /.box -->
    
              <!-- Calendar -->
              <div class="box box-solid bg-green-gradient">
                <div class="box-header">
                  <i class="fa fa-calendar"></i>
    
                  <h3 class="box-title">Calendar</h3>
                  <!-- tools box -->
                  <div class="pull-right box-tools">
                    <!-- button with a dropdown -->
                    <div class="btn-group">
                      <button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-bars"></i></button>
                      <ul class="dropdown-menu pull-right" role="menu">
                        <li><a href="#">Add new event</a></li>
                        <li><a href="#">Clear events</a></li>
                        <li class="divider"></li>
                        <li><a href="#">View calendar</a></li>
                      </ul>
                    </div>
                    <button type="button" class="btn btn-success btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
                    </button>
                    <button type="button" class="btn btn-success btn-sm" data-widget="remove"><i class="fa fa-times"></i>
                    </button>
                  </div>
                  <!-- /. tools -->
                </div>
                <!-- /.box-header -->
                <div class="box-body no-padding">
                  <!--The calendar -->
                  <div id="calendar" style=" 100%"></div>
                </div>
                <!-- /.box-body -->
                <div class="box-footer text-black">
                  <div class="row">
                    <div class="col-sm-6">
                      <!-- Progress bars -->
                      <div class="clearfix">
                        <span class="pull-left">Task #1</span>
                        <small class="pull-right">90%</small>
                      </div>
                      <div class="progress xs">
                        <div class="progress-bar progress-bar-green" style=" 90%;"></div>
                      </div>
    
                      <div class="clearfix">
                        <span class="pull-left">Task #2</span>
                        <small class="pull-right">70%</small>
                      </div>
                      <div class="progress xs">
                        <div class="progress-bar progress-bar-green" style=" 70%;"></div>
                      </div>
                    </div>
                    <!-- /.col -->
                    <div class="col-sm-6">
                      <div class="clearfix">
                        <span class="pull-left">Task #3</span>
                        <small class="pull-right">60%</small>
                      </div>
                      <div class="progress xs">
                        <div class="progress-bar progress-bar-green" style=" 60%;"></div>
                      </div>
    
                      <div class="clearfix">
                        <span class="pull-left">Task #4</span>
                        <small class="pull-right">40%</small>
                      </div>
                      <div class="progress xs">
                        <div class="progress-bar progress-bar-green" style=" 40%;"></div>
                      </div>
                    </div>
                    <!-- /.col -->
                  </div>
                  <!-- /.row -->
                </div>
              </div>
              <!-- /.box -->
    
            </section>
            <!-- right col -->
          </div>
          <!-- /.row (main row) -->
    
        </section>
    
    </body>
    </html>
    

      

  • 相关阅读:
    微信消息推送和支付宝支付
    django rest framework
    Redis
    flask_migrate
    flask 学习
    windowsserver补丁
    mysql 8.0.23密码更新方法
    交换机配置实例
    爱国论坛OPENWRT
    openwrt资料
  • 原文地址:https://www.cnblogs.com/asen0713/p/6654279.html
Copyright © 2020-2023  润新知