<header class="am-topbar am-topbar-inverse admin-header">
	<div class="am-topbar-brand">
		<a href="./" class="tpl-logo">
			<img src="{{kg['tpl_url']}}images/logo.png" alt="">
		</a>
	</div>
	<div class="am-icon-list tpl-header-nav-hover-ico am-fl am-margin-right ngcom-Ljs-change" id="show-menu"></div>
	<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}">
		<span class="am-sr-only">导航切换</span>
		<span class="am-icon-bars"></span>
	</button>
	<div class="am-collapse am-topbar-collapse" id="topbar-collapse">
		<!-- 顶部搜索 -->
		<ul id="nghe-Ojs-hover" class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
			<li class="am-dropdown search-box" data-am-dropdown data-am-dropdown-toggle id="top-search">
				<span>
					<input type="text" class="search-bar form-control form-control-solid" placeholder="快捷入口">
				</span>
				<ul class="am-dropdown-content tpl-dropdown-content component-js-search">
					{%- for row in kg["admin_page"]["left_menu"] %}
					{%- for var in row['submenu'] %}
					<li>
						<a href="{{var['page']}}" class="ty-with-a">
							<span class="{%if var['icon']%}{{var['icon']}}{%else%}am-icon-location-arrow{%endif%}"></span>&nbsp;&nbsp;{{var['name']}}
						</a>
						{%- if var['plus'] %}
						<a href="{{var['page']|replace('manage','update')}}" class="ty-small-a">
							<span class="am-icon-plus"></span>
						</a>
						{%- endif %}
					</li>
					{%- endfor %}
					{%- endfor %}
				</ul>
			</li>
			<li class="am-dropdown" data-am-dropdown-toggle>
				<a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
					<span class="am-icon-desktop reception"></span>
					<span class="tpl-header-list-user-nick zty-app">{{kg['web']['name']}}</span>
				</a>
				<ul class="am-dropdown-content hide_box ngco-No-margin">
					{%- for row in kg["admin_page"]['app_set'] %}
					<li>
						<a href="../api/unlimited_process?action=setapp&id={{row['id']}}">{{row['name']}}</a>
					</li>
					{%- endfor %}
				</ul>
			</li>
			<li class="am-hide-sm-only">
				<a href="../" id="admin-fullscreen" class="tpl-header-list-link" target="_blank">
					<span class="am-icon-home reception"></span>
					<span class="admin-fullText">前台</span>
				</a>
			</li>
			<li class="am-dropdown" data-am-dropdown-toggle>
				<a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
					<span class="tpl-header-list-user-nick">{{ kg['session']['KGCMS_ADMIN_LOGIN_ID'] }}</span>
					<span class="tpl-header-list-user-ico">
						<img src="{{ kg['admin']['image'] }}" alt="">
					</span>
				</a>
				<ul class="am-dropdown-content hide_box ngco-No-margin">
					<li>
						<a href="./">
							<span class="am-icon-home "></span>&nbsp;后台管理首页
						</a>
					</li>
					<li>
						<a href="/api/admin_process?action=app_restart" target="_blank">
							<span class="am-icon-refresh"></span>&nbsp;重启项目
						</a>
					</li>
					<li>
						<a href="/api/admin_process?action=clear_temp">
							<span class="am-icon-trash-o"></span>&nbsp;清空系统缓存
						</a>
					</li>
					<li>
						<a href="./run_sql" target="_blank">
							<span class="am-icon-sign-in"></span>&nbsp;大数据导入
						</a>
					</li>
					<li>
						<a href="./set_globals">
							<span class="am-icon-cog"></span>&nbsp;系统设置
						</a>
					</li>
					<li>
						<a href="admin_update?id={{ kg['session']['KGCMS_ADMIN_ID'] }}">
							<span class="am-icon-pencil-square-o"></span>&nbsp;修改资料
						</a>
					</li>
					<li>
						<a href="./login?action=logout">
							<span class="am-icon-power-off"></span>&nbsp;退出
						</a>
					</li>
				</ul>
			</li>
			<li>
				<a href="./login?action=logout" class="tpl-header-list-link">
					<span class="am-icon-sign-out tpl-header-list-ico-out-size"></span>
				</a>
			</li>
		</ul>
	</div>
</header>