2016-03-19 10:28:18 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<title><?php echo $data['page_title']." - ".Config::get('site_name'); ?></title>
|
|
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
2016-03-26 18:46:03 +08:00
|
|
|
<link rel="stylesheet" href="../assets/libs/bootstrap/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="../assets/libs/font-awesome/css/font-awesome.min.css">
|
|
|
|
<link rel="stylesheet" href="../assets/libs/AdminLTE/dist/css/AdminLTE.min.css">
|
|
|
|
<link rel="stylesheet" href="../assets/libs/AdminLTE/dist/css/skins/<?php echo Config::get('color_scheme'); ?>.min.css">
|
|
|
|
<link rel="stylesheet" href="../assets/libs/ply/ply.css">
|
2016-03-19 10:28:18 +08:00
|
|
|
<link rel="stylesheet" href="../assets/css/admin.style.css">
|
2016-03-19 15:21:09 +08:00
|
|
|
<?php if (isset($data['style'])) echo $data['style']; ?>
|
2016-03-19 10:28:18 +08:00
|
|
|
</head>
|
|
|
|
|
2016-03-19 15:21:09 +08:00
|
|
|
<body class="hold-transition <?php echo Config::get('color_scheme'); ?> sidebar-mini">
|
2016-03-19 10:28:18 +08:00
|
|
|
<div class="wrapper">
|
|
|
|
|
|
|
|
<!-- Main Header -->
|
|
|
|
<header class="main-header">
|
|
|
|
|
|
|
|
<!-- Logo -->
|
|
|
|
<a href="<?php echo Config::get('site_url'); ?>" class="logo">
|
|
|
|
<!-- mini logo for sidebar mini 50x50 pixels -->
|
|
|
|
<span class="logo-mini"><b>B</b>S</span>
|
|
|
|
<!-- logo for regular state and mobile devices -->
|
|
|
|
<span class="logo-lg"><?php echo Config::get('site_name'); ?></span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- Header Navbar -->
|
|
|
|
<nav class="navbar navbar-static-top" role="navigation">
|
|
|
|
<!-- Sidebar toggle button-->
|
|
|
|
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
</a>
|
|
|
|
<!-- Navbar Right Menu -->
|
|
|
|
<div class="navbar-custom-menu">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<!-- User Account Menu -->
|
|
|
|
<li class="dropdown user user-menu">
|
|
|
|
<!-- Menu Toggle Button -->
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-user"></i>
|
|
|
|
<!-- hidden-xs hides the username on small devices so only the image appears. -->
|
|
|
|
<span class="hidden-xs"><?php echo $_SESSION['uname']; ?></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<!-- The user image in the menu -->
|
|
|
|
<li class="user-header">
|
2016-03-19 20:01:16 +08:00
|
|
|
<img src="../get.php?type=avatar&uname=<?php echo $_SESSION['uname']; ?>&size=128" alt="User Image">
|
2016-03-19 10:28:18 +08:00
|
|
|
<p>
|
|
|
|
<?php echo $_SESSION['uname']; ?>
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
<!-- Menu Footer-->
|
|
|
|
<li class="user-footer">
|
|
|
|
<div class="pull-left">
|
|
|
|
<a href="../user/profile.php" class="btn btn-default btn-flat">个人资料</a>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
|
|
|
<a href="javascript:;" id="logout" class="btn btn-default btn-flat">登出</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<!-- Left side column. contains the logo and sidebar -->
|
|
|
|
<aside class="main-sidebar">
|
|
|
|
|
|
|
|
<!-- sidebar: style can be found in sidebar.less -->
|
|
|
|
<section class="sidebar">
|
|
|
|
|
|
|
|
<!-- Sidebar user panel (optional) -->
|
|
|
|
<div class="user-panel">
|
|
|
|
<div class="pull-left image">
|
2016-03-19 20:01:16 +08:00
|
|
|
<img src="../get.php?type=avatar&uname=<?php echo $_SESSION['uname']; ?>&size=45" alt="User Image">
|
2016-03-19 10:28:18 +08:00
|
|
|
</div>
|
|
|
|
<div class="pull-left info">
|
|
|
|
<p><?php echo $_SESSION['uname']; ?></p>
|
|
|
|
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Sidebar Menu -->
|
|
|
|
<ul class="sidebar-menu">
|
|
|
|
<li class="header">管理面板</li><?php
|
|
|
|
$pages = array(1 => "仪表盘",
|
|
|
|
2 => "用户管理",
|
2016-03-19 23:16:23 +08:00
|
|
|
3 => "添加用户",
|
|
|
|
4 => "个性化",
|
|
|
|
5 => "站点配置");
|
|
|
|
for ($i = 1; $i <= 5; $i++) {
|
2016-03-19 10:28:18 +08:00
|
|
|
if ($data['page_title'] == $pages[$i]) {
|
|
|
|
echo '<li class="active">';
|
|
|
|
} else {
|
|
|
|
echo '<li>';
|
|
|
|
}
|
|
|
|
switch ($i) {
|
|
|
|
case 1:
|
|
|
|
echo '<a href="index.php"><i class="fa fa-dashboard"></i> <span>'.$pages[$i].'</span></a>';
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
echo '<a href="manage.php"><i class="fa fa-users"></i> <span>'.$pages[$i].'</span></a>';
|
|
|
|
break;
|
|
|
|
case 3:
|
2016-03-19 23:16:23 +08:00
|
|
|
echo '<a href="adduser.php"><i class="fa fa-user-plus"></i> <span>'.$pages[$i].'</span></a>';
|
2016-03-19 15:21:09 +08:00
|
|
|
break;
|
|
|
|
case 4:
|
2016-03-19 23:16:23 +08:00
|
|
|
echo '<a href="customize.php"><i class="fa fa-paint-brush"></i> <span>'.$pages[$i].'</span></a>';
|
|
|
|
break;
|
|
|
|
case 5:
|
2016-03-19 10:28:18 +08:00
|
|
|
echo '<a href="options.php"><i class="fa fa-cog"></i> <span>'.$pages[$i].'</span></a>';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
echo '</li>';
|
|
|
|
} ?>
|
|
|
|
</ul><!-- /.sidebar-menu -->
|
|
|
|
</section>
|
|
|
|
<!-- /.sidebar -->
|
|
|
|
</aside>
|