Handle hostnames with upper-case letters
[webmin.git] / burner / edit_dev.cgi
1 #!/usr/local/bin/perl
2 # edit_dev.cgi
3 # Display burner device options
4
5 require './burner-lib.pl';
6 $access{'global'} || &error($text{'dev_ecannot'});
7 &ui_print_header(undef, $text{'dev_title'}, "");
8
9 print "<form action=save_dev.cgi>\n";
10 print "<table border>\n";
11 print "<tr $tb> <td><b>$text{'dev_header'}</b></td> </tr>\n";
12 print "<tr $cb> <td><table>\n";
13
14 print "<tr> <td><b>$text{'dev_device'}</b></td>\n";
15 print "<td><select name=dev>\n";
16 if (!$config{'dev'}) {
17         print "<option value='' checked>$text{'dev_none'}\n";
18         }
19 foreach $d (&list_cdrecord_devices()) {
20         printf "<option value=%s %s>%s (%s)\n",
21                 $d->{'dev'}, $d->{'dev'} eq $config{'dev'} ? 'selected' : '',
22                 $d->{'name'}, $d->{'type'};
23         }
24 print "</select></td> </tr>\n";
25
26 print "<tr> <td><b>$text{'dev_speed'}</b></td> <td>\n";
27 foreach $s (1, 2, 4, 8, 16, 32, 48, undef) {
28         printf "&nbsp;&nbsp;<input type=radio name=speed value=%s %s> %s\n",
29                 $s, $s eq $config{'speed'} ? 'checked' : '',
30                 $s ? $s.'x' : $text{'dev_other'};
31         $found++ if ($s eq $config{'speed'});
32         }
33 printf "<input name=other size=4 value='%s'></td> </tr>\n",
34         $found ? '' : $config{'speed'};
35
36 print "<tr> <td><b>$text{'dev_extra'}</b></td>\n";
37 printf "<td><input name=extra size=40 value='%s'></td> </tr>\n",
38         $config{'extra'};
39
40 print "</table></td></tr></table>\n";
41 print "<input type=submit value='$text{'save'}'></form>\n";
42
43 &ui_print_footer("", $text{'index_return'});
44