Beim Anlegen einer Einheit bei allen Einheiten nachsehen, ob es eine Einheit mit...
[kivitendo-erp.git] / bin / mozilla / login.pl
index e6dd8e7..770df5c 100644 (file)
@@ -84,14 +84,15 @@ sub login_screen {
   <tr>
     <td class=login align=center><a href="http://www.lx-office.org" target=_top><img src="image/lx-office-erp.png" border=0></a>
 <h1 class=login align=center>|
-    . $locale->text('Version')
-    . qq| $form->{version}
+    . $locale->text('Version') . qq| $form->{version}
 </h1>
 
 <p>
 
 <form method=post name=loginscreen action=$form->{script}>
 
+  <input type="hidden" name="show_dbupdate_warning" value="1">
+
       <table width=100%>
        <tr>
          <td align=center>
@@ -99,7 +100,7 @@ sub login_screen {
              <tr>
                <th align=right>| . $locale->text('Login Name') . qq|</th>
                <td><input class=login name=login size=30 tabindex="1"></td>
-             </tr> 
+             </tr>
              <tr>
                <th align=right>| . $locale->text('Password') . qq|</th>
                <td><input class=login type=password name=password size=30 tabindex="2"></td>
@@ -108,7 +109,7 @@ sub login_screen {
            </table>
 
            <br>
-           <input type=submit name=action value="| . $locale->text('Login') . qq|">
+           <input type=submit name=action value="| . $locale->text('Login') . qq|" tabindex="3">
 
          </td>
        </tr>
@@ -119,7 +120,7 @@ sub login_screen {
     </td>
   </tr>
 </table>
-  
+
 </body>
 </html>
 |;
@@ -141,11 +142,6 @@ sub login {
     $err[1] = $err[3] = $locale->text('Incorrect username or password!');
 
     if ($errno == 2) {
-
-      # upgraded dataset, login again
-      $form->redirect(
-        "<a href=menu.pl?login=$form->{login}&password=$form->{password}&path=$form->{path}&action=display>Continue</a>"
-      );
       exit;
     }
 
@@ -153,8 +149,13 @@ sub login {
   }
 
   # made it this far, execute the menu
-  $form->{callback} =
-    "menu.pl?login=$form->{login}&password=$form->{password}&path=$form->{path}&action=display";
+  if ($user->{menustyle} eq "neu") {
+    $form->{callback} =
+      "menunew.pl?login=$form->{login}&password=$form->{password}&path=$form->{path}&action=display";
+  } else {
+    $form->{callback} =
+      "menu.pl?login=$form->{login}&password=$form->{password}&path=$form->{path}&action=display";
+  }
 
   $form->redirect;
 
@@ -238,4 +239,3 @@ $myconfig{company}
 
   $lxdebug->leave_sub();
 }
-