X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d7c969e461a051692c0e763c4b4a9c98c76065fd..47916a374217afc8d84bd147f0fada5086970bae:/bin/mozilla/ir.pl diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index e6f035d01..159dc45e8 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -286,9 +286,19 @@ sub form_header { $labels{$item->{"cp_id"}} = $item->{"cp_name"} . ($item->{"cp_abteilung"} ? " ($item->{cp_abteilung})" : ""); } - my $contact = - NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values, - '-labels' => \%labels, '-default' => $form->{"cp_id"})); + + my $contact; + if (scalar @values > 1) { + $contact = qq| + + | . $locale->text('Contact Person') . qq| + | . + NTI($cgi->popup_menu('-name' => 'cp_id', '-values' => \@values, + '-labels' => \%labels, '-default' => $form->{"cp_id"})) + . qq| + + |; + } %labels = (); @values = (""); @@ -309,8 +319,10 @@ sub form_header { $labels{$item} = $item; } - $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; - my $currencies = qq| + $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; + my $currencies; + if (scalar @values) { + $currencies = qq| | . $locale->text('Currency') . qq| | . @@ -318,7 +330,8 @@ sub form_header { '-values' => \@values, '-labels' => \%labels)) . qq| |; - + } + %labels = (); @values = (); my $i = 0; @@ -396,13 +409,13 @@ sub form_header { # with JavaScript Calendar $button1 = qq| - - + text('button') . qq|> |; $button2 = qq| - - + text('button') . qq|> |; @@ -454,40 +467,21 @@ sub form_header { | . ($form->{saved_message} ? qq|

$form->{saved_message}

| : "") . qq| +
$form->{title}
+ - - - - -
$form->{title}
- - -
+ - - $vendors - - - - - - - - - - + $vendors + + + + $contact + + + + @@ -523,13 +517,13 @@ sub form_header { - - + - - +
| - . $locale->text('Contact Person') . qq|$contact
- - - - - - - - -
| . $locale->text('Credit Limit') . qq|$form->{creditlimit}| . $locale->text('Remaining') . qq|$form->{creditremaining}
-
| . $locale->text('Credit Limit') . qq|$form->{creditlimit}; | . $locale->text('Remaining') . qq| $form->{creditremaining}
| . $locale->text('Record in') . qq|
| . $locale->text('Order Date') . qq| +
| . $locale->text('Quotation Date') . qq| +
| . $locale->text('Project Number') . qq|