$diyOrderType=$_SESSION['tempdiyorder'];
if (isset($_GET['diyOrder'])){
/* $diyOrderType=$_GET['diyOrder']; */
if ($diyOrderType == 'created') {
$select->order('table.contents.created', Typecho_Db::SORT_DESC)->page($this->_currentPage, $this->parameter->pageSize);
} else if ($diyOrderType == 'views') {
$select->order('table.contents.views', Typecho_Db::SORT_DESC)->page($this->_currentPage, $this->parameter->pageSize);
} else if ($diyOrderType == 'modified') {
$select->order('table.contents.modified', Typecho_Db::SORT_DESC)->page($this->_currentPage, $this->parameter->pageSize);
}
}else {
$select->order('table.contents.created', Typecho_Db::SORT_DESC)->page($this->_currentPage, $this->parameter->pageSize);
}
暂无评论