&ReadParse();
%glist = map { $_->{'group'}, $_ } &list_groups();
&error_setup($text{'gmass_err'});
-foreach $name (split(/\0/, $in{'d'})) {
+foreach $name (split(/\0/, $in{'gd'})) {
$group = $glist{$name};
if ($group) {
&can_edit_group(\%access, $group) ||
">";
}
+# ui_filebox(name, value, size, [disabled?], [maxlength], [tags], [dir-only])
+# Returns HTML for a text box for choosing a file
+sub ui_filebox
+{
+return &theme_ui_filebox(@_) if (defined(&theme_ui_filebox));
+local ($name, $value, $size, $dis, $max, $tags, $dironly) = @_;
+return &ui_textbox($name, $value, $size, $dis, $max, $tags)." ".
+ &file_chooser_button($name, $dironly);
+}
+
# ui_bytesbox(name, bytes, [size], [disabled?])
# Returns HTML for entering a number of bytes, but with friendly kB/MB/GB
# options. May truncate values to 2 decimal points!
foreach $o (@$opts) {
$o = [ $o ] if (!ref($o));
$rv .= "<option value=\""."e_escape($o->[0])."\"".
- ($sel{$o->[0]} ? " selected" : "").">".
+ ($sel{$o->[0]} ? " selected" : "")." ".$o->[2].">".
($o->[1] || $o->[0])."\n";
$opt{$o->[0]}++;
}