mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
128 lines
6.5 KiB
PHP
128 lines
6.5 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title><?php echo $data['page_title']." - ".Option::get('site_name'); ?></title>
|
|
<link rel="shortcut icon" href="../assets/images/favicon.ico">
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
<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 Option::get('color_scheme'); ?>.min.css">
|
|
<link rel="stylesheet" href="../assets/libs/ply/ply.css">
|
|
<link rel="stylesheet" href="../assets/css/admin.style.css">
|
|
<?php if (isset($data['style'])) echo $data['style']; ?>
|
|
</head>
|
|
|
|
<body class="hold-transition <?php echo Option::get('color_scheme'); ?> sidebar-mini">
|
|
<div class="wrapper">
|
|
|
|
<!-- Main Header -->
|
|
<header class="main-header">
|
|
|
|
<!-- Logo -->
|
|
<a href="<?php echo Option::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 Option::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">
|
|
<img src="../get.php?type=avatar&uname=<?php echo $_SESSION['uname']; ?>&size=128" alt="User Image">
|
|
<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">
|
|
<img src="../get.php?type=avatar&uname=<?php echo $_SESSION['uname']; ?>&size=45" alt="User Image">
|
|
</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 => "用户管理",
|
|
3 => "添加用户",
|
|
4 => "个性化",
|
|
5 => "站点配置");
|
|
for ($i = 1; $i <= 5; $i++) {
|
|
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:
|
|
echo '<a href="adduser.php"><i class="fa fa-user-plus"></i> <span>'.$pages[$i].'</span></a>';
|
|
break;
|
|
case 4:
|
|
echo '<a href="customize.php"><i class="fa fa-paint-brush"></i> <span>'.$pages[$i].'</span></a>';
|
|
break;
|
|
case 5:
|
|
echo '<a href="options.php"><i class="fa fa-cog"></i> <span>'.$pages[$i].'</span></a>';
|
|
break;
|
|
}
|
|
echo '</li>';
|
|
} ?>
|
|
<li class="header">返回</li>
|
|
<li><a href="../user/index.php"><i class="fa fa-user"></i> <span>用户中心</span></a></li>
|
|
</ul><!-- /.sidebar-menu -->
|
|
</section>
|
|
<!-- /.sidebar -->
|
|
</aside>
|