mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 05:52:43 +08:00
64 lines
3.4 KiB
PHP
64 lines
3.4 KiB
PHP
<div class="framework-topbar">
|
|
<div class="console-topbar">
|
|
<div class="topbar-wrap topbar-clearfix">
|
|
<div class="topbar-head topbar-left">
|
|
<a href="{:url('@admin')}" class="topbar-logo topbar-left">
|
|
<span class="icon-logo">
|
|
{:sysconf('app_name')} <sup>{:sysconf('app_version')}</sup>
|
|
</span>
|
|
</a>
|
|
</div>
|
|
{volist name='menus' id='pmenu'}
|
|
{empty name='pmenu.sub'}
|
|
<a data-menu-node='m-{$pmenu.id}' data-open="{$pmenu.url}"
|
|
class="topbar-home-link topbar-btn topbar-left">
|
|
<span>{notempty name='$pmenu.icon'}<i class="{$pmenu.icon}"></i>{/notempty} {$pmenu.title}</span>
|
|
</a>
|
|
{else}
|
|
<a data-menu-target='m-{$pmenu.id}' class="topbar-home-link topbar-btn topbar-left">
|
|
<span>{notempty name='$pmenu.icon'}<i class="{$pmenu.icon}"></i>{/notempty} {$pmenu.title}</span>
|
|
</a>
|
|
{/empty}
|
|
{/volist}
|
|
<div class="topbar-info topbar-right">
|
|
<a data-reload data-tips-text='刷新' style='width:50px'
|
|
class=" topbar-btn topbar-left topbar-info-item text-center">
|
|
<span class='glyphicon glyphicon-refresh'></span>
|
|
</a>
|
|
<div class="topbar-left topbar-user">
|
|
{if session('user')}
|
|
<div class="dropdown topbar-info-item">
|
|
<a href="#" class="dropdown-toggle topbar-btn text-center" data-toggle="dropdown">
|
|
<span class='glyphicon glyphicon-user'></span> {:session('user.username')} </span>
|
|
<span class="glyphicon glyphicon-menu-up transition" style="font-size:12px"></span>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li class="topbar-info-btn">
|
|
<a data-modal="{:url('admin/index/pass')}?id={:session('user.id')}">
|
|
<span><i class='glyphicon glyphicon-lock'></i> 修改密码</span>
|
|
</a>
|
|
</li>
|
|
<li class="topbar-info-btn">
|
|
<a data-modal="{:url('admin/index/info')}?id={:session('user.id')}">
|
|
<span><i class='glyphicon glyphicon-edit'></i> 修改资料</span>
|
|
</a>
|
|
</li>
|
|
<li class="topbar-info-btn">
|
|
<a data-load="{:url('admin/login/out')}" data-confirm='确定要退出登录吗?'>
|
|
<span><i class="glyphicon glyphicon-log-out"></i> 退出登录</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
{else}
|
|
<div class=" topbar-info-item">
|
|
<a data-href="{:url('@admin/login')}" data-toggle="dropdown" class=" topbar-btn text-center">
|
|
<span class='glyphicon glyphicon-user'></span> 立即登录 </span>
|
|
</a>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |