GetMessage(); } catch ( Exception $e ) { $errorMsg = $e->getMessage(); } $groups = GetGroups(); $groupCount = sizeof( $groups ); $currPage = GetPageNumber( $groups, $selectedGroup, $pageSize ); GetPageRange( $currPage, $groupCount, $pageSize, $firstPageIndex, $lastPageIndex ); LoadGroupTable( $groupTable, $firstPageIndex, $lastPageIndex, true ); if ( !array_key_exists( $selectedGroup, $groupTable ) && $groupCount > 0 ) $selectedGroup = $groups[ $firstPageIndex ]; if ( $selectedGroup == MgGroup::Everyone ) { if ( $firstPageIndex + 1 <= $lastPageIndex ) $selectedGroup = $groups[ $firstPageIndex+1 ]; else $selectedGroup = ""; } LoadGroupRolesTable( $groupRolesTable, $firstPageIndex, $lastPageIndex ); } catch ( MgException $e ) { CheckForFatalMgException( $e ); if ( empty( $errorMsg ) ) $errorMsg = $e->GetMessage(); } catch ( Exception $e ) { if ( empty( $errorMsg ) ) $errorMsg = $e->getMessage(); } ?> label = "Add Group"; $button->icon = "images/new.gif"; $button->action = "SetElementValue('".NEXT_PAGE_ID."', 'addgroup.php');"; $button->disabled = false; $buttons[0] = $button; $button = new ToolbarButtonRecord(); $button->label = "Edit Group"; $button->icon = "images/edit.gif"; $button->action = "SetElementValue('".NEXT_PAGE_ID."', 'editgroup.php');"; $button->disabled = !empty( $selectedGroup ) ? false : true; $buttons[1] = $button; $button = new ToolbarButtonRecord(); $button->label = "Delete Group"; $button->icon = "images/delete.gif"; $button->action = "SetElementValueWithConfirmation( '".DELETE_SELECTION_ID."', 'Are you sure you want to delete the selected group?')"; $button->disabled = !empty( $selectedGroup ) ? false : true; $buttons[2] = $button; DisplayToolbar( $buttons, $formName ); ?>
$val ) { if ( $key == $selectedGroup ) $checkedStr = " checked "; else $checkedStr = ""; CreateListOfUserHyperlinksForTable( $val->users, $numUsers, $usersStr ); CreateListOfRoleHyperlinksForTable( $groupRolesTable[$key], $roleStr, false, $key ); ?>
  Group Name Description Members Assigned these Roles
description; ?> onClick="SetElementValue( '', '');" > description; ?>