Файл: rang.php
Строк: 37
<?
define('PROTECTOR', 1);
include('files/db.php');
include($path.'files/auth.php');
if ($user_id==0){
header('location: index.php');exit;
}
$textl='Зал рангов';
include($path.'files/core.php');
include($path.'files/head.php');
include($path.'files/zag.php');
echo '<table width=100%>
<tr>
<td width=35%>
<a href=game.php><div style="background: #882222; border-radius: 7px 0 0 7px" class="m p bts bbs brs bls" align=center>Главная</div></a>
</td><td>';
echo '<a href=?><div class="line bts brs bls bbs p m" style="border-radius: 0 7px 7px 0">
<font color=#ffffff>Зал Рангов
</font>
</div></a></td></tr></table>';
echo '<div class="bat bts brs bls bbs p">';
$ex=mysql_query("SELECT * FROM `rang` WHERE `rang`>'0'");
while($exz=mysql_fetch_array($ex))
{
if($exz['rang']==$udata['rang'])
{
$color='#ffff00';
}
else
{
$color='#999999';
}
echo '<img src=img/main/p28.png> <font color='.$color.'>['.$exz['rang'].'] '.$exz['name'].' </font>- <img src=img/main/e9.png> ';
if($exz['money']>0)
{
echo '<img src=img/main/p5.png>'.$exz['money'].' ';
}
if($exz['fm']>0)
{
echo '<img src=img/main/r17.png>'.$exz['fm'].' ';
}
if($exz['hp100']>0)
{
echo '<img src=img/elic/hp100.png>'.$exz['hp100'].' ';
}
if($exz['hp1000']>0)
{
echo '<img src=img/elic/hp1000.png>'.$exz['hp1000'].' ';
}
echo '<br>';
}
echo '</div></div>';
include('files/down.php');
?>