Id()] = $Group; } # This array is indexed by parent_id $children = array(); foreach ( $Groups as $id=>$Group ) { if ( ! isset( $children[$Group->ParentId()] ) ) $children[$Group->ParentId()] = array(); $children[$Group->ParentId()][] = $Group; if ( $max_depth < $Group->depth() ) $max_depth = $Group->depth(); } xhtmlHeaders(__FILE__, translate('Groups') ); ?>
'; $html .= str_repeat( '', $Group->depth() ); $html .= ' '; if ( isset( $children[$Group->Id()] ) ) { foreach ( $children[$Group->Id()] as $G ) { $html .= group_line( $G ); } } return $html; } if ( isset( $children[null] ) ) foreach ( $children[null] as $Group ) echo group_line( $Group ); ?>
 '; if ( canEdit('Groups') ) { $html .= ''. validHtmlStr($Group->Id() . ' ' . $Group->Name()).''; } else { $html .= validHtmlStr($Group->Name()); } $html .= ''. monitorIdsToNames( $Group->MonitorIds(), 30 ).'
/>