测试 AH TA 标签加载数据

hotfix/paypal-note
LiaoYijun 3 years ago
parent 61ef32c29b
commit 788e949f5c

@ -1322,10 +1322,11 @@ class Information extends CI_Controller
$city_name_list = explode(',', $city_name_string); $city_name_list = explode(',', $city_name_string);
$feedback_list = $this->Feedback_model->get_feedback_by_city_list($city_name_list); $feedback_list = $this->Feedback_model->get_feedback_by_city_list($city_name_list);
var_dump($feedback_list); var_dump($feedback_list);
// $feedback_content = $this->load->view( $feedback_content = $this->load->view(
// $template_path . '-feedback', 'mobile_first/ah' . '-feedback-list',
// array('feedback_data' => $feedback_data), array('feedback_list' => $feedback_list),
// true); true);
echo $feedback_content;
// $information->ic_content = str_replace( // $information->ic_content = str_replace(
// $tag_name, // $tag_name,
// $feedback_content, // $feedback_content,

@ -5,6 +5,23 @@
<table> <table>
<tbody> <tbody>
<tr> <tr>
<?php foreach ($feedback_list as $index => $feedback) {?>
,{
"@type": "ListItem",
"position": <?php echo ($index + 2) ?>,
"name": "<?php echo $item['ic_url_title'] ?>",
"item": "https://www.chinahighlights.com"
}
<td>
<div class="tour_feedback">
<div class="feedback_content"><strong><?php echo $feedback['title'] ?></strong><?php echo $feedback['content'] ?><a href="<?php echo $feedback['url'] ?>" target="_blank">More</a></div>
<div class="customer_name"><?php echo $feedback['customer'] ?>, <?php echo $feedback['createdOn'] ?></div>
<img alt="" class="img-responsive" height="40" width="211" src="https://data.asiahighlights.com/pic/trustpilot-new-icon.png"></div>
</td>
<?php }?>
<td> <td>
<div class="tour_feedback"> <div class="tour_feedback">
<div class="feedback_content"><strong>Asia Highlights tour of Thailand =AMAZING</strong> I highly recommend Asia Highlights!!! My husband and I chose the 12 day tour of Thailand for our honeymoon and could not have been happier. If you're thinking of using Asia Highlights, DO IT! <a href="https://www.trustpilot.com/reviews/6250b1bf2b3c3c43cfcd4c07" target="_blank">More</a></div> <div class="feedback_content"><strong>Asia Highlights tour of Thailand =AMAZING</strong> I highly recommend Asia Highlights!!! My husband and I chose the 12 day tour of Thailand for our honeymoon and could not have been happier. If you're thinking of using Asia Highlights, DO IT! <a href="https://www.trustpilot.com/reviews/6250b1bf2b3c3c43cfcd4c07" target="_blank">More</a></div>

Loading…
Cancel
Save