diff --git a/application/controllers/information.php b/application/controllers/information.php index d65c987b..1dfb106a 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -900,7 +900,32 @@ class Information extends CI_Controller break; default: } - $breadcrumb_data = $this->Information_model->get_path_exclude_self($information->is_id, $information->is_path); + + // CH Home 下层节点名称和链接映射 + $group_map = [ + 278008010 => [ + 'ic_url' => '/travelguide/culture/', + 'ic_url_title' => 'Chinese Culture' + ], + 278008011 => [ + 'ic_url' => '/citytour/', + 'ic_url_title' => 'Destinations' + ], + 278008012 => [ + 'ic_url' => '/aboutus/', + 'ic_url_title' => 'About Us' + ], + 278008013 => [ + 'ic_url' => '/citytour/', + 'ic_url_title' => 'City Tours' + ], + 278008014 => [ + 'ic_url' => '/tour/', + 'ic_url_title' => 'China Tours' + ] + ]; + + $breadcrumb_data = $this->Information_model->get_breadcrumb_data($information->is_id, $information->is_path, $group_map); $breadcrumb_structured_data_content = $this->load->view( $template_path . '-structured-data-breadcrumb', @@ -1047,7 +1072,7 @@ class Information extends CI_Controller $author = $this->Operator_model->get_author_nikename($information->ic_author); if (!empty($author)) { $data_H1['author'] = $author->OPI_FirstName; - $data_H1['OPI_Code'] = $author->OPI_Code; + $data_H1['OPI_Code'] = $author->OPI_Code; } else { $author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等 if (!empty($author_web)) { @@ -1977,6 +2002,28 @@ class Information extends CI_Controller } } + // 顾问英文名反馈标签 + $feedback_advisor_array = []; + preg_match_all('^^', $information->ic_content, $feedback_advisor_array); + if (!empty($feedback_advisor_array)) { + foreach ($feedback_advisor_array[0] as $index => $tag_name) { + $advisor_name = $feedback_advisor_array[1][$index]; + $feedback_list = $this->Feedback_model->get_feedback_by_advisor_name($advisor_name); + $feedback_content = $this->load->view( + 'mobile_first/gh-feedback-advisor-list', + array('feedback_list' => $feedback_list), + true + ); + $information->ic_content = str_replace( + $tag_name, + $feedback_content, + $information->ic_content + ); + } + } + + + if (is_file('D:/wwwroot/origin-www.globalhighlights.com/css/gh-global.css')) { //主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速 $main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-www.globalhighlights.com/css/gh-global.css')); } else { @@ -2276,6 +2323,15 @@ class Information extends CI_Controller ); $information->ic_content = str_replace('', $lantern_form_content, $information->ic_content); + // 水灯节2025表单 + $lantern_form_content_2025 = $this->load->view( + 'mobile_first/ah-lantern-form-2025', + array('information' => $information), + true + ); + $information->ic_content = str_replace('', $lantern_form_content_2025, $information->ic_content); + + // CAD 跨年表单 $new_year_countdown_form_content = $this->load->view( 'mobile_first/ah-new-year-countdown', diff --git a/application/models/feedback_model.php b/application/models/feedback_model.php index f7dcae9f..8d6ed713 100644 --- a/application/models/feedback_model.php +++ b/application/models/feedback_model.php @@ -200,4 +200,56 @@ class Feedback_model extends CI_Model { return $feedback_list; } + + /** + * 根据顾问英文名查找反馈信息 + */ + function get_feedback_by_advisor_name($advisor_name) { + $feedback_query = + $this->HT->query(" + select top 3 + tad.tad_content, + tai.tai_customerid, + tai.tai_title, + tai.tai_getdate, + tai.tai_url, + vci.cii2_name + from Eva_TAInfo tai + join Eva_TADetail tad on tad.TAD_TAI_SN = tai.TAI_SN + join V_CIty_Info vci on vci.cii_sn = tai.tai_cii_sn and vci.LGC_LGC = 1 + where tad.TAD_SN in ( + select TAD_SN + from Eva_TADetail e + join V_Operator_Info v on e.TAD_ObjList like '%,' + cast(v.OPI_SN as varchar) + ',%' + where e.TAD_ObjType = 99002 + and v.LGC_LGC = 1 + and v.OPI2_Name = ? + ) + order by tai.tai_getdate desc; + ", + array($advisor_name)); + + $feedback_result = $feedback_query->result(); + $feedback_list = []; + $customer_id_list = []; + + foreach ($feedback_result as $feedback_row) { + $createdOn = new DateTime($feedback_row->tai_getdate); + $createdOnString = $createdOn->format('M Y'); + + if (!in_array($feedback_row->tai_customerid, $customer_id_list)) { + $feedback = [ + 'title' => $feedback_row->tai_title, + 'customer' => $feedback_row->tai_customerid, + 'content' => $feedback_row->tad_content, + 'url' => $feedback_row->tai_url, + 'createdOn' => $createdOnString + ]; + $feedback_list[] = $feedback; + $customer_id_list[] = $feedback_row->tai_customerid; + } + } + + return $feedback_list; + } } diff --git a/application/views/mobile_first/ah-h1.php b/application/views/mobile_first/ah-h1.php index 403de8f8..da3cea40 100644 --- a/application/views/mobile_first/ah-h1.php +++ b/application/views/mobile_first/ah-h1.php @@ -31,6 +31,7 @@ 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', ]; + $OPI_Code = empty($OPI_Code) ? '' : $OPI_Code; if (!empty($meta_news_createdate)) {?>
Written by diff --git a/application/views/mobile_first/ah-lantern-form-2025.php b/application/views/mobile_first/ah-lantern-form-2025.php new file mode 100644 index 00000000..1acdd94e --- /dev/null +++ b/application/views/mobile_first/ah-lantern-form-2025.php @@ -0,0 +1,552 @@ + +
+

Chiang Mai CAD Yi Peng Festival 2025

+
+ +

Select Date:

+
+
+ + +
+ +
+ + +
+
+ +

Select a Ticket Type:

+
+
+ + +
+
+ + +
+
+ + +
+
+ +

Select Ticket Quantity

+
+ + Adults and older children (8+ years old) + +
+ + + +
+
+
Total price: $129
+ +

Please provide correct personal info. Double check.

+ + + + + + + + + + + + + + + +

Once we receive your payment, our travel advisor will contact you within 24 hours and send you your e-ticket.

+
+
+ + \ No newline at end of file diff --git a/application/views/mobile_first/ch-h1.php b/application/views/mobile_first/ch-h1.php index 80f4558f..660f9a4b 100644 --- a/application/views/mobile_first/ch-h1.php +++ b/application/views/mobile_first/ch-h1.php @@ -28,20 +28,21 @@ 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', ]; - if (!empty($meta_news_createdate)) {?> -
- Written by - - - - - - Updated -
- - - - + $OPI_Code = empty($OPI_Code) ? '' : $OPI_Code; + if (!empty($meta_news_createdate)) {?> +
+ Written by + + + + + + Updated +
+ + + +
\ No newline at end of file diff --git a/application/views/mobile_first/ch-pc.php b/application/views/mobile_first/ch-pc.php index 7d840c05..a044a835 100644 --- a/application/views/mobile_first/ch-pc.php +++ b/application/views/mobile_first/ch-pc.php @@ -74,8 +74,6 @@