X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=admin%2Fcompany_preferences.php;h=b75bba35441f6be5701358dabae5b6cc565a5eaf;hb=ac4ae9a8e2329bb8d56c06759246d02067e2fe09;hp=8f50a89281154008c5caa10431b07dddda6e27ad;hpb=be377198601dc01ba28d9f1c10ffdb961d5b7e2c;p=fa-stable.git
diff --git a/admin/company_preferences.php b/admin/company_preferences.php
index 8f50a892..b75bba35 100644
--- a/admin/company_preferences.php
+++ b/admin/company_preferences.php
@@ -24,9 +24,9 @@ if (isset($_POST['submit']) && $_POST['submit'] != "")
display_error(_("The company name must be entered."));
set_focus('coy_name');
}
- $user_comp = user_company();
if (isset($_FILES['pic']) && $_FILES['pic']['name'] != '')
{
+ $user_comp = user_company();
$result = $_FILES['pic']['error'];
$filename = $comp_path . "/$user_comp/images";
if (!file_exists($filename))
@@ -82,7 +82,8 @@ if (isset($_POST['submit']) && $_POST['submit'] != "")
display_notification_centered(_("Company setup has been updated."));
}
-
+ set_focus('coy_name');
+ $Ajax->activate('_page_body');
} /* end of if submit */
//---------------------------------------------------------------------------------------------
@@ -135,7 +136,7 @@ text_row_ex(_("Telephone Number:"), 'phone', 25, 55);
text_row_ex(_("Facsimile Number:"), 'fax', 25);
text_row_ex(_("Email Address:"), 'email', 25, 55);
label_row(_("Company Logo:"), $_POST['coy_logo']);
-label_row(_("New")." "._("Company Logo (.jpg)") . ":", "");
+label_row(_("New Company Logo (.jpg)") . ":", "");
text_row_ex(_("Domicile:"), 'domicile', 25, 55);
@@ -168,7 +169,7 @@ end_row();
end_table(1);
hidden('coy_logo', $_POST['coy_logo']);
-submit_center('submit', _("Update"));
+submit_center('submit', _("Update"), true, '', true);
end_form(2);
//-------------------------------------------------------------------------------------------------