1.将模板调用和入库程序分开

2.上线水灯节表单及在线支付
3.删除部分表单,方便以后维护
master
cyc 6 years ago
parent 38e37f1eed
commit ca7614103e

@ -34,8 +34,8 @@ RewriteRule ^/(tours|vietnam|guide|cambodia|laos|myanmar|thailand|southeast-asia
#orders #orders
RewriteRule ^/create-my-trip.htm$ /index.php/orders/tailormade/ [U,L] RewriteRule ^/create-my-trip.htm$ /index.php/orders/tailormade/ [U,L]
RewriteRule ^/orders/triprequest.htm$ /index.php/orders/triprequest/ [U,L] RewriteRule ^/orders/triprequest.htm$ /index.php/forms/triprequest/ [U,L]
RewriteRule ^/orders/lantern_form$ /index.php/orders/lantern_form/ [U,L] RewriteRule ^/forms/lantern_form$ /index.php/forms/lantern_form/ [U,L]
RewriteRule ^/orders/(lantern_save|tailormade_thankyou|tailormade_save|contactus_save|contactus_thankyou|asia_tour|asia_tour_save|asia_tour_thankyou|ch_tailormade_save|triprequest_save)$ /index.php/orders/$1 [U,L] RewriteRule ^/orders/(lantern_save|tailormade_thankyou|tailormade_save|contactus_save|contactus_thankyou|asia_tour|asia_tour_save|asia_tour_thankyou|ch_tailormade_save|triprequest_save)$ /index.php/orders/$1 [U,L]
RewriteRule ^/orders/inquiry_thankyou$ /index.php/orders/tailormade_thankyou [U,L] RewriteRule ^/orders/inquiry_thankyou$ /index.php/orders/tailormade_thankyou [U,L]

@ -0,0 +1,82 @@
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class forms extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->model('Orders_model');
}
//水灯节表单
public function lantern_form(){
$data = array();
$data['location'] = $this->input->get_post('location');
$data['TicketStandard'] = $this->input->get_post('TicketStandard');
$data['ticketonlyselection'] = $this->input->get_post('ticketonlyselection');
$data['date'] = $this->input->get_post('date');
$data['travelNumber'] = $this->input->get_post('travelNumber');
$data['totalprice'] = $this->input->get_post('totalprice');
$this->load->view('header');
$this->load->view('orders/lantern_form',$data);
$this->load->view('footer');
}
//tailormade和产品页面
public function triprequest($third_part_code = '') {
$data = array();
$cli_sn = $this->input->get_post('cli_sn');
$data['countrylist'] = ['Vietnam','Cambodia','India','Thailand','Myanmar','Japan','Laos','Nepal','Sri Lanka','China','Mongolia','Indonesia'];
if($cli_sn){
$data['countryarr'] = array();
$obj = $this->Orders_model->get_country($cli_sn);
foreach ($obj as $value){
array_push($data['countryarr'],$value->CountryName);
}
$data['ic_title'] = $this->input->get_post('ic_title');
$data['cli_no'] = $this->input->get_post('cli_no');
$data['cli_sn'] = $cli_sn;
$data['cli_days'] = $this->input->get_post('cli_days');
}else{
$data['countryarr'] = [];
}
$data['action'] = '/orders/triprequest_save';
$data['seo_title'] = "Create my trip | Asia Highlights";
//$data['seo_keywords'] = $data['detail']->ic_seo_keywords;
//$data['seo_description'] = $data['detail']->ic_seo_description;
$this->load->view('header', $data);
$this->load->view('orders/form-advanced');
$this->load->view('footer');
}
//inquiry 表单移动端
public function inquirymobile(){
$data = array();
$cli_sn = $this->input->get_post('cli_sn');
$data['countrylist'] = ['Vietnam','Cambodia','India','Thailand','Myanmar','Japan','Laos','Nepal','Sri Lanka','China','Mongolia','Indonesia'];
if($cli_sn){
$data['countryarr'] = array();
$obj = $this->Orders_model->get_country($cli_sn);
foreach ($obj as $value){
array_push($data['countryarr'],$value->CountryName);
}
$data['ic_title'] = $this->input->get_post('ic_title');
}else{
$data['countryarr'] = [];
}
$data['action'] = '/orders/triprequest_save';
$data['seo_title'] = "Create my trip | Asia Highlights";
//$data['seo_keywords'] = $data['detail']->ic_seo_keywords;
//$data['seo_description'] = $data['detail']->ic_seo_description;
$this->load->view('header', $data);
$this->load->view('orders/inquiry_mobile');
$this->load->view('footer');
}
}

