From 0925bc9f366038b578167a1837098ebe837012c1 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 19 Jun 2007 15:42:26 +0000 Subject: [PATCH] =?utf8?q?Filtermaske=20f=C3=BCr=20Kunden-=20und=20Liferan?= =?utf8?q?tenstammdatenliste=20auf=20HTML-Templates=20umgestellt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ct.pl | 142 +---------------------- locale/de/all | 2 - locale/de/ct | 9 -- templates/webpages/ct/search_de.html | 142 +++++++++++++++++++++++ templates/webpages/ct/search_master.html | 142 +++++++++++++++++++++++ 5 files changed, 289 insertions(+), 148 deletions(-) create mode 100644 templates/webpages/ct/search_de.html create mode 100644 templates/webpages/ct/search_master.html diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index d0510e890..e3b516bd1 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -71,149 +71,17 @@ sub add { sub search { $lxdebug->enter_sub(); - my $vc_business_type = $form->{db} eq "customer" ? - $locale->text("Customer type") : $locale->text("Vendor type"); + $form->{IS_CUSTOMER} = $form->{db} eq 'customer'; $form->get_lists("business_types" => "ALL_BUSINESS_TYPES"); - my (%labels, @values); - - my $business_types; - if (scalar(@{ $form->{ALL_BUSINESS_TYPES} }) != 0) { - push(@values, undef); - foreach my $item (@{ $form->{ALL_BUSINESS_TYPES} }) { - push(@values, $item->{id}); - $labels{$item->{id}} = $item->{description}; - } + $form->{SHOW_BUSINESS_TYPES} = scalar @{ $form->{ALL_BUSINESS_TYPES} } > 0; - $business_types = - qq| - ${vc_business_type} - | - . NTI($cgi->popup_menu('-name' => 'business_id', '-values' => \@values, - '-labels' => \%labels)) - . qq| - -|; - } - - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label . "s"); + $form->{title} = $form->{IS_CUSTOMER} ? $locale->text('Customers') : $locale->text('Vendors'); $form->{fokus} = 'Form.name'; - $form->header; - - print qq| - - -
{script} name="Form"> - -{db}> - - - - - - - - - - - - -
$form->{title}
- - - - - - - - - - - - - - - - - - $business_types - - - - - - - - - - - - -
| . $locale->text($label . ' Number') . qq|{db}number size=35>
| . $locale->text('Company Name') . qq|
| . $locale->text('Contact') . qq|
| . $locale->text('E-mail') . qq|
 | - . $locale->text('All') . qq| -  | - . $locale->text('Orphaned') . qq|
 | - . $locale->text('All') . qq| -  | - . $locale->text('Obsolete') . qq| -  | - . $locale->text('Not obsolete') . qq|
| . $locale->text('Include in Report') . qq| - - - - - - - - - - - - - - - - - - - - - - - -
| - . $locale->text('ID') . qq| | - . $locale->text($label . ' Number') . qq| | - . $locale->text('Company Name') . qq| | - . $locale->text('Address') . qq|
| - . $locale->text('Contact') . qq| | - . $locale->text('Phone') . qq| | - . $locale->text('Fax') . qq| | - . $locale->text('E-mail') . qq|
| - . $locale->text('Tax Number') . qq| | - . $locale->text('SIC') . qq| | - . $vc_business_type . qq|
| - . $locale->text('Invoices') . qq| | - . $locale->text('Orders') . qq| | - . $locale->text('Quotations') . qq|
-
-

- - + $form->header(); + print $form->parse_html_template2('ct/search'); -{login}> -{password}> - -
- -
- - - -|; $lxdebug->leave_sub(); } diff --git a/locale/de/all b/locale/de/all index 8841566c0..54f2df47c 100644 --- a/locale/de/all +++ b/locale/de/all @@ -789,7 +789,6 @@ aktualisieren wollen?', 'Order Number missing!' => 'Auftragsnummer fehlt!', 'Order deleted!' => 'Auftrag gelöscht!', 'Ordered' => 'Vom Kunde bestellt', - 'Orders' => 'Aufträge', 'Orientation' => 'Seitenformat', 'Orphaned' => 'Nie benutzt', 'Out of balance transaction!' => 'Buchung ist nicht ausgeglichen!', @@ -1335,7 +1334,6 @@ aktualisieren wollen?', 'request_quotation' => 'Angebotsanforderung', 'reset' => 'zurücksetzen', 'rfq_list' => 'anfragenliste', - 's' => 's', 'sales_order' => 'Kundenauftrag', 'sales_order_list' => 'auftragsliste', 'sales_quotation' => 'Verkaufsangebot', diff --git a/locale/de/ct b/locale/de/ct index 121e5ab3d..8876c83ea 100644 --- a/locale/de/ct +++ b/locale/de/ct @@ -24,7 +24,6 @@ $self->{texts} = { 'Company Name' => 'Firmenname', 'Confirmation' => 'Auftragsbestätigung', 'Contact' => 'Kontakt', - 'Continue' => 'Weiter', 'Could not spawn html2ps or GhostScript.' => 'html2ps oder GhostScript konnte nicht gestartet werden.', 'Could not spawn the printer command.' => 'Die Druckanwendung konnte nicht gestartet werden.', 'Could not write the html2ps config file.' => 'Die temporäre html2ps-Konfigurationsdatei konnte nicht geschrieben werden.', @@ -36,7 +35,6 @@ $self->{texts} = { 'Customer deleted!' => 'Kunde gelöscht!', 'Customer details' => 'Kundendetails', 'Customer saved!' => 'Kunde gespeichert!', - 'Customer type' => 'Kundentyp', 'Customers' => 'Kunden', 'DELETED' => 'Gelöscht', 'DUNNING STARTED' => 'Mahnprozess gestartet', @@ -59,10 +57,8 @@ $self->{texts} = { 'History' => 'Historie', 'Homepage' => 'Homepage', 'ID' => 'Buchungsnummer', - 'Include in Report' => 'In Bericht aufnehmen', 'Invdate' => 'Rechnungsdatum', 'Invoice' => 'Rechnung', - 'Invoices' => 'Rechnungen', 'KNr. beim Kunden' => 'KNr. beim Kunden', 'Kundennummer' => 'Kundennummer', 'Language' => 'Sprache', @@ -85,12 +81,10 @@ $self->{texts} = { 'No part was found matching the search parameters.' => 'Es wurde kein Artikel gefunden, auf den die Suchparameter zutreffen.', 'No project was found matching the search parameters.' => 'Es wurde kein Projekt gefunden, auf das die Suchparameter zutreffen.', 'No vendor has been selected yet.' => 'Es wurde noch kein Lieferant ausgewählt.', - 'Not obsolete' => 'Gültig', 'Notes' => 'Bemerkungen', 'Number' => 'Nummer', 'Obsolete' => 'Ungültig', 'Order' => 'Auftrag', - 'Orders' => 'Aufträge', 'Orphaned' => 'Nie benutzt', 'PAYMENT POSTED' => 'Rechung gebucht', 'PDF export -- options' => 'PDF-Export -- Optionen', @@ -116,7 +110,6 @@ $self->{texts} = { 'Purchase Order' => 'Lieferantenauftrag', 'Qty' => 'Menge', 'Quotation' => 'Angebot', - 'Quotations' => 'Angebote', 'RFQ' => 'Anfrage', 'Request for Quotation' => 'Anfrage', 'SAVED' => 'Gespeichert', @@ -163,7 +156,6 @@ $self->{texts} = { 'Vendor deleted!' => 'Lieferant gelöscht!', 'Vendor details' => 'Lieferantendetails', 'Vendor saved!' => 'Lieferant gespeichert!', - 'Vendor type' => 'Lieferantentyp', 'Vendors' => 'Lieferanten', 'Zipcode' => 'PLZ', 'bin_list' => 'Lagerliste', @@ -179,7 +171,6 @@ $self->{texts} = { 'report_generator_dispatch_to is not defined.' => 'report_generator_dispatch_to ist nicht definiert.', 'report_generator_nextsub is not defined.' => 'report_generator_nextsub ist nicht definiert.', 'request_quotation' => 'Angebotsanforderung', - 's' => 's', 'sales_order' => 'Kundenauftrag', 'sales_quotation' => 'Verkaufsangebot', 'vendor_list' => 'lieferantenliste', diff --git a/templates/webpages/ct/search_de.html b/templates/webpages/ct/search_de.html new file mode 100644 index 000000000..512778e13 --- /dev/null +++ b/templates/webpages/ct/search_de.html @@ -0,0 +1,142 @@ +[% USE HTML %] + +
+ + + +
[% title %]
+ + + + + + + + + + + + + + + + + + + + + + + [% IF SHOW_BUSINESS_TYPES %] + + + + + [% END %] + + + + + + + + + + + + + + + +
[% IF IS_CUSTOMER %]Kundennummer[% ELSE %]Lieferantennummer[% END %]
Firmenname
Kontakt
eMail
[% IF IS_CUSTOMER %]Kundentyp[% ELSE %]Lieferantentyp[% END %] + +
+ Alle + Nie benutzt +
Alle + Ungültig + Gültig +
In Bericht aufnehmen + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+
+ + + + + + + +
+ + + diff --git a/templates/webpages/ct/search_master.html b/templates/webpages/ct/search_master.html new file mode 100644 index 000000000..6c4a0ffce --- /dev/null +++ b/templates/webpages/ct/search_master.html @@ -0,0 +1,142 @@ +[% USE HTML %] + +
+ + + +
[% title %]
+ + + + + + + + + + + + + + + + + + + + + + + [% IF SHOW_BUSINESS_TYPES %] + + + + + [% END %] + + + + + + + + + + + + + + + +
[% IF IS_CUSTOMER %]Customer Number[% ELSE %]Vendor Number[% END %]
Company Name
Contact
E-mail
[% IF IS_CUSTOMER %]Customer type[% ELSE %]Vendor type[% END %] + +
+ All + Orphaned +
All + Obsolete + Not obsolete +
Include in Report + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+
+ + + + + + + +
+ + + -- 2.20.1