Incorrect Journal Balance (sales invoice) when many decimals in tax and price.
[fa-stable.git] / access / password_reset.php
index a20a2180c30b9bc59c5f87a6d584b13ea615171b..e9af83f7f8f8239b817ec684df1e1ba0d8abcfd4 100644 (file)
@@ -36,7 +36,7 @@ function defaultCompany()
        echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
        echo "<html dir='$rtl' >\n";
        echo "<head profile=\"http://www.w3.org/2005/10/profile\"><title>$title</title>\n";
-       echo "<meta http-equiv='Content-type' content='text/html; charset=$encoding' />\n";
+       echo "<meta http-equiv='Content-type' content='text/html; charset=$encoding' >\n";
        echo "<link href='$path_to_root/themes/$def_theme/default.css' rel='stylesheet' type='text/css'> \n";
        echo "<link href='$path_to_root/themes/default/images/favicon.ico' rel='icon' type='image/x-icon'> \n";
        send_scripts();
@@ -53,34 +53,33 @@ function defaultCompany()
        start_table(false, "class='login'");
        start_row();
        echo "<td align='center' colspan=2>";
-  echo "<a target='_blank' href='".$SysPrefs->power_url."'><img src='$path_to_root/themes/$def_theme/images/logo_frontaccounting.png' alt='FrontAccounting' height='50' onload='fixPNG(this)' border='0' /></a>";
+       echo "<a target='_blank' href='".$SysPrefs->power_url."'><img src='$path_to_root/themes/$def_theme/images/logo_frontaccounting.png' alt='FrontAccounting' height='50' onload='fixPNG(this)' border='0' ></a>";
        echo "</td>\n";
        end_row();
 
-       echo "<input type='hidden' id=ui_mode name='ui_mode' value='".fallback_mode()."' />\n";
+       echo "<input type='hidden' id=ui_mode name='ui_mode' value='".fallback_mode()."' >\n";
        table_section_title(_("Version")." $version   Build ".$SysPrefs->build_version." - "._("Password reset"));
 
        text_row(_("Email"), "email_entry_field", "", 20, 30);
 
-  $coy =  user_company();
-  if (!isset($coy))
-    $coy = $def_coy;
-  if (!@$SysPrefs->text_company_selection) {
-    echo "<tr><td>"._("Company")."</td><td><select name='company_login_name'>\n";
-    for ($i = 0; $i < count($db_connections); $i++)
-      echo "<option value=$i ".($i==$coy ? 'selected':'') .">" . $db_connections[$i]["name"] . "</option>";
-    echo "</select>\n";
-    echo "</td></tr>";
-  } else {
-//                     $coy = $def_coy;
-    text_row(_("Company"), "company_login_nickname", "", 20, 50);
-  }
-  start_row();
-  label_cell("Please enter your e-mail", "colspan=2 align='center' id='log_msg'");
-  end_row();
+    $coy =  user_company();
+    if (!isset($coy))
+        $coy = $def_coy;
+    if (!@$SysPrefs->text_company_selection) {
+        echo "<tr><td>"._("Company")."</td><td><select name='company_login_name'>\n";
+        for ($i = 0; $i < count($db_connections); $i++)
+            echo "<option value=$i ".($i==$coy ? 'selected':'') .">" . $db_connections[$i]["name"] . "</option>";
+        echo "</select>\n";
+        echo "</td></tr>";
+    } else {
+        text_row(_("Company"), "company_login_nickname", "", 20, 50);
+    }
+    start_row();
+    label_cell("Please enter your e-mail", "colspan=2 align='center' id='log_msg'");
+    end_row();
        end_table(1);
        echo "<center><input type='submit' value='&nbsp;&nbsp;"._("Send password -->")."&nbsp;&nbsp;' name='SubmitReset'
-                onclick='set_fullmode();' /></center>\n";
+                onclick='set_fullmode();'></center>\n";
 
        end_form(1);
        $Ajax->addScript(true, "document.forms[0].password.focus();");