& /Admin/Elements/Header, Title => 'Admin users' &>
<& /Admin/Elements/Tabs, current_tab => 'Admin/Users/' &>
<& /Elements/TitleBoxStart, title => 'Select a user' &>
<& /Elements/TitleBoxEnd &>
<%INIT>
my ($user, $caption);
my $users = new RT::Users($session{'CurrentUser'});
if ($FindDisabledUsers) {
$users->{'find_disabled_rows'} = 1;
}
unless (defined $UserString) {
$users->LimitToPrivileged();
$caption = "Privileged users";
}
else {
$caption = "Users matching search criteria";
if ($UserString) {
$users->Limit( FIELD => $UserField,
OPERATOR => $UserOp,
VALUE => $UserString);
}
}
%INIT>
<%ARGS>
$UserString => undef
$UserOp => '='
$UserField => 'Name'
$IdLike => undef
$EmailLike => undef
$FindDisabledUsers => 0
%ARGS>