|
|
@ -148,14 +148,14 @@ class Confirm extends CI_Controller {
|
|
|
|
if ($key > 0) {
|
|
|
|
if ($key > 0) {
|
|
|
|
$contact_phone = '';
|
|
|
|
$contact_phone = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$MEI_SN = $this->Order_model->add_customer_info($occupation[$key],$gender[$key], $nationality[$key], $MEI_FirstName, $MEI_LastName, $passport[$key], $expiration_date_tmp, $birthday_tmp, $MEI_Memo, $MEI_Street, '', $contact_phone, 0, $COLI_SN, $visitor_link,$MEI_ArrivalFlightNo,$MEI_Arrival_datetime,$MEI_DepartureFlightNo,$MEI_Departure_datetime);
|
|
|
|
$MEI_SN = $this->Order_model->add_customer_info($occupation[$key],$gender[$key], $nationality[$key], $MEI_FirstName, $MEI_LastName, $passport[$key], $expiration_date_tmp, $birthday_tmp, $MEI_Memo, $MEI_Street, '', $contact_phone, 0, $COLI_SN, $visitor_link,$MEI_ArrivalFlightNo,$MEI_ArrivalTime,$MEI_DepartureFlightNo,$MEI_DepartureTime);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($MEI_SN && $this->input->post('emergency_person_name') != '') {
|
|
|
|
if ($MEI_SN && $this->input->post('emergency_person_name') != '') {
|
|
|
|
$add_emergency_res = $this->Order_model->add_customer_info(
|
|
|
|
$add_emergency_res = $this->Order_model->add_customer_info(
|
|
|
|
'', '', '', $this->input->post('emergency_person_name'), '', '', '', '', $this->input->post('emergency_relationship'), '', $this->input->post('emergency_email'), $this->input->post('emergency_telephone'), 1, $COLI_SN, $visitor_link
|
|
|
|
'', '', '', $this->input->post('emergency_person_name'), '', '', '', '', $this->input->post('emergency_relationship'), '', $this->input->post('emergency_email'), $this->input->post('emergency_telephone'), 1, $COLI_SN, $visitor_link
|
|
|
|
,$MEI_ArrivalFlightNo,$MEI_Arrival_datetime,$MEI_DepartureFlightNo,$MEI_Departure_datetime
|
|
|
|
,$MEI_ArrivalFlightNo,$MEI_ArrivalTime,$MEI_DepartureFlightNo,$MEI_DepartureTime
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|