|
|
|
|
@ -4334,8 +4334,8 @@ class Information extends CI_Controller
|
|
|
|
|
$data = array();
|
|
|
|
|
|
|
|
|
|
#region 公用数据
|
|
|
|
|
// $apiurl = "http://202.103.68.104:88/info.php"; //本地测试
|
|
|
|
|
$apiurl = "https://ct.mycht.cn/info.php"; //网前
|
|
|
|
|
$apiurl = "http://202.103.68.104:88/info.php"; //本地测试
|
|
|
|
|
// $apiurl = "https://ct.mycht.cn/info.php"; //网前
|
|
|
|
|
|
|
|
|
|
//先准备数据,采用直接赋值视图然后返回视图字符串的模式,不使用一次次替换视图模板内容的模式。
|
|
|
|
|
$data["TITLE"] = $information->ic_seo_title;
|
|
|
|
|
@ -4471,8 +4471,8 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//主样式表,内联模式
|
|
|
|
|
//$apiweb="http://202.103.68.104:88"; //本地测试
|
|
|
|
|
$apiweb = "https://data.guilinchina.net";
|
|
|
|
|
$apiweb="http://202.103.68.104:88"; //本地测试
|
|
|
|
|
//$apiweb = "https://data.guilinchina.net";
|
|
|
|
|
$cssUrl = $apiweb . "/css/css3/base.css?v=" . time();
|
|
|
|
|
$main_css_string = compress_css(GET_HTTP($cssUrl));
|
|
|
|
|
$data["MAINCSS"] = '<style type="text/css">' . $main_css_string . '</style>';
|
|
|
|
|
@ -4601,10 +4601,6 @@ class Information extends CI_Controller
|
|
|
|
|
$dataform["TourCode"] = $productCode;
|
|
|
|
|
$dataform["CLI_SN"] = $tourdata->clisn;
|
|
|
|
|
$dataform["TourName"] = $information->ic_title;
|
|
|
|
|
$dataform["ic_photo"] = $information->ic_photo;
|
|
|
|
|
$template_form_tourqi = $this->load->view($template_path . '-form-tourqi', $dataform, true);
|
|
|
|
|
//使用simple_html_dom_lib库来进行表单添加
|
|
|
|
|
$ic_content = $this->html_optimize_lib->add_htmlcode($ic_content, "#maincontent", $template_form_tourqi);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -4690,6 +4686,14 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($meta_ct_page_type == "tourdetail") { //线路表单,左右结构,用标签来做
|
|
|
|
|
$dataform['device'] = $device;
|
|
|
|
|
$template_form_tourqi = $this->load->view($template_path . '-form-tourqi-new', $dataform, true);
|
|
|
|
|
$ic_content = str_replace('<!--@TOUR-FORM@-->', $template_form_tourqi, $ic_content);
|
|
|
|
|
$data["CUSTOMCONENT"] = $ic_content;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//两种设备分别调用两种模板 ,静态化
|
|
|
|
|
switch ($device) {
|
|
|
|
|
case 'mobile':
|
|
|
|
|
|