<div class="container-fluid navbar">
	<div class="row-fluid">
		<div class="main">
			<ul class="list-unstyled list-inline">
				<li class="logo">
					PHPEMS{x2;c:PE_VERSION}
				</li>
				<li class="menu active">
					<a href="index.php?core-master">全局</a>
				</li>
				{x2;if:$apps['user']['appsetting']['managemodel']}
				{x2;tree:$apps,app,aid}
				{x2;if:v:app['appstatus'] && v:app['appid'] != 'core' && in_array(v:app['appid'],$_user['manager_apps'])}
				<li class="menu{x2;if:$_app == v:app['appid']} active{x2;endif}">
					<a href="index.php?{x2;v:app['appid']}-master">{x2;v:app['appname']}</a>
				</li>
				{x2;endif}
				{x2;endtree}
				{x2;else}
				{x2;tree:$apps,app,aid}
				{x2;if:v:app['appstatus'] && v:app['appid'] != 'core'}
				<li class="menu{x2;if:$_app == v:app['appid']} active{x2;endif}">
					<a href="index.php?{x2;v:app['appid']}-master">{x2;v:app['appname']}</a>
				</li>
				{x2;endif}
				{x2;endtree}
				{x2;endif}
				<li class="pull-right">
					<div class="btn-group">
						<a class="btn" href="javascript:;">{x2;$_user['username']}</a>
						<a class="btn" href="index.php?user-app"><em class="glyphicon glyphicon-cog"></em></a>
						<a class="btn" href="index.php?user-app-logout" title="退出"><em class="glyphicon glyphicon-log-out"></em></a>
					</div>
				</li>
			</ul>
		</div>
	</div>
</div>