{
update_item_location($selected_id, $_POST['location_name'], $_POST['delivery_address'],
- $_POST['phone'], $_POST['fax'], $_POST['email'], $_POST['contact']);
+ $_POST['phone'], $_POST['phone2'], $_POST['fax'], $_POST['email'], $_POST['contact']);
display_notification(_('Selected location has been updated'));
}
else
/*selected_id is null cos no item selected on first time round so must be adding a record must be submitting new entries in the new Location form */
add_item_location($_POST['loc_code'], $_POST['location_name'], $_POST['delivery_address'],
- $_POST['phone'], $_POST['fax'], $_POST['email'], $_POST['contact']);
+ $_POST['phone'], $_POST['phone2'], $_POST['fax'], $_POST['email'], $_POST['contact']);
display_notification(_('New location has been added'));
}
start_form();
start_table($table_style);
-$th = array(_("Location Code"), _("Location Name"), _("Address"), _("Phone"), "", "");
+$th = array(_("Location Code"), _("Location Name"), _("Address"), _("Phone"), _("Secondary Phone"), "", "");
inactive_control_column($th);
table_header($th);
$k = 0; //row colour counter
label_cell($myrow["location_name"]);
label_cell($myrow["delivery_address"]);
label_cell($myrow["phone"]);
+ label_cell($myrow["phone2"]);
inactive_control_cell($myrow["loc_code"], $myrow["inactive"], 'locations', 'loc_code');
edit_button_cell("Edit".$myrow["loc_code"], _("Edit"));
delete_button_cell("Delete".$myrow["loc_code"], _("Delete"));
$_POST['delivery_address'] = $myrow["delivery_address"];
$_POST['contact'] = $myrow["contact"];
$_POST['phone'] = $myrow["phone"];
+ $_POST['phone2'] = $myrow["phone2"];
$_POST['fax'] = $myrow["fax"];
$_POST['email'] = $myrow["email"];
}
textarea_row(_("Address:"), 'delivery_address', null, 35, 5);
-text_row_ex(_("Telephone No:"), 'phone', 30, 30);
-text_row_ex(_("Facsimile No:"), 'fax', 30, 30);
+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);
end_table(1);