⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewtop.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<table width="50%" border="0" cellspacing="0" cellpadding="0" align="center"> 
<tr align="center"> 
</tr> 
</table> 
<table width="50%" border="0" cellspacing="0" cellpadding="0" bordercolor="<? echo $color2; ?>" align="center"> 
<tr align="center"> 
<td><b><a href=viewtop.php>论坛发贴排行榜</b>     <b><a href=viewtop.php?topjob=ww>论坛威望排行榜</b></td> 
</tr> 
</table> 
<table width="75%" border="0" cellspacing="0" cellpadding="0" align="center"> 
<tr> 
<td> </td> 
</tr> 
</table> 
<table width=650 align="center" cellspacing=0 cellpadding=1> 
<tr><td> 
<table width="100%" border="0" cellspacing="1" cellpadding="1" bordercolor="<? echo $color2; ?>" align="center"> 
<tr> 
<td colspan=3><b><font face="Verdana, Arial, Helvetica, sans-serif">Top Users</font></b></td> 
</tr> 
<tr><td colspan=3> </td></tr> 
<?php 
$dh=opendir("$userpath/"); 
while ($userfile=readdir($dh)) { 
if (($userfile!=".") && ($userfile!="..") && ($userfile!="") && !strpos($userfile,".msg") && !strpos($userfile,".old")) { 
$user_info_str=file("$userpath/".$userfile); 
$user_info=explode("|",$user_info_str[0]); 
if (empty($user_info[16])) $user_info=0; 
$rank_array[$user_info[1]]=$user_info[16]; 
} 
} 
closedir($dh); 
arsort($rank_array); 
reset($rank_array); 
for ($counter=1; $counter<=20; $counter++) { //那个10代表前10,可以自己修改~
$key=key($rank_array); 
if ($counter==1) $maxpoint=$rank_array[$key]; 
$img_width=300*($rank_array[$key])/($maxpoint); 
echo '<tr>'; 
echo '<td>No.'.$counter.'</td>';
echo "<td><span title=查看该用户资料
><a href='profile.php?job=show&target=$key'> $key
</a></span></td>"; 
$rvrc=floor($rank_array[$key]/10);
echo '<td>威望值: '. $rvrc .' </td>'; 
echo '<td><img src="images/bar1.gif" width='.$img_width.' height=10></td>'; //别忘了加上图片:)

echo '</tr>'; 
if (!(next($rank_array))) break; 
} 
?> 
<tr><td colspan=3> </td></tr> 
<tr> 
<td colspan=3><center><input type="button" value="论坛首页" 
onClick="location.href='index.php'" 
style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#FFFFFF'" onMouseOut ="this.style.backgroundColor='#f3f3f3'"> 
<input type="button" value="返回前页" 
onClick="location.href='javascript:history.back(1)';" 
style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#FFFFFF'" onMouseOut ="this.style.backgroundColor='#f3f3f3'"></center></td> 
</tr> 
</table> 
</td></tr></table><br> 
<? require("footer.php");echo"$footertp"; 
exit;
}
if($topjob==money)
{
headguide('你现在正在<br>ftb论坛 <br>的用户排名程式中','论坛财富值排行榜','','no');
if ($login_status !=1) {
msg_box('对不起!!','<center>你还没有登陆或注册,暂时不能使用本功能!!<br><ul><li><a href="register.php">现在注册</a></li><br><li><a href="login.php">现在登录</li></ul></center>');
require("footer.php");echo"$footertp";
        exit;}
?> 
<table width="50%" border="0" cellspacing="0" cellpadding="0" align="center"> 
<tr align="center"> 
</tr> 
</table> 
<table width="50%" border="0" cellspacing="0" cellpadding="0" bordercolor="<? echo $color2; ?>" align="center"> 
<tr align="center"> 
<td><b>论坛财富值排行榜(不包括银行存款)</b> <a href="viewtop.php?topjob=bank"><b>流星银行存款排行榜</b></a></td> 
</tr> 
</table> 
<table width="75%" border="0" cellspacing="0" cellpadding="0" align="center"> 
<tr> 
<td> </td> 
</tr> 
</table> 
<table width=650 align="center" cellspacing=0 cellpadding=1> 
<tr><td> 
<table width="100%" border="0" cellspacing="1" cellpadding="1" bordercolor="<? echo $color2; ?>" align="center"> 
<tr> 
<td colspan=3><b><font face="Verdana, Arial, Helvetica, sans-serif">Top Users</font></b></td> 
</tr> 
<tr><td colspan=3> </td></tr> 
<?php 
$dh=opendir("$userpath/"); 
while ($userfile=readdir($dh)) { 
if (($userfile!=".") && ($userfile!="..") && ($userfile!="") && !strpos($userfile,".msg") && !strpos($userfile,".old")) { 
$user_info_str=file("$userpath/".$userfile); 
$user_info=explode("|",$user_info_str[0]); 
if (empty($user_info[24])) $user_info=0; 
$rank_array[$user_info[1]]=$user_info[24]; 
} 
} 
closedir($dh); 
arsort($rank_array); 
reset($rank_array); 
for ($counter=1; $counter<=20; $counter++) { //那个10代表前10,可以自己修改~
$key=key($rank_array); 
if ($counter==1) $maxpoint=$rank_array[$key]; 
$img_width=300*($rank_array[$key])/($maxpoint); 
echo '<tr>'; 
echo '<td>No.'.$counter.'</td>';
echo "<td><span title=查看该用户资料
><a href='profile.php?job=show&target=$key'> $key
</a></span></td>"; 
echo '<td>金钱值: '.$rank_array[$key].' </td>'; 
echo '<td><img src="images/bar1.gif" width='.$img_width.' height=10></td>'; //别忘了加上图片:)

echo '</tr>'; 
if (!(next($rank_array))) break; 
} 
?> 
<tr><td colspan=3> </td></tr> 
<tr> 
<td colspan=3><center><input type="button" value="论坛首页" 
onClick="location.href='index.php'" 
style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#FFFFFF'" onMouseOut ="this.style.backgroundColor='#f3f3f3'"> 
<input type="button" value="返回前页" 
onClick="location.href='javascript:history.back(1)';" 
style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#FFFFFF'" onMouseOut ="this.style.backgroundColor='#f3f3f3'"></center></td> 
</tr> 
</table> 
</td></tr></table><br> 
<? require("footer.php");echo"$footertp"; 
exit;
}
if($topjob==bank)
{
headguide("你现在正在<br>{$site_name}论坛<br>的用户排名程式中","论坛财富值排行榜",'','no');
if (file_exists("bbsdata/admin.php")) {
	$adminlist=file("bbsdata/admin.php");
	$count=count($adminlist);
	for ($i=0; $i<$count; $i++) {
		$detail=explode("|", trim($adminlist[$i]));
		$admin_list[]=$detail[1];
	}
}
if ($login_status!=1 || (!in_array($username,$admin_list) && $manager!=$username)) {
msg_box('只有版主才可以看哦!!','<center>你还流星论坛某版块的版主,暂时不能使用本功能!!<br><ul><li><a href="javascript:history.back(1)">点击还回上一页</a></li><br><li><a href="getmg.php">点击这申请版主</li></ul></center>');
require("footer.php");echo"$footertp";
        exit;}
?> 
<table width="50%" border="0" cellspacing="0" cellpadding="0" align="center"> 
<tr align="center"> 
</tr> 
</table> 
<table width="50%" border="0" cellspacing="0" cellpadding="0" bordercolor="<? echo $color2; ?>" align="center"> 
<tr align="center"> 
<td><b>流星银行存款排行榜(不包括现钞)</b></td> 
</tr> 
</table> 
<table width="75%" border="0" cellspacing="0" cellpadding="0" align="center"> 
<tr> 
<td> </td> 
</tr> 
</table> 
<table width=650 align="center" cellspacing=0 cellpadding=1> 
<tr><td> 
<table width="100%" border="0" cellspacing="1" cellpadding="1" bordercolor="<? echo $color2; ?>" align="center"> 
<tr> 
<td colspan=3><b><font face="Verdana, Arial, Helvetica, sans-serif">Top Users</font></b></td> 
</tr> 
<tr><td colspan=3> </td></tr> 
<?php 
$dh=opendir("$userpath/"); 
while ($userfile=readdir($dh)) { 
if (($userfile!=".") && ($userfile!="..") && ($userfile!="") && !strpos($userfile,".msg") && !strpos($userfile,".old")) { 
if(file_exists("userdata/bank/$userfile")) {
include("userdata/bank/$userfile");
$userfileinfo=explode(".",$userfile);
$rank_array[$userfileinfo[0]]=$bmoney; }
} 
} 
closedir($dh); 
arsort($rank_array); 
reset($rank_array); 
for ($counter=1; $counter<=20; $counter++) { //那个10代表前10,可以自己修改~
$key=key($rank_array); 
if ($counter==1) $maxpoint=$rank_array[$key]; 
$img_width=300*($rank_array[$key])/($maxpoint); 
echo '<tr>'; 
echo '<td>No.'.$counter.'</td>';
echo "<td><span title=查看该用户资料
><a href='profile.php?job=show&target=$key'> $key
</a></span></td>"; 
echo '<td>金钱值: '.$rank_array[$key].' </td>'; 
echo '<td><img src="images/bar1.gif" width='.$img_width.' height=10></td>'; //别忘了加上图片:)

echo '</tr>'; 
if (!(next($rank_array))) break; 
} 
?> 
<tr><td colspan=3> </td></tr> 
<tr> 
<td colspan=3><center><input type="button" value="论坛首页" 
onClick="location.href='index.php'" 
style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#FFFFFF'" onMouseOut ="this.style.backgroundColor='#f3f3f3'"> 
<input type="button" value="返回前页" 
onClick="location.href='javascript:history.back(1)';" 
style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#FFFFFF'" onMouseOut ="this.style.backgroundColor='#f3f3f3'"></center></td> 
</tr> 
</table> 
</td></tr></table><br> 
<? require("footer.php");echo"$footertp"; 
exit;
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -