	<div class="logo"><a href="<?php echo S_SiteDomain?>/user/"></a></div>
	<div class="nav">
<?php
if((!$userlogin==true)){
?>
		<ul>
			<li><a href="<?php echo S_SiteDomain?>/" target="list">首页</a></li>
							<li><a href="space.php?">会员空间</a></li>
					</ul>
				<div class="user">
			<div class="face">
				<img id="header-avatar" src="images/avatar/noface_small.gif" onerror="pubLibs.avatarError(this,'small');" width="30" height="30" />
			</div>
			<div class="info">
				<?php echo $chsh_username?>,欢迎您！			</div>
			<div class="info">
				<a href="index.php">登 录</a>&nbsp;|&nbsp;<a href="index.php?ac=reg">免费注册</a>			</div>
		</div>
	</div>
<?php
}else{
$xiaoxinum= $db -> num_rows($db -> query("select * from s_xiaoxi where S_Namea='".$chsh_username."' and S_did=0"));
?>
		<ul>
			<li><a href="<?php echo S_SiteDomain?>/" target="list">首页</a></li>
							<li><a href="?ac=home">个人中心</a></li>
				<li><a href="<?php echo userlink("index",$chsh_username)?>" target="_blank">我的主页</a></li>
				<li><a href="?ac=online">在线会员</a></li>
					</ul>
					<div class="msgText"><a href="?ac=message&op=tz">通知</a></div>
			<div id="msgTips"  <?php if($xiaoxinum==0) echo 'style="display:none;"'?> title="您有新消息！"></div>
				<div class="user">
			<div class="face">
				<img id="header-avatar" src="<?php echo piclink("logo",$chsh_logo,"big")?>"  onerror="this.onerror=null;this.src='<?php echo S_SiteDomain?>/user/images/avatar/noface_small.gif'" width="30" height="30" />
			</div>
			<div class="info">
				<a href="<?php echo userlink("index",$chsh_username)?>" ><?php echo $chsh_username?></a>			</div>
			<div class="info">
				<a href="?ac=edit&op=zl">个人设置</a>&nbsp;|&nbsp;<a href="<?php echo S_SiteDomain.S_SitePath?>user/do.php?ac=logout&name=<?php echo $chsh_username?>">退出</a>			</div>
		</div>
	</div>
<?php
}
?>
</div>
