From: Moritz Bunkus Date: Mon, 16 Aug 2010 07:54:41 +0000 (+0200) Subject: Merge branch 'master' of ssh://lx-office.linet-services.de/~/lx-office-erp X-Git-Tag: release-2.6.2beta1~181^2~2 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/cb3274d509066b4c39866e809a5b3e854c82226c?hp=d0b3cf0ba7627d7055a97a5be1356eb671264620 Merge branch 'master' of ssh://lx-office.linet-services.de/~/lx-office-erp --- diff --git a/SL/DBUtils.pm b/SL/DBUtils.pm index e041e1001..e0a362f4e 100644 --- a/SL/DBUtils.pm +++ b/SL/DBUtils.pm @@ -147,12 +147,11 @@ sub selectall_hashref_query { my ($form, $dbh, $query) = splice(@_, 0, 3); - my $sth = prepare_execute_query($form, $dbh, $query, @_); - my $result = []; - while (my $ref = $sth->fetchrow_hashref()) { - push(@{ $result }, $ref); - } - $sth->finish(); + dump_query(LXDebug->QUERY(), '', $query, @_); + + # this works back 'til at least DBI 1.46 on perl 5.8.4 on Debian Sarge (2004) + my $result = $dbh->selectall_arrayref($query, { Slice => {} }, @_) + or $form->dberror($query . (@_ ? " (" . join(", ", @_) . ")" : '')); $main::lxdebug->leave_sub(2); diff --git a/SL/Form.pm b/SL/Form.pm index cab29d426..707540ed7 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -466,13 +466,19 @@ sub info { if (!$self->{header}) { $self->header; - print qq| - |; + print qq||; } print qq| - -

$msg +

$msg

