Файл: test.masteram.us/top/activ_best.php
Строк: 129
<?
echo '<table cellpadding="0" cellspacing="0">';
echo '<tbody>';
echo '<tr> ';
$pol1=mysql_query("SELECT * FROM `user` WHERE `pol` = '0' ORDER BY `akt_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[akt_rating]</font> %<br/>";
if($post['akt_rating']>=0.001 && $post['akt_rating']<=0.200)echo "<img src='/stars/rank1.gif'></img><br />";
if($post['akt_rating']>=0.201 && $post['akt_rating']<=0.400)echo "<img src='/stars/rank2.gif'></img><br />";
if($post['akt_rating']>=0.401 && $post['akt_rating']<=0.600)echo "<img src='/stars/rank3.gif'></img><br />";
if($post['akt_rating']>=0.601 && $post['akt_rating']<=0.800)echo "<img src='/stars/rank4.gif'></img><br />";
if($post['akt_rating']>=0.801 && $post['akt_rating']<=1.000)echo "<img src='/stars/rank5.gif'></img><br />";
if($post['akt_rating']>=1.001 && $post['akt_rating']<=1.200)echo "<img src='/stars/rank6.gif'></img><br />";
if($post['akt_rating']>=1.201 && $post['akt_rating']<=1.400)echo "<img src='/stars/rank7.gif'></img><br />";
if($post['akt_rating']>=1.401 && $post['akt_rating']<=1.600)echo "<img src='/stars/rank8.gif'></img><br />";
if($post['akt_rating']>=1.601 && $post['akt_rating']<=1.800)echo "<img src='/stars/rank9.gif'></img><br />";
if($post['akt_rating']>=1.801 && $post['akt_rating']<=200.000)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 `akt_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[akt_rating]</font> %<br/>";
if($post['akt_rating']>=0.001 && $post['akt_rating']<=0.200)echo "<img src='/stars/rank1.gif'></img><br />";
if($post['akt_rating']>=0.201 && $post['akt_rating']<=0.400)echo "<img src='/stars/rank2.gif'></img><br />";
if($post['akt_rating']>=0.401 && $post['akt_rating']<=0.600)echo "<img src='/stars/rank3.gif'></img><br />";
if($post['akt_rating']>=0.601 && $post['akt_rating']<=0.800)echo "<img src='/stars/rank4.gif'></img><br />";
if($post['akt_rating']>=0.801 && $post['akt_rating']<=1.000)echo "<img src='/stars/rank5.gif'></img><br />";
if($post['akt_rating']>=1.001 && $post['akt_rating']<=1.200)echo "<img src='/stars/rank6.gif'></img><br />";
if($post['akt_rating']>=1.201 && $post['akt_rating']<=1.400)echo "<img src='/stars/rank7.gif'></img><br />";
if($post['akt_rating']>=1.401 && $post['akt_rating']<=1.600)echo "<img src='/stars/rank8.gif'></img><br />";
if($post['akt_rating']>=1.601 && $post['akt_rating']<=1.800)echo "<img src='/stars/rank9.gif'></img><br />";
if($post['akt_rating']>=1.801 && $post['akt_rating']<=200.000)echo "<img src='/stars/rank10.gif'></img><br />";
}
echo " </td>n";
echo " </tr>n";
echo " <tr>n";
echo "</table>n";
echo "</form>n";
?>