File size: 2.28Kb
<?
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';
if (user_access('guest_delete'))
{
if (isset($_GET['del']) && $_GET['del']!=NULL)
{
mysql_query("DELETE FROM `stol` WHERE `id` = '".intval($_GET['del'])."'");
header('Location:index.php?del_ok&'.SID);
exit;
}
if (isset($_GET['close']) && $_GET['close']!=NULL)
{
if (isset($_POST['url']) && $_POST['url']!=NULL)
{
$url = mysql_escape_string($_POST['url']);
mysql_query("UPDATE `stol` SET `url` = '$url', `status` = '2', `id_user2` = '$user[id]', `time2` = '$time' WHERE `id` = '".intval($_GET['close'])."'");
header('Location:index.php?close_ok&'.SID);
exit;
}
$close = mysql_fetch_array(mysql_query("SELECT * FROM `stol` WHERE `id` = '".intval($_GET['close'])."' LIMIT 1"));
$set['title']='Стол заказов'; // заголовок страницы
include_once '../sys/inc/thead.php';
title();
err();
aut();
echo '<span class="ank_n">Заказ №:</span>'.$close['id'].'<br/>';
echo '<span class="ank_n">Тема заказа:</span> '.$close['them'].'<br/>';
echo '<span class="ank_n">Подробнее о заказе:</span>: '.$close['text'].'<br/>';
echo '<span class="ank_n">Срочность[1-5]:</span>';
if ($close['sroch']==1)echo '<span class="new">1</span><br/>';
if ($close['sroch']==2)echo '<span class="new">2</span><br/>';
if ($close['sroch']==3)echo '<span class="new">3</span><br/>';
if ($close['sroch']==4)echo '<span class="new">4</span><br/>';
if ($close['sroch']==5)echo '<span class="new">5</span><br/>';
echo '<form method="post" action="set.php?close='.$close['id'].'">';
echo 'Введите ссылку на выполненный заказ:<br/><input name="url" type="text"/><br/>';
echo '<input value="Выполнить" type="submit"/>';
echo '</form>';
}
}
else
{
echo 'Недостаточно прав для выполнения данного заказа';
}
echo '<div class="foot"><a href="index.php">» Назад</a></div>';
include_once '../sys/inc/tfoot.php';
?>