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 @@ + +