Beispiel #1
0
            }
        }
        if ($USER->CanDoOperation('edit_groups') && $_REQUEST["save"] != '') {
            LocalRedirect("group_admin.php?lang=" . LANGUAGE_ID);
        } elseif ($USER->CanDoOperation('edit_groups') && $_REQUEST["apply"] != '') {
            LocalRedirect($APPLICATION->GetCurPage() . "?lang=" . LANGUAGE_ID . "&ID=" . $ID . "&" . $tabControl->ActiveTabParam());
        } elseif ($new == "Y") {
            LocalRedirect($APPLICATION->GetCurPage() . "?lang=" . LANGUAGE_ID . "&ID=" . $ID . "&" . $tabControl->ActiveTabParam());
        }
    }
}
$str_USER_ID = array();
$z = CGroup::GetByID($ID, "N");
if ($z->ExtractFields("str_")) {
    if ($USER_COUNT <= $USER_COUNT_MAX && $ID != 2) {
        $dbUserGroup = CGroup::GetGroupUserEx($ID);
        while ($arUserGroup = $dbUserGroup->Fetch()) {
            $str_USER_ID[intval($arUserGroup["USER_ID"])]["DATE_ACTIVE_FROM"] = $arUserGroup["DATE_ACTIVE_FROM"];
            $str_USER_ID[intval($arUserGroup["USER_ID"])]["DATE_ACTIVE_TO"] = $arUserGroup["DATE_ACTIVE_TO"];
        }
    }
} else {
    $ID = 0;
    $str_ACTIVE = "Y";
    $str_C_SORT = 100;
}
if (strlen($strError) > 0) {
    $DB->InitTableVarsForEdit("b_group", "", "str_");
    $USER_ID_NUMBER = intval($_REQUEST["USER_ID_NUMBER"]);
    $str_USER_ID = array();
    for ($i = 0; $i <= $USER_ID_NUMBER; $i++) {