You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

88 lines
3.6 KiB

<?php
use yii\helpers\Html;
?>
<header class="main-header">
<!-- Logo -->
<a href="/" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>K</b>c</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>KC</b>admin</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<div class="navbar-menu">
<ul class="nav navbar-nav">
<li>
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
</li>
<!-- TODO:后续处理 -->
<!--li class="user user-menu">
<a href="#">
<i class="fa fa-dashboard"></i>
<span class="hidden-xs">面板</span>
</a>
</li>
<li class="user user-menu">
<a href="#">
<i class="fa fa-shopping-cart"></i>
<span class="hidden-xs">商城</span>
</a>
</li>
<li class="user user-menu">
<a href="#">
<i class="fa fa-wechat"></i>
<span class="hidden-xs">微信</span>
</a>
</li>
<li class="user user-menu">
<a href="#">
<i class="fa fa-cubes"></i>
<span class="hidden-xs">进销存</span>
</a>
</li>
<li class="user user-menu">
<a href="#">
<i class="fa fa-cogs"></i>
<span class="hidden-xs">系统</span>
</a>
</li-->
</ul>
</div>
<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="/img/user2-160x160.jpg" class="user-image" alt="User Image">
<span class="hidden-xs"><?= yii::$app->user->identity->username ?></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<img src="/img/user2-160x160.jpg" class="img-circle" alt="User Image">
<p>
<?= yii::$app->user->identity->username ?>
<small>Member since <?= date('m-d-Y', yii::$app->user->identity->created_at) ?></small>
</p>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<?= Html::a('个人设置', ['/site/profile'], ['class' => 'btn btn-default btn-flat']) ?>
</div>
<div class="pull-right">
<?= Html::a('退出', ['/site/logout'], ['data-method' => 'post', 'class' => 'btn btn-default btn-flat']) ?>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>