mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
118 lines
5.7 KiB
PHP
118 lines
5.7 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']." - ".Config::get('site_name'); ?></title>
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
<link rel="stylesheet" href="../libs/bootstrap/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="../libs/font-awesome/css/font-awesome.min.css">
|
|
<link rel="stylesheet" href="../libs/AdminLTE/dist/css/AdminLTE.min.css">
|
|
<link rel="stylesheet" href="../libs/AdminLTE/dist/css/skins/skin-blue.min.css">
|
|
<link rel="stylesheet" href="../libs/ply/ply.css">
|
|
<?php if (isset($data['style'])) echo $data['style']; ?>
|
|
</head>
|
|
|
|
<body class="hold-transition skin-blue sidebar-mini">
|
|
<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">
|
|
<img src="../assets/images/steve-avatar.png" alt="User Image">
|
|
<p>
|
|
<?php echo $_SESSION['uname']; ?>
|
|
</p>
|
|
</li>
|
|
<!-- Menu Footer-->
|
|
<li class="user-footer">
|
|
<div class="pull-left">
|
|
<a href="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="../assets/images/steve-avatar.png" 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"><?php
|
|
$pages = array(1 => "用户中心",
|
|
2 => "皮肤上传",
|
|
3 => "个人资料");
|
|
for ($i = 1; $i <= 3; $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="upload.php"><i class="fa fa-upload"></i> <span>'.$pages[$i].'</span></a>';
|
|
break;
|
|
case 3:
|
|
echo '<a href="profile.php"><i class="fa fa-user"></i> <span>'.$pages[$i].'</span></a>';
|
|
break;
|
|
}
|
|
echo '</li>';
|
|
}
|
|
if ($data['user']->is_admin): ?>
|
|
<li><a href="/admin"><i class="fa fa-cog"></i> <span>管理面板</span></a></li>
|
|
<?php endif; ?>
|
|
</ul><!-- /.sidebar-menu -->
|
|
</section>
|
|
<!-- /.sidebar -->
|
|
</aside>
|