Файл: inc/collective/logi.php
Строк: 25
<?
$title='История Заявок';
include_once '../system/config.php';
$mcu =mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective_user` WHERE `id_user` = '$ku[id]'"));
$ct =mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective` WHERE `id` = '".intval($_GET['logi'])."'"));
if(isset($_GET['logi']) && ($mc['id']==$ct['id']) && ($_GET['logi'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_collective` WHERE `id` = '".($_GET['logi'])."' LIMIT 1"),0)!=0){
echo"<div class='rzd2'></div><div class='menuin2'>";
echo "<div class='title'>История заявок</div>";
echo "<div class='content'><div class='div'>";
$result = mysql_query("SELECT * FROM `logi_collective` WHERE `collective` = '$mc[id]' ORDER BY `time` DESC LIMIT 10000000000 ");
while($msg = mysql_fetch_assoc($result)){
echo' ['.date('d.m.Y в H:i', $msg['time']).'] <a href="/user/'.($msg['cto']).'"><span>'.nc($msg['cto']).'</span></a> '.($msg['chto']).' <a href="/user/'.($msg['dopolnitelno']).'"><span>'.nc($msg['dopolnitelno']).'</span></a><br>';
}
?>
<?
echo"</div></div></div><div class='rzd2'></div>";
include_once '../system/foot.php';
}
else
{
echo "<div class='title'>Ошибка</h2></div>";
echo "<div class='content'>";
echo "<div class='div'>";
echo 'Так просто ты тут ни чего не узнаешь. Попробуй найти того, кто тебе объяснит.';
include_once '../system/foot.php';
echo "</div></div>";
}
?>