<?php require_once dirname(__FILE__) . "/../include/common.inc.php"; $typeid = 13; //线路栏目 require_once SLINEINC . "/view.class.php"; require_once dirname(__FILE__) . '/tuan.func.php'; $html = dirname(__FILE__) . '/index.html'; if (file_exists($html) && $genpage != 1 && empty($dest_id) && empty($attrid)) { include $html; exit; } $pv = new ListView($typeid); $pv->GetChannelKeywords($typeid); //根据栏目类型获取关键词.介绍,栏目名称 $pv->Fields['seokeyword'] = !empty($pv->Fields['seokeyword']) ? "<meta name=\"keywords\" content=\"" . $pv->Fields['seokeyword'] . "\"/>" : ""; $pv->Fields['seodescription'] = !empty($pv->Fields['seodescription']) ? "<meta name=\"description\" content=\"" . $pv->Fields['seodescription'] . "\"/>" : ""; $time = time(); if (!empty($status)) { $where = "a.ishidden = 0 and a.endtime !='' and a.starttime>{$time} "; } else { $where = "a.ishidden = 0 and a.endtime>{$time} and a.endtime !='' and a.starttime<={$time} "; } $attrid = Helper_Archive::pregReplace($attrid, 4); if (!is_numeric($dest_id) && !empty($dest_id)) { $dest_id = Helper_Archive::pregReplace($dest_id, 8); //只能字母.数字 $d_id = Helper_Archive::getDestIdByPinYin($dest_id); $dest_id = !empty($d_id) ? $d_id : $dest_id; if ($dest_id == 'all') { $dest_id = 0;