Пример #1
0
    $reviewManager->setReviewStatusFilter($frStatus);
}
$reviewManager->setEditorFilter($editor);
$reviewManager->setPageNumber($pageNum);
$reviewManager->setLimitNumber($limitCnt);
$isEditor = false;
if ($IS_ADMIN || array_key_exists("CollAdmin", $USER_RIGHTS) && in_array($collid, $USER_RIGHTS["CollAdmin"])) {
    $isEditor = true;
} elseif ($reviewManager->getObsUid()) {
    $isEditor = true;
}
$statusStr = "";
if ($isEditor) {
    if (array_key_exists('updatesubmit', $_POST)) {
        if (!$reviewManager->updateRecords($_POST)) {
            $statusStr = '<br>' . implode('</br><br>', $reviewManager->getWarningArr()) . '</br>';
        }
    } elseif (array_key_exists('delsubmit', $_POST)) {
        $idStr = implode(',', $_POST['id']);
        $reviewManager->deleteEdits($idStr);
    } elseif (array_key_exists('dlsubmit', $_POST)) {
        $idStr = implode(',', $_POST['id']);
        if ($reviewManager->exportCsvFile($idStr)) {
            exit;
        } else {
            $statusStr = $reviewManager->getErrorMessage();
        }
    } elseif (array_key_exists('dlallsubmit', $_POST)) {
        if ($reviewManager->exportCsvFile('', true)) {
            exit;
        } else {