Файл: rusalc/apcars.php
Строк: 160
<?
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();
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><td align='left'>Редактирование:</td></tr></table>";
echo "<table class='wdt gray-table'><tr>";
echo "<td width='50%'><form action='/rusalc/apcars_autosalon.php' method='post'><input type='hidden' name='method' value='topFriend'><input class='yes-btn' type='submit' value='Автосалон'></form></td><td>";
echo "<form action='/rusalc/apcars_exhibition.php' method='post'><input type='hidden' name='method' value='topFriend'><input class='yes-btn' type='submit' value='Выставка'></form></td><tr><td>";
echo "<form action='/rusalc/apcars_exhibition_casino.php' method='post'><input type='hidden' name='method' value='topFriend'><input class='yes-btn' type='submit' value='Казино'></form></td><td>";
echo "<form action='/rusalc/apcars_exhibition_contest.php' method='post'><input type='hidden' name='method' value='topFriend'><input class='yes-btn' type='submit' value='Конкурсы'></form></td></tr></table>";
echo "<table class='wdt brown-header'><tr><td align='left'>Добавление:</td></tr></table>";
echo "<table class='wdt gray-table'><tr>";
echo "<td width='50%'><form action='/rusalc/apadd_car_autosalon.php' method='post'><input type='hidden' name='method' value='topFriend'><input class='yes-btn' type='submit' value='Автосалон'></form></td><td>";
echo "<form action='/rusalc/apadd_car_exhibition.php' method='post'><input type='hidden' name='method' value='topFriend'><input class='yes-btn' type='submit' value='Выставка'></form></td><tr><td>";
echo "<form action='/rusalc/apadd_car_exhibition_casino.php' method='post'><input type='hidden' name='method' value='topFriend'><input class='yes-btn' type='submit' value='Казино'></form></td><td>";
echo "<form action='/rusalc/apadd_car_exhibition_contest.php' method='post'><input type='hidden' name='method' value='topFriend'><input class='yes-btn' type='submit' value='Конкурсы'></form></td></tr></table>";
echo "<table class='wdt brown-header'><tr><td align='left'>Статистика:</td></tr></table>";
$count_car_autosalon = mysql_result(mysql_query("SELECT COUNT(*) FROM `autosalon`"),0);
$count_car_exhibition = mysql_result(mysql_query("SELECT COUNT(*) FROM `exhibition`"),0);
$count_car_exhibition_view = mysql_result(mysql_query("SELECT COUNT(*) FROM `exhibition` WHERE `view` = '1'"),0);
echo "<table class='wdt green-table white' width='100%'>";
echo "<tr><td><table class='wdt black' style='border: 1px solid #111; table-layout: fixed' width='100%'>";
echo "<tr><td style='background-color: #444;border-bottom: 1px solid #222;' colspan='2' align='center'><b>Статистика</b></td></tr>";
echo "<tr><td style='background-color: #333; overflow: hidden;'>Инфо</td>";
echo "<td style='background-color: #333' align='right'>Количество</td></tr>";
echo "<tr><td class='white' align='left' style='border-bottom: 1px solid #333; vertical-align: top;'><b class='orange'>Автомобилей в автосалоне</b></td>";
echo "<td align='right' style='border-bottom: 1px solid #333; vertical-align: top;'> <b class='yellow'>$count_car_autosalon</b></td>";
echo "<tr><td class='white' align='left' style='border-bottom: 1px solid #333; vertical-align: top;'><b class='orange'>Автомобилей на выставке</b></td>";
echo "<td align='right' style='border-bottom: 1px solid #333; vertical-align: top;'> <b class='yellow'>$count_car_exhibition</b></td>";
echo "<tr><td class='white' align='left' style='border-bottom: 1px solid #333; vertical-align: top;'><b class='orange'>Доступно автомобилей на выставке</b></td>";
echo "<td align='right' style='border-bottom: 1px solid #333; vertical-align: top;'> <b class='yellow'>$count_car_exhibition_view</b></td>";
echo "</tr></table></td></tr>";
echo "<table class='wdt gray-table'>";
echo "<tr><td class='white td-cell' align='center' style='height:30px;'><form action ='/rusalc/apindex.php' method='get'><input class='no-btn' type='submit' value='Админка'></form></td></tr></table>";
include_once '../sys/inc/tfoot.php';
?>