Пример #1
0
 function showContent()
 {
     $form = new GroupEditForm($this, $this->group);
     $form->show();
 }
Пример #2
0
$g = SecurityGroup::getById($id);
if ($g == NULL) {
    $errMsg = Text::getText("MissingGroup");
    include("error.php");
    exit;
}

if ($action == "save") {
    if (strlen($name) > 0) {
        $g->setName($name);
        $g->save();
        header("Location: groups.php");
    } else {
        $errMsg = Text::getText("MissingGroupName");
        $buttonCaption = Text::getText("Save");
        include("header.php");
        $form = new GroupEditForm($g);
        $form->printContent();
        include("footer.php");
    }
} else {
    $title = Text::getText("EditGroup");
    $buttonCaption = Text::getText("Save");
    include("header.php");
    $form = new GroupEditForm($g);
    $form->printContent();
    include("footer.php");
}
?>