diff --git a/application/controllers/information.php b/application/controllers/information.php
index 7069863d..28d18fba 100644
--- a/application/controllers/information.php
+++ b/application/controllers/information.php
@@ -1490,6 +1490,7 @@ class Information extends CI_Controller
$meta_ct_page_type = "";
$meta_ct_page_type = get_meta($information->ic_id, 'meta_ct_page_type'); //页面类型
$meta_product_code = get_meta($information->ic_id, 'meta_product_code'); //绑定的产品编号
+ $template_path = 'mobile_first/' . $this->config->item('site_code'); //模板位置
//面包屑
$crumb = "";
@@ -1511,9 +1512,17 @@ class Information extends CI_Controller
$str_author = '
Written by ' . $OPI_FirstName . ' Updated ' . date("M. j, Y", strtotime($information->ic_datetime)) . '
';
}
+ //火车票详细页搜索框添加 -- zp
+ $meta_ct_page_trainform = get_meta($information->ic_id, 'meta_ct_page_trainform'); //是否插入火车票搜索框
+ if ($meta_ct_page_trainform == "yes" || $information->is_parent_id == "278014609") {
+ $template_TrainSearch = $this->load->view($template_path . '-train-detail', null, TRUE);
+ }
+
/* 详细内容 */
$ic_content = $information->ic_content;
- // /**替换详细内容里面的价格
+
+ #region old replace
+ // /**替换详细内容里面的价格
/* 直接使用fetch来动态获取价格,这样不用替换标签,直接录标签
// * // 一日游价格标签, "" 或者 逗号后面是人数
// * //精华线路标签""
@@ -1528,9 +1537,10 @@ class Information extends CI_Controller
// $matchItem = $match[1];
// return '';;
// },$ic_content);
+ #enregion
/** 替换H1加面包屑,加作者 */
- $ic_content = preg_replace('/(.*)<\/h1>/i', $crumb . "\r\n" . '$1
' . "\r\n" . $str_author, $ic_content, 1);
+ $ic_content = preg_replace('/(.*)<\/h1>/i', $crumb . "\r\n" . '$1
' . "\r\n" . $str_author .$template_TrainSearch . "\r\n", $ic_content, 1);
/**替换zodiac标签 */
if (strpos($ic_content, '') !== false) {
@@ -1549,7 +1559,6 @@ class Information extends CI_Controller
//非产品页面
$data["PRODUCTJS"] = "";
$data["ISPRODUCT"] = "no"; //判断是否是产品页
- $template_path = 'mobile_first/' . $this->config->item('site_code');
$data["addthis_widget"] = "";
if (empty(get_meta($information->ic_id, 'meta_product_code'))) {
$data["addthis_widget"] = $this->load->view($template_path . '-add-this', false, true); //社媒代码addthis
diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php
index 1f04765e..4ecaf05a 100644
--- a/application/views/bootstrap3/information_edit.php
+++ b/application/views/bootstrap3/information_edit.php
@@ -576,12 +576,12 @@
@@ -607,20 +607,20 @@
session->userdata('session_admin');
- $show_photo_meta = get_meta($information->ic_id, 'meta_use_list_picture');
- $amp_photo = '';
- if ($information->ic_photo && $show_photo_meta !== 'no') {
- $amp_photo = $this->config->item('site_image_url') . $information->ic_photo;
- }
- $amp_build_url = "/amp_app/?icid=" . $information->ic_id . "&is_path=" . $information->is_path . "&usr=" . urlencode($amp_user['OPI_Name']) . "&url=" . urlencode($information->ic_url) . "&photo=" . urlencode($amp_photo) . "&site=" . urlencode($this->config->item('site_url')) . "&imgurl=" . urlencode($this->config->item('site_image_url'));
- ?>
+$amp_user = $this->session->userdata('session_admin');
+$show_photo_meta = get_meta($information->ic_id, 'meta_use_list_picture');
+$amp_photo = '';
+if ($information->ic_photo && $show_photo_meta !== 'no') {
+ $amp_photo = $this->config->item('site_image_url') . $information->ic_photo;
+}
+$amp_build_url = "/amp_app/?icid=" . $information->ic_id . "&is_path=" . $information->is_path . "&usr=" . urlencode($amp_user['OPI_Name']) . "&url=" . urlencode($information->ic_url) . "&photo=" . urlencode($amp_photo) . "&site=" . urlencode($this->config->item('site_url')) . "&imgurl=" . urlencode($this->config->item('site_image_url'));
+?>
ic_id, 'AMP_BODY_PC_STATUS') == 'yes') {
- $PcAmpChecked = 'checked';
- } else {
- $PcAmpChecked = '';
- } ?>
+ if (get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') == 'yes') {
+ $PcAmpChecked = 'checked';
+ } else {
+ $PcAmpChecked = '';
+ }?>
-
+
+
\ No newline at end of file
diff --git a/gys_system/models/user_model.php b/gys_system/models/user_model.php
index 4b9202af..250b7dc5 100644
--- a/gys_system/models/user_model.php
+++ b/gys_system/models/user_model.php
@@ -121,7 +121,7 @@ class User_model extends CI_Model {
WHERE TGI2_TGI_SN = TGI_SN
AND TGI2_LGC = 2
AND LEN(TGI2_Name) > 0
- AND TGI2_Name LIKE '22%'
+ AND TGI2_Name LIKE '23%'
AND TGI_VEI_SN = ?
ORDER BY
TGI2_Name ASC