|
|
|
@ -10,20 +10,25 @@ class Test extends CI_Controller
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
|
|
|
|
$this->load->model('feedback_model');
|
|
|
|
|
$this->load->model('Information_model');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function feedback()
|
|
|
|
|
{
|
|
|
|
|
$is_id = $this->input->get_post('is_id');
|
|
|
|
|
$template_path = 'mobile_first/ch';
|
|
|
|
|
|
|
|
|
|
$information = $this->Information_model->Detail($is_id);
|
|
|
|
|
|
|
|
|
|
$feedback_array = array();
|
|
|
|
|
preg_match_all('^<!--@FEEDBACK_(.*)@-->^', '<html><div><!--@FEEDBACK_Shanghai@--></div></html>', $feedback_array);
|
|
|
|
|
preg_match_all('^<!--@FEEDBACK_(.*)@-->^', $information->ic_content, $feedback_array);
|
|
|
|
|
if (!empty($feedback_array)) {
|
|
|
|
|
foreach ($feedback_array[0] as $index => $tag_name) {
|
|
|
|
|
$city_name = $feedback_array[1][$index];
|
|
|
|
|
echo $city_name;
|
|
|
|
|
echo htmlentities($tag_name);
|
|
|
|
|
echo $information->ic_title.'<br>';
|
|
|
|
|
echo $city_name.'<br>';
|
|
|
|
|
echo htmlentities($tag_name).'<br>';
|
|
|
|
|
$feedback_data = $this->feedback_model->get_feedback_by_city($city_name);
|
|
|
|
|
$feedback_content = $this->load->view(
|
|
|
|
|
$template_path . '-feedback',
|
|
|
|
|