Вход Регистрация
Файл: rusalc/aptaxi.php
Строк: 78
<?
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 brown-header'><tr>";
echo 
"<td align='left'>Такси:</td></tr></table>";
echo 
"<table class='wdt gray-table'>";

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

if(!empty(
$_GET['id']))
$taxi_id=intval($_GET['id']);
$taxi=mysql_fetch_assoc(mysql_query("SELECT * FROM `taxi` WHERE `id` = '".$taxi_id."'"));
$taxi_lider=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id` = '".$taxi['id_lider']."' LIMIT 1"));
$k_apply mysql_result(mysql_query("SELECT COUNT(*) FROM `taxi_apply` WHERE `to_taxi` = '".$taxi['id']."'"),0);

$we=mysql_query("SELECT * FROM `taxi` ORDER BY `id` DESC LIMIT $start$max");
while(
$lev=mysql_fetch_array($we)){
echo 
"<table class='wdt taxi-table white'>";
echo 
"<tr><td align='left' style='vertical-align: top;'>";
echo 
"<table class='wdt'>";
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>Основал: $taxi_lider[nick]</td></tr>";
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>ID такси: <b class='yellow'>$taxi[id]</b></td></tr>";
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>Репутация такси: <img src='/style/img/icons/reputation.png' alt='ratio'><b>".m_format($taxi['reputation'])."</b></td></tr>";
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>В кассе: <img src='/style/img/icons/money.png' alt='coins'><b>".m_format($taxi['money'])."</b> <img src='/style/img/icons/baks.png' alt='backs'><b class='green'>".m_format($taxi['baks'])."</b></td></tr>";
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'><a class='yellow' style='font-weight: normal;' href='/dev/taxi.php?id=".$taxi['id']."&statistic'>Статистика</a></td></tr></table></td>";
echo 
"<td align='right' style='vertical-align: top; width: 20%'><img class='wdt' alt='logo' src='/style/img/avatars/$taxi_lider[avatar].png'></td></tr>";
}
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/apindex.php' method='post'><input class='yes-btn' type='submit' value='Назад'></form></td></tr></table>";

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

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