From: Stephan Köhler Date: Thu, 24 Nov 2005 15:00:39 +0000 (+0000) Subject: Merge von 550-553,567,603 aus unstable: Neue Menu X-Git-Tag: release-2.2.0~113 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e848dbf1f17a606e22afb161cb3fb7bd88895f92;p=kivitendo-erp.git Merge von 550-553,567,603 aus unstable: Neue Menu --- diff --git a/SL/Menu.pm b/SL/Menu.pm index b10fc67b4..0bdf945e4 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -67,8 +67,10 @@ sub menuitem { } my $level = $form->escape($item); - my $str = + + my $str = qq|{path}&action=$action&level=$level&login=$form->{login}&password=$form->{password}|; + my @vars = qw(module action target href); if ($self->{$item}{href}) { @@ -97,6 +99,44 @@ sub menuitem { return $str; } +sub menuitemNew { + my ($self, $myconfig, $form, $item) = @_; + + my $module = $form->{script}; + my $action = "section_menu"; + + #if ($self->{$item}{module}) { + $module = $self->{$item}{module}; + + #} + if ($self->{$item}{action}) { + $action = $self->{$item}{action}; + } + + my $level = $form->escape($item); + my $str = + qq|$module?path=$form->{path}&action=$action&level=$level&login=$form->{login}&password=$form->{password}|; + my @vars = qw(module action target href); + + if ($self->{$item}{href}) { + $str = qq|$self->{$item}{href}|; + @vars = qw(module target href); + } + + map { delete $self->{$item}{$_} } @vars; + + # add other params + foreach my $key (keys %{ $self->{$item} }) { + $str .= "&" . $form->escape($key, 1) . "="; + ($value, $conf) = split /=/, $self->{$item}{$key}, 2; + $value = $myconfig->{$value} . "/$conf" if ($conf); + $str .= $form->escape($value, 1); + } + + $str .= " "; + +} + sub access_control { $main::lxdebug->enter_sub(); diff --git a/SL/User.pm b/SL/User.pm index a034e033f..9fa0035c6 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -841,7 +841,7 @@ sub config_vars { currency dateformat dbconnect dbdriver dbhost dbport dboptions dbname dbuser dbpasswd email fax name numberformat password printer role sid signature stylesheet tel templates vclimit angebote bestellungen rechnungen - anfragen lieferantenbestellungen einkaufsrechnungen steuernummer ustid duns); + anfragen lieferantenbestellungen einkaufsrechnungen steuernummer ustid duns menustyle); $main::lxdebug->leave_sub(); diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index c1fbb7c6c..0829934c2 100644 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -120,8 +120,7 @@ sub adminlogin { | . $locale->text('Password') . qq| + . $locale->text('Login') . qq|"> @@ -344,7 +343,9 @@ $nologin | . $locale->text('Click on login name to edit!') . qq|
| - . $locale->text('To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.') + . $locale->text( + 'To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.' + ) . qq|

@@ -367,8 +368,7 @@ $nologin | . $locale->text('Password') . qq| + . $locale->text('Login') . qq|"> {path}> @@ -420,7 +420,8 @@ sub form_header { %countrycodes = User->country_codes; $countrycodes = ""; foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} } - keys %countrycodes) { + keys %countrycodes + ) { $countrycodes .= ($myconfig->{countrycode} eq $key) ? "

| - . $locale->text('This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!') + . $locale->text( + 'This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!' + ) . qq|
$msg{$form->{dbdriver}} @@ -1468,8 +1482,7 @@ sub create_dataset { | - . $locale->text('Create Chart of Accounts') - . qq| + . $locale->text('Create Chart of Accounts') . qq| @charts diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index ced3b0814..d75766a3f 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -282,27 +282,21 @@ sub account_header { + . $locale->text('Expense') . qq| + . $locale->text('Account') . qq|
 | - . $locale->text('Asset') - . qq|\n
+ . $locale->text('Asset') . qq|\n
 | - . $locale->text('Liability') - . qq|\n
+ . $locale->text('Liability') . qq|\n
 | - . $locale->text('Equity') - . qq|\n
+ . $locale->text('Equity') . qq|\n
 | - . $locale->text('Revenue') - . qq|\n
+ . $locale->text('Revenue') . qq|\n
 | - . $locale->text('Expense') - . qq|
   | . $locale->text('Heading') . qq|
 | - . $locale->text('Account') - . qq|
@@ -316,8 +310,7 @@ sub account_header { + . $locale->text('Is this a summary account to record') . qq| @@ -1419,8 +1404,7 @@ sub sic_header { + . $locale->text('Heading') . qq| @@ -1605,7 +1589,8 @@ sub config { %countrycodes = User->country_codes; $countrycodes = ''; foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} } - keys %countrycodes) { + keys %countrycodes + ) { $countrycodes .= ($myconfig{countrycode} eq $key) ? " + + + + @@ -1731,8 +1724,7 @@ sub config { + . $locale->text('Last Numbers & Default Accounts') . qq|
| - . $locale->text('Is this a summary account to record') - . qq| {AR}> | . $locale->text('AR') @@ -345,41 +338,33 @@ sub account_header {
{AR_amount}> | - . $locale->text('Revenue') - . qq|\n
+ . $locale->text('Revenue') . qq|\n
{AR_paid}> | - . $locale->text('Receipt') - . qq|\n
+ . $locale->text('Receipt') . qq|\n
{AR_tax}> | . $locale->text('Tax') . qq|
{AP_amount}> | - . $locale->text('Expense/Asset') - . qq|\n
+ . $locale->text('Expense/Asset') . qq|\n
{AP_paid}> | - . $locale->text('Payment') - . qq|\n
+ . $locale->text('Payment') . qq|\n
{AP_tax}> | . $locale->text('Tax') . qq|
{IC_sale}> | - . $locale->text('Revenue') - . qq|\n
+ . $locale->text('Revenue') . qq|\n
{IC_cogs}> | - . $locale->text('COGS') - . qq|\n
+ . $locale->text('COGS') . qq|\n
{IC_taxpart}> | . $locale->text('Tax') . qq|
{IC_income}> | - . $locale->text('Revenue') - . qq|\n
+ . $locale->text('Revenue') . qq|\n
{IC_expense}> | - . $locale->text('Expense') - . qq|\n
+ . $locale->text('Expense') . qq|\n
{IC_taxservice}> | . $locale->text('Tax') . qq|
| - . $locale->text('Heading') - . qq|
| . $locale->text('Description') . qq|| . $locale->text('Stylesheet') . qq|
| . $locale->text('Setup Menu') . qq| New +  Old
 
| - . $locale->text('Last Numbers & Default Accounts') - . qq|
@@ -1759,7 +1751,9 @@ sub config {
| - . $locale->text('Enter up to 3 letters separated by a colon (i.e CAD:USD:EUR) for your native and foreign currencies') + . $locale->text( + 'Enter up to 3 letters separated by a colon (i.e CAD:USD:EUR) for your native and foreign currencies' + ) . qq|
@@ -1772,38 +1766,31 @@ sub config { | . $locale->text('Last Invoice Number') . qq| {defaults}{invnumber}> | - . $locale->text('Last Customer Number') - . qq| + . $locale->text('Last Customer Number') . qq| {defaults}{customernumber}> | - . $locale->text('Last Sales Order Number') - . qq| + . $locale->text('Last Sales Order Number') . qq| {defaults}{sonumber}> | - . $locale->text('Last Vendor Number') - . qq| + . $locale->text('Last Vendor Number') . qq| {defaults}{vendornumber}> | - . $locale->text('Last Purchase Order Number') - . qq| + . $locale->text('Last Purchase Order Number') . qq| {defaults}{ponumber}> | - . $locale->text('Last Article Number') - . qq| + . $locale->text('Last Article Number') . qq| {defaults}{articlenumber}> | - . $locale->text('Last Sales Quotation Number') - . qq| + . $locale->text('Last Sales Quotation Number') . qq| {defaults}{sqnumber}> | - . $locale->text('Last Service Number') - . qq| + . $locale->text('Last Service Number') . qq| {defaults}{servicenumber}> @@ -1944,8 +1931,7 @@ sub audit_control { \n|; + print + qq|menu[$pm][$sm] = new Item('$label', '$uri', '$target', defLength, 0, 0);\n|; + $sm++; + } else { # Hauptmenu + my $ml_ = $form->escape($ml); + $mm++; + $pm++; + %mlz = ($ml, $pm, "s$ml", 1); + $sm = 1; + $breit = 15 + length($label) * 6; + print + qq|menu[0][$mm] = new Item(' $label', '#', '', $breit, 10, $pm); \n|; + print qq|menu[$pm] = new Array();\n|; + print + qq|menu[$pm][0] = new Menu(true, '>', 0, 22, 180, defOver, defBack, 'itemBorder', 'itemText');\n|; + + #print qq|\n|; + §ion_menu($menu, $item); + + #print qq|
\n|; + } + } + } +} diff --git a/locale/de/admin b/locale/de/admin index ffa694a5e..d3c5be1fc 100644 --- a/locale/de/admin +++ b/locale/de/admin @@ -39,7 +39,6 @@ $self{texts} = { 'Hostname missing!' => 'Computername fehlt!', 'Incorrect Password!' => 'Ungültiges Passwort!', 'Language' => 'Sprache', - 'Leave host and port field empty unless you want to make a remote connection.' => 'Für lokale Verbindungen "Rechner" und "Port" freilassen.', 'Lock System' => 'System sperren', 'Lockfile created!' => 'System gesperrt!', 'Lockfile removed!' => 'System entsperrt!', @@ -62,6 +61,7 @@ $self{texts} = { 'Port missing!' => 'Portangabe fehlt!', 'Printer' => 'Drucker', 'Save' => 'Speichern', + 'Setup Menu' => 'Setup Menu', 'Setup Templates' => 'Vorlagen auswählen', 'Signature' => 'Unterschrift', 'Steuernummer' => 'Steuernummer', @@ -70,8 +70,6 @@ $self{texts} = { 'Templates' => 'Vorlagen', 'The following Datasets are not in use and can be deleted' => 'Die folgenden Datenbanken sind nicht in Verwendung und können gelöscht werden', 'The following Datasets need to be updated' => 'Folgende Datenbanken müssen aktualisiert werden', - 'This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!' => 'In diesem Schritt werden bestehende Datenbanken gesucht. Es werden noch keine Änderungen vorgenommen!', - 'To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.' => 'Um einer Gruppe einen neuen Benutzer hinzuzufügen, ändern und speichern Sie am einfachsten einen bestehenden Zugriffsnamen. Unter dem neuen Namen wird dann ein Benutzer mit denselben Einstellungen angelegt.', 'Unlock System' => 'System entsperren', 'Update Dataset' => 'Datenbank aktualisieren', 'Use Templates' => 'benutze Vorlagen', @@ -81,7 +79,6 @@ $self{texts} = { 'Ust-IDNr' => 'USt-IdNr.', 'Version' => 'Version', 'WEBDAV-Zugriff' => 'WEBDAV-Zugriff', - 'You must enter a host and port for local and remote connections!' => '"Rechner" und "Port" müssen für lokale und externe Verbindungen eingetragen werden!', 'does not exist' => 'existiert nicht', 'is already a member!' => 'ist bereits ein Mitglied!', 'localhost' => 'lokaler Rechner', diff --git a/locale/de/all b/locale/de/all index f98de79a4..beb266a2e 100644 --- a/locale/de/all +++ b/locale/de/all @@ -427,7 +427,6 @@ $self{texts} = { 'Last Sales Quotation Number' => 'Letzte Angebotsnummer', 'Last Service Number' => 'Letzte Dienstleistungsnr.', 'Last Vendor Number' => 'Letzte Lieferantennummer', - 'Leave host and port field empty unless you want to make a remote connection.' => 'Für lokale Verbindungen "Rechner" und "Port" freilassen.', 'Liability' => 'Passiva', 'License' => 'Lizenz', 'License key' => 'Lizenzschlüssel', @@ -643,6 +642,7 @@ $self{texts} = { 'Service Items' => 'Dienstleistungen', 'Service Number missing!' => 'Dienstleistungsnummer fehlt!', 'Services' => 'Dienstleistungen', + 'Setup Menu' => '', 'Setup Templates' => 'Vorlagen auswählen', 'Ship' => 'Lagerausgang', 'Ship Merchandise' => 'Waren versenden', @@ -700,10 +700,8 @@ $self{texts} = { 'The following Datasets are not in use and can be deleted' => 'Die folgenden Datenbanken sind nicht in Verwendung und können gelöscht werden', 'The following Datasets need to be updated' => 'Folgende Datenbanken müssen aktualisiert werden', 'The licensing module has been deactivated in lx-erp.conf.' => 'Das Lizenzverwaltungsmodul wurde in lx-erp.conf deaktiviert.', - 'This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!' => 'In diesem Schritt werden bestehende Datenbanken gesucht. Es werden noch keine Änderungen vorgenommen!', 'Title' => 'Titel', 'To' => 'An', - 'To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.' => 'Um einer Gruppe einen neuen Benutzer hinzuzufügen, ändern und speichern Sie am einfachsten einen bestehenden Zugriffsnamen. Unter dem neuen Namen wird dann ein Benutzer mit denselben Einstellungen angelegt.', 'Top 100' => 'Top 100', 'Top 100 hinzufuegen' => 'Top 100 hinzufügen', 'Top Level' => 'Hauptartikelbezeichnung', @@ -771,7 +769,6 @@ $self{texts} = { 'Yes' => 'Ja', 'You are logged out!' => 'Auf Wiedersehen!', 'You did not enter a name!' => 'Sie haben keinen Namen eingegeben!', - 'You must enter a host and port for local and remote connections!' => '"Rechner" und "Port" müssen für lokale und externe Verbindungen eingetragen werden!', 'Zeitraum' => 'Zeitraum', 'Zipcode' => 'PLZ', 'accrual' => 'Bilanzierung (Soll-Versteuerung)', diff --git a/locale/de/am b/locale/de/am index 92e0ed5f8..5923fbaca 100644 --- a/locale/de/am +++ b/locale/de/am @@ -117,6 +117,7 @@ $self{texts} = { 'Salesman' => 'Vertreter', 'Save' => 'Speichern', 'Service Items' => 'Dienstleistungen', + 'Setup Menu' => 'Setup Menu', 'Signature' => 'Unterschrift', 'Standard Industrial Codes' => 'SIC', 'Steuersatz' => 'Steuersatz', diff --git a/locale/de/locales.pl b/locale/de/locales.pl index 9e132c99b..f5cd120b0 100755 --- a/locale/de/locales.pl +++ b/locale/de/locales.pl @@ -59,7 +59,13 @@ foreach $file (@progfiles) { &scanmenu("$basedir/$item"); } } - + + if ($file eq 'menunew.pl') { + foreach $item (@menufiles) { + &scanmenu("$basedir/$item"); + } + } + $file =~ s/\.pl//; eval { require 'missing'; }; diff --git a/locale/de/menunew b/locale/de/menunew new file mode 100644 index 000000000..45874d800 --- /dev/null +++ b/locale/de/menunew @@ -0,0 +1,99 @@ +$self{texts} = { + 'AP' => 'Einkauf', + 'AP Aging' => 'Offene Verbindlichkeiten', + 'AR' => 'Verkauf', + 'AR Aging' => 'Offene Forderungen', + 'Add AP Transaction' => 'Kreditorenbuchung', + 'Add AR Transaction' => 'Debitorenbuchung', + 'Add Account' => 'Konto erfassen', + 'Add Assembly' => 'Erzeugnis erfassen', + 'Add Business' => 'Kundentyp erfassen', + 'Add Customer' => 'Kunde erfassen', + 'Add Department' => 'Abteilung erfassen', + 'Add Group' => 'Warengruppe erfassen', + 'Add License' => 'Lizenz erfassen', + 'Add Part' => 'Ware erfassen', + 'Add Project' => 'Projekt erfassen', + 'Add Purchase Order' => 'Lieferantenauftrag erfassen', + 'Add Quotation' => 'Angebot erfassen', + 'Add RFQ' => 'Neue Preisanfrage', + 'Add SIC' => 'SIC erfassen', + 'Add Sales Invoice' => 'Rechnung erfassen', + 'Add Sales Order' => 'Auftrag erfassen', + 'Add Service' => 'Dienstleistung erfassen', + 'Add Transaction' => 'Dialogbuchen', + 'Add Vendor' => 'Lieferant erfassen', + 'Add Vendor Invoice' => 'Einkaufsrechnung erfassen', + 'Assemblies' => 'Erzeugnisse', + 'Audit Control' => 'Bücherkontrolle', + 'BWA' => 'BWA', + 'Backup' => 'Datensicherung', + 'Balance Sheet' => 'Bilanz', + 'Batch Printing' => 'Druck', + 'Cash' => 'Zahlungsverkehr', + 'Chart of Accounts' => 'Kontenübersicht', + 'Check' => 'Scheck', + 'Checks' => 'Schecks', + 'Customers' => 'Kunden', + 'DATEV - Export Assistent' => 'DATEV-Exportassistent', + 'Departments' => 'Abteilungen', + 'General Ledger' => 'Finanzbuchhaltung', + 'Groups' => 'Warengruppen', + 'HTML Templates' => 'HTML-Vorlagen', + 'Income Statement' => 'GuV', + 'Invoice' => 'Rechnung', + 'Invoices' => 'Rechnungen', + 'Journal' => 'Buchungsjournal', + 'LaTeX Templates' => 'LaTeX-Vorlagen', + 'Licenses' => 'Lizenzen', + 'List Accounts' => 'Kontenliste', + 'List Businesses' => 'Liste Kundentypen', + 'List Departments' => 'Abteilungsliste', + 'List SIC' => 'SIC anzeigen', + 'Logout' => 'Abmeldung', + 'Master Data' => 'Stammdaten', + 'Packing List' => 'Verpackungsliste', + 'Packing Lists' => 'Lieferschein', + 'Parts' => 'Waren', + 'Payment' => 'Zahlungsausgang', + 'Payments' => 'Zahlungsausgänge', + 'Preferences' => 'Benutzereinstellungen', + 'Programm' => 'Programm', + 'Projects' => 'Projekte', + 'Projecttransactions' => 'Projektbuchungen', + 'Purchase Order' => 'Lieferantenauftrag', + 'Purchase Orders' => 'Lieferantenaufträge', + 'Quotation' => 'Angebot', + 'Quotations' => 'Angebote', + 'RFQ' => 'Anfrage', + 'RFQs' => 'Anfragen', + 'Receipt' => 'Zahlungseingang', + 'Receipts' => 'Zahlungseingänge', + 'Reports' => 'Berichte', + 'SIC' => 'SIC', + 'Sales Invoices' => 'Kundenrechnung', + 'Sales Order' => 'Auftrag', + 'Sales Orders' => 'Aufträge', + 'Save to File' => 'auf Festplatte speichern', + 'Send by E-Mail' => 'Per eMail schicken', + 'Services' => 'Dienstleistungen', + 'Statement' => 'Sammelrechnung', + 'Stylesheet' => 'Stilvorlage', + 'System' => 'System', + 'Trial Balance' => 'Vergleichsbilanz', + 'Type of Business' => 'Kundentyp', + 'UStVa' => 'UStVa', + 'UStVa Einstellungen' => 'UStVa Einstellungen', + 'Vendor Invoices' => 'Einkaufsrechnungen', + 'Vendors' => 'Lieferanten', + 'Version' => 'Version', +}; + +$self{subs} = { + 'acc_menu' => 'acc_menu', + 'clock_line' => 'clock_line', + 'display' => 'display', + 'section_menu' => 'section_menu', +}; + +1; diff --git a/makesymlinks b/makesymlinks index 39ebcd6da..704618022 100755 --- a/makesymlinks +++ b/makesymlinks @@ -3,7 +3,7 @@ # Erstellt die benotigten Symlinks ln -vsf login.pl admin.pl -for i in ap ar bp ca cp ct gl ic ir is menu oe pe rc rp datev licenses fa ustva; do +for i in ap ar bp ca cp ct gl ic ir is menu oe pe rc rp datev licenses fa ustva menunew; do ln -vsf am.pl $i.pl done
| - . $locale->text('Enforce transaction reversal for all dates') - . qq| + . $locale->text('Enforce transaction reversal for all dates') . qq| | . $locale->text('Yes') . qq| | diff --git a/bin/mozilla/login.pl b/bin/mozilla/login.pl index cea155976..e88872113 100644 --- a/bin/mozilla/login.pl +++ b/bin/mozilla/login.pl @@ -84,8 +84,7 @@ sub login_screen {
$spacer|.$menu->menuitem(\%myconfig, \%$form, $item, $level).qq|$label
 $label