]> wagnertech.de Git - mfinanz.git/commitdiff
Merge branch 'master' of ssh://lx-office.linet-services.de/~/lx-office-erp
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 16 Aug 2010 07:54:41 +0000 (09:54 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 16 Aug 2010 07:54:41 +0000 (09:54 +0200)
16 files changed:
SL/DBUtils.pm
SL/Form.pm
bin/mozilla/kopf.pl
bin/mozilla/menu.pl
css/Mobile.css
css/lx-office-erp.css
image/icons/24x24/Productivity.png [new file with mode: 0644]
image/icons/24x24/Warehouse.png [new file with mode: 0644]
locale/de/all
locale/en/all
menu.ini
templates/webpages/generic/error.html
templates/webpages/generic/information.html
templates/webpages/login/company_logo.html
templates/webpages/login/login_screen.html
xslt/xulmenu.xsl

index e041e10014160119a421b1b20c2871b960e4a248..e0a362f4edf3c21b3e4f92635132aa2a1e0b043d 100644 (file)
@@ -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);
 
index cab29d426e999fc530e7d6e0ea524bffafb8d657..707540ed7928358ef2fc072e280ddc3de8c667f0 100644 (file)
@@ -466,13 +466,19 @@ sub info {
 
     if (!$self->{header}) {
       $self->header;
-      print qq|
-      <body>|;
+      print qq|<body>|;
     }
 
     print qq|
-
-    <p><b>$msg</b>
+    <p class="message_ok"><b>$msg</b></p>
+    
+    <script type="text/javascript">
+    <!--
+    setTimeout("parent.frames.main_window.location.href='login.pl?action=company_logo'",1000);
+    //-->
+    </script>
+    
+</body>
     |;
 
   } else {
index 8f12b61919ecbcf2ac1c7c2d383c7f06e15dae75..eef8b77d0919e73b3ae044a632a9b2bd2fae700c 100644 (file)
@@ -115,8 +115,9 @@ print qq|
   <tr>
     <td  style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;">
       &nbsp;[<a href="JavaScript:top.main_window.print();" title="| . $locale->text('Hardcopy') . qq|">| . $locale->text('Print') . qq|</a>]
-      &nbsp;[<a HREF="login.pl" target="_blank" "title="| . $locale->text('Open a further Lx-Office Window or Tab') . qq|">| . $locale->text('New Win/Tab') . qq|</a>]
+      &nbsp;[<a HREF="login.pl" target="_blank" title="| . $locale->text('Open a further Lx-Office Window or Tab') . qq|">| . $locale->text('New Win/Tab') . qq|</a>]
       &nbsp;[<a href="Javascript:top.main_window.history.back();" title="| . $locale->text('Go one step back') . qq|">| . $locale->text('Back') . qq|</a>]
+      &nbsp;[<a href="Javascript:top.main_window.history.forward();" title="| . $locale->text('Go one step forward') . qq|">| . $locale->text('Fwd') . qq|</a>]
       <!-- is there a better solution for Back? Possibly with the callback variable? -->
     </td>
     <td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>|
index 4a46026fe6cccb4923d62bc8437f190c2dae2dc3..5ca98cf534fca2c5cf23c6c5a3242cbe2d68a93f 100644 (file)
@@ -218,7 +218,7 @@ sub section_menu {
       } else {
         my $ml_ = $form->escape($ml);
         print
-          qq|<tr><td class="bg" height="22" align="left" valign="middle" ><img src="image/$item.png" style="vertical-align:middle">&nbsp;<a href="menu.pl?action=acc_menu&level=$ml_" class="nohover">$label</a>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>\n|;
+          qq|<tr><td class="bg" height="22" align="left" valign="middle" ><a href="menu.pl?action=acc_menu&level=$ml_" class="nohover""><img src="image/icons/24x24/$item.png" border="0" style="vertical-align:middle" titel="Hallo Welt">&nbsp;$label</a>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>\n|;
         &section_menu($menu, $item);
 
         #print qq|<br>\n|;
index 01a4c00ac10ac7bd584bb1eafdf06c32297191e5..1550f01ca812c4bfc188d2a5576356b969558d32 100644 (file)
@@ -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; }
index 1a317d0946b563f328b1dff38bb170ec73c6db81..b64795057e0d7271cf945b00fa312f6af0cc2bbe 100644 (file)
@@ -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 (file)
index 0000000..bfa0b5f
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 (file)
index 0000000..d4ad386
Binary files /dev/null and b/image/icons/24x24/Warehouse.png differ
index 3e2652f853e46ac27525c5d410fb248214d0586f..a6ab8e9e2e6716c9e17862249a3fe7a3e351aeb1 100644 (file)
@@ -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 &uuml;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&uuml;r #1 bearbeiten',
+  'Edit Preferences for #1'     => 'Einstellungen f&uuml;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&auml;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&uuml;ck',
+  'Go one step forward'         => 'Einen Schritt vorw&auml;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&auml;fix f&uuml;r die neuen Lagerpl&auml;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&uuml;ssen f&uuml;r jeden Artikel die neue Einheit ausw&auml;hlen.',
   'You have to create at least one group, grant it access to Lx-Office\'s functions and assign users to it.' => 'Sie m&uuml;ssen mindestens eine Benutzergruppe anlegen, ihr Zugriff auf die verschiedenen Funktionsbereiche von Lx-Office gew&auml;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&uuml;ssen neue Buchungsgruppen f&uuml;r alle Kombinationen aus Inventar-, Erl&ouml;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.',
index a1bb4432f3e199a3f4ddab5c37c78446fafb0e79..c2f763fffab259ff1994e13286c737d1ddffdeb4 100644 (file)
@@ -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'                       => '',
index 8d1383bb911dba6474f3f268937b769e2c031e7d..2edc346c57d2c9c3a4cccd83386e92e85034d381 100644 (file)
--- 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
index 628208522f547469ca0c88cb70e5b78abc1ff8c0..7d4ef89f80485bef6ae29e2bc1b5a7aeab36d6f0 100644 (file)
@@ -1,7 +1,7 @@
 [%- USE T8 %]
 [% USE HTML %]<body>
 
- <div class="listtop">[% IF title_error %][% title_error %][% ELSE %][% 'Error!' | $T8 %][% END %]</div>
+ <div class="message_error">[% IF title_error %][% title_error %][% ELSE %][% 'Error!' | $T8 %][% END %]</div>
 
  <p>[% label_error %]</p>
 
index 29e41716909e405299cc9912a3485ba40919a702..a6f6bd7547c79973a7b0aaec66f71e52bc40ae20 100644 (file)
@@ -2,7 +2,7 @@
 [% USE HTML %]<body>
  <table width="100%">
   <tr>
-   <th class="listtop">[% IF title_information %][% title_information %][% ELSE %][% 'Information' | $T8 %][% END %]</th>
+   <th class="message_ok">[% IF title_information %][% title_information %][% ELSE %][% 'Information' | $T8 %][% END %]</th>
   </tr>
   <tr height="5"></tr>
 
index a306456055c1a603cf4a15bb71cbf2a7dc7bad27..173d76a915edcae99a643e7eaae0904190a37030 100644 (file)
@@ -1,7 +1,12 @@
 [%- USE T8 %]
 [% USE HTML %][% USE LxERP %]<body>
  [%- DEFAULT myconfig_dbhost = 'localhost' %]
-
+   <noscript>
+   [% INCLUDE 'generic/information.html'
+     title_information = LxERP.t8('Your browser does not currently support Javascript.'),
+     label_information = LxERP.t8('A lot of the usability of Lx-Office has been enhanced with javascript. Although it is currently possible to use every aspect of Lx-Office without javascript, we strongly recommend it. In a future version this may change and javascript may be necessary to access advanced features.'),
+   %]
+   </noscript>
  <center>
   <a class="nomobile" href="http://www.lx-office.org" target="_top"><img src="image/lx-office-erp.png" border="0"></a>
 
      <th colspan="2" align="center"><a href="http://lx-office.org" target="blank">http://lx-office.org</a></th>
     </tr>
    </table>
-
-   <noscript>
-   [% INCLUDE 'generic/information.html'
-     title_information = LxERP.t8('Your browser does not currently support Javascript.'),
-     label_information = LxERP.t8('A lot of the usability of Lx-Office has been enhanced with javascript. Although it is currently possible to use every aspect of Lx-Office without javascript, we strongly recommend it. In a future version this may change and javascript may be necessary to access advanced features.'),
-   %]
-   </noscript>
  </center>
 
  [%- todo_list %]
index 1c421fb969a3926332b83920fa880d9ba306f6a6..dd82fe55a97d7736c01d4b570786e101b49b2924 100644 (file)
@@ -33,7 +33,8 @@
           </table>
 
           <br>
-          <input type="submit" name="action" value="[% 'Login' | $T8 %]" tabindex="3">
+          <input type="hidden" name="action" value="login">
+          <input type="submit" value="[% 'Login' | $T8 %]" tabindex="3">
 
          </td>
         </tr>
index 0263d042e9fd314b9b693082ee0f6c899f3e3de2..3427c7b14af785e18a4524beaf0ca39ca48bf055 100644 (file)
@@ -260,7 +260,7 @@ https://developer.mozilla.org/en/XUL/Attribute/tooltiptext
 <xsl:template name="specialbuttons">
     <toolbarbutton image="image/icons/24x24/Batch Printing.png" oncommand="PrintW(event)" tooltiptext="Drucken"/>
     <toolbarbutton image="image/icons/24x24/Neues Fenster.png" tooltiptext="Neues Fenster" link="menuXML.pl?action=display" target="_top" oncommand="openLinkNewWindow(event)"/>
-    <toolbarbutton image="image/icons/24x24/Programm--Logout.png" link="{/*//item[@id='Programm--Logout']/@link}" target="_top" oncommand="openLink(event)" tooltiptext="Abmelden"/>
+    <toolbarbutton image="image/icons/24x24/Program--Logout.png" link="{/*//item[@id='Program--Logout']/@link}" target="_top" oncommand="openLink(event)" tooltiptext="Abmelden"/>
   <toolbarseparator/>
     <toolbarbutton image="image/icons/24x24/leftarrow_24.png" tooltiptext="Schritt zurück" oncommand="MyGoBack()"/>
     <toolbarbutton image="image/icons/24x24/rightarrow_24.png" tooltiptext="Schritt vor" oncommand="MyGoForward()"/>