@ -14,47 +14,6 @@ class Orders extends CI_Controller {
function __construct() { function __construct() {
parent::__construct(); parent::__construct();
$this->load->model('Orders_model'); $this->load->model('Orders_model');
//第三合作网站配置
$this->third_part = array(
'EXPCH' => array(
'url' => 'www.experienciaenchina.com',
'email' => 'experienciaenchina@gmail.com'
),
'MESENLLA' => array(
'url' => 'mesenlla.es',
'email' => 'lmrcits@163.com'
),
'wayaway' => array(
'url' => 'www.way-away.es',
'email' => 'lmrcits@163.com'
),
'traba' => array(
'url' => 'trabajoenchina.org',
'email' => 'lmrcits@163.com'
),
'guias' => array(
'url' => 'http://guias-viajar.com/china/',
'email' => 'lmrcits@163.com'
),
'sapor' => array(
'url' => 'http://www.saporedicina.com/es/viajar-en-tren-por-china/',
'email' => 'lmrcits@163.com'
),
'saporit' => array(
'url' => 'http://www.saporedicina.com/',
'email' => 'lmrcits@163.com'
),
'ctooles' => array(
'url' => 'http://www.chinese-tools.com/',
'email' => 'lmrcits@163.com'
),
'ctoolfr' => array(
'url' => 'http://www.chinese-tools.com/',
'email' => 'lmrcits@163.com'
)
);
$this->site_code = strtolower($this->config->item('Site_Code')); $this->site_code = strtolower($this->config->item('Site_Code'));
//屏蔽掉非法IP49.157.0.226 //屏蔽掉非法IP49.157.0.226
if($this->input->ip_address() == '116.93.127.114' || $this->input->ip_address() == '116.202.14.3'){ if($this->input->ip_address() == '116.93.127.114' || $this->input->ip_address() == '116.202.14.3'){
@ -67,23 +26,9 @@ class Orders extends CI_Controller {
redirect(); redirect();
} }
//水灯节表单
public function lantern_form(){
$data = array();
$data['ticketType'] = $this->input->get_post('TicketType');
$data['TicketStandard'] = $this->input->get_post('TicketStandard');
$data['ticketonlyselection'] = $this->input->get_post('ticketonlyselection');
$data['date'] = $this->input->get_post('date');
$data['travelNumber'] = $this->input->get_post('travelNumber');
$this->load->view('header');
$this->load->view('orders/lantern_form',$data);
$this->load->view('footer');
}
//水灯节表单入库 //水灯节表单入库
public function lantern_save() { public function lantern_save() {
$this->form_validation->set_rules('Firstname', 'lang:Firstname', 'required'); $this->form_validation->set_rules('fullname', 'lang:Firstname', 'required');
$this->form_validation->set_rules('email', 'lang:email', 'required|valid_email'); $this->form_validation->set_rules('email', 'lang:email', 'required|valid_email');
if ($this->form_validation->run() == false) { if ($this->form_validation->run() == false) {
send_404(); send_404();
@ -144,9 +89,9 @@ class Orders extends CI_Controller {
$this->Orders_model->COLI_ChildNum = $this->input->post('child_number'); $this->Orders_model->COLI_ChildNum = $this->input->post('child_number');
$this->Orders_model->MEI_MailList = $this->input->post('email'); $this->Orders_model->MEI_MailList = $this->input->post('email');
$this->Orders_model->MEI_FirstName = $this->input->post('Firstname'); $this->Orders_model->MEI_FirstName = $this->input->post('fullname');
$this->Orders_model->MEI_LastName = $this->input->post('Lastname'); $this->Orders_model->MEI_LastName = $this->input->post('fullname');
$fullname = $this->input->post('Firstname').$this->input->post('Lastname'); $fullname = $this->input->post('fullname');
$this->Orders_model->MEI_Nationality = $this->Orders_model->GetNationalityID($this->input->post('Nationality')); $this->Orders_model->MEI_Nationality = $this->Orders_model->GetNationalityID($this->input->post('Nationality'));
$this->Orders_model->COLI_ProductSN = $this->input->post('cli_sn'); $this->Orders_model->COLI_ProductSN = $this->input->post('cli_sn');
@ -164,41 +109,20 @@ class Orders extends CI_Controller {
//发送邮件给客人 (20160504tailor_make) //发送邮件给客人 (20160504tailor_make)
$this->Orders_model->SendMail($this->config->item('Site_ServiceName'), $this->config->item('Site_ServiceEmail'), $fullname, $this->input->post('email'), $emailtitle, $this->load->view('orders/newemail_template', '', true)); $this->Orders_model->SendMail($this->config->item('Site_ServiceName'), $this->config->item('Site_ServiceEmail'), $fullname, $this->input->post('email'), $emailtitle, $this->load->view('orders/newemail_template', '', true));
//价格计算后转到支付中心 //生成支付链接
$this->load->library('Currency');
$addurl = '';
$totalprice = $this->input->post('totalprice');
$total_rmb = $this->currency->get_USD_RMB_SUM($totalprice);
$signstr = 'currency=USD&order_id='.$this->Orders_model->COLI_ID.'_T&rmb_amount='.$total_rmb.'&total_amount='.$totalprice.'&key=7a46484300f04031b42fdd44559578e4';
$sign = md5($signstr);
$addurl .= base64_encode('order_id='.$this->Orders_model->COLI_ID.'_T&subject=Booking Lantern Festival Tickets&body=Booking Lantern Festival Tickets&total_amount='.$totalprice.'&currency=USD&rmb_amount='.$total_rmb.'&sign='.$sign.'&return_url=https://www.asiahighlights.com/orders/inquiry_thankyou');
$payurl = 'https://secure.chinahighlights.com/pay/paymentservice/?'.$addurl;
//跳转到thankyou页面 //跳转到thankyou页面
redirect(site_url('orders/asia_tour_thankyou')); redirect($payurl);
} }
} }
//新版tailormade和产品页面
public function triprequest($third_part_code = '') {
$data = array();
$cli_sn = $this->input->get_post('cli_sn');
$data['countrylist'] = ['Vietnam','Cambodia','India','Thailand','Myanmar','Japan','Laos','Nepal','Sri Lanka','China','Mongolia','Indonesia'];
if($cli_sn){
$data['countryarr'] = array();
$obj = $this->Orders_model->get_country($cli_sn);
foreach ($obj as $value){
array_push($data['countryarr'],$value->CountryName);
}
$data['ic_title'] = $this->input->get_post('ic_title');
$data['cli_no'] = $this->input->get_post('cli_no');
$data['cli_sn'] = $cli_sn;
$data['cli_days'] = $this->input->get_post('cli_days');
}else{
$data['countryarr'] = [];
}
$data['action'] = '/orders/triprequest_save';
$data['seo_title'] = "Create my trip | Asia Highlights";
//$data['seo_keywords'] = $data['detail']->ic_seo_keywords;
//$data['seo_description'] = $data['detail']->ic_seo_description;
$this->load->view('header', $data);
$this->load->view('orders/form-advanced');
$this->load->view('footer');
}
//新版tailormade入库程序 //新版tailormade入库程序
public function triprequest_save() { public function triprequest_save() {
//$this->form_validation->set_rules('Destination', 'lang:Destination', 'required'); //$this->form_validation->set_rules('Destination', 'lang:Destination', 'required');
@ -467,21 +391,6 @@ class Orders extends CI_Controller {
$this->load->view('orders/r_thankyou/' . $this->site_code, $data); $this->load->view('orders/r_thankyou/' . $this->site_code, $data);
} }
/**
*
* 联系我们
* @author lmr
*
*/
public function contactus() {
//初始化html结构
$data = array();
$this->html_do->head($data, 'r');
$this->load->view('orders/contact_us/' . $this->site_code, $data);
$this->html_do->foot($data, 'r');
$this->output->cache(10086);
}
/** /**
* *
* 联系我们订单入库 * 联系我们订单入库
@ -723,127 +632,6 @@ class Orders extends CI_Controller {
$this->load->view('footer'); $this->load->view('footer');
} }
public function tailormade($third_part_code = '') {
$data = array();
$data['anum'] = $this->input->post('anum', true);
$data['bnum'] = $this->input->post('bnum', true);
$data['cnum'] = $this->input->post('cnum', true);
$data['aq'] = $this->input->post('aq', true);
$data['date'] = $this->input->post('date', true);
$data['email'] = $this->input->post('email', true);
$data['realname'] = $this->input->post('realname', true);
$data['third_part_code'] = $third_part_code;
$data['seo_title'] = "Create a unique trip | Ease of Planning | Asia Highlights";
// $data['seo_keywords'] = $data['detail']->ic_seo_keywords;
// $data['seo_description'] = $data['detail']->ic_seo_description;
$this->load->view('header', $data);
$this->load->view('orders/tailor_make');
$this->load->view('footer');
}
public function tailormade_save() {
$this->form_validation->set_rules('realname', 'lang:realname', 'required');
$this->form_validation->set_rules('nationality', 'lang:nationality', 'required');
$this->form_validation->set_rules('email', 'lang:email', 'required|valid_email');
$this->form_validation->set_rules('additionalrequirements', 'lang:additionalrequirements', 'required');
$this->form_validation->set_rules('hotel', 'lang:hotel', 'required');
$this->form_validation->set_rules('cli_tourdays', 'lang:cli_tourdays', 'required');
if ($this->form_validation->run() == false) {
$data = array();
foreach ($this->form_validation->_error_array as $key => $value) {
$data[] = array('name' => $key, 'value' => $value);
}
if ($this->input->post('no_ajax')) {
$vali_string = '';
foreach ($data as $v) {
$vali_string .= $v['name'] . ' => ' . $v['value'] . ' ';
}
echo('<script>alert("' . $vali_string . '");history.back();</script>');
} else {
echo json_encode($data);
}
} else {
$this->Orders_model->COLI_ID = $this->Orders_model->MakeOrderNumber();
$this->Orders_model->COLI_SenderIP = $this->input->ip_address();
$this->Orders_model->COLI_OrderDetailText = ReplaceFieldName($_POST);
$this->Orders_model->COLI_Servicetype = 'T';
$this->Orders_model->COLI_sourcetype = '32003';
//HT订单跟踪代码
$COOKIE_inquireTrackFrom = get_cookie('inquireTrackFrom');
if (!empty($COOKIE_inquireTrackFrom) && is_numeric($COOKIE_inquireTrackFrom)) {
$this->Orders_model->COLI_sourcetype = (int) $COOKIE_inquireTrackFrom;
delete_cookie('inquireTrackFrom');
}
//Trace GOOGLE
$COOKIE_inquireTrackGoogle = get_cookie('inquireTrackGoogle');
if (!empty($COOKIE_inquireTrackGoogle)) {
$this->Orders_model->COLI_OrderDetailText .= "\n\rGOOGLE关键字" . $COOKIE_inquireTrackGoogle;
delete_cookie('inquireTrackGoogle');
}
$this->Orders_model->COLI_GroupType = '19006';
$this->Orders_model->COLI_OrderType = '19006';
if (is_numeric($this->input->post('adultsNumber'))) {
$this->Orders_model->COLI_PersonNum = $this->input->post('adultsNumber');
}
if (is_numeric($this->input->post('ChildrenNumber'))) {
$this->Orders_model->COLI_ChildNum = $this->input->post('ChildrenNumber');
}
if (is_numeric($this->input->post('BabiesNumber'))) {
$this->Orders_model->COLI_BabyNum = $this->input->post('BabiesNumber');
}
$this->Orders_model->MEI_MailList = $this->input->post('email');
$this->Orders_model->MEI_Mail = $this->input->post('email2');
$pos = strstr($this->input->post('realname'), ' ');
if ($pos === false) {
$this->Orders_model->MEI_FirstName = $this->input->post('realname');
} else {
$this->Orders_model->MEI_FirstName = str_replace($pos, '', $this->input->post('realname'));
$this->Orders_model->MEI_LastName = $pos;
}
$this->Orders_model->MEI_Nationality = $this->Orders_model->GetNationalityID($this->
input->post('nationality'));
$this->COLI_ProductSN = '';
if ($this->input->post('Date_Start')) {
$this->Orders_model->COLI_OrderStartDate = $this->input->post('Date_Start');
}
$this->Orders_model->MEI_Gender = $this->input->post('gender');
$this->Orders_model->MEI_Phone = $this->input->post('PhoneNo');
//是否来至第三方合作网站
$third_webcode = $this->input->post('third_webcode');
if (empty($third_webcode)) {
$third_webcode = $this->input->cookie('third_code');
$this->input->set_cookie('third_code', '', '');
$this->input->set_cookie('third%5Fcode', '', '');
}
if (!empty($third_webcode)) {
$this->Orders_model->COLI_WebCode = $third_webcode;
}
//指定操作人
if ($this->input->post('COLI_OPI_SN')) {
$this->Orders_model->COLI_OPI_SN = $this->input->post('COLI_OPI_SN');
}
$this->Orders_model->TourOrderSave();
$this->Orders_model->SendMail($this->input->post('realname'), $this->input->
post('email'), $this->config->item('Site_ServiceName'), $this->config->item('Site_ServiceEmail'), 'Tailor Made Orders', $this->Orders_model->COLI_OrderDetailText);
//发送邮件给客人 (20160504tailor_make)
$this->Orders_model->SendMail($this->config->item('Site_ServiceName'), $this->config->item('Site_ServiceEmail'), $this->input->post('realname'), $this->input->
post('email'), 'Tailor Made Orders', $this->load->view('orders/email_template', '', true));
//是否AJAX提交
$no_ajax = $this->input->post('no_ajax');
if (empty($no_ajax)) {
$data[] = array('name' => 'go', 'value' => site_url('orders/tailormade_thankyou'));
echo json_encode($data);
} else {
$file_alias = $this->input->post('file_alias');
redirect(site_url('orders/tailormade_thankyou' . $file_alias));
}
}
}
//ch 过来的 //ch 过来的
public function ch_tailormade_save() { public function ch_tailormade_save() {
$this->form_validation->set_rules('city', 'lang:city', 'required'); $this->form_validation->set_rules('city', 'lang:city', 'required');
@ -980,6 +768,7 @@ class Orders extends CI_Controller {
} }
} }
} }
public function tailormade_thankyou() { public function tailormade_thankyou() {
$data = array(); $data = array();
$data['seo_title'] = 'Asia Highlights Travel'; $data['seo_title'] = 'Asia Highlights Travel';
@ -989,162 +778,6 @@ class Orders extends CI_Controller {
$this->output->cache(99999); $this->output->cache(99999);
} }
public function single_city_tour() {
$data = array();
$this->html_do->head($data, 'r');
$this->form_validation->set_rules('cli_no', 'lang:cli_no', 'required');
$data['post_price'] = $this->input->post('cli_price');
if ($this->form_validation->run() == false) {
redirect();
} else {
$this->Tours_model->TopNum = 1;
$this->Tours_model->CLI_NO = $this->input->post('cli_no');
$tourInfo = $this->Tours_model->GetInfo();
if ($tourInfo) {
$data['country'] = $this->Site_model->GetCountry();
$tourInfo->CLI_Price = $this->Tours_model->GetTourPrice($tourInfo->CLI_NO, $this->
input->post('adultenum'), $this->input->post('cli_grade'), $this->input->post('season'), $this->input->post('starting_date'));
$data['postURL'] = site_url('orders/single-city-tour-save/');
$data['tourInfo'] = $tourInfo;
$data['Header'] = $this->load->view('header', array('Navigation' => $this->
Site_model->GetNavigation('single-city-tour')), true);
$this->load->view('orders/tour_simple/' . $this->site_code, $data);
} else {
redirect();
}
}
}
public function single_city_tour_save() {
$this->form_validation->set_rules('realname', 'lang:realname', 'required');
$this->form_validation->set_rules('nationality', 'lang:nationality', 'required');
$this->form_validation->set_rules('email', 'lang:email', 'required|valid_email');
$this->form_validation->set_rules('starting_date', 'lang:starting_date', 'required');
if ($this->form_validation->run() == false) {
$data = array();
foreach ($this->form_validation->_error_array as $key => $value) {
$data[] = array('name' => $key, 'value' => $value);
}
echo json_encode($data);
} else {
$this->Orders_model->COLI_ID = $this->Orders_model->MakeOrderNumber();
$this->Orders_model->COLI_SenderIP = $this->input->ip_address();
$this->Orders_model->COLI_OrderDetailText = ReplaceFieldName($_POST);
$this->Orders_model->COLI_Servicetype = 'T';
$this->Orders_model->COLI_sourcetype = '32001';
//HT订单跟踪代码
$COOKIE_inquireTrackFrom = get_cookie('inquireTrackFrom');
if (!empty($COOKIE_inquireTrackFrom) && is_numeric($COOKIE_inquireTrackFrom)) {
$this->Orders_model->COLI_sourcetype = (int) $COOKIE_inquireTrackFrom;
delete_cookie('inquireTrackFrom');
}
//Trace GOOGLE
$COOKIE_inquireTrackGoogle = get_cookie('inquireTrackGoogle');
if (!empty($COOKIE_inquireTrackGoogle)) {
$this->Orders_model->COLI_OrderDetailText .= "\n\rGOOGLE关键字" . $COOKIE_inquireTrackGoogle;
delete_cookie('inquireTrackGoogle');
}
//utm广告跟踪链接
$utm_source = get_cookie('__ah_utm_source');
$utm_source_map = array(
'google' => 78001,
'newsletters' => 78005,
'chinahighlights' => 99999
);
if (!empty($utm_source) && array_key_exists($utm_source, $utm_source_map)) {
if($utm_source_map[$utm_source] != 99999){
$this->Orders_model->COLI_LineClass = $utm_source_map[$utm_source];
}else{
$this->Orders_model->COLI_LineClass = '';
}
switch ($utm_source_map[$utm_source]){
case 78001:
$this->Orders_model->COLI_sourcetype = 32034;
break;
case 78005:
$this->Orders_model->COLI_sourcetype = 32030;
break;
case 99999:
$this->Orders_model->COLI_sourcetype = 32108;
break;
}
// 关联订单后统一删除 utm 的 cookie
delete_cookie('__ah_utm_source', '.asiahighlights.com');
delete_cookie('__ah_utm_medium', '.asiahighlights.com');
delete_cookie('__ah_utm_campaign', '.asiahighlights.com');
}
$this->Orders_model->COLI_GroupType = '19004';
$this->Orders_model->COLI_OrderType = '19004';
$this->Orders_model->COLI_Name = $this->input->post('cli_no') . ' ' . $this->
input->post('cli_tourtitle');
$this->Orders_model->COLI_PersonNum = $this->input->post('adultenum');
$this->Orders_model->COLI_ChildNum = $this->input->post('childnum');
$this->Orders_model->COLI_BabyNum = $this->input->post('babynum');
$this->Orders_model->COLI_OrderStartDate = $this->input->post('starting_date');
$this->Orders_model->COLI_Days = $this->input->post('cli_tourdays');
$this->Orders_model->MEI_MailList = $this->input->post('email');
$this->Orders_model->MEI_Mail = $this->input->post('email2');
$pos = strstr($this->input->post('realname'), ' ');
if ($pos === false) {
$this->Orders_model->MEI_FirstName = $this->input->post('realname');
} else {
$this->Orders_model->MEI_FirstName = str_replace($pos, '', $this->input->post('realname'));
$this->Orders_model->MEI_LastName = $pos;
}
$this->Orders_model->MEI_Nationality = $this->Orders_model->GetNationalityID($this->
input->post('nationality'));
$this->Orders_model->MEI_Gender = $this->input->post('gender');
$this->Orders_model->MEI_Phone = $this->input->post('phoneno');
if (empty($this->Orders_model->MEI_Phone) || !isset($this->Orders_model->
MEI_Phone)) {
$this->Orders_model->MEI_Phone = @$this->input->post('PhoneNo');
}
$this->Orders_model->COLI_ProductSN = $this->input->post('cli_sn');
//是否来至第三方合作网站
$third_webcode = $this->input->post('third_webcode');
if (empty($third_webcode)) {
$third_webcode = $this->input->cookie('third_code');
$this->input->set_cookie('third_code', '', '');
$this->input->set_cookie('third%5Fcode', '', '');
}
if (!empty($third_webcode)) {
$this->Orders_model->COLI_WebCode = $third_webcode;
}
bind_email($this->Orders_model->MEI_MailList);
$this->Orders_model->TourOrderSave();
$this->Orders_model->SendMail($this->input->post('realname'), $this->input->
post('email'), $this->config->item('Site_ServiceName'), $this->config->item('Site_ServiceEmail'), 'Single City Tour Orders', $this->Orders_model->COLI_OrderDetailText);
//发送邮件给客人
$this->Orders_model->SendMail($this->config->item('Site_ServiceName'), $this->config->item('Site_ServiceEmail'), $this->input->post('realname'), $this->input->
post('email'), 'Single City Tour Orders', $this->load->view('orders/email_template', '', true));
//是否AJAX提交
$no_ajax = $this->input->post('no_ajax');
if (empty($no_ajax)) {
$data[] = array('name' => 'ok', 'value' => site_url('orders/single-city-tour-thankyou/'));
echo json_encode($data);
} else {
$file_alias = $this->input->post('file_alias');
redirect(site_url('orders/single-city-tour-thankyou/' . $file_alias));
}
}
}
public function single_city_tour_thankyou() {
$data = array();
$this->html_do->head($data, 'r');
$data['PPCCode'] = $this->lang->line('PPC_single_city_tour');
$this->load->view('orders/r_thankyou/' . $this->site_code, $data);
}
public function asia_tour() { public function asia_tour() {
$data = array(); $data = array();
@ -1163,7 +796,7 @@ class Orders extends CI_Controller {
$data['post_Starting_Date'] = $this->input->post('Starting_Date'); $data['post_Starting_Date'] = $this->input->post('Starting_Date');
$this->load->view('header', $data); $this->load->view('header', $data);
$this->load->view('orders/inquiry_form'); $this->load->view('orders/asia_tour_form');
$this->load->view('footer'); $this->load->view('footer');
} }
@ -1290,146 +923,4 @@ class Orders extends CI_Controller {
$this->load->view('orders/thank_you', $data); $this->load->view('orders/thank_you', $data);
$this->load->view('footer'); $this->load->view('footer');
} }
public function group_tour() {
$this->form_validation->set_rules('cli_no', 'lang:cli_no', 'required');
$data['post_price'] = $this->input->post('cli_price');
if ($this->form_validation->run() == false) {
redirect();
} else {
$data['country'] = $this->Site_model->GetCountry();
$this->Tours_model->TopNum = 1;
$this->Tours_model->CLI_NO = $this->input->post('cli_no');
$tourInfo = $this->Tours_model->GetInfo();
if ($tourInfo) {
$tourInfo->CLI_Price = $this->Tours_model->GetGroupTourPrice($tourInfo->CLI_NO, $this->input->post('starting_date'));
$data['postURL'] = site_url('orders/group-tour-save/');
$data['tourInfo'] = $tourInfo;
$data['Header'] = $this->load->view('header', array('Navigation' => $this->
Site_model->GetNavigation('tour')), true);
$this->load->view('orders/tour', $data);
$this->load->view('footer');
} else {
redirect();
}
}
}
public function group_tour_save() {
$this->form_validation->set_rules('realname', 'lang:realname', 'required');
$this->form_validation->set_rules('nationality', 'lang:nationality', 'required');
$this->form_validation->set_rules('email', 'lang:email', 'required|valid_email');
if ($this->form_validation->run() == false) {
$data = array();
foreach ($this->form_validation->_error_array as $key => $value) {
$data[] = array('name' => $key, 'value' => $value);
}
echo json_encode($data);
} else {
$this->Orders_model->COLI_ID = $this->Orders_model->MakeOrderNumber();
$this->Orders_model->COLI_SenderIP = $this->input->ip_address();
$this->Orders_model->COLI_OrderDetailText = ReplaceFieldName($_POST);
$this->Orders_model->COLI_Servicetype = 'T';
$this->Orders_model->COLI_sourcetype = '32001';
//增加订单跟踪代码
if (isset($_COOKIE['inquireTrackFrom'])) {
if (is_numeric($_COOKIE['inquireTrackFrom'])) {
$this->Orders_model->COLI_sourcetype = (int) $_COOKIE['inquireTrackFrom'];
setcookie("inquireTrackFrom", $_COOKIE['inquireTrackFrom'], 0, '/');
}
}
//Trace GOOGLE
if (isset($_COOKIE['inquireTrackGoogle'])) {
$google_str = get_para_from_url($_COOKIE['inquireTrackGoogle'], 'q');
$this->Orders_model->COLI_OrderDetailText .= "\n\rGOOGLE关键字" . $google_str;
setcookie("inquireTrackGoogle", $_COOKIE['inquireTrackGoogle'], 0, '/');
$this->Orders_model->COLI_Keywords = $google_str;
}
//utm广告跟踪链接
$utm_source = get_cookie('__ah_utm_source');
$utm_source_map = array(
'google' => 78001,
'newsletters' => 78005,
'chinahighlights' => 99999
);
if (!empty($utm_source) && array_key_exists($utm_source, $utm_source_map)) {
if($utm_source_map[$utm_source] != 99999){
$this->Orders_model->COLI_LineClass = $utm_source_map[$utm_source];
}else{
$this->Orders_model->COLI_LineClass = '';
}
switch ($utm_source_map[$utm_source]){
case 78001:
$this->Orders_model->COLI_sourcetype = 32034;
break;
case 78005:
$this->Orders_model->COLI_sourcetype = 32030;
break;
case 99999:
$this->Orders_model->COLI_sourcetype = 32108;
break;
}
// 关联订单后统一删除 utm 的 cookie
delete_cookie('__ah_utm_source', '.asiahighlights.com');
delete_cookie('__ah_utm_medium', '.asiahighlights.com');
delete_cookie('__ah_utm_campaign', '.asiahighlights.com');
}
$this->Orders_model->COLI_GroupType = '19002';
$this->Orders_model->COLI_OrderType = '19002';
$this->Orders_model->COLI_Name = $this->input->post('cli_no') . ' ' . $this->
input->post('cli_tourtitle');
$this->Orders_model->COLI_PersonNum = $this->input->post('adultenum');
$this->Orders_model->COLI_ChildNum = $this->input->post('childnum');
$this->Orders_model->COLI_BabyNum = $this->input->post('babynum');
$this->Orders_model->COLI_OrderStartDate = $this->input->post('starting_date');
$this->Orders_model->COLI_Days = $this->input->post('cli_tourdays');
$this->Orders_model->MEI_MailList = $this->input->post('email');
$this->Orders_model->MEI_Mail = $this->input->post('email2');
$pos = strstr($this->input->post('realname'), ' ');
if ($pos === false) {
$this->Orders_model->MEI_FirstName = $this->input->post('realname');
} else {
$this->Orders_model->MEI_FirstName = str_replace($pos, '', $this->input->post('realname'));
$this->Orders_model->MEI_LastName = $pos;
}
$this->Orders_model->MEI_Nationality = $this->Orders_model->GetNationalityID($this->
input->post('nationality'));
$this->Orders_model->MEI_Gender = $this->input->post('gender');
$this->Orders_model->MEI_Phone = $this->input->post('phoneno');
$this->Orders_model->COLI_ProductSN = $this->input->post('cli_sn');
bind_email($this->Orders_model->MEI_MailList);
$this->Orders_model->TourOrderSave();
$this->Orders_model->SendMail($this->input->post('realname'), $this->input->
post('email'), $this->config->item('Site_ServiceName'), $this->config->item('Site_ServiceEmail'), 'Group Tour Orders', $this->Orders_model->COLI_OrderDetailText);
//发送邮件给客人
$this->Orders_model->SendMail($this->config->item('Site_ServiceName'), $this->config->item('Site_ServiceEmail'), $this->input->post('realname'), $this->input->
post('email'), 'Group Tour Orders', $this->load->view('orders/email_template', '', true));
$data[] = array('name' => 'ok', 'value' => site_url('orders/group-tour-thankyou/'));
echo json_encode($data);
}
}
public function group_tour_thankyou() {
$data = array();
$this->html_do->head($data, 'r');
$data['PPCCode'] = $this->lang->line('PPC_group_tour');
$this->load->view('orders/r_thankyou/' . $this->site_code, $data);
}
public function tour_price() {
$CLI_Price = $this->Tours_model->GetTourPrice($this->input->post('cli_no'), $this->
input->post('adultenum'), $this->input->post('cli_grade'), $this->input->post('season'), $this->input->post('starting_date'));
if ($CLI_Price === false) {
echo 'null';
} else {
echo $CLI_Price->Tour_Price;
}
}
} }

@ -1,4 +1,4 @@
<link href="/min/?f=/css/inquiry-form.css,/css/tailor-make.css" rel="stylesheet"> <link href="/min/?f=/css/asia_tour_form.css,/css/tailor-make.css" rel="stylesheet">
<script language="javascript"> <script language="javascript">
$(function () { $(function () {

@ -1,327 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="robots" content="noindex,nofollow" />
<title>Customers Email Review - China Highlights</title>
</head>
<style>
table td ul {
margin-left:5px;
padding-left:5px;
}
table td ul li {
list-style-type: none;
padding-left:0px;
line-height: 18px;
margin-bottom:5px;
}
</style>
<body style="color: #333; margin: 20px 0px; padding: 0px; font-family: Verdana, Geneva, sans-serif; font-size: 12px;">
<table width="668" cellpadding="0" cellspacing="0" align="center" style="background-color:#f1f1f1; margin: 10px auto; border-radius:4px;">
<tr>
<td colspan="6" align="right" valign="middle" style="font-size:16px; background-color:#fff; padding:0 0 10px; color:#000;" ><img src="https://www.asiahighlights.com/pic/mailtelphone.jpg" width="22" height="16" alt="Telephone" /> +86-773-2806225</td>
</tr>
<tr>
<td width="20"></td>
<td width="106" style="padding:20px 0"><a href="https://www.asiahighlights.com"><img src="https://www.asiahighlights.com/pic/logo-104.png" alt="Asia Highlights" align="middle"/></a></td>
<td width="58" >&nbsp;</td>
<td width="406" style="font-family:Georgia; font-size:45px; color:#010101;"><img src="https://www.asiahighlights.com/pic/slogan.png"></td>
<td width="58">&nbsp;</td>
<td width="15">&nbsp;</td>
</tr>
<tr>
<td></td>
<td colspan="4" width="628"><img src="https://www.asiahighlights.com/image/auto-email-ads.jpg"></td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="4" style=" font-family:Verdana; font-size:14px; padding:10px 0 10px 0px;text-align: justify; color:#8b8b8b;">You're receiving this email because you submitted an inquiry on asiahighlights.com.</td>
<td></td>
</tr>
<tr>
<td></td>
<?php $realname = $this->input->post('realname'); ?>
<td colspan="4" style="font-family:Verdana;line-height:25px;text-align: justify; font-size:12px; color:#000; padding-bottom:10px;"><p>Dear <?php echo!empty($realname) ? $realname : false; ?>,</p>
<p>Thank you for choosing Asia Highlights. Your inquiry has been submitted to Asia Highlights. One of our
travel advisors will respond within 24 hours. If you have not received a reply within 24 horus, please check your &quot;bulk mail&quot; or &quot;junk mail&quot; folders and then contact our Customer Service
Manager at &nbsp;&nbsp;<a href="mailto:contact@asiahighlights.com">contact@asiahighlights.com</a> so that we can investigate immediately. </p>
<p>Below is a copy of your inquiry. Let us know if it is incorrect or you want to make some changes:</p></td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="4" style="font-family:Verdana; font-size:12px; color:#2b6cbd; padding:20px 0 5px 0;">Your Contact Details:</td>
<td></td>
</tr>
<tr>
<th colspan="6" ></th>
</tr>
<?php if (!empty($realname)) { ?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style=" line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0;font-size:12px;">Full Name: <?php echo $realname; ?></td>
<td></td>
</tr>
<?php } ?>
<?php
$nationality = $this->input->post('nationality');
if (!empty($nationality)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style=" line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; font-size:12px;">Nationality: <?php echo $nationality; ?></td>
<td></td>
</tr>
<?php } ?>
<?php
$email = $this->input->post('email');
if (!empty($email)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px;font-size:12px;margin-bottom:5px; padding:3px 0 8px 0">E-mail Address: <?php echo $email; ?></td>
<td></td>
</tr>
<?php } ?>
<?php
$PhoneNo = $this->input->post('PhoneNo');
if (!empty($PhoneNo)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Phone Number: <?php echo $PhoneNo; ?></td>
<td></td>
</tr>
<?php } ?>
<tr>
<th></th>
<td colspan="4" style="font-family:Verdana; font-size:12px; color:#2b6cbd; padding:20px 0 5px 0;">Enquiry Details:</td>
<td></td>
</tr>
<!--201605041539-->
<?php
$adultenum = $this->input->post('adultenum');
empty($adultenum)?$adultenum=$this->input->post('adultsNumber'):false;
$childnum = $this->input->post('childnum');
empty($childnum)?$childnum=$this->input->post('ChildrenNumber'):false;
$babynum = $this->input->post('babynum');
empty($babynum)?$babynum=$this->input->post('BabiesNumber'):false;
if (!empty($adultenum)) {
?>
<tr>
<th></th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Number of Travelers:
<?php
echo $adultenum . ' adults ';
echo!empty($childnum) ? ' , ' . $childnum . ' child' : false;
echo!empty($babynum) ? ' , ' . $babynum . ' baby' : false;
?> </td>
<td></td>
</tr>
<?php } ?>
<?php
$cli_tourdays = $this->input->post('cli_tourdays');
if (!empty($cli_tourdays)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Tour length: <?php echo $cli_tourdays; ?> days </td>
<td></td>
</tr>
<?php } ?>
<?php
$starting_date = $this->input->post('starting_date');
empty($starting_date)?$starting_date=$this->input->post('Date_Start'):false;
if (!empty($starting_date)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Date of Arrival: <?php echo $starting_date; ?></td>
<td></td>
</tr>
<?php } ?>
<?php
$cli_days = $this->input->post('cli_days');
if (!empty($cli_days)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Length: </span><?php echo $cli_days; ?>
</td>
<td></td>
</tr>
<?php } ?>
<?php
$destinations = $this->input->post('destinations');
if (!empty($destinations)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Destinations: </span><?php echo $destinations; ?>
</td>
<td></td>
</tr>
<?php } ?>
<!--201605041539-->
<?php
$cli_no = $this->input->post('cli_no');
$cli_tourtitle = $this->input->post('cli_tourtitle');
if (!empty($cli_no)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Tour Code:
<?php
echo $cli_no;
echo!empty($cli_tourtitle) ? $cli_tourtitle : false;
?>
</td>
<td></td>
</tr>
<?php } ?>
<!--201605041600 2. Hotel Style hotel-->
<?php
$hotel = $this->input->post('hotel');
if (!empty($hotel)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Hotel Style: </span><?php echo $hotel; ?>
</td>
<td></td>
</tr>
<?php } ?>
<!--20160715 start city -->
<?php
$Starting_City = $this->input->post('Starting_City');
if (!empty($Starting_City)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Start City of the Tour: </span><?php echo $Starting_City; ?>
</td>
<td></td>
</tr>
<?php } ?>
<!--20160715 Ending_City -->
<?php
$Ending_City = $this->input->post('Ending_City');
if (!empty($Ending_City)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">End City of the Tour: </span><?php echo $Ending_City; ?>
</td>
<td></td>
</tr>
<?php } ?>
<?php
$guiding = $this->input->post('guiding');
if (!empty($guiding)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">Guide v Freetime: </span><?php echo $guiding; ?>
</td>
<td></td>
</tr>
<?php } ?>
<?php
$city = $this->input->post('city');
if (!empty($city)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">City: </span>
<?php foreach($city as $k=>$v){
if($k !== 0){?>,
<?php } echo $v; } ?>
</td>
<td></td>
</tr>
<?php } ?>
<?php
$seriousBooking = $this->input->post('seriousBooking');
if (!empty($seriousBooking)) {
?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">You Are : </span><?php echo $seriousBooking; ?>
</td>
<td></td>
</tr>
<?php } ?>
<!--201605041600-->
<?php
$additionalrequirements = $this->input->post('additionalrequirements');
empty($additionalrequirements)?$expectation=0:false;
empty($additionalrequirements)?$additionalrequirements=$this->input->post('comments'):false;
empty($additionalrequirements)?$additionalrequirements=$this->input->post('aquestion'):false;
$comments = $this->input->post('comments');
if (!empty($additionalrequirements)) {
?>
<tr>
<th></th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">
<?php if(empty($comments)){?>
Your Expectation:
<?php }?>
<?php echo $additionalrequirements; ?></td>
<td></td>
</tr>
<?php } ?>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:20px 0 8px 0; text-align: justify; font-size:12px; color:#2b6cbd">Got questions? Talk directly to Peggie Lyoo, our expert advisor: </span>
</td>
<td></td>
</tr>
<tr>
<th>&nbsp;</th>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 8px 0; text-align: justify; font-size:12px;">WhatsApp: +86 134 71263244</span>
</td>
<td></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:20px 0 8px 0; text-align: justify; font-size:12px;">Kind regards,</td>
<td></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="4" style="line-height: 18px; margin-bottom:5px; padding:3px 0 60px 0; text-align: justify; font-size:14px;">Asia Highlights Team</td>
<td></td>
</tr>
<tr>
<td colspan="6" style="font-size:12px; padding:20px 0 10px 0px;text-align: justify; color:#8b8b8b; background-color:#fff; line-height:18px;">Copyright &#169; 2016, Asia Highlights, All rights reserved.</td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,384 @@
<link href="/css/inquiry-form-mobile.css" rel="stylesheet">
<body>
<div id="formBanner">
<img src="https://data.asiahighlights.com/image/mobile-form-header.jpg"
src="little monk reading book" width="100%">
<h1>
Start Planning Your Trip
</h1>
<div class="howWeWork">
Tell us your interests and get replied within 24 hours...
</div>
</div>
<div class="container">
<div id="inquiryBox">
<h2>
Your Travel Ideas
</h2>
<div class="interestedRoute">
<div class="headerText">
INTERESTED ITINERARY
</div>
<div class="routeName">
<?php echo $ic_title;?>
</div>
</div>
<h3>
Destinations: <span class="destination"><?php foreach ($countryarr as $city){echo $city.',';}?></span>
</h3>
<input id="check" type="checkbox" class="hidden">
<div class="foldDestinations">
<div class="readMore">
<div class="selectionBlock">
<?php foreach ($countrylist as $moreCity){
echo '<div class="checkboxLabel">';
if(in_array($moreCity,$countryarr)){
echo '<input type="checkbox" value="'.$moreCity.'" id="'.$moreCity.'" name="destination[]" checked="checked" />';
}else{
echo '<input type="checkbox" value="'.$moreCity.'" id="'.$moreCity.'" name="destination[]" />';
}
echo '<label for="'.$moreCity.'" class="updatedestination">'.$moreCity.'</label></div>';
}?>
<span class="formMemo">
You are welcome to input other destinations below if it is not shown here.
</span>
</div>
</div>
</div>
<label for="check" class="check-in">
Choose more destinations
<i class="fa fa-angle-down" aria-hidden="true">
</i>
</label>
<label for="check" class="check-out">
Fold
<i class="fa fa-angle-up" aria-hidden="true">
</i>
</label>
<div class="clear">
</div>
<div class="selectionBlock">
<h3>
Your hotel preference *
</h3>
<span class="formNote">
Hotels prices in Japan are at least doubled based on the suggested rates
below.
</span>
<form action="" method="GET">
<div class="optionLable">
<input type="radio" value="Luxury" id="fiveStar" name="hotel" value="Luxury (5 stars & up)">
<label for="fiveStar">
<div class="selectionText">
Luxury (5 stars & up)
<div class="selectionMemo">
USD 200+ / room / night
</div>
</div>
</label>
</div>
<div class="optionLable">
<input type="radio" value="Handpiched Comfort" id="fourStar" name="hotel" value="Standard (3 stars)">
<label for="fourStar">
<div class="selectionText">
Standard (3 stars)
<div class="selectionMemo">
USD 70-100 / room / night
</div>
</div>
</label>
</div>
<div class="optionLable">
<input type="radio" value="Standard" id="threeStar" name="hotel" value="Luxury (5 stars & up)">
<label for="threeStar">
<div class="selectionText">
Luxury (5 stars & up)
<div class="selectionMemo">
USD 200+ / room / night
</div>
</div>
</label>
</div>
</form>
</div>
<div class="selectionBlock">
<h3>
Number in your group *
</h3>
<div class="peopleSelect">
<span class="formMemo">
Adults (≥12 years old)
</span>
<input class="number" type="text" value="2" name="adultnumber" />
<div class="numberBtn">
<input class="minaddBtn reduceadult" type="button" value="-" />
<input class="minaddBtn addadult" type="button" value="+" />
</div>
</div>
<div class="peopleSelect">
<span class="formMemo">
Kids (2-11 years old)
</span>
<input class="number" type="text" value="0" name="kidnumber" />
<div class="numberBtn">
<input class="minaddBtn reducechild" type="button" value="-" />
<input class="minaddBtn addchild" type="button" value="+" />
</div>
</div>
</div>
<div class="selectionBlock">
<h3>
Your date of arrival *
</h3>
<input type="text" class="arrivalDate datepicker hidden-xs" id="Date_Start"
name="Date_Start" value="" placeholder="mm/dd/yyyy" autocomplete="off">
<input type="date" class="arrivalDate visible-xs" id="Date_Start" name="Date_Start_Mobile"
value="2019-12-19" min="2019-12-19" placeholder="mm/dd/yyyy" autocomplete="off">
<div class="checkYes">
<input type="checkbox" class="checkBorder" id="dateLimit" name="time">
<label for="dateLimit">
I'm flexible on the date
</label>
</div>
</div>
<div class="selectionBlock">
<h3>
Tell us more to help us put together your ideal journey.
</h3>
<form action="" method="GET" class="travelTag">
<div class="travelStyle">
<input type="checkbox" value="family" id="familytrip" name="grouptype">
<label for="familytrip">
<div class="smallTag">
<div class="styleText">
Family
</div>
</div>
</label>
</div>
<div class="travelStyle">
<input type="checkbox" value="couple" id="cp" name="grouptype">
<label for="cp">
<div class="smallTag">
<div class="styleText">
Couple
</div>
</div>
</label>
</div>
<div class="travelStyle">
<input type="checkbox" value="solo" id="single" name="grouptype">
<label for="single">
<div class="smallTag">
<div class="styleText">
Solo
</div>
</div>
</label>
</div>
<div class="travelStyle">
<input type="checkbox" value="friends" id="mate" name="interests">
<label for="mate">
<div class="smallTag">
<div class="styleText">
Friends
</div>
</div>
</label>
</div>
<div class="travelStyle">
<input type="checkbox" value="vacation" id="holiday" name="grouptype">
<label for="holiday">
<div class="smallTag">
<div class="styleText">
Vacation
</div>
</div>
</label>
</div>
<div class="travelStyle">
<input type="checkbox" value="adventure" id="risk" name="interests">
<label for="risk">
<div class="smallTag">
<div class="styleText">
Adventure
</div>
</div>
</label>
</div>
<div class="travelStyle">
<input type="checkbox" value="food" id="gourmet" name="interests">
<label for="gourmet">
<div class="smallTag">
<div class="styleText">
Food
</div>
</div>
</label>
</div>
<div class="travelStyle">
<input type="checkbox" value="asiabeginner" id="firstasia" name="interests">
<label for="firstasia">
<div class="smallTag">
<div class="styleText">
First time to Asia
</div>
</div>
</label>
</div>
<div class="travelStyle">
<input type="checkbox" value="localculture" id="culture" name="interests">
<label for="culture">
<div class="smallTag">
<div class="styleText">
Culture&History
</div>
</div>
</label>
</div>
<div class="travelStyle">
<input type="checkbox" value="relax" id="rest" name="interests">
<label for="rest">
<div class="smallTag">
<div class="styleText">
Rest&relaxation
</div>
</div>
</label>
</div>
</form>
<textarea id="additionalrequirements" name="additionalrequirements" style="resize:none;"
placeholder="E.g. Age range, duration, group situation, special requests...">
</textarea>
</div>
<hr />
<h2>
Tell us about you...
</h2>
<div class="genderSelection">
<form action="" method="GET">
<div class="checkboxGender">
<input type="radio" value="Mr" id="male" name="gender">
<label for="male">
Mr.
</label>
</div>
<div class="checkboxGender">
<input type="radio" value="Ms" id="female" name="gender">
<label for="female">
Ms.
</label>
</div>
<div class="checkboxGender">
<input type="radio" value="Mx" id="neutural" name="gender">
<label for="neutural">
Mx.
</label>
</div>
</form>
</div>
<div class="inputTerm">
<input type="text" name="name" required>
<label>
Full Name *
</label>
</div>
<div class="inputTerm">
<input type="email" name="email" required>
<label>
Email Address *
</label>
</div>
<span class="formMemo">
Your trip advisor will talk with you via email first.
</span>
<div class="inputTerm">
<input type="text" name="nationality" required>
<label>
Nationality *
</label>
</div>
<div class="inputTerm">
<input type="text" name="nationality" required>
<label>
Phone number
</label>
</div>
<span class="formMemo">
Area code + number. Only call if you ask.
</span>
<div class="checkYes">
<input type="checkbox" value="Available on WhatsApp" name="whatsapp" id="whatsapp"
class="checkBorder">
<label for="whatsapp">
This number is available on WhatsApp
</label>
</div>
<div class="inquiryBtn">
<input type="submit" value="Start My Journey">
</div>
<div class="contactUs">
<p>
Can't decide? Why not
<a href="https://www.asiahighlights.com/contact-us.htm">
contact us
</a>
for help!
</p>
</div>
</div>
</div>
</body>
<script>
$(function(){
var adultnums = $('input[name="adultnumber"]').val();
var kidnums = $('input[name="kidnumber"]').val();
//成人人数加减
$('.addadult').click(function(){
adultnums++;
$('input[name="adultnumber"]').val(adultnums);
});
$('.reduceadult').click(function(){
if(adultnums > 0){
adultnums--;
$('input[name="adultnumber"]').val(adultnums);
}
});
//加减儿童人数
$('.addchild').click(function(){
kidnums++;
$('input[name="kidnumber"]').val(kidnums);
});
$('.reducechild').click(function(){
if(kidnums > 0){
kidnums--;
$('input[name="kidnumber"]').val(kidnums);
}
});
//更新目的地
$('.updatedestination').click(function(){
var destinantionstr = '';
var selectdes = $(this).prev().val();
for(var i=0;i<$('input[name="destination[]"]').length-1;i++){
if(selectdes != $($('input[name="destination[]"]')[i]).val()){
if($($('input[name="destination[]"]')[i]).is(':checked')){
destinantionstr += $($('input[name="destination[]"]')[i]).val() + ',';
}
}
}
if($(this).prev().is(':checked')){
destinantionstr = destinantionstr.substr(0,destinantionstr.length-1);
}else{
destinantionstr += selectdes;
}
$('.destination').html(destinantionstr);
});
});
</script>

@ -1,180 +1,172 @@
<html> <link href="/css/lantern-form-pc.css" rel="stylesheet">
<head> <body>
<meta name="generator" <div class="wholeWrap">
content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" /> <div class="col-md-3 col-sm-3">
<link href="/css/form-advanced.css" rel="stylesheet" /> </div>
<title></title> <div class="col-md-7 col-sm-7">
</head>
<body>
<div id="LFformBanner">
<h1>Book Yi Peng Festival Ticket(s)</h1>
<div class="procedure hidden-xs">
<div class="container">
<span class="subTitle">How we create your itinerary</span>
<div class="row"> <div class="row">
<div class="col-md-5 col-sm-5"> <div class="workingSteps">
<span class="listIcon">Use the form below to make an inqury with us</span> <div class="col-md-6 col-sm-6">
<div class="stepLogo">
<img src="https://data.asiahighlights.com/image/ticket-select.png" alt="select ticket type">
</div>
</div>
<div class="col-md-18 col-sm-18">
<div class="detailedSteps">
<div class="stepText">
Select services, ticket Type, quantity and date
</div> </div>
<div class="col-md-1 col-sm-1"></div>
<div class="col-md-5 col-sm-5">
<span class="peopleIcon">We get in touch with you within 24 hours with suggestions</span>
</div> </div>
<div class="col-md-1 col-sm-1"></div> </div>
</div>
<div class="workingSteps">
<div class="col-md-6 col-sm-6"> <div class="col-md-6 col-sm-6">
<span class="emailIcon">We then craft an intinerary proposal based on your interests</span> <div class="stepLogo">
<img src="https://data.asiahighlights.com/image/ticket-fill-form.png"
alt="select ticket type">
</div> </div>
<div class="col-md-1 col-sm-1"></div>
<div class="col-md-5 col-sm-5">
<span class="handIcon">We work with you to refine the itinerary until you are satisfied</span>
</div> </div>
<div class="col-md-18 col-sm-18">
<div class="detailedSteps">
<div class="stepText">
<strong>
Provide your personal information
</strong>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="container"> <div class="workingSteps">
<div class="row"> <div class="col-md-6 col-sm-6">
<div class="col-md-17 col-sm-17 col-xs-24"> <div class="stepLogo">
<img src="https://data.asiahighlights.com/image/ticket-pay.png" alt="select ticket type">
</div>
</div>
<div class="col-md-18 col-sm-18">
<div class="detailedSteps">
<div class="stepText">
Make a payment
</div>
</div>
</div>
</div>
<div class="workingSteps">
<div class="col-md-6 col-sm-6">
<div class="stepLogo">
<img src="https://data.asiahighlights.com/image/ticket-get.png" alt="select ticket type">
</div>
</div>
<div class="col-md-18 col-sm-18">
<div class="detailedSteps">
<div class="stepText">
We get in touch with you within 24 hours with confirmation
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-14 col-sm-14">
<form action="/orders/lantern_save" method="post" id="form_lantern" name="form_lantern"> <form action="/orders/lantern_save" method="post" id="form_lantern" name="form_lantern">
<div id="contactInfo" class="ticketSelection"> <div id="inquiryBox">
<h2 class="ticketSelection">Ticket Selection</h2> <h2>
<div class="ticketSelection"> Your Details...
<div class="row"> </h2>
<div class="col-md-13 col-sm-13 col-xs-24"> <div class="genderSelection">
<span class="subTitle">Which Location? <form action="" method="GET">
<sup>*</sup></span> <div class="checkboxGender">
<div class="selectBox" id="cruise"> <input type="radio" value="100001" id="male" name="gender">
<select id="cruisename" name="TicketType" style="width: 100%;" type="text"> <label for="male">
<?php Mr.
if($ticketType == 'maejo'){ </label>
echo '<option selected="selected" value="MaeJo University">MaeJo University</option>'; </div>
echo '<option value="Chiang Mai CAD">Chiang Mai CAD</option>'; <div class="checkboxGender">
}else{ <input type="radio" value="100003" id="female" name="gender">
echo '<option selected="selected" value="Chiang Mai CAD">Chiang Mai CAD</option>'; <label for="female">
echo '<option value="MaeJo University">MaeJo University</option>'; Ms.
} </label>
?> </div>
</select> <div class="checkboxGender">
</div> <input type="radio" value="100003" id="neutural" name="gender">
</div> <label for="neutural">
<div class="col-md-13 col-sm-13 col-xs-24"> Mx.
<span class="subTitle">Ticket Type </label>
<sup>*</sup></span> </div>
<input type="text" name="TicketStandard"/></div> </form>
<div class="col-md-13 col-sm-13 col-xs-24"> </div>
<span class="subTitle">No. of travelers <div class="inputTerm">
<sup>*</sup></span> <input type="text" name="fullname" required>
<div class=" twoBlanks">
<div class="selectBox" id="people">
<div class="col-md-13 col-sm-13 col-xs-12">
<select id="adult_number" name="adult_number" type="text">
<option selected="selected" value="">Adults (e12)</option>
<?php
for($i=1;$i<=11;$i++){
if($i == $travelNumber){
echo '<option selected="selected" value="'.$i.'">'.$i.'</option>';
}else{
echo '<option value="'.$i.'">'.$i.'</option>';
}
}
?>
</select>
</div>
</div>
</div>
</div>
<div class="col-md-13 col-sm-13 col-xs-24">
<span class="subTitle">Select Date to Attend Yi Peng Festival
<sup>*</sup></span>
<div class="selectBox">
<label> <label>
<select name="Date_Start" required=""> Full Name *
<option selected="selected" value="31/Oct/2020">31/Oct/2020</option>
<option selected="selected" value="01/Nov/2020">01/Nov/2020</option>
<!--<option>- Select Date -</option>
<option value="12/Nov/2019">12/Nov/2019</option>-->
</select>
</label> </label>
</div> </div>
<div class="inputTerm">
<input type="email" name="email" required>
<label>
Email Address *
</label>
</div> </div>
<div class="clearfix"></div> <div class="formMemo">
All your ticket issues will be sent to your mailbox.
</div> </div>
<div class="inputTerm">
<input type="text" name="Nationality" required>
<label>
Nationality / Region *
</label>
</div> </div>
<div class="inputTerm">
<input type="text" name="PhoneNo" required>
<label>
Phone number
</label>
</div> </div>
<div id="contactInfo"> <div class="formMemo">
<h2>Your details</h2> Area code + number. Only call if you ask.
<div class="row"> </div>
<div class="col-md-3 col-sm-3 col-xs-24"> <div class="checkYes">
<span class="subTitle">Title <input type="checkbox" value="Available on WhatsApp" name="whatsapp" id="whatsapp" class="checkBorder">
<sup>*</sup></span> <label for="whatsapp">
<select name="gender"> This number is available on WhatsApp
<option value="100001">Mr</option> </label>
<option value="100003">Mrs</option> </div>
<option value="100003">Ms</option> <textarea id="additionalrequirements" name="additionalrequirements" style="resize:none;" placeholder="ADDITIONAL REQUESTS... "></textarea>
</select></div> <div class="settleBlock">
<div class="col-md-10 col-sm-10 col-xs-24"> <div class="settlePart">
<span class="subTitle">Full Name <div class="settleItems">
<sup>*</sup></span> Location: <span class="totalPrice"><?php echo $location;?></span>
<input type="text" name="Firstname" /></div> </div>
<input type="hidden" name="Lastname" /> <div class="settleItems">
</div> Ticket Type: <span class="totalPrice"><?php echo $ticketonlyselection;?></span>
<div class="clearfix"></div>
<div class="col-md-13 col-sm-13 col-xs-24">
<span class="labelTitle">Email address
<sup>*</sup></span>
<input type="email" name="email" /></div>
<div class="clearfix"></div>
<div class="col-md-13 col-sm-13 col-xs-24">
<span class="labelTitle">Nationality
<sup>*</sup></span>
<input type="text" name="Nationality"/>
</div>
<div class="clearfix"></div>
<div class="col-md-13 col-sm-13 col-xs-24">
<span class="labelTitle">Phone number</span>
<input type="tel" placeholder="(+1)" name="PhoneNo" /></div>
<div class="col-md-10 col-sm-10 col-xs-24">
<span class="onlyCall">Only call if you ask, or for email issues</span>
</div>
<div class="col-md-24 col-sm-24 col-xs-24">
<span class="labelTitle">Tell us more to help us put together your ideal journey</span>
<textarea id="additionalrequirements" name="additionalrequirements" style="resize:none;"
placeholder=""></textarea></div>
<div class="clearfix"></div>
</div>
<input type="hidden" value="13349" name="cli_sn" />
<input type="hidden" value="AH-24" name="cli_no" />
<input type="hidden" value="Thailand" name="Destination">
<input type="hidden" value="YiPengFestivalinChiangMai" name="ic_title">
<input type="hidden" value="<?php echo $ticketonlyselection; ?>" name="ticketOnlySelection" />
</form>
<div class="row">
<div class="col-md-14 col-sm-14 hidden-xs"></div>
<div class="col-md-10 col-sm-10 col-xs-24">
<div class="submitBtn">
<span class="beginNow">
<a href="###" id="paynow">Send My Inquiry</a>
</span> We never pass your information onto a third party. After submitting this form you will receive an email
confirmation and from time to time our newsletters.</div>
</div> </div>
<div class="settleItems">
Date of event: <span class="totalPrice"><?php echo $date;?></span>
</div> </div>
<div class="settleItems">
Number of people: <span class="totalPrice"><?Php echo $travelNumber;?></span>
</div> </div>
<div class="col-md-7 col-sm-7 hidden-xs">
<div class="formTrust">
<h2>Recognized</h2>
<img src="/pic/featured-in.png" class="img-responsive" />
<div class="monkReview">&quot;I can definitely recommend Asia Highlights and Albee if you are planning to book a trip
to Myanmar and I will use them again if we are going to travel to any of the destinations on offer.&quot;
<b>Frank S</b></div>
</div> </div>
<div class="settleMponey">
Total Price:
<span class="totalPrice">
USD <?php echo $totalprice;?>
</span>
</div>
</div>
<div class="clear">
</div>
<div class="inquiryBtn">
<input type="submit" value="Pay Now">
</div>
<input type="hidden" name="ticketype" value="<?php echo $ticketonlyselection;?>"/>
<input type="hidden" name="date" value="<?php echo $date;?>"/>
<input type="hidden" name="travelNumber" value="<?php echo $travelNumber;?>"/>
<input type="hidden" name="totalprice" value="<?php echo $totalprice;?>"/>
<input type="hidden" name="coli_sn" value="13349"/>
</div>
</form>
</div> </div>
<div class="clear">
</div> </div>
</div> </div>
<script> </body>
$(function(){
$('#paynow').click(function(){
$('#form_lantern').submit();
});
});
</script>
</body>
</html>

@ -1,340 +0,0 @@
<link href="/min/?f=/css/tailor-make.css,/css/tour-detail.css" rel="stylesheet">
<script language="javascript">
$(function () {
$("#flexible_date_yes").click(function () {
$('#choose_date_box').show();
});
$("#flexible_date_no").click(function () {
$('#choose_date_box').hide();
});
$("#show_arrowUp").mouseover(function () {
$('#arrowUp').show();
});
$("#show_arrowUp").mouseout(function () {
$('#arrowUp').hide();
});
})
</script>
<div id="inquiryForm">
<div class="container">
<div class="row">
<div class="col-md-2 col-sm-2 hidden-xs"></div>
<div class="col-md-3 col-sm-3 col-xs-6 pgHead"><img src="/image/peggie.png" class="img-responsive"></div>
<div class="col-md-19 col-sm-19 col-xs-18"> <span class="advisorInfo"> <span class="arrow"></span>The joy of travel starts at home! Your travel adventure starts the moment you start to map it out. Were here to help you discover SE Asia in your way!</span> </div>
<div class="clearfix"></div>
<div class="col-md-5 col-sm-5 hidden-xs"></div>
<div class="col-md-19 col-sm-19 col-xs-24">
<div class="FormDetail">
<form action="/orders/tailormade_save" method="post" id="form_tailormade" name="form_tailormade" >
<div class="whoTravel">
<h2 class="Question">1. Travelers? <sup>*</sup></h2>
<div class="row">
<div class="col-md-8 col-sm-8 col-xs-24">
<div class="groupType adults"> Adults (age 18+)
<select id="adultsNumber" name="adultsNumber">
<?php for ($i = 1; $i <= 5; $i++) { ?>
<option value="<?php echo $i; ?>" ><?php echo $i; ?></option>
<?php } ?>
<option value="6+" >6+</option>
</select>
</div>
</div>
<div class="col-md-8 col-sm-8 col-xs-24">
<div class="groupType youth"> Youth (age 12-17)
<select id="ChildrenNumber" name="ChildrenNumber">
<?php for ($i = 0; $i <= 5; $i++) { ?>
<option value="<?php echo $i; ?>" ><?php echo $i; ?></option>
<?php } ?>
<option value="6+" >6+</option>
</select>
</div>
</div>
<div class="col-md-8 col-sm-8 col-xs-24">
<div class="groupType kids"> Children (&lt; age 12)
<select id="BabiesNumber" name="BabiesNumber">
<?php for ($i = 0; $i <= 5; $i++) { ?>
<option value="<?php echo $i; ?>" ><?php echo $i; ?></option>
<?php } ?>
<option value="6+" >6+</option>
</select>
</div>
</div>
</div>
</div>
<div class="travelDays row">
<h2 class="Question">2. Tour Length <sup>*</sup></h2>
<div class="col-md-8 col-sm-10">
<div class="daysBlock">
<select class="tourdays" name="cli_tourdays" id="cli_tourdays">
<option selected value="">- how many -</option>
<?php for ($i = 1; $i <= 20; $i++) { ?>
<option value="<?php echo $i; ?>" ><?php echo $i; ?></option>
<?php } ?>
<option value="20+">20+</option>
</select>
days </div>
</div>
<div class="col-md-14 col-sm-14"><span class="dateFlexible">Are your dates flexible?</span> <br>
<input type="radio" class="hotel" value="daysFlexible_yes" name="daysFlexible">
Yes
<input type="radio" class="hotel" value="daysFlexible_no" name="daysFlexible">
No </div>
</div>
<div class="formItem">
<h2 class="Question">3. Date of Arrival<sup>*</sup></h2>
<div class="row">
<div class="col-md-10 col-sm-10">
<input type="text" class="arrivalDate datepicker" id="Date_Start" name="Date_Start" value="" placeholder="mm/dd/yyyy" autocomplete="off">
</div>
<div class="col-md-14 col-sm-14"><span class="dateFlexible">Flexible to arrive? </span> <br>
<input type="radio" class="hotel" value="yes" id='flexible_date_yes_1' name="flexible_date">
Yes
<input type="radio" class="hotel" value="no" id='flexible_date_no_1' name="flexible_date">
No </div>
</div>
<div id='choose_date_box' style="display:none;">
<div class="Flexible">Choose the date!</div>
<div class="row ChooseDate">
<div class="col-md-3 col-sm-3">Arrive:</div>
<div class="col-md-21 col-sm-21">
<input type="text" class="flexibleDate datepicker" value="" name="Arrive_date" id="Arrive_date">
</div>
</div>
<div class="row ChooseDate">
<div class="col-md-3 col-sm-3">Depart:</div>
<div class="col-md-21 col-sm-21">
<input type="text" class="flexibleDate datepicker" value="" name="Depart_date" id="Depart_date">
</div>
</div>
</div>
</div>
<div class="whoTravel">
<h2 class="Question">4. Where will you start and end the tour?</h2>
<div class="row">
<div class="col-md-10 col-sm-10 col-xs-24">
<div class="flightOption ending">
<select name="Start_City" >
<option value="Starting City">Start City</option>
<option value="Undecided">Undecided</option>
<option value="Open to Suggestion">Open to Suggestion</option>
<option value="Hanoi">Hanoi</option>
<option value="Ho Chi Minh City">Ho Chi Minh City</option>
<option value="Bangkok">Bangkok</option>
<option value="Other City">Other City</option>
</select>
</div>
</div>
<div class="col-md-10 col-sm-10 col-xs-24">
<div class="flightOption starting">
<select name="End_City" >
<option value="Ending City">End City</option>
<option value="Undecided">Undecided</option>
<option value="Open to Suggestion">Open to Suggestion</option>
<option value="Hanoi">Hanoi</option>
<option value="Ho Chi Minh City">Ho Chi Minh City</option>
<option value="Bangkok">Bangkok</option>
<option value="Other City">Other City</option>
</select>
</div>
</div>
</div>
</div>
<div class="hotelBlock">
<h2 class="Question">5. Hotel Style <sup>*</sup>
<small>
<a href="javascript:void(0);" id="show_arrowUp" title=""><font color="#AE0000">(what's this?)</font></a>
<div class="hint" id="arrowUp" style="display: none" >
<span class="arrowUp"></span>
Instead of ranking hotels in a traditional way, Asia Highlights carefully inspects some selected hotels into 3 styles. Each style ensures good location, nice service and unique SE Asian style.
</div>
</small>
</h2>
<div class="row">
<div class="col-md-8 col-sm-24">
<label for="fiveStar">
<div class="hotelStyle luxury">
<input name="hotel" type="radio" value="Luxury (5 stars & up)" id="fiveStar">
Luxury (5 stars & up) <span class="priceRange">USD 200+/room/night</span> </div>
</label>
</div>
<div class="col-md-8 col-sm-24">
<label for="fourStar">
<div class="hotelStyle boutique">
<input name="hotel" type="radio" value=" Handpicked Comfort (4-5 stars) " id="fourStar">
Handpicked Comfort (4-5 stars) <span class="priceRange">USD 100-200/room/night</span> </div>
</label>
</div>
<div class="col-md-8 col-sm-24">
<label for="threeStar">
<div class="hotelStyle comfort">
<input name="hotel" type="radio" value="Standard (3 star) " id="threeStar">
Standard (3 star) <span class="priceRange">USD 50-100/room/night </span> </div>
</label>
</div>
</div>
</div>
<div class="guideBlock">
<h2 class="withText Question">6. Guide v Freetime <sup>*</sup></h2>
<div class="row">
<div class="tipText">Ask for the full or half guiding service(guide and private transfer) as your travel experience and where to visit.</div>
<div class="col-md-8 col-sm-12">
<label for="fullguide">
<div class="guideStyle everyDay">
<input type="radio" name="guiding" value="Every Day Guided" id="fullguide">
Every Day Guided & Private Transfer</div>
</label>
</div>
<div class="col-md-8 col-sm-12">
<label for="mostguide">
<div class="guideStyle mostDay">
<input type="radio" name="guiding" value="Most Days Guided" id="mostguide">
Most Days Guided & Private Transfer</div>
</label>
</div>
<div class="col-md-8 col-sm-12">
<label for="essguide">
<div class="guideStyle onlyEssential">
<input type="radio" name="guiding" value="Essential Days Guided" id="essguide">
Essential Days Guided & Private Transfer </div>
</label>
</div>
</div>
</div>
<div class="specialRequest">
<h2 class="withText Question">7. What's your ideal trip? <sup>*</sup></h2>
<div class="row">
<div class="tipText">Tell us where you want to visit, what your must-sees and your interests are.<br/>
*(3) means the suggested days in each place.</div>
<div class="citySelect">
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Yangon(3)">
Yangon(3)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Bagan(2)">
Bagan(2)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Inle Lake(2)">
Inle Lake(2)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Mandalay(2)">
Mandalay(2)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Hanoi(2)">
Hanoi(2)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Halong Bay Cruise(2)">
Halong Bay Cruise(2)</label></div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Sapa(3)">
Sapa(3)</label></div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Hoi An (2)">
Hoi An (2)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Ho Chi Minh City (2)">
Ho Chi Minh City (2)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Mekong Delta (2)">
Mekong Delta (2)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Siem reap - Angkor Wat(2)">
Siem Reap(3)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Luang Prabang (2)">
Luang Prabang (2)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Cambodia">
Cambodia(5)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Laos">
Laos (3)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="Thailand">
Thailand(3)</label>
</div>
<div class="col-md-6 col-sm-6 col-xs-8">
<label>
<input type="checkbox" name="city[]" value="China">
China(8)</label>
</div>
</div>
<textarea class="simpleinfoBox col-md-22 col-sm-22" wrap="hard" name="additionalrequirements" id="additionalrequirements" onfocus="dispTips('sCustominfoTipsid')" onBlur="hideTips('sCustominfoTipsid')" placeholder="Tell us more to help us understand you better, such as I want to take the hot air balloon ride in Bagan, I want a day trip to Hue from Hoi An... How can we make it extra special?"></textarea>
</div>
</div>
<div class="contactinfo">
<h2 class="Question">8. Contact Details <sup>*</sup></h2>
<div class="row">
<div class="personalInfo col-md-10 col-sm-10">
<div class="input-group margin-bottom-sm"> <span class="input-group-addon">
<select name="gender" id="gender">
<option value="100001"> Mr.</option>
<option value="100003"> Ms.</option>
</select>
</span>
<input class="form-control fullname" type="text" placeholder="Full Name*" name="realname" id="realname" >
</div>
</div>
<div class="personalInfo col-md-10 col-sm-10">
<div class="input-group margin-bottom-sm"> <span class="input-group-addon"><i class="fa fa-globe"></i></span>
<input class="form-control nationality typeahead_nationality typeahead" type="text" placeholder="Nationality*" name="nationality" id="nationality" >
</div>
</div>
<div class="clear"></div>
<div class="personalInfo col-md-10 col-sm-10">
<div class="input-group"> <span class="input-group-addon"><i class="fa fa-envelope-o fa-fw"></i></span>
<input class="form-control email" type="email" placeholder="Email*" name="email" id="email" >
</div>
<span class="noSpam hidden-xs hidden-sm">We never spam you or sell your address.</span> </div>
<div class="personalInfo col-md-10 col-sm-10 col-xs-23">
<div class="input-group margin-bottom-sm"> <span class="input-group-addon"><i class="fa fa-phone"></i></span>
<input class="form-control telephone" type="tel" placeholder="+country code and number." name="PhoneNo" id="PhoneNo" >
</div>
<span class="noSpam hidden-xs hidden-sm">Only call you if you ask, or for email issues.</span> </div>
</div>
</div>
<div class="clearfix"></div>
<div class="sendInquiry row">
<div class="col-md-7 col-sm-7 hidden-xs"></div>
<div class="col-md-10 col-sm-10 col-xs-24">
<input type="button" value="Help Me Plan" onclick="submitForm('form_tailormade');" >
</div>
<div class="col-md-7 col-sm-7 hidden-xs"></div>
</div>
</form>
</div>
</div>
</div>
</div>

@ -0,0 +1,197 @@
@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i');
body { font-family:'Hind Madurai', sans-serif}
/* new fonts */
/* latin */
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('Alegreya Sans Medium'), local('AlegreyaSans-Medium'), url(https://www.asiahighlights.com/css/fonts/5aUu9_-1phKLFgshYDvh6Vwt5alOqEp2iw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Alegreya Sans Regular'), local('AlegreyaSans-Regular'), url(https://www.asiahighlights.com/css/fonts/5aUz9_-1phKLFgshYDvh6Vwt7VptvQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Alegreya Sans Bold'), local('AlegreyaSans-Bold'), url(https://www.asiahighlights.com/css/fonts/5aUu9_-1phKLFgshYDvh6Vwt5eFIqEp2iw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Hind Madurai';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Hind Madurai Light'), local('HindMadurai-Light'), url(https://www.asiahighlights.com/css/fonts/f0Xu0e2p98ZvDXdZQIOcpqjfXaUXfsEp.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Hind Madurai';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Hind Madurai Regular'), local('HindMadurai-Regular'), url(https://www.asiahighlights.com/css/fonts/f0Xx0e2p98ZvDXdZQIOcpqjX9ocC.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* CSS Document */
#inquiryBox { display: block; margin:0 0 35px; background-color: #FFF;padding: 50px;border-radius: 4px;float: right;width: 100%;}
.wholeWrap{background: url(https://data.asiahighlights.com/image/lantern-pc-header.jpg) no-repeat fixed;background-size: 100%;padding-top:60px;padding-right: 15%;width: 100%;padding-bottom: 100px}
h3{ font-size: 20px;
font-weight: 500;
font-family: 'Alegreya Sans',sans-serif;margin-bottom: 10px;margin-top: 30px;}
.settleBlock{padding: 15px 0;width:100%;}
.settleMponey{font-size: 24px;font-weight: 700;border-top: 1px dashed #d1d1d1;border-bottom: 1px dashed #d1d1d1;padding: 15px 0; font-family: 'Alegreya Sans',sans-serif;}
.settleItems{font-size: 18px}
.totalPrice{color: #ad1818}
.settlePart{border-top: 1px dashed #d1d1d1;padding: 20px 0}
#inquiryBox h2 { font-size:32px;padding-bottom:10px; margin:0 0 15px;font-family: 'Alegreya Sans',sans-serif;font-weight: 700;}
#contactInfo { display: block; box-shadow:0 0 5px #999; border-radius:4px; margin:0 0 25px; padding:25px; background:#fff;}
#contactInfo h2 { font-size:24px; border-bottom:1px solid #d1d1d1; padding-bottom:20px; margin:0 0 00px;}
.labelTitle { display: block; font-size:16px; font-weight:400; color:#333; margin:30px 0 15px;}
.labelTitle .whatsThis { color:#a31022; font-size:13px;}
textarea { font-family:'Open Sans', sans-serif!important; font-size:16px; line-height:26px; padding:15px !important; border:1px solid #d1d1d1; background:#fff; width:100%; height:60px; border-radius:2px;margin-top: 10px;}
textarea:focus{border: 1px solid #7D9EC0;outline: none}
#contactInfo .subTitle { display: block; font-size:16px; font-weight:400; color:#333; margin:30px 0 15px;}
#contactInfo input { width:100%; font-size:14px; font-family:'Open Sans', sans-serif!important; border-radius:2px!important; padding:8px 15px; color:#777 !important; background:#fff; border:1px solid #d1d1d1;}
#inquiryBox label { font-weight: normal;}
#inquiryBox .checked {background: url(/pic/checked-icon.png) no-repeat left;}
#inquiryBox select { width:100%; font-size:14px; font-family:'Open Sans', sans-serif!important; border-radius:2px!important; padding:2px 10px; cursor:pointer; appearance: none; -moz-appearance: none; -webkit-appearance: none; background: url(/pic/select-tag.png) no-repeat 96% center #fff; background-size: 18px 10px; color:#777 !important; border:1px solid #d1d1d1;}
#inquiryBox select option { padding:5px 0 5px 10px;}
#contactInfo select { width:100%; font-size:14px; font-family:'Open Sans', sans-serif!important; border-radius:2px!important; padding:2px 10px; cursor:pointer; appearance: none; -moz-appearance: none; -webkit-appearance: none; background: url(/pic/select-tag.png) no-repeat 96% center #fff; background-size: 18px 10px; color:#777 !important;border:1px solid #d1d1d1;height:38px}
#contactInfo select option { padding:5px 0 5px 10px;}
/* selection box */
.optionLable input{display: none;}
.checkboxGender input[type="radio"] + label{font-size: 18px;padding: 5px 0;border: 1px solid #d1d1d1;border-radius: 4px;display: block;margin-top: 10px;text-align: center;color: #999;font-family: 'Alegreya Sans',sans-serif;}
.checkboxGender input[type="radio"]:checked + label{background-color:#ad1818;color: #FFF;border-color: #ad1818}
.optionLable input[type="radio"] + label{width: 100%;font-size: 22px;padding: 5px 0;border: 1px solid #d1d1d1;border-radius: 4px;display: block;margin-top: 10px;text-align: center;color: #999;height: 65px;font-family: 'Alegreya Sans',sans-serif;}
.optionLable input[type="radio"]:checked + label{border: 1px solid #ad1818;color: #ad1818}
.checkboxLabel input[type="checkbox"] + label{font-size: 22px;padding: 5px 0;border: 1px solid #d1d1d1;border-radius: 4px;display: block;margin-top: 10px;text-align: center;color: #999;height: 65px;font-family: 'Alegreya Sans',sans-serif;padding-top: 15px;}
.checkboxLabel input[type="checkbox"]:checked + label{border: 1px solid #ad1818;color: #ad1818}
.checkboxLabel{display: inline-block;width: 49%;}
.checkboxLabel:nth-child(even){float: right}
.checkboxLabel input{display: none}
.selectionMemo{font-size: 14px;font-style: italic;font-weight: 300;margin-top:2px}
#inquiryBox .flexibleDate{display: inline-block;
margin-bottom: 10px;
padding: 5px 0 5px 30px;}
.genderSelection{text-align: center}
.checkboxGender{width: 32%;display: inline-block;}
.checkboxGender label{width: 100%}
.checkboxGender input{display: none}
.checkboxGender:nth-child(3){float: right}
.checkboxGender:nth-child(1){float: left}
.inputTerm label {
display: block;
width: 100%;
font-size: 18px;
position: absolute;
left: 20px;
top: calc(50% - 13px);
transition: all ease-in-out .5s;
pointer-events: none;height: 26px;
color: #999;
}
.inputTerm {
display: block;
width: 100%;
margin: 15px auto;
position: relative;
}
.inputTerm input:focus ~ label, .inputTerm input:valid~label{top:5px;font-size:12px;color:#999;transition:0.3s;text-transform:uppercase}
.inputTerm input:focus{border: 1px solid #7D9EC0;outline: none}
.inputTerm input {
width: 100%;
margin: 0;
font-size: 22px;
border: 1px solid #d1d1d1;
height: 60px;
padding: 15px 15px 0 20px;
border-radius: 4px;
color: #000;
}
.checkYes {
display: block;
width: 100%;margin-top: 5px;margin-bottom: 15px}
.checkBorder:checked {
background-color: #ad1818;
border-color: #ad1818;margin-right: 5px;
}
.checkBorder {
background-color: #fff;
border: 1px solid #c1c1c1;position: relative;
width: 20px;
height: 20px;
background-clip: border-box;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: -0.15px 0.6px 0 0;
vertical-align: text-bottom;
border-radius: 2px;
-webkit-transition: background-color 0.25s;
transition: background-color 0.25s;
background-color: #fff;
border: 1px solid #d1d1d1
}
.contactUs{border-top: 1px solid #d1d1d1;}
.contactUs p{margin-top: 15px;font-size: 18px;font-weight: normal}
p a
input[type=checkbox]+label {
color: #999;
font-size: 16px !important;
}
.checkYes label {
display: inline;
font-style: italic;font-size: 18px;color: #999
}
input[type=checkbox]:checked+label{color: #000}
.checkBorder:checked:after {
border-color: #fff;
}
.checkBorder:checked:after {
content: '';
display: block;
height: 8px;
width: 14px;
border: 0 solid #FFF;
border-width: 0 0 2px 2px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
position: absolute;
top: 3px;
left: 2px;
}
.formMemo{font-size: 14px;color: #999;margin-left:15px; display: block;margin-top: -10px; }
.inquiryBtn{display:block;text-align:center;font-family:Georgia,"Times New Roman",Times,serif;font-size:24px}
input[type=submit]{background: linear-gradient(#ca3c3b,#ad1818);
text-align: center;
display: table;
border-radius: 60px;
min-width: 230px;
margin: 25px auto;
padding: 8px 30px;color: #FFF;font-family: 'Alegreya Sans',sans-serif;font-weight: 500;font-size: 20px;border:solid 0px}
input[type=submit]:hover{min-width: 250px}
i{margin-left: 10px}
.workingSteps{font-size: 18px;color: #FFF;margin-top: 60px;overflow: hidden;}
.stepLogo img{width: 50px}
.detailedSteps strong{font-weight: 700}
.workingSteps:after{content: ""; background: #d1d1d1;height: 2px;}

@ -0,0 +1,96 @@
var nums = 2;
var level = 1;
$('.confirmpeople').html(nums + ' people');
totalprice();
//加减人数
$('.minus').click(function(){
nums = $('.travelNumber').val();
if(nums>0){
nums--;
$('.travelNumber').val(nums);
$('.confirmpeople').html(nums + ' people');
totalprice(level,nums);
}
});
$('.plus').click(function(){
nums = $('.travelNumber').val();
nums++;
$('.travelNumber').val(nums);
$('.confirmpeople').html(nums + ' people');
totalprice(level,nums);
});
//调整服务种类
$('#TicketStandard').change(function(){
var selectype = $('#TicketStandard').val();
var addoption = '';
if(selectype == 'ticketonly'){
addoption += '<option value="">--Select Ticket Type--</option>';
addoption += '<option value="Premium Ticket">Premium Ticket</option>';
addoption += '<option value="VIP Ticket">VIP Ticket</option>';
addoption += '<option value="Standard Ticket">Standard Ticket</option>';
}
if(selectype == 'Ticket+ShuttleTransfer'){
addoption += '<option value="">--Select Ticket Type--</option>';
addoption += '<option value="Premium Ticket+Shuttle Transfer from Maya Shopping Center">Premium Ticket+Shuttle Transfer from Maya Shopping Center</option>';
addoption += '<option value="VIP Ticket+Shuttle Transfer from Maya Shopping Center">VIP Ticket+Shuttle Transfer from Maya Shopping Center</option>';
addoption += '<option value="Standard Ticket+Shuttle Transfer from Maya Shopping Center">Standard Ticket+Shuttle Transfer from Maya Shopping Center</option>';
}
$('#ticketonlyselection').html(addoption);
});
//确认票种
$('#ticketonlyselection').change(function(){
var tyicketype = $('#TicketStandard').val();
var ticketonlyselection = $('#ticketonlyselection').val();
if(tyicketype != '' && ticketonlyselection != ''){
$('.confirmNotice').html(ticketonlyselection);
if(ticketonlyselection == 'Premium Ticket' || ticketonlyselection == 'Premium Ticket+Shuttle Transfer from Maya Shopping Center'){
level = 3;
}
if(ticketonlyselection == 'VIP Ticket' || ticketonlyselection == 'VIP Ticket+Shuttle Transfer from Maya Shopping Center'){
level = 2;
}
if(ticketonlyselection == 'Standard Ticket' || ticketonlyselection == 'Standard Ticket+Shuttle Transfer from Maya Shopping Center'){
level = 1;
}
totalprice();
}
});
//确认时间
$('#selectdate').change(function(){
var selectdate = $(this).val();
$('#confirmdate').html(selectdate);
});
//价格计算
function totalprice(){
switch(level){
case 1 :
singleprice = 158;
break;
case 2 :
singleprice = 201;
break;
case 3 :
singleprice = 218;
break;
default:
singleprice = 158;
break;
}
$('.priceDetail').html('USD ' + singleprice*nums);
$('#totalprice').val(singleprice*nums);
}
Loading…
Cancel
Save