Revision bd1ece25
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
1552 | 1552 |
# default language |
1553 | 1553 |
my $all_languages = SL::DB::Manager::Language->get_all; |
1554 | 1554 |
|
1555 |
# EÜR = cash, Bilanzierung = accrual
|
|
1555 |
# EÜR = cash, Bilanzierung = accrual |
|
1556 | 1556 |
|
1557 | 1557 |
foreach my $key (keys %{ $form->{IC} }) { |
1558 | 1558 |
foreach my $accno (sort keys %{ $form->{IC}->{$key} }) { |
... | ... | |
1660 | 1660 |
{ 'name' => $locale->text('Queue'), 'value' => 'queue', 'selected' => $selected{queue}, }, |
1661 | 1661 |
]; |
1662 | 1662 |
|
1663 |
$form->{PRINTERS} = []; |
|
1664 |
foreach my $printer (SL::Printer->all_printers(%::myconfig)) { |
|
1665 |
push @{ $form->{PRINTERS} }, { |
|
1666 |
'name' => $printer->{printer_description}, |
|
1667 |
'value' => $printer->{id}, |
|
1668 |
'selected' => $printer->{id} == $myconfig{default_printer_id}, |
|
1669 |
}; |
|
1670 |
} |
|
1663 |
$form->{PRINTERS} = [ SL::Printer->all_printers(%::myconfig) ]; |
|
1671 | 1664 |
|
1672 | 1665 |
my %countrycodes = User->country_codes; |
1673 | 1666 |
|
templates/webpages/am/config.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE LxERP %] |
3 |
[% USE HTML %]<body onLoad="fokus()"> |
|
3 |
[% USE HTML %][% USE L %]<body onLoad="fokus()">
|
|
4 | 4 |
|
5 | 5 |
<p> |
6 | 6 |
<div class="listtop">[% title %]</div> |
... | ... | |
200 | 200 |
<tr> |
201 | 201 |
<th align="right">[% 'Default printer' | $T8 %]</th> |
202 | 202 |
<td> |
203 |
<select name="default_printer_id"> |
|
204 |
[%- FOREACH row = PRINTERS %] |
|
205 |
<option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option> |
|
206 |
[%- END %] |
|
207 |
</select> |
|
203 |
[% L.select_tag('default_printer_id', L.options_for_select(PRINTERS, default => myconfig_default_printer_id, title => 'printer_description', with_empty => 1)) %] |
|
208 | 204 |
</td> |
209 | 205 |
</tr> |
210 | 206 |
|
Auch abrufbar als: Unified diff
Ermöglichen, keinen Drucker als Standarddrucker auszuwählen