From 99a4b2c9d9dbb02ca28ebb794a4f6559ddecfddf Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Tue, 20 Jun 2023 14:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E7=9A=84=E5=9C=B0=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=8B=86=E5=88=86=E6=88=90=E4=B8=89=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/feedback_model.php | 6 +-- ...ck-30-list.php => ah-feedback-30-list.php} | 0 .../mobile_first/ch-feedback-30-list.php | 41 +++++++++++++++++++ .../mobile_first/gh-feedback-30-list.php | 41 +++++++++++++++++++ 4 files changed, 85 insertions(+), 3 deletions(-) rename application/views/mobile_first/{ah-ch-gh-feedback-30-list.php => ah-feedback-30-list.php} (100%) create mode 100644 application/views/mobile_first/ch-feedback-30-list.php create mode 100644 application/views/mobile_first/gh-feedback-30-list.php diff --git a/application/models/feedback_model.php b/application/models/feedback_model.php index ef25e163..e861a496 100644 --- a/application/models/feedback_model.php +++ b/application/models/feedback_model.php @@ -160,18 +160,18 @@ class Feedback_model extends CI_Model { /** * 根据城市英文名查找反馈信息 */ - function get_feedback_by_city_name($city_name) { + function get_feedback_by_city_name($city_name, $top = 30) { $feedback_query = $this->HT->query(" - select top 30 + select top ? tad_content, tai_customerid, tai_title, tai_getdate, tai_url, vci.cii2_name from Eva_TAInfo left join Eva_TADetail on TAD_TAI_SN=TAI_SN left join V_CIty_Info vci on vci.cii_sn = tai_cii_sn and vci.LGC_LGC = 1 where TAD_Content is not null and vci.cii2_name = ? order by tai_getdate desc", - array($city_name)); + array($top, $city_name)); $feedback_result = $feedback_query->result(); $feedback_list = []; diff --git a/application/views/mobile_first/ah-ch-gh-feedback-30-list.php b/application/views/mobile_first/ah-feedback-30-list.php similarity index 100% rename from application/views/mobile_first/ah-ch-gh-feedback-30-list.php rename to application/views/mobile_first/ah-feedback-30-list.php diff --git a/application/views/mobile_first/ch-feedback-30-list.php b/application/views/mobile_first/ch-feedback-30-list.php new file mode 100644 index 00000000..a3eb74d5 --- /dev/null +++ b/application/views/mobile_first/ch-feedback-30-list.php @@ -0,0 +1,41 @@ + +

98.8% positive customer reviews among 10,000+

+
+
+ +
+
+ Tour Review + +
+
+ + $feedback) {?> +
+ +

+ More +
,
+
+ + +
+
Asia Highlights Reviews
+ +
+ +
+
+ \ No newline at end of file diff --git a/application/views/mobile_first/gh-feedback-30-list.php b/application/views/mobile_first/gh-feedback-30-list.php new file mode 100644 index 00000000..a3eb74d5 --- /dev/null +++ b/application/views/mobile_first/gh-feedback-30-list.php @@ -0,0 +1,41 @@ + +

98.8% positive customer reviews among 10,000+

+
+
+ +
+
+ Tour Review + +
+
+ + $feedback) {?> +
+ +

+ More +
,
+
+ + +
+
Asia Highlights Reviews
+ +
+ +
+
+ \ No newline at end of file