|
|
|
@ -545,7 +545,7 @@ class Information extends CI_Controller
|
|
|
|
|
echo json_encode(array('name' => 'yes', 'data' => '更新成功!'));
|
|
|
|
|
return true;
|
|
|
|
|
} else {
|
|
|
|
|
echo json_encode(array('name' => 'no', 'data' => '没有发布静态页面'));
|
|
|
|
|
echo json_encode(array('name' => 'no', 'data' => '没有发布静态页面: ' . $information->ic_url));
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -735,18 +735,18 @@ class Information extends CI_Controller
|
|
|
|
|
//火车票搜索框添加 -- zp
|
|
|
|
|
if ($information->is_parent_id == "278008234") {
|
|
|
|
|
//本地测试的火车父类ID为:278035939 。网前为:278008234
|
|
|
|
|
$meta_train_city = get_meta($information->ic_id, 'meta_train_city'); //默认的出发及目的地城市 , beijing|shanghai
|
|
|
|
|
$data_TrainCity=array();
|
|
|
|
|
$data_TrainCity["from"]="";
|
|
|
|
|
$data_TrainCity["to"]="";
|
|
|
|
|
if (!empty($meta_train_city)){
|
|
|
|
|
if (strpos($meta_train_city,'|')!==false){
|
|
|
|
|
$arrTrainCity = explode('|',$meta_train_city);
|
|
|
|
|
$data_TrainCity["from"] = $arrTrainCity[0];
|
|
|
|
|
$data_TrainCity["to"] = $arrTrainCity[1];
|
|
|
|
|
$meta_train_city = get_meta($information->ic_id, 'meta_train_city'); //默认的出发及目的地城市 , beijing|shanghai
|
|
|
|
|
$data_TrainCity = array();
|
|
|
|
|
$data_TrainCity["from"] = "";
|
|
|
|
|
$data_TrainCity["to"] = "";
|
|
|
|
|
if (!empty($meta_train_city)) {
|
|
|
|
|
if (strpos($meta_train_city, '|') !== false) {
|
|
|
|
|
$arrTrainCity = explode('|', $meta_train_city);
|
|
|
|
|
$data_TrainCity["from"] = $arrTrainCity[0];
|
|
|
|
|
$data_TrainCity["to"] = $arrTrainCity[1];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$template_TrainSearch = $this->load->view($template_path . '-train-detail', $data_TrainCity, true);
|
|
|
|
|
$template = str_replace('<!--@TRAIN-SEARCH@-->', $template_TrainSearch, $template);
|
|
|
|
|
}
|
|
|
|
@ -1037,7 +1037,8 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace(
|
|
|
|
|
'<!--@CHINA-TRAINS-CSS@-->',
|
|
|
|
|
'<link href="https://proxy-data.chinahighlights.com/css/china-trains.css" rel="stylesheet">',
|
|
|
|
|
$template);
|
|
|
|
|
$template
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
//额外样式
|
|
|
|
|
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
|
|
|
|
@ -2860,4 +2861,4 @@ class Information extends CI_Controller
|
|
|
|
|
echo json_encode($data);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|