<section class="sidebar">
	<div class="user-panel">
		<div class="pull-left image">
			<img data-href="${ctx}/sys/user/info" data-title="${text('个人中心')}" class="img-circle pointer"
				src="${@user.getAvatarUrl().replaceFirst('/ctxPath', ctxPath)}">
			<script>
				$(function(){
					if ($(window).width() <= 767){
						$('body').append('<div class="btn btn-default full-screen-menu"><i class="fa fa-bars"></i></div>');
					}
					$('.full-screen-menu,.user-panel .img-circle').click(function(){
						if (!$('.main-header').is(':hidden')){
							$('.main-header').slideUp(100, function(){
								if (($(window).width() > 767 && !$('body').hasClass('sidebar-collapse'))
										|| $('body').hasClass('sidebar-open')){
									$('[data-toggle="push-menu"]').click();
								}
							});
						}else{
							$('.main-header').slideDown(100, function(){
								setTimeout(function(){
									if (${@Global.getConfig('sys.index.sidebarStyle', '1') != '2'}){
										$('[data-toggle="push-menu"]').click();
									}
								},100);
							});
						}
						setTimeout(function(){
							$('#tabpanel').tabPanel('resize');
						},500);
					});
					$('#leftMenu').on('click', '.addTabPage', function (e) {
						if ($(window).width() <= 767 && $('body').hasClass('sidebar-open')){
							var href = $(this).data('href');
				        	if (href != '' && href != 'blank'){
				        		if ($(window).width() <= 767){
					        		$('.full-screen-menu').click();
				        		}
							}
						}
					});
				})
			</script>
		</div>
		<div class="pull-left info">
			<p>${user.userName}</p>
			<a href="javascript:"><i class="fa fa-circle text-success"></i> ${text('在线')}</a>
			<a href="${ctx}/logout"><i class="fa fa-sign-out text-danger"></i> ${text('注销')}</a>
		</div>
	</div>
	<%/*<!--%>
	<form action="#" method="get" class="sidebar-form">
		<div class="input-group">
			<input type="text" name="q" class="form-control" placeholder="查询...">
			<span class="input-group-btn">
				<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i
					class="fa fa-search"></i></button>
			</span>
		</div>
	</form>
	<%-->*/%>
	<%/*<!--%>
	<ul class="sidebar-menu">
		<% var menuSysCode = @ObjectUtils.toStringIgnoreNull(session.sysCode, 'default'); %>
		<li class="header">${@DictUtils.getDictLabel('sys_menu_sys_code', menuSysCode, '')}</li>
	</ul>
	<%-->*/%>
	<div id="leftMenu" data-widget="tree">
		<% if(@Global.getConfig('sys.index.menuStyle', '1') == '1'){ %>
		<ul class="sidebar-menu">
			<% 
				var p = {parentCode: '0'};
				menu.tree(p); print(p.html);
			%>
		</ul>
		<% } %>
	</div>
	<%/*<!--%>
	<ul class="sidebar-menu">
		<li class="header">快捷菜单</li>
		<li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>快捷菜单1</span></a></li>
		<li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>快捷菜单2</span></a></li>
		<li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>快捷菜单3</span></a></li>
	</ul>
	<%-->*/%>
</section>