Revision ad5f1dc8
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
501 | 501 |
|
502 | 502 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", |
503 | 503 |
"all" => 1 }, |
504 |
"$form->{vc}s" => "ALL_VC", |
|
505 | 504 |
"business_types" => "ALL_BUSINESS_TYPES"); |
506 | 505 |
$form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]); |
507 | 506 |
$form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; |
508 |
$form->{SHOW_VC_DROP_DOWN} = $myconfig{vclimit} > scalar @{ $form->{ALL_VC} }; |
|
509 | 507 |
$form->{title} = $locale->text('Delivery Orders'); |
510 | 508 |
|
511 | 509 |
$form->header(); |
templates/webpages/do/search.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE L %] |
3 |
[%- USE HTML %][%- USE LxERP %] |
|
3 |
[%- USE HTML %][%- USE LxERP %][%- USE P -%]
|
|
4 | 4 |
<h1>[% title %]</h1> |
5 | 5 |
|
6 | 6 |
[%- IF vc == 'customer' %] |
... | ... | |
23 | 23 |
<table> |
24 | 24 |
<tr> |
25 | 25 |
<th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th> |
26 |
<td colspan="3"> |
|
27 |
[%- UNLESS SHOW_VC_DROP_DOWN %] |
|
28 |
<input type="text" name="[% HTML.escape(vc) %]" class="fixed_width initial_focus"> |
|
29 |
[%- ELSE %] |
|
30 |
<select name="[% vc %]" class="fixed_width initial_focus"> |
|
31 |
<option></option> |
|
32 |
[%- FOREACH row = ALL_VC %] |
|
33 |
<option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option> |
|
34 |
[%- END %] |
|
35 |
</select> |
|
36 |
<input type="hidden" name="select[% vc %]" value="1"> |
|
37 |
[%- END %] |
|
38 |
</td> |
|
26 |
<td colspan="3">[% P.input_tag(vc, "", class="fixed_width initial_focus") %]</td> |
|
39 | 27 |
</tr> |
40 | 28 |
|
41 | 29 |
<tr> |
Auch abrufbar als: Unified diff
Lieferscheinsuche: Kunden-/Lieferanten nicht mehr als Drop-Down