|
|
|
|
@ -5461,10 +5461,11 @@ class Information extends CI_Controller
|
|
|
|
|
$DayTripData["picture_pc"] = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
|
$DayTripData["TITLE"] = $information->ic_title;
|
|
|
|
|
|
|
|
|
|
$arrCAD = ['HLYCAD-S','HLYCAD-V','HLYCAD-P','QM-NUT-V', 'QM-NUT-P'];//水灯节
|
|
|
|
|
$arrCAD = ['HLYCAD-S','HLYCAD-V','HLYCAD-P'];//水灯节
|
|
|
|
|
$arrCAD_EN = ['QM-NUT-V', 'QM-NUT-P']; //水灯节英文
|
|
|
|
|
//$arrTest = ['QM-9-A','QM-9-B','QM-9-C'];
|
|
|
|
|
|
|
|
|
|
if (in_array($productCode,$arrCAD)){ //水灯节
|
|
|
|
|
if (in_array($productCode,$arrCAD) || in_array($productCode,$arrCAD_EN)){ //水灯节,中英文分别调用不同模板
|
|
|
|
|
/**替换左右结构的线路表单标签 2024-7-4*/
|
|
|
|
|
if (strpos($ic_content, '<!--@DAYTRIP-CAD-FORM@-->') !== false) {
|
|
|
|
|
//准备数据
|
|
|
|
|
@ -5492,7 +5493,11 @@ class Information extends CI_Controller
|
|
|
|
|
$DayTripData["TourData"] = $TourData;
|
|
|
|
|
|
|
|
|
|
//替换模板
|
|
|
|
|
$template_form_daydetail = $this->load->view($template_path . '-cad-form', $DayTripData, true); //模板内容
|
|
|
|
|
if ( in_array($productCode,$arrCAD_EN)){
|
|
|
|
|
$template_form_daydetail = $this->load->view($template_path . '-cad-form-en', $DayTripData, true); //英文模板内容
|
|
|
|
|
}else{
|
|
|
|
|
$template_form_daydetail = $this->load->view($template_path . '-cad-form', $DayTripData, true); //中文模板内容
|
|
|
|
|
}
|
|
|
|
|
$ic_content = str_replace('<!--@DAYTRIP-CAD-FORM@-->', $template_form_daydetail, $ic_content);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|