3 # Display burner device options
5 require './burner-lib.pl';
6 $access{'global'} || &error($text{'dev_ecannot'});
7 &ui_print_header(undef, $text{'dev_title'}, "");
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";
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";
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'};
24 print "</select></td> </tr>\n";
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 " <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'});
33 printf "<input name=other size=4 value='%s'></td> </tr>\n",
34 $found ? '' : $config{'speed'};
36 print "<tr> <td><b>$text{'dev_extra'}</b></td>\n";
37 printf "<td><input name=extra size=40 value='%s'></td> </tr>\n",
40 print "</table></td></tr></table>\n";
41 print "<input type=submit value='$text{'save'}'></form>\n";
43 &ui_print_footer("", $text{'index_return'});