Пример #1
0
function aCompleteEvent($xact_id)
{
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sbr_notification.php';
    $objResponse = new xajaxResponse();
    if (!(hasPermissions('sbr') && $_SESSION['access'] == 'A')) {
        return $objResponse;
    }
    $xact_id = intval($xact_id);
    $compl = sbr_notification::setNotificationCompletedAdmin($xact_id);
    if ($compl) {
        $objResponse->script("\$('event_react_{$xact_id}').removeClass('b-fon__body_bg_f0ffdf').removeClass('b-fon__body');");
        $objResponse->script("\$('adm_react_link_{$xact_id}').dispose()");
    }
    return $objResponse;
}