From 2b71ac11bdd61601ba041f95ed5236f7e4ab5e72 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 10 Apr 2025 10:18:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=20GP=20=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=88=B0=20JH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 20 +- application/views/mobile_first/jh-gp-form.php | 474 ++++++++++++++++++ 2 files changed, 488 insertions(+), 6 deletions(-) create mode 100644 application/views/mobile_first/jh-gp-form.php diff --git a/application/controllers/information.php b/application/controllers/information.php index 5b83ce04..8fcf97d2 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -2514,7 +2514,7 @@ class Information extends CI_Controller if (!empty($meta_note)) { $template = str_replace('', '', $template); } - + $meta_index_set = get_meta($information->ic_id, 'meta_index_set'); if (!empty($meta_index_set)) { $template = str_replace('', '', $template); @@ -2732,12 +2732,20 @@ class Information extends CI_Controller } else { $template = str_replace('?product_code=', '?product_code=' . $meta_product_code, $template); $inquiry_form_template = $this->load->view( - $template_path . '-inquiry-form', + 'mobile_first/jh-inquiry-form', array('meta_product_code' => $meta_product_code, 'information' => $information), true ); $information->ic_content = str_replace('', $inquiry_form_template, $information->ic_content); + // GP 表单 + $gp_form_content = $this->load->view( + 'mobile_first/jh-gp-form', + array('meta_product_code' => $meta_product_code, 'information' => $information), + true + ); + $information->ic_content = str_replace('', $gp_form_content, $information->ic_content); + } $price_tag_list = $this->parse_price_tag($information->ic_content); @@ -2853,7 +2861,7 @@ class Information extends CI_Controller if (!empty($meta_note)) { $template = str_replace('', '', $template); } - + $meta_index_set = get_meta($information->ic_id, 'meta_index_set'); if (!empty($meta_index_set)) { $template = str_replace('', '', $template); @@ -4582,7 +4590,7 @@ class Information extends CI_Controller $t_excludedate = get_meta($information->ic_id, "meta_trippest_excludedate"); $t_includedate = get_meta($information->ic_id, "meta_trippest_includedate"); $t_excludemonth = get_meta($information->ic_id, "meta_trippest_excludemonth"); - $InfoData->t_excludedate = $t_excludedate; + $InfoData->t_excludedate = $t_excludedate; $InfoData->t_includedate = $t_includedate; $InfoData->t_excludemonth = $t_excludemonth; $InfoData->t_hoteladdress = get_meta($information->ic_id, "meta_trippest_hoteladdress"); @@ -4736,7 +4744,7 @@ class Information extends CI_Controller } $template_TrainDetailSearch = $this->load->view($template_path . '-train-index', $data_TrainCity, true); } - + /* 详细内容 */ @@ -5081,7 +5089,7 @@ class Information extends CI_Controller create_folder_by_path(dirname($html_path)); file_put_contents($html_path, $template, LOCK_EX); } - #endregion + #endregion } //通过内容找到第一张图片 diff --git a/application/views/mobile_first/jh-gp-form.php b/application/views/mobile_first/jh-gp-form.php new file mode 100644 index 00000000..1ac4997d --- /dev/null +++ b/application/views/mobile_first/jh-gp-form.php @@ -0,0 +1,474 @@ + +
+

Inquire now! Your 1:1 travel consultant will reply within 1 working day.

+
+ + +
+
+

Traveler numbers for your group:

+
+

+ Adults and kids (≥10 years old) +

+
+ + + +
+
+
+ +
+

Children

+
+

3-9 yrs old

+ +
+
+

0-2 yrs old

+ +
+
+
+ + + + + + + + + + + +

I am also available on:

+ +
+ + +
+
+ + +
+ + + + + +
+ +
+ + + \ No newline at end of file