更新推荐类别名称

hotfix/paypal-note
Jimmy Liow 2 years ago
parent c15317f181
commit a5f85155c1

@ -988,38 +988,38 @@ class Information extends CI_Controller
$information = $this->Information_model->Detail($this->input->get('is_id'));
$recommand_information = $this->recommand_information($information);
var_dump($recommand_information);
$tips_right_first = [];
$tips_right_second = [];
$tips_right_third = [];
$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_first[] = $recommand_information[$key];
$tips_right_a[] = $recommand_information[$key];
}
}
for ($i=1; $i <= 12; $i++) {
$key = 'List Tips Right B_'.$i;
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
$tips_right_second[] = $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_third[] = $recommand_information[$key];
$tips_right_c[] = $recommand_information[$key];
}
}
echo 'List Tips Right A: '.COUNT($tips_right_first);
echo '; List Tips Right B: '.COUNT($tips_right_second);
echo '; List Tips Right C: '.COUNT($tips_right_third);
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_first' => $firstList,
'tips_right_second' => $secondList,
'tips_right_third' => $thirdList),
'tips_right_a' => $tips_right_a,
'tips_right_b' => $tips_right_b,
'tips_right_c' => $tips_right_c),
true
);
echo $tips_right_list_content;

@ -2,7 +2,7 @@
<div class="info_ad_title" style="display: flex;">Popular tours</div>
<div class="right_ad_list">
<ul>
<?php foreach ($tips_right_first as $index => $info) {?>
<?php foreach ($tips_right_a as $index => $info) {?>
<li><a href="<?php echo $info->ic_url ?>"><?php echo $info->ic_title ?></a></li>
<?php }?>
</ul>
@ -10,7 +10,7 @@
<div class="info_ad_title" style="display: flex;">Make the most of your time</div>
<div class="right_ad_list">
<ul>
<?php foreach ($tips_right_second as $index => $info) {?>
<?php foreach ($tips_right_b as $index => $info) {?>
<li><a href="<?php echo $info->ic_url ?>"><?php echo $info->ic_title ?></a></li>
<?php }?>
</ul>
@ -18,7 +18,7 @@
<div class="info_ad_title" style="display: flex;">Choose best time to visit</div>
<div class="right_ad_list">
<ul>
<?php foreach ($tips_right_third as $index => $info) {?>
<?php foreach ($tips_right_c as $index => $info) {?>
<li><a href="<?php echo $info->ic_url ?>"><?php echo $info->ic_title ?></a></li>
<?php }?>
</ul>

Loading…
Cancel
Save