Файл: supergonki/supergonki/gorod.php
Строк: 158
<?
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/adm_check.php';
include_once '../sys/inc/user.php';
?>
<title>Супер гонки</title>
<?
if(!isset($user)){
echo 'Вы неавторизованы';
include_once '../sys/inc/tfoot.php';
exit;
}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `supergonki` WHERE `id_u`='".$user['id']."'"),0)==0)
mysql_query("INSERT INTO `supergonki`(`id_u`) VALUES('".$user['id']."')");
$arr=mysql_fetch_array(mysql_query("SELECT * FROM `supergonki` WHERE `id_u`='".$user['id']."'"));
$car=mysql_fetch_array(mysql_query("SELECT * FROM `super_car` WHERE `id`='".$arr['car']."'"));
if($arr['color']!='0'){
if($arr['color']==1)
$color='red_';
elseif($arr['color']==2)
$color='blue_';
elseif($arr['color']==3)
$color='green_';
}
?>
<link rel="stylesheet" href="style000.css" type="text/css" />
<table class="wdt black">
<tr>
<td class="yellow" align="left" style="vertical-align: top; padding-bottom: 0px">
<img src="icon/fuel.png"><span id="FUELCNT">
<?
echo"".$arr['level']."";
?>
</span>
</td>
<td class="orange" align="left" style="vertical-align: top; padding-bottom: 0px">
<img src="icon/speed.png">
<?
echo"".$arr['speed']."";
?> л.с
</td>
<td class="white" style="vertical-align: top; padding-bottom: 0px">
ур.
<?
echo"".$arr['level']."";
?>
</td>
<td class="white" align="right" style="vertical-align: top; padding-bottom: 0px">
<img src="icon/money.png">
<?
echo"".$arr['money']."";
?>
</td>
<td class="green" align="right" style="vertical-align: top; padding-bottom: 0px">
<img src="icon/baks.png">
<?
echo"".$arr['baks']."";
?>
</td>
</tr>
<tr>
<td align="left" class="white" style="vertical-align: top; padding: 0px; height: 3px" colspan="5" height="3px">
<img src="icon/expline.png" width="35%" height="3px" style="height: 10px;">
</td>
</tr>
</table>
<table class="wdt black" style="border-bottom: 1px solid #767676;">
<tr>
<td class="white" align="left" style="padding-top: 0px;">
<a class="white" href="index.php">Гараж</a>
</td>
<td class="white" align="left" style="padding-top: 0px;">
<a class="white" href="race.php">Гонки</a>
</td>
<td class="gray" align="left" style="padding-top: 0px;">
<a class="white" href="bank.php">Дилер</a>
</td>
<td class="gray" align="right" style="padding-top: 0px;">
<a class="white" href="rate.php">Топ</a>
</td>
</tr>
</table>
<table class="wdt map">
<tr>
<td class="white" align="left" style="vertical-align: top; padding-top: 30px; padding-bottom: 15px; height: 40px">
<td class="green" align="right" style="vertical-align: top; padding-top: 20px; padding-bottom: 15px; height: 40px">
</td></tr><tr>
<td class="green" align="left" style="vertical-align: top; padding-top: 20px;">
<img src="icon/shop.png"><a href="auto.php" class="white" style="font-weight: bold;">Автосалон</a></td>
<td class="green" align="right" style="vertical-align: bottom;">
</td>
</tr>
<tr>
<td class="white" align="left" style="vertical-align: top; height: 80px;">
<img src="icon/tun.png"><a href="index.php?tun" class="white" <a class="white" style="font-weight: bold;">Тюнинг</a><br><br>
</td>
</tr>
<tr>
<td class="white" align="left" style="vertical-align: top; height: 80px;">
<img src="icon/vist.png"><a href="vist.php" class="white" style="font-weight: bold;">Выставка</a><br><br>
</td>
</tr>
<tr>
<td class="white" align="right" style="vertical align: top">
<img src="icon/home.png"><ahref="race.php" class="white" style="font-weight: bold;">Обучение</a>
</td>
</tr>
<tr>
<td class="white" align="left" style="vertical align: top">
<img src="icon/tun.png"><a href="race.php" class="white" style="font-weight: bold;">Гонки</a>
</td>
</tr>
<tr>
<td class="white" align="right" style="vertical-align: top">
<img src="icon/point.png"><a href="/index.php" class="white" style="font-weight: bold;">В другой город</a>
</td>
<td class="green" align="right" style="vertical-align: top;">
</td>
</tr>
<tr>
<td class="green" align="left" style="vertical-align: top">
</td>
<td class="green" align="right" style="vertical-align: top;">
</td>
</tr>
<tr>
<td align="center" colspan="2" style="vertical-align: bottom;">
<form action="index.php" method="get">
<input type="submit" class="wdt no-btn" value="Закрыть"/>
</form>
</td>
</tr>
</table>
<?
include_once '../games/foot.php';
?>