测试右侧推荐广告模板

hotfix/paypal-note
Jimmy Liow 2 years ago
parent 32a20ef415
commit 5d1d5908cf

@ -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()

@ -0,0 +1,24 @@
<div class="info_ad_title" style="display: flex;">Choose best time to visit</div>
<div class="right_ad_list">
<ul>
<?php foreach ($tips_right_first as $index => $info) {?>
<li><a href="<?php echo $info['ic_url'] ?>"><?php echo $info['ic_title'] ?></a></li>
<?php }?>
</ul>
</div>
<div class="info_ad_title" style="display: flex;">Popular Asia tours</div>
<div class="right_ad_list">
<ul>
<?php foreach ($tips_right_second as $index => $info) {?>
<li><a href="<?php echo $info['ic_url'] ?>"><?php echo $info['ic_title'] ?></a></li>
<?php }?>
</ul>
</div>
<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_third as $index => $info) {?>
<li><a href="<?php echo $info['ic_url'] ?>"><?php echo $info['ic_title'] ?></a></li>
<?php }?>
</ul>
</div>
Loading…
Cancel
Save