		<div class="userMain">
			<div class="uMain_title"><span class="iconNotification">通知</span></div>
			<div class="uMain_content">
				<div class="stageBox">
					<div class="stageBoxTop"><span></span></div>
					<div class="stageBoxCenter">
						<div class="stageBoxCenterContent">
							<div class="main_nav">
								<ul>
								<li class="<?php if($op=="tz"){ echo "nava_4";}else{ echo "navb_2";}?>"><a href="?ac=message&op=tz">通知</a></li>
								<li class="<?php if($op=="hy"){ echo "nava_4";}else{ echo "navb_4";}?>"><a href="?ac=message&op=hy">好友请求</a></li>
								</ul>
							</div>
							<div class="minHeight500" id="notification">
								<div class="Ignore02">
	<span onClick="window.open('do.php?ac=msg&op=delall')">删除所有通知</span>
</div>
<div class="notification">
	<ul>
<?php
if($op=="tz"){
$a=0;
	global $db;
	$sql="select * from s_xiaoxi where S_Namea='".$chsh_username."' order by s_id desc";
		$Arr=getuserpage($sql,"30");//sql,每页显示条数
		$result=$db->query($Arr[2]);
		$numdate="a";
		if($result){
			while ($row = $db ->fetch_array($result)){
		$numdate="b";
	$sqlu="select s_logo,S_RealName from s_users where S_name='".$row["S_Nameb"]."' order by s_id desc";
	$rsu=$db->query($sqlu);
	$rowu=$db->fetch_array($rsu);
	$xid=$row["S_Xid"];
	$vid=$row["S_Vid"];
	if($vid==""){
$vid=$row["S_ID"];
}
if($xid==0){
?>
<li><span class="icon"><img height="16" width="16" src="images/icon/feed_message.gif"/></span><span class="content"><a href="<?php echo userlink("index",$row["S_Nameb"])?>"><?php echo $rowu["S_RealName"]?></a>&nbsp;系统发送了一条消息给您&nbsp;
<a href="?ac=msg&op=du&name=<?php echo $row["S_Nameb"]?>&vid=<?php echo $vid?>&id=<?php echo $row["S_ID"]?>"  target="friendRequest">阅读</a><?php if($row["S_Did"]==0) echo '&nbsp;&nbsp;<img src="images/icon/new.gif" />'?></span><span class="mtime"><?php echo datetime($row["S_Addtime"])?></span><span id="del-n3919" onClick="window.open('do.php?ac=msg&op=del&id=<?php echo $row["S_ID"]?>','','')" class="ndel" title="删除"></span></li>
<?php
}elseif($xid==1){
?>
<li><span class="icon"><img height="16" width="16" src="images/icon/feed_praise.gif"/></span><span class="content"><a href="<?php echo userlink("index",$row["S_Nameb"])?>"><?php echo $rowu["S_RealName"]?></a>&nbsp;赞了你一下&nbsp;
<a href="<?php echo userlink("index",$row["S_Nameb"])?>"  target="friendRequest">查看</a><?php if($row["S_Did"]==0) echo '&nbsp;&nbsp;<img src="images/icon/new.gif" />'?></span><span class="mtime"><?php echo datetime($row["S_Addtime"])?></span><span id="del-n3919" onClick="window.open('do.php?ac=msg&op=del&id=<?php echo $row["S_ID"]?>','','')" class="ndel" title="删除"></span></li>
<?php
}elseif($xid==2){
?>
<li><span class="icon"><img height="16" width="16" src="images/icon/feed_message.gif"/></span><span class="content"><a href="<?php echo userlink("index",$row["S_Nameb"])?>"><?php echo $rowu["S_RealName"]?></a>&nbsp;给你发了一个短消息&nbsp;
<a href="?ac=msg&op=du&name=<?php echo $row["S_Nameb"]?>&vid=<?php echo $vid?>&id=<?php echo $row["S_ID"]?>"  target="friendRequest">阅读</a><?php if($row["S_Did"]==0) echo '&nbsp;&nbsp;<img src="images/icon/new.gif" />'?></span><span class="mtime"><?php echo datetime($row["S_Addtime"])?></span><span id="del-n3919" onClick="window.open('do.php?ac=msg&op=del&id=<?php echo $row["S_ID"]?>','','')" class="ndel" title="删除"></span></li>
<?php
}elseif($xid==3){
?>
<li><span class="icon"><img height="16" width="16" src="images/icon/feed_friend.gif"/></span><span class="content"><a href="<?php echo userlink("index",$row["S_Nameb"])?>"><?php echo $rowu["S_RealName"]?></a>&nbsp;请求加你为好友&nbsp;
<?php if($row["S_Cid"]==0){
?>
<a href="?ac=msgyz&id=<?php echo $row["S_ID"]?>"  target="friendRequest">立刻处理</a>
<?php
}else{
?>
已经处理
<?php
}
if($row["S_Did"]==0) echo '&nbsp;&nbsp;<img src="images/icon/new.gif" />'?></span><span class="mtime"><?php echo datetime($row["S_Addtime"])?></span><span id="del-n3919" onClick="window.open('do.php?ac=msg&op=del&id=<?php echo $row["S_ID"]?>','','')" class="ndel" title="删除"></span></li>
<?php
}elseif($xid==4){
?>
<li><span class="icon"><img height="16" width="16" src="images/icon/feed_wall.gif"/></span><span class="content"><a href="<?php echo userlink("index",$row["S_Nameb"])?>"><?php echo $rowu["S_RealName"]?></a>&nbsp;给你留言了&nbsp;
<a href="?ac=gbook"  target="friendRequest">查看</a><?php if($row["S_Did"]==0) echo '&nbsp;&nbsp;<img src="images/icon/new.gif" />'?></span><span class="mtime"><?php echo datetime($row["S_Addtime"])?></span><span id="del-n3919" onClick="window.open('do.php?ac=msg&op=del&id=<?php echo $row["S_ID"]?>','','')" class="ndel" title="删除"></span></li>
<?php
}elseif($xid==5){
?>
<li><span class="icon"><img height="16" width="16" src="images/icon/feed_wall.gif"/></span><span class="content"><a href="<?php echo userlink("index",$row["S_Nameb"])?>"><?php echo $rowu["S_RealName"]?></a>&nbsp;回复了您给&nbsp;<strong>TA</strong>&nbsp;的&nbsp;
<a href="?ac=msg&op=du&name=<?php echo $row["S_Nameb"]?>&vid=<?php echo $row["S_ID"]?>&id=<?php echo $row["S_ID"]?>"  target="friendRequest">查看</a><?php if($row["S_Did"]==0) echo '&nbsp;&nbsp;<img src="images/icon/new.gif" />'?></span><span class="mtime"><?php echo datetime($row["S_Addtime"])?></span><span id="del-n3919" onClick="window.open('do.php?ac=msg&op=del&id=<?php echo $row["S_ID"]?>','','')" class="ndel" title="删除"></span></li>
<?php
}
}
}
if($numdate=="a"){
		echo("<div class='nothing'>没有通知。</div>");
}
?>
			</ul>
</div>
<div class="page"><div class="pages"><?php echo $Arr[0];?></div></div>
<?php
	}
