From 5d1d5908cf947deb9809bf60ec721e653eb07c42 Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Fri, 9 Jun 2023 10:59:43 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?=E6=8E=A8=E8=8D=90=E5=B9=BF=E5=91=8A=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 12 +++++++++- .../views/mobile_first/ah-list-tips-right.php | 24 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 application/views/mobile_first/ah-list-tips-right.php diff --git a/application/controllers/information.php b/application/controllers/information.php index 435bf8ef..33281573 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -988,7 +988,7 @@ class Information extends CI_Controller $information = $this->Information_model->Detail($this->input->get('is_id')); $recommand_information = $this->recommand_information($information); $tipsRightList = []; - for ($i=0; $i < 36; $i++) { + for ($i=1; $i <= 36; $i++) { $key = 'List Tips Right '.$i; if (array_key_exists($key, $recommand_information)) { $tipsRightList[] = $recommand_information[$key]; @@ -1002,6 +1002,16 @@ class Information extends CI_Controller var_dump($firstList); var_dump($secondList); var_dump($thirdList); + + $tips_right_list_content = $this->load->view( + 'ah-list-tips-right', + array( + 'tips_right_first' => $firstList, + 'tips_right_second' => $secondList, + 'tips_right_third' => $thirdList), + true + ); + echo $tips_right_list_content; } public function test_feedback() diff --git a/application/views/mobile_first/ah-list-tips-right.php b/application/views/mobile_first/ah-list-tips-right.php new file mode 100644 index 00000000..45fb2901 --- /dev/null +++ b/application/views/mobile_first/ah-list-tips-right.php @@ -0,0 +1,24 @@ +
Choose best time to visit
+
+ +
+
Popular Asia tours
+
+ +
+
Make the most of Your Time
+
+ +
\ No newline at end of file From 98e72fb483b537b54745d8c98b6be59065784123 Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Fri, 9 Jun 2023 11:01:21 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 33281573..f4e9c065 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1004,7 +1004,7 @@ class Information extends CI_Controller var_dump($thirdList); $tips_right_list_content = $this->load->view( - 'ah-list-tips-right', + 'mobile_first/ah-list-tips-right', array( 'tips_right_first' => $firstList, 'tips_right_second' => $secondList, From b4a346c5d173f783145bb5734881b8055228d02a Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Fri, 9 Jun 2023 11:04:35 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/ah-list-tips-right.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/views/mobile_first/ah-list-tips-right.php b/application/views/mobile_first/ah-list-tips-right.php index 45fb2901..e23391ec 100644 --- a/application/views/mobile_first/ah-list-tips-right.php +++ b/application/views/mobile_first/ah-list-tips-right.php @@ -2,7 +2,7 @@
@@ -10,7 +10,7 @@
@@ -18,7 +18,7 @@
\ No newline at end of file