
		<div class="userMain">
			<div class="uMain_title"><span class="iconFans">在线会员</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="navb_4"><a href="?ac=friend">我的好友</a></li>
								<li class="navb_4"><a href="?ac=look">访问脚印</a></li>
								<li class="nava_4"><a href="?ac=online">在线会员</a></li>
								</ul>
							</div>
							<div class="minHeight500">
																<div class="onlineUser">
									<ul>
<?php
$a=0;
	global $db;
		$sql="select * from s_users 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)){
		
global $db;
$fsnum= $db -> num_rows($db -> query("select * from s_friend where S_nameb='".$row["S_Name"]."' and s_lock=1"));
$TimeTime=$row["S_LogTime"];
$limit=time()-strtotime($TimeTime);
if ($limit < 1800) {
$numdate="b";
?>
																				<li>
											<div class="icon"><a href="<?php echo userlink("index",$row["S_Name"])?>" target="_blank"><img class="avatar-58" src="<?php echo piclink("logo",$row["S_Logo"],"big")?>" onerror="this.onerror=null;this.src='<?php echo S_SiteDomain?>/user/images/avatar/noface_small.gif'" title="<?php echo $row["S_RealName"]?>"/></a></div>
											<div class="info">
												<div><a <?php if($limit < 1800){echo("class='online_icon'");}?> href="<?php echo userlink("index",$row["S_Name"])?>" target="_blank"><?php echo $row["S_RealName"]?></a></div>
												<div>人气：<?php echo $row["S_Hits"]?>次 / 粉丝：<?php echo $fsnum?>人 / 被赞：<?php echo $row["S_Dhits"]?>次</div>
												<div>最后活动：<?php echo datetime($row["S_LogTime"])?></div>
											</div>
										</li>
<?php
}
	}
}
if($numdate=="a"){
		echo("<div class='nothing'>还没有在线会员。</div>");
}
?>
																			</ul>
								</div>
<div class="page"><div class="pages"></div></div>
															</div>
						</div>
					</div>
					<div class="stageBoxBottom"><span></span></div>
				</div>
			</div>
