/** * 生成searchtitle,keyword,description等信息. * * @access private * @return array */ function getSearchTitle($info, $rankid, $priceid, $attrid) { global $searchkey, $dest_id; $arr = array(); $rankname = getRank($rankid); $searchtitle = "{$info['seotitle']}|"; if ($priceid != 0) { $pricearr = getMinMaxprice($priceid); if ($pricearr['min'] != "" && $pricearr['max'] == "") { $price .= "价格在{$pricearr['min']}以上"; } else { $price .= "价格范围在{$pricearr['min']}-{$pricearr['max']}之间"; } $searchtitle .= $price; } if ($rankname != "") { $searchtitle .= "{$rankname}|"; } if (!empty($attrid)) { $searchtitle .= getHotelAttrName($attrid); } //$arr['searchtitle']=$searchtitle; // if(!empty($searchkey)) //如果针对的是名称搜索 //{ //$arr['searchtitle']="{$searchkey}酒店列表"; // $arr['subtitle']="{$searchkey}酒店列表"; //} // return $arr; return $searchtitle; }
function getLinesNum($childid, $attrid, $priceid, $day) { global $dsql; $where = " where 1 and ishidden='0'"; if ($childid != 0) { $where .= " and FIND_IN_SET('{$childid}',kindlist)"; } if ($attrid != 0) { $where .= " and FIND_IN_SET('{$attrid}',attrid)"; } if ($day != 0) { $where .= " and lineday='{$day}'"; } if ($priceid != 0) { $parr = getMinMaxprice($priceid); $where .= " and price > '{$parr['min']}' and price < '{$parr['max']}'"; } $sql = "select count(*) as dd from #@__line " . $where; $row = $dsql->GetOne($sql); return $row['dd']; }