mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
ui-lib conversion
This commit is contained in:
@ -30,26 +30,27 @@ if (@match == 1) {
|
||||
else {
|
||||
&ui_print_header(undef, $text{'search_title'}, "");
|
||||
if (@match == 0) {
|
||||
print "<p><b>$text{'search_gnotfound'}</b>. <p>\n";
|
||||
print "<p><b>$text{'search_gnotfound'}</b><p>\n";
|
||||
}
|
||||
else {
|
||||
print "<table border width=100%>\n";
|
||||
print "<tr $tb> <td><b>$text{'gedit_group'}</b></td>\n";
|
||||
print "<td><b>$text{'gedit_gid'}</b></td>\n";
|
||||
print "<td><b>$text{'gedit_members'}</b></td>\n";
|
||||
print "<td><b>$text{'search_hosts'}</b></td> </tr>\n";
|
||||
print &ui_columns_start([ $text{'gedit_group'},
|
||||
$text{'gedit_gid'},
|
||||
$text{'gedit_members'},
|
||||
$text{'search_hosts'} ], 100);
|
||||
foreach $m (@match) {
|
||||
local $members = join(" ", split(/,/, $m->{'members'}));
|
||||
print "<tr $cb>\n";
|
||||
print "<td><a href=\"edit_group.cgi?group=$m->{'group'}\">$m->{'group'}</a></td>\n";
|
||||
print "<td>$m->{'gid'}</td>\n";
|
||||
print "<td>$members </td>\n";
|
||||
@h = @{$hosts{$m->{'group'}}};
|
||||
@h = @h[0 .. 10], ".." if (@h > 10);
|
||||
print "<td>",join(", ", @h),"</td>\n";
|
||||
print "</tr>\n";
|
||||
print &ui_columns_row([
|
||||
&ui_link("edit_group.cgi?group=".
|
||||
&urlize($m->{'group'}),
|
||||
&html_escape($m->{'group'})),
|
||||
$m->{'gid'},
|
||||
&html_escape($members),
|
||||
join(", ", @h),
|
||||
]);
|
||||
}
|
||||
print "</table><p>\n";
|
||||
print &ui_columns_end();
|
||||
}
|
||||
&ui_print_footer("", $text{'index_return'});
|
||||
}
|
||||
|
@ -31,28 +31,29 @@ if (@match == 1) {
|
||||
else {
|
||||
&ui_print_header(undef, $text{'search_title'}, "");
|
||||
if (@match == 0) {
|
||||
print "<p><b>$text{'search_notfound'}</b>. <p>\n";
|
||||
print "<p><b>$text{'search_notfound'}</b><p>\n";
|
||||
}
|
||||
else {
|
||||
print "<table border width=100%>\n";
|
||||
print "<tr $tb> <td><b>$text{'user'}</b></td>\n";
|
||||
print "<td><b>$text{'uid'}</b></td>\n";
|
||||
print "<td><b>$text{'real'}</b></td>\n";
|
||||
print "<td><b>$text{'home'}</b></td>\n";
|
||||
print "<td><b>$text{'search_hosts'}</b></td> </tr>\n";
|
||||
print &ui_columns_start([ $text{'user'},
|
||||
$text{'uid'},
|
||||
$text{'real'},
|
||||
$text{'home'},
|
||||
$text{'search_hosts'} ], 100);
|
||||
foreach $m (@match) {
|
||||
$m->{'real'} =~ s/,.*$// if ($uconfig{'extra_real'});
|
||||
print "<tr $cb>\n";
|
||||
print "<td><a href=\"edit_user.cgi?user=$m->{'user'}\">$m->{'user'}</a></td>\n";
|
||||
print "<td>$m->{'uid'}</td>\n";
|
||||
print "<td>$m->{'real'} </td>\n";
|
||||
print "<td>$m->{'home'}</td>\n";
|
||||
@h = @{$hosts{$m->{'user'}}};
|
||||
@h = @h[0 .. 10], ".." if (@h > 10);
|
||||
print "<td>",join(", ", @h),"</td>\n";
|
||||
print "</tr>\n";
|
||||
print &ui_columns_row([
|
||||
&ui_link("edit_user.cgi?user=".
|
||||
&urlize($m->{'user'}),
|
||||
&html_escape($m->{'user'})),
|
||||
$m->{'uid'},
|
||||
&html_escape($m->{'real'}),
|
||||
&html_escape($m->{'home'}),
|
||||
join(", ", @h),
|
||||
]);
|
||||
}
|
||||
print "</table><p>\n";
|
||||
print &ui_columns_end();
|
||||
}
|
||||
&ui_print_footer("", $text{'index_return'});
|
||||
}
|
||||
|
Reference in New Issue
Block a user