Вход Регистрация
Файл: test.masteram.us/top/rating_best.php
Строк: 133
<?
echo '<table cellpadding="0" cellspacing="0">';
echo 
'<tbody>';
echo 
'<tr> ';
$pol1=mysql_query("SELECT * FROM `user` WHERE `pol`  = '0' ORDER BY `rating` DESC LIMIT 1");
while (
$post mysql_fetch_array($pol1))
{
echo 
"<form method='post' enctype='multipart/form-data' action='?$passgen'>n";
echo 
"<table class='post'>n";
echo 
"   <tr>n";
echo 
"  <td class='icon48' rowspan='2'>n";
avatar2($post['id']);
echo 
"  </td>n";
echo 
"  <td class='anput'>n";
echo 
" ".online($post['id'])."";
echo 
" <a href='/info.php?id=$post[id]'><span style="color:$post[ncolor]">$post[nick]</span></a>";
if (isset(
$user) && $user['id']!=$ank['id'])echo " <a href="/mail.php?id=$post[id]"><img src='/img/mail.gif' alt='' class='icon'/></a><br />n";

echo 
"Рейтинг: <font color='red'>$post[rating]</font> %<br/>";
if(
$post['rating']>=&& $post['rating']<=60)echo "<img src='/stars/rank1.gif'></img><br />"
if(
$post['rating']>=61 && $post['rating']<=90)echo "<img src='/stars/rank2.gif'></img><br />";
if(
$post['rating']>=91 && $post['rating']<=120)echo "<img src='/stars/rank3.gif'></img><br />";
if(
$post['rating']>=121 && $post['rating']<=180)echo "<img src='/stars/rank4.gif'></img><br />";
if(
$post['rating']>=181 && $post['rating']<=250)echo "<img src='/stars/rank5.gif'></img><br />";
if(
$post['rating']>=251 && $post['rating']<=320)echo "<img src='/stars/rank6.gif'></img><br />";
if(
$post['rating']>=321 && $post['rating']<=440)echo "<img src='/stars/rank7.gif'></img><br />";
if(
$post['rating']>=441 && $post['rating']<=560)echo "<img src='/stars/rank8.gif'></img><br />";
if(
$post['rating']>=561 && $post['rating']<=680)echo "<img src='/stars/rank9.gif'></img><br />";
if(
$post['rating']>=681 && $post['rating']<=100000)echo "<img src='/stars/rank10.gif'></img><br />";

}
echo 
"  </td>n";
echo 
"   </tr>n";
echo 
"   <tr>n";
//echo "  <td class='anput'>n";

echo "</table>n";
echo 
"</form>n";
echo 
'<table cellpadding="0" cellspacing="0">';
$pol1=mysql_query("SELECT * FROM `user` WHERE `pol` = '1' ORDER BY `rating` DESC LIMIT 1");
while (
$post mysql_fetch_array($pol1))
{
echo 
"<form method='post' enctype='multipart/form-data' action='?$passgen'>n";
echo 
"<table class='post'>n";
echo 
"   <tr>n";
echo 
"  <td class='icon48' rowspan='2'>n";
avatar2($post['id']);
echo 
"  </td>n";
echo 
"  <td class='anput'>n";
echo 
" ".online($post['id'])."";
echo 
" <a href='/info.php?id=$post[id]'><span style="color:$post[ncolor]">$post[nick]</span></a>";
if (isset(
$user) && $user['id']!=$ank['id'])echo " <a href="/mail.php?id=$post[id]"><img src='/img/mail.gif' alt='' class='icon'/></a><br />n";

//echo "<img src='polosar.php?rat=".(int)$post["rating"]."<br />";
echo "Рейтинг: <font color='red'>$post[rating]</font> %<br/>";
if(
$post['rating']>=&& $post['rating']<=60)echo "<img src='/stars/rank1.gif'></img><br />"
if(
$post['rating']>=61 && $post['rating']<=90)echo "<img src='/stars/rank2.gif'></img><br />";
if(
$post['rating']>=91 && $post['rating']<=120)echo "<img src='/stars/rank3.gif'></img><br />";
if(
$post['rating']>=121 && $post['rating']<=180)echo "<img src='/stars/rank4.gif'></img><br />";
if(
$post['rating']>=181 && $post['rating']<=250)echo "<img src='/stars/rank5.gif'></img><br />";
if(
$post['rating']>=251 && $post['rating']<=320)echo "<img src='/stars/rank6.gif'></img><br />";
if(
$post['rating']>=321 && $post['rating']<=440)echo "<img src='/stars/rank7.gif'></img><br />";
if(
$post['rating']>=441 && $post['rating']<=560)echo "<img src='/stars/rank8.gif'></img><br />";
if(
$post['rating']>=561 && $post['rating']<=680)echo "<img src='/stars/rank9.gif'></img><br />";
if(
$post['rating']>=681 && $post['rating']<=100000)echo "<img src='/stars/rank10.gif'></img><br />";

}
echo 
"  </td>n";
echo 
"   </tr>n";
echo 
"   <tr>n";
//echo "  <td class='anput'>n";

echo "</table>n";
echo 
"</form>n";
?>
Онлайн: 0
Реклама