mirror of
https://github.com/webmin/webmin.git
synced 2026-02-14 10:52:08 +00:00
@@ -718,8 +718,8 @@ sub ui_textbox
|
||||
return &theme_ui_textbox(@_) if (defined(&theme_ui_textbox));
|
||||
my ($name, $value, $size, $dis, $max, $tags) = @_;
|
||||
$size = &ui_max_text_width($size);
|
||||
return "<input class='ui_textbox' type='text' name=\""."e_escape($name)."\" ".
|
||||
"value=\""."e_escape($value)."\" ".
|
||||
return "<input class='ui_textbox' type='text' name=\"".&html_escape($name)."\" ".
|
||||
"value=\"".&html_escape($value)."\" ".
|
||||
"size=$size".($dis ? " disabled=true" : "").
|
||||
($max ? " maxlength=$max" : "").
|
||||
($tags ? " ".$tags : "").">";
|
||||
|
||||
@@ -1703,7 +1703,7 @@ my ($w, $h) = (400, 300);
|
||||
if ($gconfig{'db_sizefile'}) {
|
||||
($w, $h) = split(/x/, $gconfig{'db_sizefile'});
|
||||
}
|
||||
return "<input type=button onClick='ifield = form.$_[0]; chooser = window.open(\"$gconfig{'webprefix'}/chooser.cgi?add=$add&type=$_[1]&chroot=$chroot&file=\"+escape(ifield.value), \"chooser\", \"toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=$w,height=$h\"); chooser.ifield = ifield; window.ifield = ifield' value=\"...\">\n";
|
||||
return "<input type=button onClick='ifield = form.$_[0]; chooser = window.open(\"$gconfig{'webprefix'}/chooser.cgi?add=$add&type=$_[1]&chroot=$chroot&file=\"+encodeURIComponent(ifield.value), \"chooser\", \"toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=$w,height=$h\"); chooser.ifield = ifield; window.ifield = ifield' value=\"...\">\n";
|
||||
}
|
||||
|
||||
=head2 popup_window_button(url, width, height, scrollbars?, &field-mappings)
|
||||
|
||||
Reference in New Issue
Block a user