3 # Search the group file, and display a list of results
5 require './user-lib.pl';
7 @glist = &list_groups();
10 for($i=0; $i<@glist; $i++) {
12 $f = lc($g->{$in{'field'}});
13 if ($m == 0 && $f eq $w ||
14 $m == 1 && eval { $f =~ /$w/i } ||
15 $m == 4 && index($f, $w) >= 0 ||
16 $m == 2 && $f ne $w ||
17 $m == 3 && eval { $f !~ /$w/i } ||
18 $m == 5 && index($f, $w) < 0 ||
25 &redirect("edit_group.cgi?group=".$match[0]->{'group'});
28 &ui_print_header(undef, $text{'search_title'}, "");
30 print "<b>$text{'search_gnotfound'}</b>. <p>\n";
33 print "<b>",&text('search_gfound', scalar(@match)),"</b><br>\n";
34 @match = &sort_groups(\@match, $config{'sort_mode'});
35 &groups_table(\@match);
37 &ui_print_footer("", $text{'index_return'});