From 8fc3933256f2af3f09273b96a53c334e9ca64d54 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Mon, 25 Dec 2023 15:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=87=E7=AD=BE=20NEWEST?= =?UTF-8?q?=5FFEEDBACK=5F10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 15 +++++++++++- .../mobile_first/ah-feedback-newest-10.php | 23 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 application/views/mobile_first/ah-feedback-newest-10.php diff --git a/application/controllers/information.php b/application/controllers/information.php index 2b4e654a..cbe16f7f 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1930,6 +1930,18 @@ class Information extends CI_Controller $template = str_replace('', $tips_right_list_content, $template); + // + $feedback_newest_10 = $this->Feedback_model->get_feedback_newest(10); + $feedback_newest_10_content = $this->load->view( + 'mobile_first/ah-feedback-newest-10', + array('feedback_list' => $feedback_newest_10), + true + ); + str_replace( + '', + $feedback_newest_10_content, + $template); + //文中的信息推荐 if (strpos($information->ic_content, '') !== false) { $information->ic_content = str_replace('', $this->load->view($template_path . '-recommends-article', array('recommands' => $template_recommand), true), $information->ic_content); @@ -2100,9 +2112,10 @@ class Information extends CI_Controller } } + // $feedback_newest = $this->Feedback_model->get_feedback_newest(); $feedback_newest_content = $this->load->view( - $template_path . '-feedback-newest', + 'mobile_first/ah-feedback-newest', array('feedback_list' => $feedback_newest), true ); diff --git a/application/views/mobile_first/ah-feedback-newest-10.php b/application/views/mobile_first/ah-feedback-newest-10.php new file mode 100644 index 00000000..f2c04a47 --- /dev/null +++ b/application/views/mobile_first/ah-feedback-newest-10.php @@ -0,0 +1,23 @@ +
+ + $feedback) {?> +
+ + +
+ +
\ No newline at end of file