更新 GP 表单,增加 itenerary

hotfix/paypal-note
LiaoYijun 3 years ago
parent 52d1f2f5d0
commit 387cced000

@ -1280,6 +1280,13 @@ class Information extends CI_Controller
array('meta_product_code' => $meta_product_code, 'information' => $information), array('meta_product_code' => $meta_product_code, 'information' => $information),
true); true);
$information->ic_content = str_replace('<!--@INQUIRY-FORM@-->', $inquiry_form_template, $information->ic_content); $information->ic_content = str_replace('<!--@INQUIRY-FORM@-->', $inquiry_form_template, $information->ic_content);
// GP 表单
$gp_form_content = $this->load->view(
$template_path . '-gp-form',
array('meta_product_code' => $meta_product_code, 'information' => $information),
true);
$information->ic_content = str_replace('<!--@GP-FORM@-->', $gp_form_content, $information->ic_content);
} }
// why-us 相关的标签 // why-us 相关的标签
$why_us_mobile = $this->load->view($template_path . '-why-us-mobile', false, true); $why_us_mobile = $this->load->view($template_path . '-why-us-mobile', false, true);
@ -1301,10 +1308,6 @@ class Information extends CI_Controller
$lantern_form_info_page_content = $this->load->view($template_path . '-lantern-form-info-page', false, true); $lantern_form_info_page_content = $this->load->view($template_path . '-lantern-form-info-page', false, true);
$information->ic_content = str_replace('<!--@LANTERN-FORM-INFO-PAGE@-->', $lantern_form_info_page_content, $information->ic_content); $information->ic_content = str_replace('<!--@LANTERN-FORM-INFO-PAGE@-->', $lantern_form_info_page_content, $information->ic_content);
// GP 表单
$gp_form_content = $this->load->view($template_path . '-gp-form', false, true);
$information->ic_content = str_replace('<!--@GP-FORM@-->', $gp_form_content, $information->ic_content);
// 动态加载反馈标签,第一个城市不足八条,使用第二城市数据。 // 动态加载反馈标签,第一个城市不足八条,使用第二城市数据。
// HTLM: <div><!--@FEEDBACK_Siem Reap,Bangkok@--></div> // HTLM: <div><!--@FEEDBACK_Siem Reap,Bangkok@--></div>
// 解析结果:<!--@FEEDBACK_Siem Reap,Bangkok@-->; Siem Reap,Bangkok // 解析结果:<!--@FEEDBACK_Siem Reap,Bangkok@-->; Siem Reap,Bangkok

@ -623,7 +623,7 @@
<button class="sendButton" id="submit_gp_form" type="button">Inquire Now</button> <button class="sendButton" id="submit_gp_form" type="button">Inquire Now</button>
<input name="cli_no" type="hidden" value="<?php echo $meta_product_code; ?>"/> <input name="cli_no" type="hidden" value="<?php echo $meta_product_code; ?>"/>
<input name="ic_title" type="hidden" value="<?php echo $ic_seo_title; ?>" /> <input name="itinerary" type="hidden" value="<?php echo $information->ic_title; ?>" />
</form> </form>
<h3 style="text-align: center; <h3 style="text-align: center;
font-size: 20px; font-size: 20px;

Loading…
Cancel
Save