|
|
|
@ -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;
|
|
|
|
|