Title(translate('User Calendar Principals')); break; case 2: $browser->Title(translate('Resource Calendar Principals')); break; case 3: $browser->Title(translate('Group Principals')); break; } } $browser->AddColumn( 'principal_id', translate('ID'), 'right', '##principal_link##' ); $browser->AddColumn( 'username', translate('Name') ); $rowurl = $c->base_url . '/admin.php?action=edit&t=principal&id='; $browser->AddHidden( 'principal_link', "'' || principal_id || ''" ); $browser->AddColumn( 'displayname', translate('Display Name') ); $browser->AddColumn( 'email', translate('EMail') ); $browser->AddColumn( 'member_of', translate('Is Member of'), '', '', 'is_member_of_list(principal_id)' ); if ( !isset($principal_type) || $principal_type == 3 ) { $browser->AddColumn( 'members', translate('Has Members'), '', '', 'has_members_list(principal_id)' ); } $browser->SetOrdering( 'username', 'A' ); $browser->SetJoins( "dav_principal " ); if ( isset($principal_active) && $principal_active == 'f' ) $browser->SetWhere( 'NOT user_active' ); else $browser->SetWhere( 'user_active' ); if ( isset($principal_type) ) { $browser->AndWhere( 'type_id = '.$principal_type ); } $c->page_title = $browser->Title(); if ( $c->enable_row_linking ) { $browser->RowFormat( '