www.gusucode.com > 仿51.com的php源码 1.1 > User/MyVisitors.php

    <?php
include("CheckLogined.php");
include("../include/dbclass.php");
include("../include/global.php");
require_once "../include/page.php";
$dbc=new DbConn();
$uid=$_COOKIE["uid"];
//$P = filter($_POST);
//$G = filter($_GET);

$page=(int)$_GET["page"];
$maxline = 10;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>村委会档案管理中心 - 访客纪录</title>
<script>
try{
	if(top!=window){
		document.domain	="www.wu-liao.com";		
	}else{
		top.location.href="/webin.php?refer=%2FUser%2FMyVisitors.php";
	}
}catch(e){}
function showNewMessage(user){
	top.showNewMessage(user);
}

</script>
<script src="../js/global.js" language="JavaScript"></script>
<script>
function create_user_face(User){
	var sSex=(eval(User+"_sex") == "先生")?"../images/boy.gif":"../images/girl.gif";
	document.write("<img src='"+sSex+"' align='absmiddle'>");
}
function create_user_vip(User){
	var sSex1=(eval(User+"_vip") ==0)?"../i/novip.jpg":"../i/ivip.gif";
	document.write("<img src='"+sSex1+"' align='absmiddle'>");
}
</script>
<link href="../images/User_Main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><?php require("../top.php"); ?></div>

<div id="nav">
<div id="navt"></div>
</div>

<div id="mjx"></div>
<div id="main">
<div id="left">
<div class="leme">
<div class="imxle"><a href="MyPersonalInfo.php">个人资料设置</a></div><div class="imxle"><a href="MyHomepageTemplate.php">个人主页设置</a></div><div class="imxle"><a href="MyAccessRight.php">高级权限设置</a></div>
<div class="pawo"><!--
<a href="http://pay.51.com" target="_blank">支付中心</a><br />--><a href="MyPassword.php">密码设置</a></div>
<div id=IdMyQun>
</div>
<!-- 广告  -->

<!-- XML 文件读取失败! --><!-- XML 文件读取失败! -->
<div style="margin-top:20px;"></div>

</div>
</div>
<div id="right">
<div id="fenle">
<div class="plcz"><a href="#"></a></div>
<?php
 $sql="select * from homeread  where User_Account='$uid'";
$news = $dbc->getGopageRs($sql,$maxline);
  //echo "$sql";
$gopage = new GoPage($dbc->tpages,$dbc->total);//建立翻页程序
$backurl = "MyVisitors.php?".$dbc->getParameter();

if ($dbc->num_rows==null)
{
echo "<div style='text-align:center;font-size:14px;'>还没有人查看过你的主页</div>";

}
else
{
for($i=0;$i<$dbc->num_rows;$i++)
{
?>
<table width="570" border="0" cellpadding="0" cellspacing="0" class="tb"><tr>
<script src='../1e/<?php echo $news[$i]['Read_User']; ?>/<?php echo $news[$i]['Read_User']; ?>.js'></script>

	<script>
	var ImgShow='<img src=../images/loadface.gif border=0 width=80 height=90>';
	if(typeof(<?php echo $news[$i]['Read_User']; ?>_photo)!='undefined')
	{
		var ImgShow='<img src='+<?php echo $news[$i]['Read_User']; ?>_photo+' border=0 class=photo width=80 onLoad=reloadImage(this)>';
	}
	</script>
	
<tr>
<td width="114" height="120"><a href='http://www.wu-liao.com/home.php?user=<?php echo $news[$i]['Read_User']; ?>' target='_blank'><script>document.write(ImgShow);</script></a></td>
<td width="356">
<div class="fkxx">
<div class="fkx1"><a href='http://www.wu-liao.com/home.php?user=<?php echo $news[$i]['Read_User']; ?>' target='_blank'><?php echo $news[$i]['Read_User']; ?></a></div>
<div class="fkx2"><?php echo $news[$i]['Readtime']; ?></div>
<div class="fkx1"><script>create_user_face('<?php echo $news[$i]['Read_User']; ?>');</script>&nbsp;<script>create_user_vip('<?php echo $news[$i]['Read_User']; ?>');</script>&nbsp;</div>
<div class="fkx3"></div>
</div>
</td>
<td width="100"> <img src="../images/hy.gif" width="12" height="12" border="0" />&nbsp;<a href="#" onclick="window.open('AddFriend.php?user=<?php echo $news[$i]['Read_User']; ?>&t=1', 'AddFriend', 'height=200, width=350, left=100, top=150, screenX=200, screenY=200, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no');return false;">加为好友</a></td>
</tr>
</tr></table>
<?php }}?>
<!-- END FieldView:UcMyVisitors -->
<?=$gopage->style(3)?>
</div>
</div>
</div>
<div id="bottom">
<div id="baidu" style="color:#a0a0a0;"><?php require("../foot.php"); ?></div>
</div>
</body>
</html>