示例#1
0
            exit;
        }
        break;
    case 'Decide':
        $id = __paramInit('int', NULL, 'id', 0);
        //$is_accepted = __paramInit('int', NULL, 'Accept_x');
        $is_accepted = !empty($_POST['status']) && $_POST['status'] == 'Accept';
        $denied_reason = NULL;
        if (!$is_accepted) {
            $denied_reason = __paramInit('string', NULL, 'denied_reason');
            if (is_empty_html($denied_reason)) {
                $alert[$id]['denied_reason'] = 'Введите причину отказа';
            } else {
                $masssending->Deny($id, $denied_reason);
            }
        } else {
            $masssending->acceptByAdmin($id);
        }
        if (!$error && !$alert) {
            header("Location: /siteadmin/masssending/?om={$om}");
            exit;
        }
        break;
}
$content = '../content.php';
$js_file = array('/css/block/b-popup/b-popup.js');
$css_file = array('moderation.css', 'nav.css');
$inner_page = 'inner_index.php';
$header = $rpath . 'header.php';
$footer = $rpath . 'footer.html';
include $rpath . 'template.php';