|
|
|
@ -656,6 +656,28 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 动态加载反馈标签,每个城市三十条反馈。
|
|
|
|
|
// HTLM: <div><!--@FEEDBACK-30_Bangkok@--></div>
|
|
|
|
|
// 解析结果:<!--@FEEDBACK-30_Bangkok@-->; Bangkok
|
|
|
|
|
$feedback30_array = [];
|
|
|
|
|
preg_match_all('^<!--@FEEDBACK-30_(.*)@-->^', $information->ic_content, $feedback30_array);
|
|
|
|
|
if (!empty($feedback30_array)) {
|
|
|
|
|
foreach ($feedback30_array[0] as $index => $tag_name) {
|
|
|
|
|
$city_name = $feedback30_array[1][$index];
|
|
|
|
|
$feedback_list = $this->Feedback_model->get_feedback_by_city_name($city_name);
|
|
|
|
|
$feedback_30_content = $this->load->view(
|
|
|
|
|
'mobile_first/ch-feedback-30-list',
|
|
|
|
|
array('feedback_list' => $feedback_list),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
$information->ic_content = str_replace(
|
|
|
|
|
$tag_name,
|
|
|
|
|
$feedback_30_content,
|
|
|
|
|
$information->ic_content
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$feedback_newest = $this->Feedback_model->get_feedback_newest();
|
|
|
|
|
$feedback_newest_content = $this->load->view(
|
|
|
|
|
$template_path . '-feedback-newest',
|
|
|
|
@ -1397,6 +1419,28 @@ class Information extends CI_Controller
|
|
|
|
|
$information->ic_content = str_replace('<!--@TOUR-FORM-TAG@-->', $tour_form_content, $information->ic_content);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 动态加载反馈标签,每个城市三十条反馈。
|
|
|
|
|
// HTLM: <div><!--@FEEDBACK-30_Bangkok@--></div>
|
|
|
|
|
// 解析结果:<!--@FEEDBACK-30_Bangkok@-->; Bangkok
|
|
|
|
|
$feedback30_array = [];
|
|
|
|
|
preg_match_all('^<!--@FEEDBACK-30_(.*)@-->^', $information->ic_content, $feedback30_array);
|
|
|
|
|
if (!empty($feedback30_array)) {
|
|
|
|
|
foreach ($feedback30_array[0] as $index => $tag_name) {
|
|
|
|
|
$city_name = $feedback30_array[1][$index];
|
|
|
|
|
$feedback_list = $this->Feedback_model->get_feedback_by_city_name($city_name);
|
|
|
|
|
$feedback_30_content = $this->load->view(
|
|
|
|
|
'mobile_first/gh-feedback-30-list',
|
|
|
|
|
array('feedback_list' => $feedback_list),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
$information->ic_content = str_replace(
|
|
|
|
|
$tag_name,
|
|
|
|
|
$feedback_30_content,
|
|
|
|
|
$information->ic_content
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$feedback_newest = $this->Feedback_model->get_feedback_newest();
|
|
|
|
|
$feedback_newest_content = $this->load->view(
|
|
|
|
|
$template_path . '-feedback-newest',
|
|
|
|
@ -1729,14 +1773,40 @@ class Information extends CI_Controller
|
|
|
|
|
foreach ($feedback30_array[0] as $index => $tag_name) {
|
|
|
|
|
$city_name = $feedback30_array[1][$index];
|
|
|
|
|
$feedback_list = $this->Feedback_model->get_feedback_by_city_name($city_name);
|
|
|
|
|
$feedback_content = $this->load->view(
|
|
|
|
|
$feedback_30_content = $this->load->view(
|
|
|
|
|
'mobile_first/ah-feedback-30-list',
|
|
|
|
|
array('feedback_list' => $feedback_list),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
$information->ic_content = str_replace(
|
|
|
|
|
$tag_name,
|
|
|
|
|
$feedback_content,
|
|
|
|
|
$feedback_30_content,
|
|
|
|
|
$information->ic_content
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 集合页面反馈标签
|
|
|
|
|
$feedback_city_array = [];
|
|
|
|
|
preg_match_all('^<!--@FEEDBACK-CITY-LIST_(.*)@-->^', $information->ic_content, $feedback_city_array);
|
|
|
|
|
if (!empty($feedback_city_array)) {
|
|
|
|
|
foreach ($feedback_city_array[0] as $index => $tag_name) {
|
|
|
|
|
$city_name_string = $feedback_city_array[1][$index];
|
|
|
|
|
$city_name_list = explode(',', $city_name_string);
|
|
|
|
|
$feedback_city_list = [];
|
|
|
|
|
foreach ($city_name_list as $index => $city_name) {
|
|
|
|
|
$feedback_list = $this->Feedback_model->get_feedback_by_city_name($city_name, 5);
|
|
|
|
|
$feedback_city_list[$city_name] = $feedback_list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$feedback_city_content = $this->load->view(
|
|
|
|
|
'mobile_first/ah-feedback-city-list',
|
|
|
|
|
$feedback_city_list,
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
$information->ic_content = str_replace(
|
|
|
|
|
$tag_name,
|
|
|
|
|
$feedback_city_content,
|
|
|
|
|
$information->ic_content
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|