if ($action == 'status_action') { $resend = __paramInit('bool', NULL, 'resend'); $del = __paramInit('bool', NULL, 'del'); $cancel = __paramInit('bool', NULL, 'cancel'); $id = __paramInit('int', NULL, 'id'); $ok = true; if ($resend) { $ok = $sbr->resendCanceled($id); } else { if ($cancel) { $ok = $sbr->cancel($id); if ($ok) { $pskb = new pskb($sbr); $lc = $pskb->getLC(); if ($lc['state'] == 'new') { $pskb->closeLC($lc['lc_id']); } } } else { if ($del) { $ok = $sbr->delete($id); } } } if ($ok) { header_location_exit('/' . sbr::NEW_TEMPLATE_SBR . '/' . ($del ? '' : "?id={$id}")); } } $filter = __paramInit('string', 'filter'); $anchor = __paramInit('int', 'id'); $count_sbr = $sbr->getCountCompleteSbr();