Revision ccc290ef
Von Thomas Kasulke vor mehr als 17 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
276 | 276 |
"old_id" => \@old_project_ids }, |
277 | 277 |
"taxzones" => "ALL_TAXZONES", |
278 | 278 |
"employees" => "ALL_SALESMEN", |
279 |
"currencies" => "ALL_CURRENCIES"); |
|
279 |
"currencies" => "ALL_CURRENCIES", |
|
280 |
"vendors" => "ALL_VENDORS"); |
|
280 | 281 |
|
281 | 282 |
my %labels; |
282 | 283 |
my @values = (undef); |
... | ... | |
318 | 319 |
</td> |
319 | 320 |
</tr>|; |
320 | 321 |
|
321 |
|
|
322 | 322 |
%labels = (); |
323 | 323 |
@values = (); |
324 | 324 |
my $i = 0; |
... | ... | |
335 | 335 |
</td> |
336 | 336 |
</tr>|; |
337 | 337 |
|
338 |
%labels = (); |
|
339 |
@values = (); |
|
340 |
my $i = 0; |
|
341 |
foreach my $item (@{ $form->{"ALL_VENDORS"} }) { |
|
342 |
push(@values, $item->{name}.qq|--|.$item->{"id"}); |
|
343 |
$labels{$item->{"id"}} = $item->{"name"}.qq|--|.$item->{"id"}; |
|
344 |
} |
|
345 |
my $vendors = qq| |
|
346 |
<th align="right">| . $locale->text('Vendor') . qq|</th> |
|
347 |
<td>| . |
|
348 |
NTI($cgi->popup_menu('-name' => 'vendor', '-default' => $form->{"vendor"}, |
|
349 |
'-onChange' => 'document.getElementById(\'update_button\').click();', |
|
350 |
'-values' => \@values, '-labels' => \%labels)) . qq| |
|
351 |
</td>|; |
|
352 |
|
|
338 | 353 |
%labels = (); |
339 | 354 |
@values = (); |
340 | 355 |
foreach my $item (@{ $form->{"ALL_TAXZONES"} }) { |
... | ... | |
363 | 378 |
</tr>|; |
364 | 379 |
} |
365 | 380 |
|
366 |
$vendor = |
|
367 |
($form->{selectvendor}) |
|
368 |
? qq|<select name="vendor" |
|
369 |
onchange="document.getElementById('update_button').click();">| . |
|
370 |
qq|$form->{selectvendor}</select>\n<input type="hidden" name="selectvendor" value="| . |
|
371 |
Q($form->{selectvendor}) . qq|">| |
|
372 |
: qq|<input name="vendor" value="$form->{vendor}" size="35">|; |
|
373 |
|
|
374 | 381 |
$department = qq| |
375 | 382 |
<tr> |
376 | 383 |
<th align="right" nowrap>| . $locale->text('Department') . qq|</th> |
... | ... | |
459 | 466 |
<td> |
460 | 467 |
<table> |
461 | 468 |
<tr> |
462 |
<th align=right nowrap>| . $locale->text('Vendor') . qq|</th> |
|
463 |
<td colspan=3>$vendor</td> |
|
464 |
|
|
469 |
$vendors |
|
465 | 470 |
<th align=richt nowrap>| |
466 | 471 |
. $locale->text('Contact Person') . qq|</th> |
467 | 472 |
<td colspan=3>$contact</td> |
468 | 473 |
|
469 |
<input type=hidden name=vendor_id value=$form->{vendor_id}> |
|
470 |
<input type=hidden name=oldvendor value="$form->{oldvendor}"> |
|
474 |
<input type="hidden" name="vendor_id" value="$form->{vendor_id}"> |
|
475 |
<input type="hidden" name="oldvendor" value="$form->{oldvendor}"> |
|
476 |
<input type="hidden" name="selectvendor" value= "1"> |
|
471 | 477 |
</tr> |
472 | 478 |
<tr> |
473 | 479 |
<td></td> |
Auch abrufbar als: Unified diff
Lieferantenauswahlmenu angepasst, so dass nicht immer die komplette Auswahlliste mitgeschleppt werden muss.