Файл: setk/user/top_sos.php
Строк: 130
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
$act = isset($_GET['act']) ? trim($_GET['act']) : '';
switch ($act) {
////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
default;
//////////////////////////////////////////////////////////////////////////////
$set['title']='Топ 20 богачей.';
include_once '../sys/inc/thead.php';
title();
aut();
echo '<div class="nav1">';
case 'money':
echo '<div class="mess">';
echo '<b>TOP 20 богачей сайта</b>';
echo '</div>';
$g=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `money` > '0'"), 0);
if ($g==0)
{
echo '<div class="mess">';
echo "В топе никого нетn";
echo '</div>';
}
$q = mysql_query("SELECT * FROM `user` WHERE `money` > '0' ORDER BY `money` DESC LIMIT 20");
while ($ank = mysql_fetch_assoc($q))
{
echo "<table class='post'>n";
$ank=get_user($ank['id']);
if ($num==0){
echo '<div class="nav1">';
$num=1;
}elseif
($num==1)
{ echo '<div class="nav2">';
$num=0;}
echo group($ank['id'])."<a href='/info.php?id=$ank[id]'>$ank[nick]</a> n";
echo "".medal($ank['id'])." ".online($ank['id'])." • ".$ank['money']." монет";
echo '<br/><b>Состояние:</b> ';
if($ank['money']>=0 && $ank['money']<=50)echo "Бомж";
if($ank['money']>=51 && $ank['money']<=1000)echo "Бедняк<img src='/rank/750.gif' alt='' class='icon'</a>";
if($ank['money']>=1001 && $ank['money']<=5000)echo "Зажиточный<img src='/rank/2249.png' alt='' class='icon'</a>";
if($ank['money']>=5001 && $ank['money']<=15000)echo "Состоятельный<img src='/rank/2749.gif' alt='' class='icon'</a>";
if($ank['money']>=15001 && $ank['money']<=50000)echo "Купец<img src='/rank/2999.gif' alt='' class='icon'</a>";
if($ank['money']>=50001 && $ank['money']<=1000000)echo "Баярин<img src='/rank/3249.gif' alt='' class='icon'</a>";
if($ank['money']>=1000001 && $ank['money']<=500000000)echo "Миллионер<img src='/rank/4999.gif' alt='' class='icon'</a>";
if($ank['money']>=500000001 && $ank['money']<=1000000000)echo "Мульти миллионер<img src='/rank/7499.gif' alt='' class='icon'</a>";
if($ank['money']>=1000000001 && $ank['money']<=2000000000)echo "Миллиардер<img src='/rank/9999.gif' alt='' class='icon'</a>";
if($ank['money']>=2000000001 && $ank['money']<=3000000000)echo "Мульти миллиардер<img src='/rank/10000.png' alt='' class='icon'</a>";
echo '</div>';
}
echo "</table>n";
echo '<div class="main">';
echo '<img src="/style/icons/str2.gif" alt="*" /> <a href="/user/usmonet.php">Назад</a> ';
echo '</div>';
break;
echo '</div>';
/////////////////////////////////////////////////////////////////////////////////////
}
include_once '../sys/inc/tfoot.php';
?>