+ + + + |; } else { diff --git a/bin/mozilla/kopf.pl b/bin/mozilla/kopf.pl index 8f12b6191..eef8b77d0 100644 --- a/bin/mozilla/kopf.pl +++ b/bin/mozilla/kopf.pl @@ -115,8 +115,9 @@ print qq|  [| . $locale->text('Print') . qq|] -  [| . $locale->text('New Win/Tab') . qq|] +  [| . $locale->text('New Win/Tab') . qq|]  [| . $locale->text('Back') . qq|] +  [| . $locale->text('Fwd') . qq|] | diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index 4a46026fe..5ca98cf53 100644 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -218,7 +218,7 @@ sub section_menu { } else { my $ml_ = $form->escape($ml); print - qq| $label    \n|; + qq| $label    \n|; §ion_menu($menu, $item); #print qq|
\n|; diff --git a/css/Mobile.css b/css/Mobile.css index 01a4c00ac..1550f01ca 100644 --- a/css/Mobile.css +++ b/css/Mobile.css @@ -95,6 +95,29 @@ body.menu { border-width:1px; background:#D4D0C8; } + +.message_ok { + font-size: 10pt; + padding:3px; + background-color: lightgreen; + color: black; + font-weight: bolder; + text-align:center; + border-style:solid; + border-width:thin; +} + +.message_error { + font-size: 10pt; + padding:5px; + background-color: #FFAAAA; + color: white; + font-weight: bolder; + text-align:center; + border-style:solid; + border-width:thin; +} + /* Bei Listen den Farbwechsel zur besseren Lesbarkeit: */ .listrow1 { background-color: #C8D4C6; color: black; vertical-align: top; } .listrow0 { background-color: white; color: black; vertical-align: top; } diff --git a/css/lx-office-erp.css b/css/lx-office-erp.css index 1a317d094..b64795057 100644 --- a/css/lx-office-erp.css +++ b/css/lx-office-erp.css @@ -81,6 +81,27 @@ body.menu { color: black; } +.message_ok { + font-size: 12pt; + padding:5px; + background-color: lightgreen; + color: black; + font-weight: bolder; + text-align:center; + border-style:solid; + border-width:thin; +} + +.message_error { + font-size: 12pt; + padding:5px; + background-color: #FFAAAA; + color: black; + font-weight: bolder; + text-align:center; + border-style:solid; + border-width:thin; +} /* Überschriftsbalken diff --git a/image/icons/24x24/Productivity.png b/image/icons/24x24/Productivity.png new file mode 100644 index 000000000..bfa0b5f9d Binary files /dev/null and b/image/icons/24x24/Productivity.png differ diff --git a/image/icons/24x24/Warehouse.png b/image/icons/24x24/Warehouse.png new file mode 100644 index 000000000..d4ad3866a Binary files /dev/null and b/image/icons/24x24/Warehouse.png differ diff --git a/locale/de/all b/locale/de/all index 3e2652f85..a6ab8e9e2 100644 --- a/locale/de/all +++ b/locale/de/all @@ -337,7 +337,7 @@ $self->{texts} = { 'Cannot remove files!' => 'Dateien können nicht gelöscht werden!', 'Cannot save account!' => 'Konto kann nicht gespeichert werden!', 'Cannot save order!' => 'Auftrag kann nicht gespeichert werden!', - 'Cannot save preferences!' => 'Benutzereinstellungen können nicht gespeichert werden!', + 'Cannot save preferences!' => 'Einstellungen können nicht gespeichert werden!', 'Cannot save quotation!' => 'Angebot kann nicht gespeichert werden!', 'Cannot storno storno invoice!' => 'Kann eine Stornorechnung nicht stornieren', 'Carry over shipping address' => 'Lieferadresse übernehmen', @@ -630,7 +630,7 @@ $self->{texts} = { 'Edit Lead' => 'Kundenquelle bearbeiten', 'Edit Part' => 'Ware bearbeiten', 'Edit Payment Terms' => 'Zahlungskonditionen bearbeiten', - 'Edit Preferences for #1' => 'Benutzereinstellungen für #1 bearbeiten', + 'Edit Preferences for #1' => 'Einstellungen für #1 bearbeiten', 'Edit Price Factor' => 'Preisfaktor bearbeiten', 'Edit Pricegroup' => 'Preisgruppe bearbeiten', 'Edit Printer' => 'Drucker bearbeiten', @@ -723,7 +723,7 @@ $self->{texts} = { 'Factor' => 'Faktor', 'Factor missing!' => 'Der Faktor fehlt.', 'Falsches Datumsformat!' => 'Falsches Datumsformat!', - 'Favorites' => 'Favoriten', + 'Favorites' => 'Favoriten (nur im XUL-Menü)', 'Fax' => 'Fax', 'Feb' => 'Feb', 'February' => 'Februar', @@ -763,6 +763,7 @@ $self->{texts} = { 'From Date' => 'Von', 'Full Access' => 'Vollzugriff', 'Full access to all functions' => 'Vollzugriff auf alle Funktionen', + 'Fwd' => 'Vorwärts', 'GL Transaction' => 'Dialogbuchung', 'Gegenkonto' => 'Gegenkonto', 'Gender' => 'Geschlecht', @@ -774,6 +775,7 @@ $self->{texts} = { 'Generic Tax Report' => 'USTVA Bericht', 'Given Name' => 'Vorname', 'Go one step back' => 'Einen Schritt zurück', + 'Go one step forward' => 'Einen Schritt vorwärts', 'Greeting' => 'Anrede', 'Greetings' => 'Anreden', 'Group' => 'Warengruppe', @@ -1102,7 +1104,7 @@ $self->{texts} = { 'Oct' => 'Okt', 'October' => 'Oktober', 'Off' => 'Aus', - 'Old (on the side)' => 'Alt (seitlich)', + 'Old (on the side)' => 'Links (HTML)', 'On' => 'An', 'On Hand' => 'Auf Lager', 'On Order' => 'Ist bestellt', @@ -1128,7 +1130,7 @@ $self->{texts} = { 'Other users\' follow-ups' => 'Wiedervorlagen anderer Benutzer', 'Other values are ignored.' => 'Andere Eingaben werden ignoriert.', 'Others' => 'Andere', - 'Otherwise all users will only have access to their own settings.' => 'Andernfalls haben alle Benutzer nur Zugriff auf ihre Benutzereinstellungen.', + 'Otherwise all users will only have access to their own settings.' => 'Andernfalls haben alle Benutzer nur Zugriff auf ihre Einstellungen.', 'Otherwise the variable is only available for printing.' => 'Andernfalls steht die Variable nur beim Ausdruck zur Verfügung.', 'Out of balance transaction!' => 'Buchung ist nicht ausgeglichen!', 'Out of balance!' => 'Summen stimmen nicht berein!', @@ -1212,7 +1214,7 @@ $self->{texts} = { 'Post payments' => 'Zahlungen buchen', 'Postscript' => 'Postscript', 'Posustva_coa' => 'USTVA Kennz.', - 'Preferences' => 'Benutzereinstellungen', + 'Preferences' => 'Einstellungen', 'Preferences saved!' => 'Einstellungen gespeichert!', 'Prefix for the new bins\' names' => 'Namenspräfix für die neuen Lagerplätze', 'Preis' => 'Preis', @@ -1254,7 +1256,7 @@ $self->{texts} = { 'Productivity' => 'Produktivität', 'Profit Center' => 'Erfolgsbereich', 'Proforma Invoice' => 'Proformarechnung', - 'Program' => 'Programm', + 'Program' => 'Programm', 'Project' => 'Projekt', 'Project Number' => 'Projektnummer', 'Project Number missing!' => 'Projektnummer fehlt!', @@ -1421,7 +1423,7 @@ $self->{texts} = { 'Services' => 'Dienstleistungen', 'Set Language Values' => 'Spracheinstellungen', 'Set eMail text' => 'eMail Text eingeben', - 'Setup Menu' => 'Menüsetup', + 'Setup Menu' => 'Menü-Variante', 'Setup Templates' => 'Vorlagen auswählen', 'Ship to' => 'Lieferadresse', 'Ship via' => 'Transportmittel', @@ -1779,7 +1781,7 @@ $self->{texts} = { 'Use As Template' => 'Als Vorlage verwenden', 'Use Templates' => 'benutze Vorlagen', 'User' => 'Benutzer', - 'User Config' => 'Benutzereinstellungen', + 'User Config' => 'Einstellungen', 'User data migration' => 'Benutzerdatenmigration', 'User deleted!' => 'Benutzer gelöscht!', 'User migration complete' => 'Benutzermigration abgeschlossen', @@ -1875,7 +1877,7 @@ $self->{texts} = { 'You have to chose which unit to save for each of them.' => 'Sie müssen für jeden Artikel die neue Einheit auswählen.', 'You have to create at least one group, grant it access to Lx-Office\'s functions and assign users to it.' => 'Sie müssen mindestens eine Benutzergruppe anlegen, ihr Zugriff auf die verschiedenen Funktionsbereiche von Lx-Office gewähren und Benutzer dieser Gruppe zuordnen.', 'You have to create new Buchungsgruppen for all the combinations of inventory, income and expense accounts that have been used already.' => 'Sie müssen neue Buchungsgruppen für alle Kombinationen aus Inventar-, Erlös- und Aufwandskonto, die bereits benutzt wurden.', - 'You have to enter a company name in your user preferences (see the "Program" menu, "Preferences").' => 'Sie müssen einen Firmennamen in Ihren Benutzereinstellungen angeben (siehe "Programm"-Menü, "Benuztereinstellungen).', + 'You have to enter a company name in your user preferences (see the "Program" menu, "Preferences").' => 'Sie müssen einen Firmennamen in Ihren Einstellungen angeben (siehe "Programm"-Menü, "Benuztereinstellungen).', 'You have to fill in at least an account number, the bank code, the IBAN and the BIC.' => 'Sie müssen zumindest die Kontonummer, die Bankleitzahl, die IBAN und den BIC angeben.', 'You have to specify a department.' => 'Sie müssen eine Abteilung wählen.', 'You have to specify an execution date for each antry.' => 'Sie müssen für jeden zu buchenden Eintrag ein Ausführungsdatum angeben.', diff --git a/locale/en/all b/locale/en/all index a1bb4432f..c2f763fff 100644 --- a/locale/en/all +++ b/locale/en/all @@ -6,7 +6,6 @@ # run locales.pl from this directory to rebuild the translation files $self->{texts} = { - 'login' => 'anmeldung', ' Date missing!' => '', ' Part Number missing!' => '', ' missing!' => '', @@ -761,6 +760,7 @@ $self->{texts} = { 'From Date' => '', 'Full Access' => '', 'Full access to all functions' => '', + 'Fwd' => 'Forward', 'GL Transaction' => '', 'Gegenkonto' => '', 'Gender' => '', @@ -772,6 +772,7 @@ $self->{texts} = { 'Generic Tax Report' => '', 'Given Name' => '', 'Go one step back' => '', + 'Go one step forward' => '', 'Greeting' => '', 'Greetings' => '', 'Group' => '', diff --git a/menu.ini b/menu.ini index 8d1383bb9..2edc346c5 100644 --- a/menu.ini +++ b/menu.ini @@ -816,6 +816,10 @@ action=login module=am.pl action=config +[Program--Administration area] +module=admin.pl +action=login + [Program--Version] module=login.pl action=company_logo diff --git a/templates/webpages/generic/error.html b/templates/webpages/generic/error.html index 628208522..7d4ef89f8 100644 --- a/templates/webpages/generic/error.html +++ b/templates/webpages/generic/error.html @@ -1,7 +1,7 @@ [%- USE T8 %] [% USE HTML %] -
[% IF title_error %][% title_error %][% ELSE %][% 'Error!' | $T8 %][% END %]
+
[% IF title_error %][% title_error %][% ELSE %][% 'Error!' | $T8 %][% END %]

[% label_error %]

diff --git a/templates/webpages/generic/information.html b/templates/webpages/generic/information.html index 29e417169..a6f6bd754 100644 --- a/templates/webpages/generic/information.html +++ b/templates/webpages/generic/information.html @@ -2,7 +2,7 @@ [% USE HTML %] - + diff --git a/templates/webpages/login/company_logo.html b/templates/webpages/login/company_logo.html index a30645605..173d76a91 100644 --- a/templates/webpages/login/company_logo.html +++ b/templates/webpages/login/company_logo.html @@ -1,7 +1,12 @@ [%- USE T8 %] [% USE HTML %][% USE LxERP %] [%- DEFAULT myconfig_dbhost = 'localhost' %] - +
@@ -39,13 +44,6 @@
[% IF title_information %][% title_information %][% ELSE %][% 'Information' | $T8 %][% END %][% IF title_information %][% title_information %][% ELSE %][% 'Information' | $T8 %][% END %]
http://lx-office.org
- - [%- todo_list %] diff --git a/templates/webpages/login/login_screen.html b/templates/webpages/login/login_screen.html index 1c421fb96..dd82fe55a 100644 --- a/templates/webpages/login/login_screen.html +++ b/templates/webpages/login/login_screen.html @@ -33,7 +33,8 @@
- + + diff --git a/xslt/xulmenu.xsl b/xslt/xulmenu.xsl index 0263d042e..3427c7b14 100644 --- a/xslt/xulmenu.xsl +++ b/xslt/xulmenu.xsl @@ -260,7 +260,7 @@ https://developer.mozilla.org/en/XUL/Attribute/tooltiptext - +