diff --git a/application/config/config.php b/application/config/config.php index 63ca6df6..144c754e 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -387,7 +387,7 @@ $config['proxy_ips'] = ''; //各站信息组和人员权限分配 $config['site'] = array( - 'cht' => array('site_code' => 'cht', 'site_id' => 14, 'site_lgc' => '1', 'site_url' => 'https://www.chinahighlights.com', 'site_image_url' => '//images.chinahighlights.com', 'site_authors' => array('zzy', 'spt', 'yl', 'gavin', 'sw', 'zl', 'wbl', 'yqw', 'lf', 'zhm', 'pkl'), 'site_user' => ',ycc,lmr, zyh,J,shw,B,zzy,WJJ,Tony,pcf,zxy,wst,wz,v,S,yyg,yxd,wj,sw,yl,hx,spt,wmr,zl,syt,gavin,zm,htc,yqw,bhn,lmj,wbl,yqw,LYY,zhm,si'), + 'cht' => array('site_code' => 'cht', 'site_id' => 14, 'site_lgc' => '1', 'site_url' => 'https://www.chinahighlights.com', 'site_image_url' => 'https://images.chinahighlights.com', 'site_authors' => array('zzy', 'spt', 'yl', 'gavin', 'sw', 'zl', 'wbl', 'yqw', 'lf', 'zhm', 'pkl'), 'site_user' => ',ycc,lmr, zyh,J,shw,B,zzy,WJJ,Tony,pcf,zxy,wst,wz,v,S,yyg,yxd,wj,sw,yl,hx,spt,wmr,zl,syt,gavin,zm,htc,yqw,bhn,lmj,wbl,yqw,LYY,zhm,si'), 'ch' => array('site_code' => 'ch', 'site_id' => 14, 'site_lgc' => '1', 'site_url' => 'https://www.chinahighlights.com', 'site_image_url' => 'https://images.chinahighlights.com', 'site_authors' => array('TDJ', 'ycc'), 'site_user' => ',ycc,'), 'gm' => array('site_code' => 'gm', 'site_id' => 22, 'site_lgc' => '4', 'site_url' => 'https://www.chinarundreisen.com', 'site_image_url' => '//bilder.chinarundreisen.com', 'site_authors' => array('DX', 'X', 'K', 'Lan', 'lmr', 'zyh', 'ZYHL', 'TDJ'), 'site_user' => ',ycc,lmr,B,zyh,DX,X,K,htc,zm,bhn,Lan,Tony,zyh,J,v,ZYHL,TDJ,LYY,shw,'), 'vc' => array('site_code' => 'vc', 'site_id' => 30, 'site_lgc' => '5', 'site_url' => 'https://www.voyageschine.com', 'site_image_url' => '//images.voyageschine.com', 'site_authors' => array('JE', 'kq', 'lya', 'lyz', 'zyh'), 'site_user' => ',ycc,lmr, zyh,JE,htc,kq,lya,bhn,Tony,zyh,B,J,lyz,LYY,'), @@ -402,13 +402,13 @@ $config['site'] = array( 'gl' => array('site_code' => 'gl', 'site_id' => 90, 'site_lgc' => '1', 'site_url' => 'https://www.guilinchina.net', 'site_image_url' => '//images.guilinchina.net', 'site_authors' => array('vi', 'sfx'), 'site_user' => ',ycc,vi,bhn,hwt,thf,sfx,J,ZP,lyy,'), 'mbj' => array('site_code' => 'mbj', 'site_id' => 98, 'site_lgc' => '1', 'site_url' => 'https://www.mybeijingchina.com', 'site_image_url' => '//images.mybeijingchina.com', 'site_authors' => array('vz', 'sfx'), 'site_user' => ',ycc,vz,bhn,hwt,thf,sfx,J,ZP,'), 'ct' => array('site_code' => 'ct', 'site_id' => 1000, 'site_lgc' => '104', 'site_url' => 'https://www.chinatravel.com', 'site_image_url' => '//images.chinatravel.com', 'site_authors' => array('ll', 'D'), 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'), - 'chinatravel' => array('site_code' => 'chinatravel', 'site_id' => 1000, 'site_lgc' => '104', 'site_url' => 'https://www.chinatravel.com', 'site_image_url' => '//images.chinatravel.com', 'site_authors' => array('ll', 'D'), 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'), - 'dct' => array('site_code' => 'dct', 'site_id' => 99, 'site_lgc' => '1', 'site_url' => 'https://www.diychinatours.com', 'site_image_url' => '//images.chinahighlights.com', 'site_authors' => array('zzy', 'spt', 'yl', 'gavin'), 'site_user' => ',ycc,lmr, zyh,J,shw,B,zzy,WJJ,Tony,pcf,zxy,wst,wz,S,yyg,yxd,wj,sw,yl,hx,spt,wmr,syt,gavin,zm,htc,yqw,zl,sw,J,qqs,MGZ,'), + 'chinatravel' => array('site_code' => 'chinatravel', 'site_id' => 1000, 'site_lgc' => '104', 'site_url' => 'https://www.chinatravel.com', 'site_image_url' => 'https://images.chinatravel.com', 'site_authors' => array('ll', 'D'), 'site_user' => ',ycc,vz,bhn,J,wj,ll,D,ZP,lyy,'), + 'dct' => array('site_code' => 'dct', 'site_id' => 99, 'site_lgc' => '1', 'site_url' => 'https://www.diychinatours.com', 'site_image_url' => 'https://images.chinahighlights.com', 'site_authors' => array('zzy', 'spt', 'yl', 'gavin'), 'site_user' => ',ycc,lmr, zyh,J,shw,B,zzy,WJJ,Tony,pcf,zxy,wst,wz,S,yyg,yxd,wj,sw,yl,hx,spt,wmr,syt,gavin,zm,htc,yqw,zl,sw,J,qqs,MGZ,'), 'cits' => array('site_code' => 'cits', 'site_id' => 10086, 'site_lgc' => '2', 'site_image_url' => '', 'site_url' => 'https://www.guilincits.com'), 'mct' => array('site_code' => 'mct', 'site_id' => 6, 'site_lgc' => '101', 'site_image_url' => '', 'site_url' => 'https://www.mychinatours.com', 'site_authors' => array('cj')), 'diy' => array('site_code' => 'diy', 'site_id' => 99, 'site_lgc' => '1', 'sitemap_name' => 'E:/Dropbox/wwwroot/diychinatours.com/information.sitemap.xml', 'site_image_url' => '//images.diychinatours.com', 'site_url' => 'http://www.diychinatours.com', 'site_sitemap' => 'E:/Dropbox/wwwroot/diychinatours.com/information.sitemap.xml', 'site_authors' => array('ycc,lyy')), - 'ah' => array('site_code' => 'ah', 'site_id' => 141, 'site_lgc' => '1', 'sitemap_name' => '', 'site_image_url' => '//images.asiahighlights.com', 'site_url' => 'https://www.asiahighlights.com', 'site_sitemap' => '', 'site_authors' => array('X', 'sfx'), 'site_user' => array(',ycc,sfx,X,')), - 'gh' => array('site_code' => 'gh', 'site_id' => 163, 'site_lgc' => '1', 'sitemap_name' => '', 'site_image_url' => '//images.globalhighlights.com', 'site_url' => 'https://www.globalhighlights.com', 'site_sitemap' => '', 'site_authors' => array('X', 'sfx'), 'site_user' => array(',ycc,sfx,X,')), + 'ah' => array('site_code' => 'ah', 'site_id' => 141, 'site_lgc' => '1', 'sitemap_name' => '', 'site_image_url' => 'https://images.asiahighlights.com', 'site_url' => 'https://www.asiahighlights.com', 'site_sitemap' => '', 'site_authors' => array('X', 'sfx'), 'site_user' => array(',ycc,sfx,X,')), + 'gh' => array('site_code' => 'gh', 'site_id' => 163, 'site_lgc' => '1', 'sitemap_name' => '', 'site_image_url' => 'https://images.globalhighlights.com', 'site_url' => 'https://www.globalhighlights.com', 'site_sitemap' => '', 'site_authors' => array('X', 'sfx'), 'site_user' => array(',ycc,sfx,X,')), 'pgr' => array('site_code' => 'pgr', 'site_id' => 148, 'site_lgc' => '2', 'sitemap_name' => '', 'site_image_url' => '', 'site_url' => 'https://www.peregrine.cn', 'site_sitemap' => '', 'site_authors' => array('X', 'sfx'), 'site_user' => array(',ycc,sfx,X,')), 'ts' => array('site_code' => 'ts', 'site_id' => 149, 'site_lgc' => '1', 'sitemap_name' => '', 'site_image_url' => '', 'site_url' => 'https://www.trainspread.com', 'site_sitemap' => '', 'site_authors' => array('X', 'sfx'), 'site_user' => array(',ycc,sfx,X,')), 'bht' => array('site_code' => 'bht', 'site_id' => 6565, 'site_lgc' => '1', 'site_image_url' => '', 'site_url' => 'https://www.beijinghighlights.com', 'site_authors' => array('cj')), diff --git a/application/controllers/information.php b/application/controllers/information.php index d8cbc9b0..1acef3e2 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -21,8 +21,10 @@ class Information extends CI_Controller $this->load->model('InfoMetas_model'); $this->load->model('Infoauthors_model'); $this->load->model('InfoSMS_model'); + $this->load->model('recommends_and_tips_model'); $this->load->library('Amplib'); //加载AMP处理类 $this->load->library('html_optimize_lib'); //加载HTML优化类 + } public function index() @@ -585,6 +587,7 @@ class Information extends CI_Controller default: } + //替换模板中的标签 $template = str_replace('', $information->ic_seo_title, $template); $template = str_replace('', $information->ic_seo_description, $template); @@ -720,11 +723,17 @@ class Information extends CI_Controller $template = str_replace('', $template_H1, $template); + //推荐信息或者产品 + //信息推荐 暂时不用,未来用广告系统替代 + $template_recommand = $this->recommand_information($information); + $template = str_replace('', $this->load->view($template_path . '-next', array('recommands'=>$template_recommand), TRUE), $template); + //广告,改叫tips,防止被插件屏蔽 + if(!empty($template_recommand['Tips Right'])) { + $template = str_replace('', "
".$template_recommand['Tips Right']->it_content."
", $template); + } + //非产品页面 if (empty(get_meta($information->ic_id, 'meta_product_code'))) { - //信息推荐 暂时不用,未来用广告系统替代 - //$template_NEXT = $this->call_mobile_template_NEXT($template_path, $information->is_id); - //$template = str_replace('', $template_NEXT, $template); $addthis_widget = $this->load->view($template_path . '-add-this', false, true); $template = str_replace('', $addthis_widget, $template); } else { @@ -1067,6 +1076,87 @@ class Information extends CI_Controller return ''; } + //根据推荐规则进行查询 + function recommand_information_rule($information, $root_information, $recommand, &$exclude_ids) + { + $data = array(); + switch ($recommand->ir_rule) { + case 'rule_same_node_keyword'://同节点关键词 + $keywords = explode(',', $recommand->ir_keyword); + $data = $this->Information_model->search_by_words_2($root_information->is_path, $keywords, $exclude_ids); + break; + case 'rule_same_url_keyword'://同URL关键词 + $keywords = explode(',', $recommand->ir_keyword); + $url = trim($information->ic_url); + $url = substr($url, 0, strpos($url, '/', 1) + 1); + $data = $this->Information_model->search_by_words($url, $keywords, $exclude_ids); + break; + case 'rule_same_node_random'://同节点随机 + $data = $this->Information_model->random(1, $root_information->is_id, $exclude_ids); + break; + case 'rule_this_node_random'://指定节点下随机 + $data = $this->Information_model->random(1, $recommand->ir_pointer_is_id, $exclude_ids); + break; + case 'rule_range_random'://范围内随机,同读取备用节点 + break; + case 'rule_show_tips'://显示广告 + $data = $this->recommends_and_tips_model->tips_detail($recommand->ir_pointer_it_id); + return array($recommand->ir_name => $data); + break; + case 'rule_no_show'://不显示 + return array($recommand->ir_name => false); + break; + default: //'rule_parent'://继承上级规则则留空,程序会循环一遍分组的规则 + return false; + ; + } + //读取备用节点 + if (empty($data) && !empty($recommand->ir_urls)) {//查不到信息并且备选urls不为空,则随机选一条 + $url_array = explode("\n", $recommand->ir_urls); + $data = $this->Information_model->Detail(trim($url_array[rand(0, count($url_array) - 1)])); + } + if (!empty($data)) { + $exclude_ids[] = $data->is_id; + //读取附加移动端图片 + $data->mobile_photo=get_meta($data->ic_id, 'meta_addon_picture_mobile'); + if(empty($data->mobile_photo)){ + $data->mobile_photo='https://data.asiahighlights.com/image/travel-guide/thailand/info-template-recommended.jpg'; + } + } + return array($recommand->ir_name => $data); + } + + //获取当前信息所有的推荐信息和广告内容 + function recommand_information($information) + { + $data = array(); + $group_detail = $this->Information_model->get_detail_by_path($information->is_path, 0); //信息所属分组,根据分组进行不同推荐 + $group_recommands = $this->recommends_and_tips_model->recommends_list($group_detail->is_id);//节点下所有的推荐规则 + $root_detail = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容 + $root_recommands = $this->recommends_and_tips_model->recommends_list($root_detail->is_id);//节点下所有的推荐规则 + + $exclude_ids = array($information->is_id);//需要排除的is_id,防止通过页面显示相同内容,默认排除本身,每个推荐内容都需要排除已经推荐过的 + + foreach ($root_recommands as $item) { + $result = $this->recommand_information_rule($information, $root_detail, $item, $exclude_ids); + if (!empty($result)) { + $data += $result; + } + } + + + foreach ($group_recommands as $item) { + if (empty($data[$item->ir_name])) { + $result = $this->recommand_information_rule($information, $root_detail, $item, $exclude_ids); + if (!empty($result)) { + $data += $result; + } + } + } + //print_r($data); + return $data; + } + function call_mobile_template_NEXT($template_path, $is_id) { $data['detail'] = $this->Information_model->Detail($is_id); @@ -1129,7 +1219,7 @@ class Information extends CI_Controller $destination_url = trim($data['detail']->ic_url); $destination_url = substr($destination_url, 0, strpos($destination_url, '/', 1) + 1); //how to plan - $data['info_howtoplan'] = $this->Information_model->search_by_words($destination_url, array('how', 'plan'), $data['detail']->is_id); + $data['info_howtoplan'] = $this->Information_model->search_by_words($destination_url, array('how', 'plan'),array($data['detail']->is_id)); if (empty($data['info_howtoplan'])) { //找不到对应信息则显示备用 $data['info_howtoplan'] = $this->Information_model->Detail('/travelguide/plan-first-trip.htm'); } @@ -1138,7 +1228,7 @@ class Information extends CI_Controller $data['info_howtoplan']->ic_photo = $this->set_photo_content($data['info_howtoplan']->ic_photo, $data['info_howtoplan']->ic_content); } //best time to visit - $data['info_besttime'] = $this->Information_model->search_by_words($destination_url, array('best', 'time'), $data['detail']->is_id); + $data['info_besttime'] = $this->Information_model->search_by_words($destination_url, array('best', 'time'), array($data['detail']->is_id)); if (empty($data['info_besttime'])) { $data['info_besttime'] = $this->Information_model->Detail('/weather/china-best-times.htm'); } @@ -1147,7 +1237,7 @@ class Information extends CI_Controller $data['info_besttime']->ic_photo = $this->set_photo_content($data['info_besttime']->ic_photo, $data['info_besttime']->ic_content); } //top things to do - $data['info_topthings'] = $this->Information_model->search_by_words($destination_url, array('top', 'things'), $data['detail']->is_id); + $data['info_topthings'] = $this->Information_model->search_by_words($destination_url, array('top', 'things'), array($data['detail']->is_id)); if (empty($data['info_topthings'])) { $data['info_topthings'] = $this->Information_model->Detail('/travelguide/article-top-china-tourist-destination.htm'); } @@ -1177,6 +1267,7 @@ class Information extends CI_Controller return $this->load->view($template_path . '-next', $data, TRUE); } + //更新静态文件 //不用参数提交的原因是可能url带有特殊字符,CI会报错 public function update_cache($static_html_url = false, $delete_only = false) diff --git a/application/models/information_model.php b/application/models/information_model.php index 51cd3268..159054dc 100644 --- a/application/models/information_model.php +++ b/application/models/information_model.php @@ -65,15 +65,30 @@ class Information_model extends CI_Model { } //根据关键词来搜索内容 - function search_by_words($url,array $words,$self_is_id){ + function search_by_words($url,array $words,$exclude_ids){ $this->init(); $this->topNum = 1; $sql_keyword=' AND ( 1=1 '; foreach ($words as $item) { - $sql_keyword .=" AND ic_title like '%". $this->HT->escape_like_str($item) ."%' "; + $sql_keyword .=" AND ic_title like '%". $this->HT->escape_like_str(trim($item)) ."%' "; } $sql_keyword.=' ) '; - $this->search =" AND ic_url LIKE '$url%' ". $sql_keyword.' AND is_id<>'.$self_is_id; + $this->search =" AND ic_status=1 AND ic_url LIKE '$url%' ". $sql_keyword.' AND is_id NOT IN('.implode(',',$exclude_ids).',0)'; + $this->orderBy = " ORDER BY is1.is_level ASC, is1.is_sort ASC,ic_datetime DESC "; + return $this->GetList(); + } + + //在当前节点下搜索关键词 + function search_by_words_2($path,array $words,$exclude_ids){ + $this->init(); + $this->topNum = 1; + $sql_keyword=' AND ( 1=1 '; + foreach ($words as $item) { + $sql_keyword .=" AND ic_title like '%". $this->HT->escape_like_str(trim($item)) ."%' "; + } + $sql_keyword.=' ) '; + $this->path = " AND is1.is_path LIKE '$path%' "; + $this->search =' AND ic_status=1 AND is_id NOT IN('.implode(',',$exclude_ids).',0) '.$sql_keyword; $this->orderBy = " ORDER BY is1.is_level ASC, is1.is_sort ASC,ic_datetime DESC "; return $this->GetList(); } @@ -84,7 +99,7 @@ class Information_model extends CI_Model { $this->topNum = $topnum; $this->search = " AND is_parent_id =". $this->HT->escape($is_parent_id); $exclude_ids_string=implode(',',$exclude_ids); - $this->search .= " AND is_id NOT in ($exclude_ids_string,0)"; + $this->search .= " AND ic_status=1 AND is_id NOT in ($exclude_ids_string,0)"; $this->orderBy = " ORDER BY NewID() "; return $this->GetList(); } diff --git a/application/models/recommends_and_tips_model.php b/application/models/recommends_and_tips_model.php new file mode 100644 index 00000000..fd35e0b5 --- /dev/null +++ b/application/models/recommends_and_tips_model.php @@ -0,0 +1,62 @@ +HT = $this->load->database('HT', TRUE); + } + + + public function recommends_list($is_id) + { + $sql = " SELECT + ir.ir_id + ,ir.ir_is_id + ,ir.ir_keyword + ,ir.ir_name + ,ir.ir_pointer_is_id + ,ir.ir_pointer_it_id + ,ir.ir_rule + ,ir.ir_urls + ,ir.ir_datetime + ,ir.ir_sitecode + from infoRecommends ir + where 1=1 + AND ir.ir_sitecode=? + AND ir.ir_is_id=? + "; + $query = $this->HT->query($sql, array($this->config->item('site_code'), $is_id)); + //print_r($this->INFO->queries); + return $query->result(); + } + + public function tips_detail($it_id) + { + $timestamp=time(); + $sql = " SELECT TOP 1 + it.it_id + ,it.it_title + ,it.it_expires + ,it.it_content + ,it.it_sitecode + ,it.it_datetime + from infoTips it + where 1=1 + AND it.it_sitecode=? + AND it.it_id=? + AND it.it_expires>=? + "; + $query = $this->HT->query($sql, array($this->config->item('site_code'), $it_id,$timestamp)); + //print_r($this->HT->queries); + if ($query->num_rows() > 0) { + $row = $query->row(); + return $row; + } else { + return FALSE; + } + } + +} \ No newline at end of file diff --git a/application/third_party/recommend/controllers/index.php b/application/third_party/recommend/controllers/index.php index 28cfd89f..5a400e93 100644 --- a/application/third_party/recommend/controllers/index.php +++ b/application/third_party/recommend/controllers/index.php @@ -41,6 +41,12 @@ class Index extends CI_Controller $data['group_detail'] = $this->Information_model->get_detail_by_path($data['information']->is_path, 0); } + //查询所有推荐信息 + $recommends= $this->infoRecommends_model->detail_list($is_id); + foreach ($recommends as $item){ + $data['recommends'][$item->ir_name]=$item; + } + $this->load->view('bootstrap3/header', $data); $this->load->view('bind'); $this->load->view('bootstrap3/footer'); @@ -62,7 +68,7 @@ class Index extends CI_Controller $data['infoRecommend']->ir_pointer_is_id = null; $data['infoRecommend']->ir_pointer_it_id = null; $data['infoRecommend']->ir_urls = ''; - $data['infoRecommend']->ir_rule = 'no'; + $data['infoRecommend']->ir_rule = 'rule_parent'; $data['infoRecommend']->ir_datetime = time(); $data['infoRecommend']->ir_sitecode = $this->config->item('site_code'); $data['infoRecommend']->ir_id = $this->infoRecommends_model->add('infoRecommends', $data['infoRecommend']); @@ -92,10 +98,10 @@ class Index extends CI_Controller $data[] = array('name' => 'no', 'value' => '查询不到数据,请重试'); } else { $infoRecommend->ir_rule = $this->input->post('ir_rule'); - $infoRecommend->ir_keyword = $this->input->post('ir_keyword'); + $infoRecommend->ir_keyword = trim($this->input->post('ir_keyword')); $infoRecommend->ir_pointer_is_id = $this->input->post('ir_pointer_is_id'); $infoRecommend->ir_pointer_it_id = $this->input->post('ir_pointer_it_id'); - $infoRecommend->ir_urls = $this->input->post('ir_urls'); + $infoRecommend->ir_urls =trim($this->input->post('ir_urls')); $infoRecommend->ir_datetime =time(); $infoRecommend->ir_id = $this->infoRecommends_model->update('infoRecommends', $infoRecommend, 'ir_id=' . $ir_id); $data[] = array('name' => 'ok', 'value' => '保存成功!'); diff --git a/application/third_party/recommend/models/infoRecommends_model.php b/application/third_party/recommend/models/infoRecommends_model.php index b32dc4c4..ea6504b7 100644 --- a/application/third_party/recommend/models/infoRecommends_model.php +++ b/application/third_party/recommend/models/infoRecommends_model.php @@ -26,6 +26,12 @@ class infoRecommends_model extends CI_Model return $this->get_list(); } + public function detail_list($ir_is_id){ + $this->init(); + $this->where = ' AND ir.ir_is_id=' . $this->HT->escape($ir_is_id); + return $this->get_list(); + } + public function detail_by_ir_id($ir_id){ $this->init(); $this->topnum = 1; diff --git a/application/third_party/recommend/views/bind.php b/application/third_party/recommend/views/bind.php index c8e4f134..3a1cf2ef 100644 --- a/application/third_party/recommend/views/bind.php +++ b/application/third_party/recommend/views/bind.php @@ -22,6 +22,7 @@ >
+ ir_rule; ?>
@@ -36,7 +37,7 @@ >
- + ir_rule.'
'.$recommends['Article A']->ir_keyword; ?>
@@ -48,7 +49,7 @@ >
- + ir_rule.'
'.$recommends['Article B']->ir_keyword; ?>
@@ -60,7 +61,7 @@ >
- + ir_rule.'
'.$recommends['Article C']->ir_keyword; ?>
@@ -72,7 +73,7 @@ >
- + ir_rule.'
'.$recommends['Article D']->ir_keyword; ?>
@@ -90,7 +91,7 @@ >
- + ir_rule.'
'.$recommends['Tour A']->ir_keyword; ?>
@@ -102,7 +103,7 @@ >
- + ir_rule.'
'.$recommends['Tour B']->ir_keyword; ?>
@@ -114,7 +115,7 @@ >
- + ir_rule.'
'.$recommends['Tour C']->ir_keyword; ?>
@@ -125,7 +126,7 @@ onclick="show_bind_info(is_id; ?>,'Tour D')">
- + ir_rule.'
'.$recommends['Tour D']->ir_keyword; ?>
@@ -151,6 +152,10 @@ @@ -107,7 +135,7 @@
  • SEO管理
  • 打赏统计
  • 表单管理
  • -
  • 广告管理
  • +
  • 旧版广告管理
  • TA评论采集
  • 老旧信息查询
  • 信息搜索
  • @@ -121,7 +149,7 @@
  • 系统设置
  • 权限设置
  • 生成sitemap
  • -
  • 信息推荐
  • +
  • 广告管理和信息推荐
  • diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index c925756f..f062f76e 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -241,31 +241,7 @@ $("#ic_photo_img").attr("src", '/css/images/uploadPic.jpg'); } - //选择内容图片 - function openKCFinder_Content() { - var site_url = 'config->item('site_url') ?>'; - var weburl = encodeURI(site_url + $("#ic_url").val()); - window.CallBack = openKCFinder_Content_callback; - window.open('/media/popselectpicture.php?site_code=config->item('site_code'); ?>&site_lgc=config->item('site_lgc'); ?>&WebUrl=' + weburl, 'kcfinder_textbox', 'status=0, toolbar=0, location=0, menubar=0, directories=0,resizable=1, scrollbars=0, width=800, height=600'); - } - function openKCFinder_Content_callback(result) { - var site_image_url = 'config->item('media_image_url') ?>'; - var use_pictures = $("#use_pictures").val(); - if (result != null) { - for (var key in result.Pinfo) { - if ('config->item('site_code') ?>' == 'cht') { - editor.insertHtml('
    ' + result.Pinfo[key].Sinfo + '' + result.Pinfo[key].Sinfo + '
    '); - } else if ('config->item('site_code') ?>' == 'ch') { - editor.insertHtml('
    ' + result.Pinfo[key].Sinfo + '' + result.Pinfo[key].Sinfo + '
    '); - } else { - editor.insertHtml('' + result.Pinfo[key].PName + ''); - } - use_pictures = use_pictures + result.Pinfo[key].ID + ':' + result.Pinfo[key].PUrl + ':' + result.Pinfo[key].wh + ','; - } - $("#use_pictures").val(use_pictures); - } - } //搜索产品列表 function select_product_list(product_type, product_name) { diff --git a/application/views/mobile_first/ah-next.php b/application/views/mobile_first/ah-next.php new file mode 100644 index 00000000..cccfe665 --- /dev/null +++ b/application/views/mobile_first/ah-next.php @@ -0,0 +1,123 @@ +
    + + +

    More Travel Ideas and Inspiration

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

    Get Inspired with Our Sample Itineraries

    +

    At Asia Highlights, we create your kind of journey — your dates, your destinations, at your pace. You can have any trip tailor made for your travel.

    + + +
    + <?php echo $recommands['Tour A']->ic_title; ?> + +
    + + + +
    + <?php echo $recommands['Tour B']->ic_title; ?> + +
    + + + +
    + <?php echo $recommands['Tour C']->ic_title; ?> + +
    + + + +
    + <?php echo $recommands['Tour D']->ic_title; ?> + +
    + + + + + +
    diff --git a/application/views/mobile_first/ah-pc.php b/application/views/mobile_first/ah-pc.php index 122344b5..d0187390 100644 --- a/application/views/mobile_first/ah-pc.php +++ b/application/views/mobile_first/ah-pc.php @@ -1,361 +1,285 @@ - - - - - - - <!--@TITLE@--> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - -
    - -
    -
    - Myanmar Novices -
    - - - -
    - - - - - -
    - - We are here to help you...
    Start planning your tailor-made Asia tour with 1-1 - help from our travel advisors. - - Create My Trip - -
    -
    - -
    -
    - -
    - -
    -
    About Us
    -
    At Asia Highlights, we create your kind of journey — your dates, your destinations, at your pace. Not just any journey, but the unique trip with the exceptional experiences you're looking for — whether it's a family vacation, a honeymoon, or your annual break. more - ... -
    - - Rated - 4.8 out of 5 | Excellent -
    -
    - - -
    - -
    - - -
    - -
    Featured on
    - Medias - -
    - - -
    - - -
    -
    -
    - - - - - - - - - - - + + + + + + + <!--@TITLE@--> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +
    + + +
    + + + + + +
    + + We are here to help you...
    Start planning your tailor-made Asia tour with 1-1 + help from our travel advisors. + + Create My Trip + +
    +
    + +
    +
    + +
    + +
    +
    About Us
    +
    At Asia Highlights, we create your kind of journey — your dates, your destinations, at your pace. Not just any journey, but the unique trip with the exceptional experiences you're looking for — whether it's a family vacation, a honeymoon, or your annual break. more + ... +
    + + Rated + 4.8 out of 5 | Excellent +
    +
    + + +
    + +
    + + +
    + +
    Featured on
    + Medias + +
    + + +
    + + +
    +
    +
    + + + + + + + + + + + \ No newline at end of file diff --git a/application/views/mobile_first/ah.php b/application/views/mobile_first/ah.php index e87d0761..85406cd1 100644 --- a/application/views/mobile_first/ah.php +++ b/application/views/mobile_first/ah.php @@ -1,338 +1,263 @@ - - - - - <!--@TITLE@--> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - -
    -
    - Myanmar Novices -
    - -
    - - - - - - - - - - - - - - - - - + + + + + <!--@TITLE@--> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + + + + + + + + + + + + + \ No newline at end of file