diff --git a/application/controllers/information.php b/application/controllers/information.php index a9231e06..b6a6dc99 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -987,14 +987,42 @@ 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++) { - $key = 'List Tips Right '.$i; - if (array_key_exists($key, $recommand_information)) { - $tipsRightList[] = $recommand_information[$key]; + // var_dump($recommand_information); + $tips_right_a = []; + $tips_right_b = []; + $tips_right_c = []; + for ($i=1; $i <= 12; $i++) { + $key = 'List Tips Right A_'.$i; + if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) { + $tips_right_a[] = $recommand_information[$key]; } } - var_dump($tipsRightList); + for ($i=1; $i <= 12; $i++) { + $key = 'List Tips Right B_'.$i; + if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) { + $tips_right_b[] = $recommand_information[$key]; + } + } + for ($i=1; $i <= 12; $i++) { + $key = 'List Tips Right C_'.$i; + if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) { + $tips_right_c[] = $recommand_information[$key]; + } + } + + echo 'List Tips Right A: '.COUNT($tips_right_a); + echo '; List Tips Right B: '.COUNT($tips_right_b); + echo '; List Tips Right C: '.COUNT($tips_right_c); + + $tips_right_list_content = $this->load->view( + 'mobile_first/ah-tips-right-list', + array( + 'tips_right_a' => $tips_right_a, + 'tips_right_b' => $tips_right_b, + 'tips_right_c' => $tips_right_c), + true + ); + echo $tips_right_list_content; } public function test_feedback() @@ -1492,6 +1520,40 @@ class Information extends CI_Controller if (!empty($template_recommand['Tips Right'])) { $template = str_replace('', "
Arrival date
Departure date
Arrival time
Departure time
-
-
@@ -22,11 +22,11 @@ | @@ -34,11 +34,11 @@ | @@ -46,11 +46,11 @@ | @@ -60,11 +60,11 @@ | @@ -75,11 +75,11 @@ | @@ -89,11 +89,11 @@ | @@ -103,11 +103,11 @@ | @@ -130,12 +130,12 @@ | @@ -144,13 +144,13 @@ |
- ![]()
|
- ![]()
|
- ![]()
|
- ![]()
|
- ![]()
@@ -243,13 +243,13 @@
|
diff --git a/application/views/mobile_first/ah-pc.php b/application/views/mobile_first/ah-pc.php
index fddd3712..49ff2ca2 100644
--- a/application/views/mobile_first/ah-pc.php
+++ b/application/views/mobile_first/ah-pc.php
@@ -71,6 +71,7 @@
@@ -190,10 +191,12 @@
|
-
@@ -258,7 +293,8 @@
We are here to help you...Top 10 China tours 2023/2024 for first visits and returns: embark on a lifetime experience. Learn
+
@@ -240,7 +274,8 @@
-
+
Top 10 China tours 2023/2024 for first visits and returns: embark on a lifetime
+ experience. Learn
more
start planning your tailor-made tour with 1-1 help from our travel advisors. - @@ -312,86 +348,114 @@
-
-
-
+
-
+
+
+
-
+
-
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+ ![]() China Highlights tailor-makes China tours to help travelers discover China
diff --git a/application/views/mobile_first/gh-next.php b/application/views/mobile_first/gh-next.php
index 925ece24..f6aff2f1 100644
--- a/application/views/mobile_first/gh-next.php
+++ b/application/views/mobile_first/gh-next.php
@@ -1,7 +1,7 @@
- Recommended Tours+Recommended Tours
@@ -148,7 +148,7 @@
- Recommended Articles+Recommended Articles
diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php
index 20bc771f..96236f98 100644
--- a/application/views/mobile_first/gh-pc.php
+++ b/application/views/mobile_first/gh-pc.php
@@ -728,7 +728,7 @@
diff --git a/application/views/mobile_first/gh.php b/application/views/mobile_first/gh.php
index d72c8a89..b4086114 100644
--- a/application/views/mobile_first/gh.php
+++ b/application/views/mobile_first/gh.php
@@ -85,7 +85,7 @@ height="0" width="0" style="display:none;visibility:hidden">
|