From d781c50c8bcbc587e9c80f5133f7b2946ca2aadc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Tue, 19 Aug 2025 16:25:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=B1=E6=A2=A8=E9=B9=B0=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E7=89=88CAD=E5=92=8C=E7=BF=BB=E8=AF=91=E4=B8=8A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 11 ++++++++--- application/views/mobile_first/hly-pc.php | 14 ++++++++++---- application/views/mobile_first/hly.php | 10 +++++++++- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index fb87fc68..670a47cb 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -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, '') !== 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('', $template_form_daydetail, $ic_content); } } diff --git a/application/views/mobile_first/hly-pc.php b/application/views/mobile_first/hly-pc.php index 0ef47881..ef8e23fb 100644 --- a/application/views/mobile_first/hly-pc.php +++ b/application/views/mobile_first/hly-pc.php @@ -27,6 +27,9 @@ + + + @@ -69,11 +72,12 @@
  • 联系我们
  • 私人订制
  • @@ -152,6 +156,8 @@ + + \ No newline at end of file diff --git a/application/views/mobile_first/hly.php b/application/views/mobile_first/hly.php index 78958860..2c33ff3f 100644 --- a/application/views/mobile_first/hly.php +++ b/application/views/mobile_first/hly.php @@ -26,6 +26,8 @@ + + @@ -48,7 +50,11 @@ - + @@ -140,5 +146,7 @@ + + \ No newline at end of file