diff --git a/application/third_party/order/controllers/confirm.php b/application/third_party/order/controllers/confirm.php index 7f3e17b9..a6a9177c 100644 --- a/application/third_party/order/controllers/confirm.php +++ b/application/third_party/order/controllers/confirm.php @@ -89,10 +89,10 @@ class Confirm extends CI_Controller { $COLI_ID = $this->input->post('COLI_ID'); //航班信息 $MEI_ArrivalFlightNo = $this->input->post('MEI_ArrivalFlightNo'); - // HTML datetime-local 获取的值:2023-05-29T15:45,需要替换 T 为空格才能符合数据类型 - $MEI_ArrivalTime = str_replace("T", " ", $this->input->post('MEI_ArrivalTime')); $MEI_DepartureFlightNo = $this->input->post('MEI_DepartureFlightNo'); - $MEI_DepartureTime = str_replace("T", " ", $this->input->post('MEI_DepartureTime')); + // HTML datetime-local 获取的值:2023-05-29T15:45,需要替换 T 为空格才能符合数据类型 + $MEI_ArrivalTime = str_replace("T", " ", $this->input->post('MEI_ArrivalDate').' '.$this->input->post('MEI_ArrivalTime')); + $MEI_DepartureTime = str_replace("T", " ", $this->input->post('MEI_DepartureDate').' '.$this->input->post('MEI_DepartureTime')); //已经确认过 @@ -159,13 +159,14 @@ class Confirm extends CI_Controller { } } - //只有ch有review功能 function review() { - header('Content-type: application/json;charset=utf-8'); - $data = array(); - $data['postdata'] = $this->input->post(); - $mail_text = $this->load->view('mailtext', $data, true); - echo json_encode($mail_text); + header('Content-type: application/json;charset=utf-8'); + $data = array(); + $site_code = $this->input->get('site_code'); + $viewName = $site_code.'/mailtext'; + $data['postdata'] = $this->input->post(); + $mail_text = $this->load->view($viewName, $data, true); + echo json_encode($mail_text); } } diff --git a/application/third_party/order/views/ah/confirm_order.php b/application/third_party/order/views/ah/confirm_order.php index cb8e055e..5656f3e6 100644 --- a/application/third_party/order/views/ah/confirm_order.php +++ b/application/third_party/order/views/ah/confirm_order.php @@ -767,9 +767,10 @@ select.gender_pick {border: 1px solid #d1d1d1;
- + +
@@ -783,9 +784,10 @@ select.gender_pick {border: 1px solid #d1d1d1;
- + +
@@ -928,7 +930,7 @@ select.gender_pick {border: 1px solid #d1d1d1; type: "post", dataType: "json", data: $("#form-confirm-info").serialize(), - url: 'https://www.chinahighlights.com/secureinfoconfirm/confirm/review', + url: 'https://www.chinahighlights.com/secureinfoconfirm/confirm/review?site_code=ah', success: function(data, textStatus) { $('#reviewModal_body').html(data); $('#reviewModal').modal('show'); @@ -947,42 +949,6 @@ select.gender_pick {border: 1px solid #d1d1d1; var travelerCount = $(".traveler_info").length + 1; $addTraveler.find('[data-header]').text('Traveler ' + travelerCount); $('#add_traveler_button').before($addTraveler); - - $('.datepicker').datepicker({ - controlType: 'select', - oneLine: true, - changeMonth: true, - changeYear: true, - yearRange: '2010:2055', - timeFormat: 'mm/dd/yy' - }); - - $('.datetimepicker').datetimepicker({ - controlType: 'select', - oneLine: true, - changeMonth: false, - changeYear: false, - timeFormat: 'H:mm' - }); - - }); - - - $('.datepicker').datepicker({ - controlType: 'select', - oneLine: true, - changeMonth: true, - changeYear: true, - yearRange: '2010:2055', - timeFormat: 'mm/dd/yy' - }); - - $('.datetimepicker').datetimepicker({ - controlType: 'select', - oneLine: true, - changeMonth: false, - changeYear: false, - timeFormat: 'H:mm' }); }); diff --git a/application/third_party/order/views/ah/mailtext.php b/application/third_party/order/views/ah/mailtext.php new file mode 100644 index 00000000..993027c8 --- /dev/null +++ b/application/third_party/order/views/ah/mailtext.php @@ -0,0 +1,76 @@ +

+ China Highlights is not responsible for any costs or consequences which may arise from failure on your part to provide correct information (For example, wrongly spelt names may cause your flight tickets to be cancelled, incorrect incoming flight number may lead to failure in pick-up etc.).
+

+

+ Passenger Information +

+ $sur) { ?> + +

Passenger

+

Sur name/First and Middle name:

+

Passport No.:

+

Passport Expiration Date:

+

Birthday:

+ + +

Contact Information

+

Land line:

+

Mobile:

+ +

+ Flight Information +

+

Arrival Flight No.:

+

+ Arrival date: +

+

+ Arrival time: +

+

+ Departure Flight no.: +

+

+ Departure date: +

+

+ Departure time: +

+

+ Special Request +

+

+ +
+

+

+ Insurance Information +

+

+ +
+

+

+ Emergency Contact Information +

+

+ Contact person name: +

+

+ Relationship with him/her: +

+

+ E-mail address: +

+

+ Telephone no.: +

\ No newline at end of file