Example #1
0
require_once dirname(__FILE__) . "/../include/common.inc.php";
require_once SLINEROOT . '/tongyong/func.php';
require_once dirname(__FILE__) . '/config.php';
require_once SLINEINC . "/listview.class.php";
$file = SLINEDATA . "/autotitle.cache.inc.php";
//载入智能title配置
if (file_exists($file)) {
    require_once $file;
}
//存储前一个用户选择导航.
$dest_id = isset($dest_id) ? $dest_id : 0;
$attrid = isset($attrid) ? $attrid : 0;
if (!is_numeric($dest_id)) {
    if ($dest_id != 'all') {
        $d_id = Helper_Archive::getDestIdByPinYin($dest_id);
        $dest_id = !empty($d_id) ? $d_id : 0;
    } else {
        $dest_id = 0;
    }
}
$pkname = get_par_value($dest_id, $typeid);
//上一级
getTopNavDest($dest_id);
//替换操作
$GLOBALS['dest_id'] = Helper_Archive::pregReplace($dest_id, 2);
$GLOBALS['attrid'] = Helper_Archive::pregReplace($attrid, 4);
$GLOBALS['startcity'] = $GLOBALS['cityid'] = Helper_Archive::pregReplace($startcity, 2);
//下级目的地
$destlist = Helper_Archive::getChildDest($dest_id, $typeid);
//以下是条件判断