Вход Регистрация
Файл: dev/cupsuser.php
Строк: 120
<?

ini_set
('display_errors''off');

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/settings.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(isset(
$_GET['id'])){
    
$id intval($_GET['id']);
} else {
    
$id $user['id'];
}

if(isset(
$_GET['type'])){
    
$type htmlspecialchars(mysql_real_escape_string($_GET['type']));
} else {
    
$type 'gold';
}

if(
$type=='gold'){
    
$type_ru "<table class='wdt brown-header'><tr><td align='left'>Золотые:</td></tr></table>";
} elseif (
$type=='silver') {
    
$type_ru "<table class='wdt brown-header'><tr><td align='left'>Серебряные:</td></tr></table>";
} elseif (
$type=='bronze') {
    
$type_ru "<table class='wdt brown-header'><tr><td align='left'>Бронзовые:</td></tr></table>";
}
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`='".intval($_GET['id'])."'"));
$select_user_taxist=mysql_fetch_array(mysql_query("SELECT * FROM `taxi_user` WHERE `id_user`='".$ank['id']."'"));
$select_user_taxi=mysql_fetch_array(mysql_query("SELECT * FROM `taxi` WHERE `id`='".$select_user_taxist['id_taxi']."'"));

echo 
"<table class='wdt gray-table white'>";
echo 
"<tr><td align='left' style='vertical-align: top;'>";
echo 
"<table class='wdt'>";

echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>Игрок: $ank[nick]</td></tr>";
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>Уровень: <b>$ank[level]</b></td></tr>";
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>Рейтинг: <img src='/style/img/icons/rating.png' alt='mail'><b class = 'yellow'>".m_format($ank['rating'])."</b></td></tr>";
if(
$select_user_taxi)
{
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>ID такси: <b class = 'yellow'>$select_user_taxi[id]</b></td></tr>";
}
if (
mysql_result(mysql_query("SELECT COUNT(*) FROM `ban` WHERE `id_user` = '$ank[id]' AND `time` > '$time'"), 0)!=0)
{
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'><b class = 'red'>Пользователь забанен!</b></td></tr>";
}
echo 
"</td></tr></table></td>";
echo 
"<td align='right' style='vertical-align: top; width: 10%'><img alt='logo' src='/style/img/avatars/$ank[avatar].png' alt='avatar'></td></tr></table>";

echo 
"<table class='wdt brown-header'><tr>";
echo 
"<td align='left'>Меню:</td></tr></table>";
echo 
"<table class='wdt gray-table'>";
echo 
"<td width = '33%'><form action='/dev/messages.php?id=".$ank['id']."' method='post'><input class='race-btn' type='submit' value='Написать'></form></td>";
echo 
"<td width = '33%'><form action='/dev/ach.php?id=".$ank['id']."' method='post'><input class='race-btn' type='submit' value='Достижения'></form></td>";
echo 
"<td width = '33%'><input class='inactive-btn' type='submit' value='Кубки'></td>";
echo 
"</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="?id='.$id.'&type=gold" method="post"><input class="yes-btn" type="submit" value="Золотые"></form></td><td>';
echo 
'<td width="50%"><form action="?id='.$id.'&type=silver" method="post"><input class="yes-btn" type="submit" value="Серебряные"></form></td><td>';
echo 
'<td width="50%"><form action="?id='.$id.'&type=bronze" method="post"><input class="yes-btn" type="submit" value="Бронзовые"></form></td></td></tr></table>';

echo 
$type_ru.' ';
$gold mysql_query("SELECT * FROM `user_cups` WHERE `type`='".$type."' and `id_user` = '".$id."'");
    if(
mysql_num_rows($gold)==0){
        echo 
'<div class="white"> У данного игрока нет кубков </div>';
    } else {
        while(
$cup mysql_fetch_array($gold)){
            
$t mysql_query("SELECT * FROM `turnir` WHERE `id`='".$cup['turnir']."'");
            
$t mysql_fetch_array($t);
            echo 
'<table class="wdt gray-table" style="font-size: 10pt"><tbody><tr><td class="white td-cell" align="center" style="width:60px; padding-right:2px;">
            <img src="/style/img/cups/'
.$cup['image'].'"></td>
            <td class="td-cell white" align="left" style="vertical-align:top;">
            <b class="orange">'
.$t['name'].'</b><br><br>
            <b class="white"></b><br></td>
            <td class="td-cell" align="right" style="padding-right: 10px">
            <form action="tournament.php?id='
.$t['id'].'" method="post"><input class="yes-btn" type="submit" value="Просмотреть"></form>
            </td></tr></tbody></table>'
;
        }
    }


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