AH 日期和时间分开

hotfix/paypal-note
Jimmy Liow 2 years ago
parent 747af07800
commit f2c56e82dd

@ -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);
}
}

@ -767,9 +767,10 @@ select.gender_pick {border: 1px solid #d1d1d1;
</div>
<div class="selectionBlock">
<div class="inputTerm">
<input type="datetime-local" name="MEI_ArrivalTime" required="">
<input type="date" name="MEI_ArrivalDate" required="">
<input type="time" name="MEI_ArrivalTime">
<label>
Arrival time
Arrival date
</label>
</div>
</div>
@ -783,9 +784,10 @@ select.gender_pick {border: 1px solid #d1d1d1;
</div>
<div class="selectionBlock">
<div class="inputTerm">
<input type="datetime-local" name="MEI_DepartureTime" required="">
<input type="date" name="MEI_DepartureDate" required="">
<input type="time" name="MEI_DepartureTime">
<label>
Departure time
Departure date
</label>
</div>
</div>
@ -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'
});
});
</script>

@ -0,0 +1,76 @@
<p >
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.).<br />
</p>
<h4 class="text-red" style="box-sizing:border-box;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-weight:500;line-height:1.1;color:#AA2E2D;margin-top:10px;margin-bottom:15px;font-size:24px;padding:12px 0 12px 0;border-bottom:1px solid #dddddd;border-top:1px solid #dddddd;white-space:normal;background-color:#FFFFFF;">
Passenger Information
</h4>
<?php foreach ($postdata['sur_name'] as $key => $sur) { ?>
<?php
if (!isset($postdata['given_name'][$key]) || $postdata['given_name'][$key] == 'None')
$postdata['given_name'][$key] = '';
if (!isset($postdata['passport'][$key]) || $postdata['passport'][$key] == 'None')
$postdata['passport'][$key] = '';
if (!isset($postdata['passport_expiration_date'][$key]) || $postdata['passport_expiration_date'][$key] == 'None')
$postdata['passport_expiration_date'][$key] = '';
if (!isset($postdata['birthday'][$key]) || $postdata['birthday'][$key] == 'None')
$postdata['birthday'][$key] = '';
?>
<h3>Passenger <?php echo $key + 1; ?></h3>
<p style="margin:0;">Sur name/First and Middle name:<?php echo $sur . '/' . $postdata['given_name'][$key]; ?></p>
<p style="margin:0;">Passport No.:<?php echo $postdata['passport'][$key]; ?></p>
<p style="margin:0;">Passport Expiration Date:<?php echo $postdata['passport_expiration_date'][$key]; ?></p>
<p style="margin:0;">Birthday:<?php echo $postdata['birthday'][$key]; ?></p>
<?php } ?>
<h3>Contact Information</h3>
<p style="margin:0;">Land line:<?php if (isset($postdata['landline'])) echo $postdata['landline']; ?></p>
<p style="margin:0;">Mobile:<?php if (isset($postdata['mobile'])) echo $postdata['mobile']; ?></p>
<h4 class="text-red" style="box-sizing:border-box;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-weight:500;line-height:1.1;color:#AA2E2D;margin-top:10px;margin-bottom:15px;font-size:24px;padding:12px 0 12px 0;border-bottom:1px solid #dddddd;border-top:1px solid #dddddd;white-space:normal;background-color:#FFFFFF;">
Flight Information
</h4>
<p style="margin:0;">Arrival Flight No.:<?php if (isset($postdata['MEI_ArrivalFlightNo'])) echo $postdata['MEI_ArrivalFlightNo']; ?></p>
<p style="margin:0;">
Arrival date:<?php if (isset($postdata['MEI_ArrivalDate'])) echo $postdata['MEI_ArrivalDate']; ?>
</p>
<p style="margin:0;">
Arrival time:<?php if (isset($postdata['MEI_ArrivalTime'])) echo $postdata['MEI_ArrivalTime']; ?>
</p>
<p style="margin:0;">
Departure Flight no.:<?php if (isset($postdata['MEI_DepartureFlightNo'])) echo $postdata['MEI_DepartureFlightNo']; ?>
</p>
<p style="margin:0;">
Departure date:<?php if (isset($postdata['MEI_DepartureDate'])) echo $postdata['MEI_DepartureDate']; ?>
</p>
<p style="margin:0;">
Departure time:<?php if (isset($postdata['MEI_DepartureTime'])) echo $postdata['MEI_DepartureTime']; ?>
</p>
<h4 class="text-red" style="box-sizing:border-box;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-weight:500;line-height:1.1;color:#AA2E2D;margin-top:10px;margin-bottom:15px;font-size:24px;padding:12px 0 12px 0;border-bottom:1px solid #dddddd;border-top:1px solid #dddddd;white-space:normal;background-color:#FFFFFF;">
Special Request
</h4>
<p style="margin:0;">
<?php if (isset($postdata['special_request'])) echo $postdata['special_request']; ?>
<br />
</p>
<h4 class="text-red" style="box-sizing:border-box;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-weight:500;line-height:1.1;color:#AA2E2D;margin-top:10px;margin-bottom:15px;font-size:24px;padding:12px 0 12px 0;border-bottom:1px solid #dddddd;border-top:1px solid #dddddd;white-space:normal;background-color:#FFFFFF;">
Insurance Information
</h4>
<p style="margin:0;">
<?php if (isset($postdata['insurance_information'])) echo $postdata['insurance_information']; ?>
<br />
</p>
<h4 class="text-red" style="box-sizing:border-box;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-weight:500;line-height:1.1;color:#AA2E2D;margin-top:10px;margin-bottom:15px;font-size:24px;padding:12px 0 12px 0;border-bottom:1px solid #dddddd;border-top:1px solid #dddddd;white-space:normal;background-color:#FFFFFF;">
Emergency Contact Information
</h4>
<p style="margin:0;">
Contact person name:<?php if (isset($postdata['emergency_person_name'])) echo $postdata['emergency_person_name']; ?>
</p>
<p style="margin:0;">
Relationship with him/her:<?php if (isset($postdata['emergency_relationship'])) echo $postdata['emergency_relationship']; ?>
</p>
<p style="margin:0;">
E-mail address:<?php if (isset($postdata['emergency_email'])) echo $postdata['emergency_email']; ?>
</p>
<p style="margin:0;">
Telephone no.:<?php if (isset($postdata['emergency_telephone'])) echo $postdata['emergency_telephone']; ?>
</p>
Loading…
Cancel
Save