From 788e949f5c5552211da1e6e01a348edeae11767c Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 6 May 2022 16:13:18 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20AH=20TA=20=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E5=8A=A0=E8=BD=BD=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 9 +++++---- .../views/mobile_first/ah-feedback-list.php | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 98ec8ac8..3f7f953c 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1322,10 +1322,11 @@ class Information extends CI_Controller $city_name_list = explode(',', $city_name_string); $feedback_list = $this->Feedback_model->get_feedback_by_city_list($city_name_list); var_dump($feedback_list); - // $feedback_content = $this->load->view( - // $template_path . '-feedback', - // array('feedback_data' => $feedback_data), - // true); + $feedback_content = $this->load->view( + 'mobile_first/ah' . '-feedback-list', + array('feedback_list' => $feedback_list), + true); + echo $feedback_content; // $information->ic_content = str_replace( // $tag_name, // $feedback_content, diff --git a/application/views/mobile_first/ah-feedback-list.php b/application/views/mobile_first/ah-feedback-list.php index a85a6094..80e708b0 100644 --- a/application/views/mobile_first/ah-feedback-list.php +++ b/application/views/mobile_first/ah-feedback-list.php @@ -5,6 +5,23 @@ + + $feedback) {?> + ,{ + "@type": "ListItem", + "position": , + "name": "", + "item": "https://www.chinahighlights.com" + } + + + +
+
+ +
,
+
+
From da7d54ae6a216654461b1721aa7826be6fbfdda9 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 6 May 2022 16:15:20 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20AH=20TA=20=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/mobile_first/ah-feedback-list.php | 72 ++----------------- 1 file changed, 7 insertions(+), 65 deletions(-) diff --git a/application/views/mobile_first/ah-feedback-list.php b/application/views/mobile_first/ah-feedback-list.php index 80e708b0..62723006 100644 --- a/application/views/mobile_first/ah-feedback-list.php +++ b/application/views/mobile_first/ah-feedback-list.php @@ -5,72 +5,14 @@ - $feedback) {?> - ,{ - "@type": "ListItem", - "position": , - "name": "", - "item": "https://www.chinahighlights.com" - } - - - - - - - - - - - + +
-
- -
,
-
-
-
- - -
Melissa Gornie, Apr 9, 2022
-
-
-
- - -
Otto Lawrence, Oct 9, 2021
-
-
-
- - -
Barbara Sheran, Jun 21, 2020
-
-
-
- - -
Lurinda Smith Barton Barnwell, Mar 10, 2020
-
-
-
- - -
Harold Miller, Feb 15, 2020
-
-
-
- - -
Bob Bosshard, Mar 11, 2020
-
-
-
- - -
Bianca Hernandez, Dec 20, 2019
-
-
+
+ +
,
+
+
From 6a941a3c0839e8237a6fb952cb9dbcd710f39867 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Sat, 7 May 2022 10:47:27 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=B8=8A=E7=BA=BF=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BD=BF=E7=94=A8=20TA=20=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 3f7f953c..4def86fb 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1244,15 +1244,15 @@ class Information extends CI_Controller foreach ($feedback_array[0] as $index => $tag_name) { $city_name_string = $feedback_array[1][$index]; $city_name_list = explode(',', $city_name_string); - // $feedback_list = $this->Feedback_model->get_feedback_by_city_list($city_name_list); - // $feedback_content = $this->load->view( - // $template_path . '-feedback', - // array('feedback_data' => $feedback_data), - // true); - // $information->ic_content = str_replace( - // $tag_name, - // $feedback_content, - // $information->ic_content); + $feedback_list = $this->Feedback_model->get_feedback_by_city_list($city_name_list); + $feedback_content = $this->load->view( + $template_path . '-feedback-list', + array('feedback_list' => $feedback_list), + true); + $information->ic_content = str_replace( + $tag_name, + $feedback_content, + $information->ic_content); } }