Файл: inc/user/infoUser.php
Строк: 27
<?
$title='Операции с рубинами';
include_once '../system/config.php';
?>
<?
if($ku['id']!=$_GET['infouser'] and $ku['status']!=3)
{
echo "<div class='content'>";
echo "<div class='div'>";
echo 'У вас недостаточно прав для просмотра данной страницы';
include_once 'inc/system/foot.php';
echo "</div></div>";
}
if(isset($_GET['infouser']) && ($_GET['infouser'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".($_GET['infouser'])."' LIMIT 1"),0)!=0){
echo"<div class='rzd2'></div><div class='menuin2'>";
echo "<div class='title'>Операции с рубинами</div>";
echo "<div class='div'>";
$user['set'] = 10;
$post = mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".($_GET['infouser'])."'"));
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `info_user` WHERE `id_user` = '".($_GET['infouser'])."'"),0);
if ($k_post==0)
{
echo "Нет инфо";
}
$k_page=k_page($k_post,$user['set']);
$page=page($k_page);
$start=$user['set']*$page-$user['set'];
$result = mysql_query("SELECT * FROM `info_user` WHERE `id_user` = '$post[id]' ORDER BY time DESC LIMIT $start, $user[set]");
while($msg = mysql_fetch_assoc($result)){
echo''.date('d.m.Y в H:i', $msg['time']).' '.($msg['status']).' <img src="/img/icons/ruby.png" alt="o">'.($msg[many]).' ('.($msg[kuda]).')<br>';
}
}
?>
<?
if ($k_page>1){echo'</div>';
echo "<div class='block'>";}
if ($k_page>1)str("/infouser/".($_GET['infouser'])."/",$k_page,$page);
echo'</div>';
echo"</div></div><div class='rzd2'></div>";
?>
<? include_once '../system/foot.php';?>