<div class="navbar navbar-inverse">
	<div class="navbar-inner">
		<div class="container-fluid">
			<button data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar" type="button"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
			<a href="index.php" target="_blank" class="brand"><img src="app/core/styles/images/favicon.png">PHPEMS系统管理平台<span class="label">Version:{x2;c:PE_VERSION}</span></a>
			<div class="nav-collapse navbar-responsive-collapse collapse">
				<ul class="nav">
					<li{x2;if:$_app == 'core'} class="active"{x2;endif}>
						<a href="index.php?core-master">全局</a>
					</li>
					{x2;tree:$apps,app,aid}
					{x2;if:v:app['appstatus'] && v:app['appid'] != 'core'}
					<li{x2;if:$_app == v:app['appid']} class="active"{x2;endif}>
						<a href="index.php?{x2;v:app['appid']}-master">{x2;v:app['appname']}</a>
					</li>
					{x2;endif}
					{x2;endtree}
				</ul>
				<ul class="nav pull-right">
					<li>
						<a href="index.php">网站首页</a>
					</li>
					<li class="divider-vertical">
					</li>
					<li class="dropdown">
						<a data-toggle="dropdown" class="dropdown-toggle" href="#">{x2;$_user['username']}<strong class="caret"></strong></a>
						<ul class="dropdown-menu">
							<!--
							<li>
								<a href="index.php?user-app-privatement">个人中心</a>
							</li>
							<li class="divider">
							</li>
							-->
							<li>
								<a href="index.php?core-master-logout">退出管理</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>

		</div>
	</div>
</div>