<div class="topheader">
	<div class="left">
		<h1 class="logo">
			SIBU.<span>思埠V商城</span>
		</h1>
		<span class="slogan">后台管理系统</span>
		<br clear="all" />
	</div>
	<!--left-->
	<div class="right">
		<!--<div class="notification">
                <a class="count" href="ajax/notifications.html"><span>9</span></a>
        	</div>-->
		<div class="userinfo">
			<img src="images/thumbs/avatar.png" alt="" /> <span>{{userinfo.userName}}</span>
		</div>
		<!--userinfo-->
		<div class="userinfodrop">
			<div class="avatar">
				<a href=""><img src="images/thumbs/avatarbig.png" alt="" /></a>
				<!-- <div class="changetheme">
                    	切换主题: <br />
                    	<a class="default"></a>
                        <a class="blueline"></a>
                        <a class="greenline"></a>
                        <a class="contrast"></a>
                        <a class="custombg"></a>
                    </div> -->
			</div>
			<!--avatar-->
			<div class="userdata">
				<h4>{{userinfo.nickName}}</h4>
				<span class="email">{{userinfo.phone}}</span>
				<ul>
					<li ng-if="platformType==0"><a href="#addSysUser/{{userinfo.id}}">编辑资料</a></li>
					<li><a href="#resetUserPassword/{{userinfo.id}}">修改密码</a></li>
					<li><a href="../user/logout">退出</a></li>
				</ul>
			</div>
			<!--userdata-->
		</div>
		<!--userinfodrop-->
	</div>
	<!--right-->
</div>
<script type="text/javascript">
	jQuery('.userinfo').click(function() {
		if (!jQuery(this).hasClass('active')) {
			jQuery('.userinfodrop').show();
			jQuery(this).addClass('active');
		} else {
			jQuery('.userinfodrop').hide();
			jQuery(this).removeClass('active');
		}
		//remove notification box if visible
		jQuery('.notification').removeClass('active');
		jQuery('.noticontent').remove();

		return false;
	});
</script>