if($op=="hy"){
$a=0;
	global $db;
	$sql="select * from s_xiaoxi where S_Namea='".$chsh_username."' and s_xid=3 and s_cid=0 order by s_id desc";
		$Arr=getuserpage($sql,"30");//sql,每页显示条数
		$result=$db->query($Arr[2]);
		$numdate="a";
		if($result){
			while ($row = $db ->fetch_array($result)){
		$numdate="b";
	$sqlu="select s_logo,S_RealName from s_users where S_name='".$row["S_Nameb"]."' order by s_id desc";
	$rsu=$db->query($sqlu);
	$rowu=$db->fetch_array($rsu);
	$xid=$row["S_Xid"];
?>
				<li><span class="icon"><img height="16" width="16" src="images/icon/feed_friend.gif"/></span><span class="content"><a href="<?php echo userlink("index",$row["S_Nameb"])?>"><?php echo $rowu["S_RealName"]?></a>&nbsp;请求加你为好友&nbsp;<a href="?ac=msgyz&id=<?php echo $row["S_ID"]?>&xid=<?php echo $xid?>"  target="friendRequest">立刻处理</a><?php if($row["S_Did"]==0) echo '&nbsp;&nbsp;<img src="images/icon/new.gif" />'?></span><span class="mtime"><?php echo datetime($row["S_Addtime"])?></span><span id="del-n3919" onClick="window.open('do.php?ac=msg&op=del&id=<?php echo $row["S_ID"]?>','','')" class="ndel" title="删除"></span></li>
<?php
	}
}
if($numdate=="a"){
		echo("<div class='nothing'>没有好友请求。</div>");
}
?>
			</ul>
</div>
<div class="page"><div class="pages"><?php echo $Arr[0];?></div></div>
<?php
	}
?>
							</div>
							<div id="currPageNum"></div>
						</div>
					</div>
					<div class="stageBoxBottom"><span></span></div>
				</div>
			</div>
