在/include/arc.searchview.class.php文件467行“//排序方式”注释下面 “//搜索”注释以上的代码改成如下代码:
$ordersql = '';if($this->ChannelType< 0 ||$this->ChannelTypeid< 0){if($orderby=="id"){$ordersql="order by arc.aid desc";}else if($orderby=="senddate"){$ordersql="order by arc.senddate desc";}else{$ordersql=" order by arc.click desc";}}else{if($orderby=="senddate"){$ordersql=" order by arc.senddate desc";}else if($orderby=="pubdate"){$ordersql=" order by arc.pubdate desc";}else if($orderby=="id"){$ordersql=" order by arc.id desc";}else{$ordersql=" order by arc.click desc";}}
如果本文对你有帮助,欢迎打赏本站