Файл: tiket/adm.php
Строк: 60
<?php
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
user_access('adm_panel_show',null,'/index.php?'.SID);
//adm_check();
$list2=mysql_fetch_assoc(mysql_query("SELECT * FROM `tiket`"));
$set['title']='Тикеты';
include_once '../sys/inc/thead.php';
title();
err();
aut();
echo "<div class='p_m'>";
echo "<center>Тикеты</center>";
echo "</div>n";
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `tiket` "),0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$lim=" LIMIT $start, $set[p_str]";
$q=mysql_query("SELECT * FROM `tiket` ORDER BY `time` DESC $lim");
if (mysql_num_rows($q)==0) {
echo "<div class='p_m'>n";
echo "Тикеты еще никто не создавал!n";
echo "</div>";
}
while ($list = mysql_fetch_assoc($q))
{
echo "<div class='p_m'>n";
echo "<span style='float : right;'>n";
echo "<font color='red'>".vremja($list['time'])."</font>n";
echo " </span>";
echo " <a href='tiket.php?id=$list[id]'>$list[name]</a> <font color='red'>+".mysql_result(mysql_query("SELECT COUNT(*) FROM `tiket_kom` WHERE `id_list` = '$list[id]'"),0)."</font>";
echo "</div>n";
}
if ($k_page>1)str('?id='.$ank['id'].'&',$k_page,$page); // Вывод страниц
echo "<div class='p_m'><a href='/adm_panel/'>Админка</a></div>";
include_once '../sys/inc/tfoot.php';
?>