作者平台多网站支持和收集客人信息页面优化
parent
515b265b23
commit
9815becf8b
@ -1,131 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if (!defined('BASEPATH'))
|
|
||||||
exit('No direct script access allowed');
|
|
||||||
|
|
||||||
|
|
||||||
class Confirm extends CI_Controller
|
|
||||||
{
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
parent::__construct();
|
|
||||||
$this->load->model('Order_model');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function index($COLI_SN,$visitor_link,$token)
|
|
||||||
{
|
|
||||||
$data=array();
|
|
||||||
if (empty($COLI_SN) || strtoupper(md5($visitor_link))!=strtoupper($token)) {
|
|
||||||
$this->load->view('link_tips', $data);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$data['visitor_link']=$visitor_link;
|
|
||||||
$data['userinfo']=$this->Order_model->get_customer_info($COLI_SN);
|
|
||||||
$data['username']='';
|
|
||||||
if (!empty($data['userinfo'])) {
|
|
||||||
foreach ($data['userinfo'] as $v) {
|
|
||||||
if ($v->CUL_IsLinkMan==1) {
|
|
||||||
$data['username']=$v->MEI_FirstName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
$this->load->view('link_tips', $data);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$visitor_link_arr=$this->Order_model->get_visitor_link($COLI_SN);
|
|
||||||
foreach ($visitor_link_arr as $l) {
|
|
||||||
if ($visitor_link==$l->visitor_link) {
|
|
||||||
$this->load->view('link_tips', $data);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->load->view('confirm_order', $data);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function save_confirm_info()
|
|
||||||
{
|
|
||||||
//客人信息
|
|
||||||
$gender=$this->input->post('gender');
|
|
||||||
$given_name=$this->input->post('given_name');
|
|
||||||
$birthday=$this->input->post('birthday');
|
|
||||||
$passport=$this->input->post('passport');
|
|
||||||
$expiration_date=$this->input->post('passport_expiration_date');
|
|
||||||
$nationality=$this->input->post('nationality');
|
|
||||||
$contact_phone='座机:'.$this->input->post('landline').'/手机:'.$this->input->post('mobile');
|
|
||||||
$COLI_SN=$this->input->post('COLI_SN');
|
|
||||||
$visitor_link=$this->input->post('visitor_link');
|
|
||||||
$COLI_ID=$this->input->post('COLI_ID');
|
|
||||||
|
|
||||||
//已经确认过
|
|
||||||
$had_save=$this->Order_model->get_visitor_link($COLI_SN,$visitor_link);
|
|
||||||
if(!empty($had_save)){
|
|
||||||
echo 3;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($this->input->post('sur_name') as $key => $name)
|
|
||||||
{
|
|
||||||
if (!empty($name)) {
|
|
||||||
if ($this->input->post('home_address')!='') {
|
|
||||||
$MEI_Street=$this->input->post('home_address');
|
|
||||||
}elseif($this->input->post('address_street')){
|
|
||||||
$MEI_Street=$this->input->post('address_street').','.$this->input->post('address_city').','.$this->input->post('address_state').','.$this->input->post('address_country');
|
|
||||||
}else{
|
|
||||||
$MEI_Street='';
|
|
||||||
}
|
|
||||||
$MEI_FirstName=$given_name[$key];
|
|
||||||
$MEI_LastName=$name;
|
|
||||||
|
|
||||||
if ($this->input->post('arrive_flight')) {
|
|
||||||
$CUL_Memo = 'Arrival China Flight No : '
|
|
||||||
.$this->input->post('arrive_flight')
|
|
||||||
.' & Arrival time : '
|
|
||||||
.$this->input->post('arrive_time')
|
|
||||||
.' & Departure China Flight no : '
|
|
||||||
.$this->input->post('departure_flight')
|
|
||||||
.' & Departure time : '
|
|
||||||
.$this->input->post('depart_time');
|
|
||||||
}else{
|
|
||||||
$CUL_Memo='';
|
|
||||||
}
|
|
||||||
|
|
||||||
$MEI_Memo=$this->input->post('special_request').' '.$CUL_Memo;
|
|
||||||
|
|
||||||
$birthday[$key]=date('Y-m-d H:i:s',strtotime($birthday[$key]));
|
|
||||||
$expiration_date[$key]=date('Y-m-d H:i:s',strtotime($expiration_date[$key]));
|
|
||||||
|
|
||||||
$MEI_SN=$this->Order_model->add_customer_info($gender[$key],$nationality[$key],$MEI_FirstName,$MEI_LastName,$passport[$key],$expiration_date[$key],$birthday[$key],$MEI_Memo,$MEI_Street,'',$contact_phone,0,$COLI_SN,$visitor_link);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($MEI_SN && $this->input->post('emergency_person_name')!='') {
|
|
||||||
$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
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($MEI_SN) {
|
|
||||||
$this->Order_model->send_mail('chinahighlights', 'service@chinahighlights.com', $this->input->post('toname'), $this->input->post('tomail'), $COLI_ID.' 团个人信息导入HT', $COLI_ID.' 团个人信息导入HT','China Highlights',$M_Web='CHT');
|
|
||||||
echo 1;
|
|
||||||
}else{
|
|
||||||
echo 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,69 +1,71 @@
|
|||||||
<h4 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:20px;font-size:24px;text-align:center;white-space:normal;">
|
<p >
|
||||||
Thanks for booking with China Highlights!<br />
|
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 />
|
||||||
For any change, please contact your travel advisor. <br />
|
</p>
|
||||||
</h4>
|
|
||||||
<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;">
|
<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
|
Passenger Information
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<?php foreach ($postdata['sur_name'] as $key => $sur) { ?>
|
<?php foreach ($postdata['sur_name'] as $key => $sur) { ?>
|
||||||
<?php
|
<?php
|
||||||
if(!isset($postdata['given_name'][$key]) || $postdata['given_name'][$key]=='None') $postdata['given_name'][$key]='';
|
if (!isset($postdata['given_name'][$key]) || $postdata['given_name'][$key] == 'None')
|
||||||
if(!isset($postdata['passport'][$key]) || $postdata['passport'][$key]=='None') $postdata['passport'][$key]='';
|
$postdata['given_name'][$key] = '';
|
||||||
if(!isset($postdata['passport_expiration_date'][$key]) || $postdata['passport_expiration_date'][$key]=='None') $postdata['passport_expiration_date'][$key]='';
|
if (!isset($postdata['passport'][$key]) || $postdata['passport'][$key] == 'None')
|
||||||
if(!isset($postdata['birthday'][$key]) || $postdata['birthday'][$key]=='None') $postdata['birthday'][$key]='';
|
$postdata['passport'][$key] = '';
|
||||||
?>
|
if (!isset($postdata['passport_expiration_date'][$key]) || $postdata['passport_expiration_date'][$key] == 'None')
|
||||||
<h3>Passenger <?php echo $key+1; ?></h3>
|
$postdata['passport_expiration_date'][$key] = '';
|
||||||
<p style="margin:0;">Sur name/First and Middle name:<?php echo $sur.'/'.$postdata['given_name'][$key]; ?></p>
|
if (!isset($postdata['birthday'][$key]) || $postdata['birthday'][$key] == 'None')
|
||||||
<p style="margin:0;">Passport No.:<?php echo $postdata['passport'][$key]; ?></p>
|
$postdata['birthday'][$key] = '';
|
||||||
<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>
|
<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 } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<h3>Contact Information</h3>
|
<h3>Contact Information</h3>
|
||||||
<p style="margin:0;">Land line:<?php if(isset($postdata['landline'])) echo $postdata['landline']; ?></p>
|
<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>
|
<p style="margin:0;">Mobile:<?php if (isset($postdata['mobile'])) echo $postdata['mobile']; ?></p>
|
||||||
<p style="margin:0;">Home Address:<?php if(isset($MEI_Street)) echo $MEI_Street; ?></p>
|
<p style="margin:0;">Home Address:<?php if (isset($MEI_Street)) echo $MEI_Street; ?></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;">
|
<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
|
Flight Information
|
||||||
</h4>
|
</h4>
|
||||||
<p style="margin:0;">Arrival China Flight No.:<?php if(isset($postdata['arrive_flight'])) echo $postdata['arrive_flight']; ?></p>
|
<p style="margin:0;">Arrival China Flight No.:<?php if (isset($postdata['arrive_flight'])) echo $postdata['arrive_flight']; ?></p>
|
||||||
<p style="margin:0;">
|
<p style="margin:0;">
|
||||||
Arrival time:<?php if(isset($postdata['arrive_time'])) echo $postdata['arrive_time']; ?>
|
Arrival time:<?php if (isset($postdata['arrive_time'])) echo $postdata['arrive_time']; ?>
|
||||||
</p>
|
</p>
|
||||||
<p style="margin:0;">
|
<p style="margin:0;">
|
||||||
Departure China Flight no.:<?php if(isset($postdata['departure_flight'])) echo $postdata['departure_flight']; ?>
|
Departure China Flight no.:<?php if (isset($postdata['departure_flight'])) echo $postdata['departure_flight']; ?>
|
||||||
</p>
|
</p>
|
||||||
<p style="margin:0;">
|
<p style="margin:0;">
|
||||||
Departure time:<?php if(isset($postdata['depart_time'])) echo $postdata['depart_time']; ?>
|
Departure time:<?php if (isset($postdata['depart_time'])) echo $postdata['depart_time']; ?>
|
||||||
</p>
|
</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;">
|
<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
|
Special Request
|
||||||
</h4>
|
</h4>
|
||||||
<p style="margin:0;">
|
<p style="margin:0;">
|
||||||
<?php if(isset($postdata['special_request'])) echo $postdata['special_request']; ?>
|
<?php if (isset($postdata['special_request'])) echo $postdata['special_request']; ?>
|
||||||
<br />
|
<br />
|
||||||
</p>
|
</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;">
|
<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
|
Insurance Information
|
||||||
</h4>
|
</h4>
|
||||||
<p style="margin:0;">
|
<p style="margin:0;">
|
||||||
<?php if(isset($postdata['insurance_information'])) echo $postdata['insurance_information']; ?>
|
<?php if (isset($postdata['insurance_information'])) echo $postdata['insurance_information']; ?>
|
||||||
<br />
|
<br />
|
||||||
</p>
|
</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;">
|
<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
|
Emergency Contact Information
|
||||||
</h4>
|
</h4>
|
||||||
<p style="margin:0;">
|
<p style="margin:0;">
|
||||||
Contact person name:<?php if(isset($postdata['emergency_person_name'])) echo $postdata['emergency_person_name']; ?>
|
Contact person name:<?php if (isset($postdata['emergency_person_name'])) echo $postdata['emergency_person_name']; ?>
|
||||||
</p>
|
</p>
|
||||||
<p style="margin:0;">
|
<p style="margin:0;">
|
||||||
Relationship with him/her:<?php if(isset($postdata['emergency_relationship'])) echo $postdata['emergency_relationship']; ?>
|
Relationship with him/her:<?php if (isset($postdata['emergency_relationship'])) echo $postdata['emergency_relationship']; ?>
|
||||||
</p>
|
</p>
|
||||||
<p style="margin:0;">
|
<p style="margin:0;">
|
||||||
E-mail address:<?php if(isset($postdata['emergency_email'])) echo $postdata['emergency_email']; ?>
|
E-mail address:<?php if (isset($postdata['emergency_email'])) echo $postdata['emergency_email']; ?>
|
||||||
</p>
|
</p>
|
||||||
<p style="margin:0;">
|
<p style="margin:0;">
|
||||||
Telephone no.:<?php if(isset($postdata['emergency_telephone'])) echo $postdata['emergency_telephone']; ?>
|
Telephone no.:<?php if (isset($postdata['emergency_telephone'])) echo $postdata['emergency_telephone']; ?>
|
||||||
</p>
|
</p>
|
Loading…
Reference in New Issue