adminlte.js-页面模版

html页面

使用cdn加速、

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Test</title>
    <meta charset="UTF-8"/>
       <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="format-detection" content="telephone=no"/>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="https://cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet"/>
    <link href="https://cdn.bootcss.com/admin-lte/2.3.11/css/AdminLTE.css" rel="stylesheet"/>
    <!-- <link href="https://cdn.bootcss.com/admin-lte/2.3.11/css/alt/AdminLTE-bootstrap-social.css" rel="stylesheet"/> -->
    <!-- <link href="https://cdn.bootcss.com/admin-lte/2.3.11/css/alt/AdminLTE-fullcalendar.css" rel="stylesheet"/> -->
    <!-- <link href="https://cdn.bootcss.com/admin-lte/2.3.11/css/alt/AdminLTE-select2.css" rel="stylesheet"/> -->
    <!-- <link href="https://cdn.bootcss.com/admin-lte/2.3.11/css/alt/AdminLTE-without-plugins.css" rel="stylesheet"/> -->
    <!-- <link href="https://cdn.bootcss.com/admin-lte/2.3.11/css/skins/_all-skins.css" rel="stylesheet"/> -->
    <link href="https://cdn.bootcss.com/admin-lte/2.3.11/css/skins/_all-skins.min.css" rel="stylesheet"/>
    <link href="https://cdn.bootcss.com/admin-lte/2.3.11/css/skins/skin-black-light.css" rel="stylesheet"/>
    <link href="https://cdn.bootcss.com/admin-lte/2.3.11/css/skins/skin-black.css" rel="stylesheet"/>
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic" rel="stylesheet" />
     
     <!--[if lt IE 9]>
     <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
     <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
     <![endif]-->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" ></script>
    <script src="https://cdn.bootcss.com/jQuery-slimScroll/1.3.8/jquery.slimscroll.min.js"></script>
    <script src="https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js"></script>
    
    <script src="https://cdn.bootcss.com/admin-lte/2.3.11/js/app.js"></script>
    <script src="https://cdn.bootcss.com/admin-lte/2.3.11/js/demo.js"></script>
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <header class="main-header">
            <!-- Logo -->
            <a href="index.html" class="logo"> 
                <!-- mini logo for sidebar mini 50x50 pixels -->
                <span class="logo-mini">
                    <img src="/images/index_bg.jpg" width="40px" height="40px"/>
                </span>
                  <span class="logo-lg">Test</span>
            </a>
            <!-- Header Navbar -->
            <nav class="navbar navbar-static-top" >
                 <!-- Sidebar toggle button-->
                 <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">切换导航</span>
                 </a>
               <!-- Navbar Right Menu -->
               <div class="navbar-custom-menu">
                  <ul class="nav navbar-nav">
                  <!-- User Account: -->
                  <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                          <img src="/images/user.jpg" class="user-image" alt="User Image" />
                          <span class="hidden-xs">欢迎您:admin</span>
                        </a>
                       <ul class="dropdown-menu">
                           <!-- User image -->
                           <li class="user-header">
                              <img id="user-header" src="images/user.jpg" class="img-circle" alt="User Image"/>
                              <p><span>admin</span></p>
                          </li>
                          <!--Menu Body--> 
                          <li class="user-body"> 
                              <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> 
                          </li>
                          <!-- Menu Footer-->
                          <li class="user-footer">
                              <div class="pull-left">
                                  <a id="systemsettingBtn" href="javascript:void(0)" class="btn btn-default btn-flat">修改密码</a>
                              </div>
                              <div class="pull-right">
                                  <a href="/logout" class="btn btn-default btn-flat">注销</a>
                              </div>
                          </li>
                       </ul>
                   </li>
                   <!-- Control Sidebar Toggle Button -->
                   <li>
                     <a href="#" data-toggle="control-sidebar">
                        <i class="fa fa-gears"></i>
                     </a>
                   </li>
                  </ul>
               </div>
            </nav>
           </header>
           <aside class="main-sidebar">
               <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar">
                  <!-- Sidebar user panel -->
                  <div class="user-panel">
                    <div class="pull-left image">
                          <img src="/images/user.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>
                <!-- /.search form -->
                  <!-- sidebar menu: : style can be found in sidebar.less -->
                  <ul class="sidebar-menu" data-widget="tree">
                    <li class="header">MAIN NAVIGATION</li>
                    <li class="treeview">
                          <a href="javascript:;">
                            <i class="fa fa-dashboard"></i> 
                            <span>Dashboard</span>
                            <span class="pull-right-container">
                                  <i class="fa fa-angle-left pull-right"></i>
                            </span>
                          </a>
                          <ul class="treeview-menu">
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
                          </ul>
                    </li>
                    <li class="treeview">
                          <a href="javascript:;">
                            <i class="fa fa-files-o"></i>
                            <span>Layout Options</span>
                            <span class="pull-right-container">
                                  <span class="label label-primary pull-right">4</span>
                            </span>
                          </a>
                          <ul class="treeview-menu">
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Boxed</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Fixed</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li>
                          </ul>
                    </li>
                    <li>
                          <a href="javascript:;" data-url="default.html">
                            <i class="fa fa-th"></i> <span>Widgets</span>
                            <span class="pull-right-container">
                                  <small class="label pull-right bg-green">new</small>
                            </span>
                          </a>
                    </li>
                    <li class="treeview">
                          <a href="javascript:;">
                            <i class="fa fa-pie-chart"></i>
                            <span>Charts</span>
                            <span class="pull-right-container">
                                  <i class="fa fa-angle-left pull-right"></i>
                                </span>
                          </a>
                        <ul class="treeview-menu">
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> ChartJS</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Morris</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Flot</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
                        </ul>
                    </li>
                    <li class="treeview">
                          <a href="javascript:;">
                            <i class="fa fa-laptop"></i>
                            <span>UI Elements</span>
                            <span class="pull-right-container">
                                  <i class="fa fa-angle-left pull-right"></i>
                            </span>
                          </a>
                          <ul class="treeview-menu">
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> General</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Icons</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Buttons</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Sliders</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Timeline</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Modals</a></li>
                          </ul>
                    </li>
                    <li class="treeview">
                          <a href="javascript:;">
                            <i class="fa fa-edit"></i> <span>Forms</span>
                            <span class="pull-right-container">
                                  <i class="fa fa-angle-left pull-right"></i>
                            </span>
                          </a>
                          <ul class="treeview-menu">
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Editors</a></li>
                          </ul>
                    </li>
                    <li class="treeview active">
                          <a href="javascript:;">
                            <i class="fa fa-table"></i> <span>Tables</span>
                            <span class="pull-right-container">
                                  <i class="fa fa-angle-left pull-right"></i>
                            </span>
                         </a>
                          <ul class="treeview-menu">
                            <li class="active"><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Simple tables</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Data tables</a></li>
                          </ul>
                    </li>
                    <li>
                          <a href="javascript:;" data-url="default.html">
                            <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>
                    <li>
                          <a href="javascript:;" data-url="default.html">
                            <i class="fa fa-envelope"></i> <span>Mailbox</span>
                            <span class="pull-right-container">
                                  <small class="label pull-right bg-yellow">12</small>
                                  <small class="label pull-right bg-green">16</small>
                                  <small class="label pull-right bg-red">5</small>
                            </span>
                          </a>
                    </li>
                    <li class="treeview">
                          <a href="javascript:;">
                            <i class="fa fa-folder"></i> <span>Examples</span>
                            <span class="pull-right-container">
                                  <i class="fa fa-angle-left pull-right"></i>
                            </span>
                          </a>
                          <ul class="treeview-menu">
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Invoice</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Profile</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Login</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Register</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Pace Page</a></li>
                          </ul>
                    </li>
                    <li class="treeview">
                          <a href="javascript:;">
                            <i class="fa fa-share"></i> <span>Multilevel</span>
                            <span class="pull-right-container">
                                 <i class="fa fa-angle-left pull-right"></i>
                            </span>
                          </a>
                          <ul class="treeview-menu">
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Level One</a></li>
                            <li class="treeview">
                              <a href="javascript:;"><i class="fa fa-circle-o"></i> Level One
                                <span class="pull-right-container">
                                  <i class="fa fa-angle-left pull-right"></i>
                                </span>
                              </a>
                              <ul class="treeview-menu">
                                <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Level Two</a></li>
                                <li class="treeview">
                                  <a href="javascript:;"><i class="fa fa-circle-o"></i> Level Two
                                    <span class="pull-right-container">
                                      <i class="fa fa-angle-left pull-right"></i>
                                    </span>
                                  </a>
                                  <ul class="treeview-menu">
                                    <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Level Three</a></li>
                                    <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Level Three</a></li>
                                  </ul>
                                </li>
                              </ul>
                            </li>
                            <li><a href="javascript:;" data-url="default.html"><i class="fa fa-circle-o"></i> Level One</a></li>
                          </ul>
                    </li>
                    <li><a href="javascript:;"><i class="fa fa-book" data-url="default.html"></i> <span>Documentation</span></a></li>
                    <li class="header">LABELS</li>
                    <li><a href="javascript:;"><i class="fa fa-circle-o text-red" data-url="default.html"></i> <span>Important</span></a></li>
                    <li><a href="javascript:;"><i class="fa fa-circle-o text-yellow" data-url="default.html"></i> <span>Warning</span></a></li>
                    <li><a href="javascript:;"><i class="fa fa-circle-o text-aqua" data-url="default.html"></i> <span>Information</span></a></li>
                  </ul>
             </section>
           </aside>
           <section class="content-wrapper">
            <div class="main-iframe-body">
                <iframe id="main-iframe" frameborder="no" src="/default"></iframe>
            </div>
           </section>
    </div>
</body>
<script type="text/javascript">
$(function(){
    onclickSidebarMenuEvent();
});

/**
 * 左边菜单版定点击事件
 * @returns
 */
function onclickSidebarMenuEvent(){
    $(".sidebar-menu a").click(function(){
        var url = $(this).data('url');
        if(!url) {
            //console.error("url must not null.")
            return;
        }
        if($('#main-iframe').attr('src') == url) return;
        document.getElementById("main-iframe").src = url;
    });
}
</script>
</html>

 

posted @ 2017-07-06 14:14  243573295  阅读(1615)  评论(0编辑  收藏  举报