$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); //以下是条件判断 $where = $wherecount = " where a.ishidden=0 and a.typeid={$typeid}"; if ($attrid) { $attrwhere = Helper_Archive::getAttrWhere($attrid); //属性条件 $where .= $attrwhere; $wherecount .= $attrwhere; } //如果选择目的地 if (!empty($dest_id)) { $where .= " and find_in_set({$dest_id},a.kindlist)"; $wherecount .= " and find_in_set({$dest_id},a.kindlist)"; $sql = "select a.* from sline_model_archive a left join sline_kindorderlist b on(a.id=b.aid and b.typeid={$typeid} and b.classid={$dest_id} ) {$where} order by b.displayorder asc, a.modtime desc,a.addtime desc "; } else { $sql = "select a.* from sline_model_archive a left join sline_allorderlist b on(a.id=b.aid and b.typeid={$typeid} ) {$where} order by b.displayorder asc, a.modtime desc,a.addtime desc "; } $destinfo = TongYong::getDestSeoInfo($module_dest_table, $dest_id); //目的地优化信息; $seoinfo = TongYong::getSeoInfo($destinfo, $attrid, $typeid);