mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
New UI conversion
This commit is contained in:
@@ -13,49 +13,29 @@ require './samba-lib.pl';
|
||||
|
||||
&get_share("global");
|
||||
|
||||
print "<form action=save_print.cgi>\n";
|
||||
print "<table border width=100%>\n";
|
||||
print "<tr $tb> <td><b>$text{'print_title'}</b></td> </tr>\n";
|
||||
print "<tr $cb> <td><table width=100%>\n";
|
||||
print &ui_form_start("save_print.cgi", "post");
|
||||
print &ui_table_start($text{'print_title'}, undef, 2);
|
||||
|
||||
print "<tr> <td><b>$text{'print_style'}</b></td>\n";
|
||||
print "<td><select name=printing>\n";
|
||||
printf "<option value=\"\" %s> $text{'default'}\n",
|
||||
&getval("printing") eq "" ? "selected" : "";
|
||||
foreach $s ("bsd", "sysv", "hpux", "aix", "qnx", "plp", "cups", "lprng",
|
||||
"softq") {
|
||||
printf "<option value=$s %s> %s\n",
|
||||
&getval("printing") eq $s ? "selected" : "", uc($s);
|
||||
}
|
||||
print "</select></td>\n";
|
||||
print &ui_table_row($text{'print_style'},
|
||||
&ui_select("printing", &getval("printing"),
|
||||
[ [ "", $text{'default'} ],
|
||||
"bsd", "sysv", "hpux", "aix", "qnx", "plp", "cups",
|
||||
"lprng", "softq" ], 1, 0, 1));
|
||||
|
||||
print "<td><b>$text{'print_show'}</b></td>\n";
|
||||
printf "<td><input type=radio name=load_printers value=yes %s> $text{'yes'}\n",
|
||||
&istrue("load printers") ? "checked" : "";
|
||||
printf "<input type=radio name=load_printers value=no %s> $text{'no'}</td></tr>\n",
|
||||
&istrue("load printers") ? "" : "checked";
|
||||
print &ui_table_row($text{'print_show'},
|
||||
&yesno_input("load printers"));
|
||||
|
||||
print "<tr> <td><b>$text{'print_printcap'}</b></td>\n";
|
||||
print "<td colspan=3>\n";
|
||||
printf "<input type=radio name=printcap_name_def value=1 %s> $text{'default'}\n",
|
||||
&getval("printcap name") eq "" ? "checked" : "";
|
||||
printf " <input type=radio name=printcap_name_def value=0 %s>\n",
|
||||
&getval("printcap name") eq "" ? "" : "checked";
|
||||
printf "<input name=printcap_name size=25 value=\"%s\">\n",
|
||||
&getval("printcap name");
|
||||
print &file_chooser_button("printcap_name", 0);
|
||||
print "</td> </tr>\n";
|
||||
print &ui_table_row($text{'print_printcap'},
|
||||
&ui_opt_textbox("printcap_name", &getval("printcap name"), 40,
|
||||
$text{'default'})." ".
|
||||
&file_chooser_button("printcap_name", 0));
|
||||
|
||||
print "<tr> <td><b>$text{'print_cachetime'}</b></td>\n";
|
||||
print "<td colspan=3>\n";
|
||||
printf "<input type=radio name=lpq_cache_time_def value=1 %s> $text{'default'}\n",
|
||||
&getval("lpq cache time") == 0 ? "checked" : "";
|
||||
printf " <input type=radio name=lpq_cache_time_def value=0 %s>\n",
|
||||
&getval("lpq cache time") == 0 ? "" : "checked";
|
||||
printf "<input name=lpq_cache_time size=5 value=\"%s\"> $text{'config_secs'}</td> </tr>\n",
|
||||
&getval("lpq cache time");
|
||||
$ct = &getval("lpq cache time");
|
||||
print &ui_table_row($text{'print_cachetime'},
|
||||
&ui_opt_textbox("lpq_cache_time", $ct == 0 ? undef : $ct, 5,
|
||||
$text{'default'})." ".$text{'config_secs'});
|
||||
|
||||
print "</table></td></tr></table><p>\n";
|
||||
print "<input type=submit value=$text{'save'}></form>\n";
|
||||
print &ui_table_end();
|
||||
print &ui_form_end([ [ undef, $text{'save'} ] ]);
|
||||
|
||||
&ui_print_footer("", $text{'index_sharelist'});
|
||||
|
||||
Reference in New Issue
Block a user