X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Fpassword_reset.php;h=e9af83f7f8f8239b817ec684df1e1ba0d8abcfd4;hb=48589f9ce6c51bb25e2fa8ed83c57d9dfa485e44;hp=4ed58a2f571fdc8b0f62833a3980748d0520096f;hpb=0b63d898491b6577a5a5bf90e771dca0dcbbcf1f;p=fa-stable.git diff --git a/access/password_reset.php b/access/password_reset.php index 4ed58a2f..e9af83f7 100644 --- a/access/password_reset.php +++ b/access/password_reset.php @@ -17,7 +17,7 @@ $js = ""; add_js_file('login.js'); @@ -28,7 +28,7 @@ function defaultCompany() $login_timeout = $_SESSION["wa_current_user"]->last_act; - $title = $app_title." ".$version." - "._("Password reset"); + $title = $SysPrefs->app_title." ".$version." - "._("Password reset"); $encoding = isset($_SESSION['language']->encoding) ? $_SESSION['language']->encoding : "iso-8859-1"; $rtl = isset($_SESSION['language']->dir) ? $_SESSION['language']->dir : "ltr"; $onload = !$login_timeout ? "onload='defaultCompany()'" : ""; @@ -36,7 +36,7 @@ function defaultCompany() echo "\n"; echo "\n"; echo "$title\n"; - echo "\n"; + echo "\n"; echo " \n"; echo " \n"; send_scripts(); @@ -53,35 +53,33 @@ function defaultCompany() start_table(false, "class='login'"); start_row(); echo ""; - echo "FrontAccounting"; + echo "FrontAccounting"; echo "\n"; end_row(); - echo "\n"; - table_section_title(_("Version")." $version Build $build_version - "._("Password reset")); + echo "\n"; + table_section_title(_("Version")." $version Build ".$SysPrefs->build_version." - "._("Password reset")); text_row(_("Email"), "email_entry_field", "", 20, 30); - if (isset($_SESSION['wa_current_user']->company)) - $coy = $_SESSION['wa_current_user']->company; - else - $coy = $def_coy; - if (!@$text_company_selection) { - echo ""._("Company")."\n"; - echo ""; - } 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 ""._("Company")."\n"; + echo ""; + } 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 "
\n"; + onclick='set_fullmode();'>\n"; end_form(1); $Ajax->addScript(true, "document.forms[0].password.focus();"); @@ -105,12 +103,11 @@ function defaultCompany() echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "

\n"; echo "\n"; -?>