saveActions(); break; case 'addComplaintActions': addComplaintActions(); break; case 'draftComplaintActions': draftComplaintActions(); break; case 'closeFailure': closeFailure(); break; case 'deleteFailure': deleteFailure(); break; case 'deleteComplaint': deleteComplaint(); break; case 'addFailure': addFailure(); break; case 'sendPartsEmail': sendPartsEmail(); break; case 'editDefault': editDefault(); break; case 'getCustomerDetails': getCustomerDetails(); break; case 'getCustomerDetails1': getCustomerDetails1();
function deleteComplaint($ignore_id) { global $delete_text; $query = "DELETE FROM `complaint` WHERE `complaint_id` = {$ignore_id}"; $result = mysql_query($query); } function deleteRequest($text_id) { global $delete_text; $query = "DELETE FROM `request` WHERE `complaint_id` = {$text_id}"; $result = mysql_query($query); } //=================================== Основной код $formatter = new Formatter(); if (isset($_GET["ignore_id"])) { deleteComplaint(intval($_GET["ignore_id"])); } if (isset($_GET["delete_id"])) { deleteRequest(intval($_GET["delete_id"])); } $complaint_result = loadComplaints(); $complaint_type = array("сообщение", "текст", "отрывок", "комментарий"); function additionalPageHeader() { ?> <link rel="stylesheet" type="text/css" href="/styles/admin_complaint.css"> <?php } $title = "Список жалоб и запросов"; include '../header.php'; ?>