Вход Регистрация
Файл: rusalc/apcars_exhibition_contest.php
Строк: 96
<?
include_once '../sys/core/start.php';
include_once 
'../sys/core/compress.php';
include_once 
'../sys/core/sess.php';
include_once 
'../sys/core/home.php';

include_once 
'../sys/core/db_connect.php';
include_once 
'../sys/core/ipua.php';
include_once 
'../sys/core/fnc.php';
include_once 
'../sys/core/user.php';
include_once 
'../sys/inc/fnc_game.php';
include_once 
'../sys/inc/thead.php';
include_once 
'../sys/inc/uhead.php';
only_reg();


if (
$user['acces']==765466656){

echo 
"<table class='wdt msg-table'>";
echo 
"<tr><td align='left' style='vertical-align: top; width: 10%'><img src='/style/img/images/face-mex.png'></td>";
echo 
"<td align='left' style='vertical-align: top'>Дарова , ".$user['nick']." вот список всех автомобилей с выставки конкурсов</td></tr></table></td></tr></table>";


echo 
"<table class='wdt brown-header'><tr>";
echo 
"<td align='left'>Выставка:</td></tr></table>";
echo 
"<table class='wdt gray-table'>";

$max '10';
$online_post mysql_result(mysql_query("SELECT COUNT(*) FROM `exhibition_contest` "),0);
$k_page k_page($online_post,$max);
$page page($k_page);
$start $max*$page-$max;

$we=mysql_query("SELECT * FROM `exhibition_contest` ORDER BY `id` DESC LIMIT $start$max");
while(
$lev=mysql_fetch_array($we)){
$lev_car=mysql_fetch_array(mysql_query("SELECT * FROM `exhibition_contest` WHERE `id`='".$lev['id']."'"));
echo 
'<table class="wdt green-table"><tbody><tr style="border-bottom:1px #252525 solid;">
<td class="white" align="center" width="60%"><img class="wdt" src="/style/img/car/'
.$lev_car['screen'].'.png" alt="car">
<img class="wdt" style="margin-top: -15px;" src="/style/img/images/car_shadow.png" alt="neon">'
;
echo 
"<td class='white' align='left'><b class='yellow'>ID: $lev[id]</b><b class='white'><br> $lev[name] ";
echo 
"<br><b class='white'>Класс:</b> <b class='class-$lev[class] bold-text'>$lev[class]</b>";
echo 
"<br><img src='/style/img/icons/power.png' alt='rating'><b class='orange'>$lev[power]</b>";
echo 
"<br><img src='/style/img/icons/money.png' alt='rating'><b class='yellow'>$lev[price_money]</b>";
echo 
"<br><img src='/style/img/icons/baks.png' alt='rating'><b class='green'>$lev[price_baks]</b>";
echo 
'<br><a class="white" style="font-size: 11pt;" href="/rusalc/apedit_car_exhibition_contest.php?id='.$lev['id'].'"><img src="/style/img/icons/config.png" alt="Config">Редактировать</a><br></td></tr></tbody></table>';
}
if(
$k_page>1) echo str('?close_cup&',$k_page,$page); // Вывод страниц

echo "<table class='wdt gray-table'><tr><td class='white td-cell' align='center' style='height:30px;'><form action ='/rusalc/apcars.php' method='post'><input class='yes-btn' type='submit' value='Автомобили'></form></td></tr></table>";

echo 
"<table class='wdt gray-table'><tr><td class='white td-cell' align='center' style='height:30px;'><form action ='/rusalc/apindex.php' method='post'><input class='no-btn' type='submit' value='Админка'></form></td></tr></table>";

}
else
{
header("Location: /dev/garage.php");
}

include_once 
'../sys/inc/tfoot.php';
?>
Онлайн: 0
Реклама