{dede:list pagesize='12′ orderby='weight' orderway='desc'} |
else if($orderby=="weight") { $ordersql = " order by arc.weight $orderWay"; } |
if(preg_match('/hot|click|weight|lastpost/', $orderby)) |
$isweight = $ctag->GetAtt('isweight'); |
$weight = $ctag->GetAtt('weight'); |
//文檔排序的方式 $ordersql = ''; if($orderby=='hot' || $orderby=='click') $ordersql = " ORDER BY arc.click $orderWay"; else if($orderby == 'sortrank' || $orderby=='pubdate') $ordersql = " ORDER BY arc.sortrank $orderWay"; else if($orderby == 'id') $ordersql = " ORDER BY arc.id $orderWay"; else if($orderby == 'near') $ordersql = " ORDER BY ABS(arc.id - ".$arcid.")"; else if($orderby == 'lastpost') $ordersql = " ORDER BY arc.lastpost $orderWay"; else if($orderby == 'scores') $ordersql = " ORDER BY arc.scores $orderWay"; |
else if($orderby == 'weight') $ordersql = " order by arc.weight $orderWay"; |
orderby='weight' orderway='desc' //desc和asc |
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: dede:list和dede:arclist列表按權(quán)重排序修改方法