X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Flocations.php;h=d102acf84cab999c8fb79d7308449e7d9e883611;hb=0d191c7bff92b9a9bbc44dab48855477edb99ebf;hp=1deb1f2064df5f9db3d34fe516273bfd5fc9a8a8;hpb=cc9972b02f2bf4ece12da3431266e85e96872fb1;p=fa-stable.git diff --git a/inventory/manage/locations.php b/inventory/manage/locations.php index 1deb1f20..d102acf8 100644 --- a/inventory/manage/locations.php +++ b/inventory/manage/locations.php @@ -33,7 +33,7 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') //first off validate inputs sensible $_POST['loc_code'] = strtoupper($_POST['loc_code']); - if (strlen(db_escape($_POST['loc_code'])) > 7) //check length after conversion + if ((strlen(db_escape($_POST['loc_code'])) > 7) || empty($_POST['loc_code'])) //check length after conversion { $input_error = 1; display_error( _("The location code must be five characters or less long (including converted special chars).")); @@ -142,7 +142,7 @@ if ($Mode == 'RESET') $result = get_item_locations(check_value('show_inactive')); start_form(); -start_table($table_style); +start_table(TABLESTYLE); $th = array(_("Location Code"), _("Location Name"), _("Address"), _("Phone"), _("Secondary Phone"), "", ""); inactive_control_column($th); table_header($th); @@ -168,7 +168,7 @@ end_table(); echo '
'; -start_table($table_style2); +start_table(TABLESTYLE2); $_POST['email'] = ""; if ($selected_id != -1) @@ -199,12 +199,12 @@ else text_row_ex(_("Location Name:"), 'location_name', 50, 50); text_row_ex(_("Contact for deliveries:"), 'contact', 30, 30); -textarea_row(_("Address:"), 'delivery_address', null, 35, 5); +textarea_row(_("Address:"), 'delivery_address', null, 34, 5); text_row_ex(_("Telephone No:"), 'phone', 32, 30); text_row_ex(_("Secondary Phone Number:"), 'phone2', 32, 30); text_row_ex(_("Facsimile No:"), 'fax', 32, 30); -email_row_ex(_("E-mail:"), 'email', 30); +email_row_ex(_("E-mail:"), 'email', 50); end_table(1); submit_add_or_update_center($selected_id == -1, '', 'both'); @@ -213,4 +213,3 @@ end_form(); end_page(); -?>