$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);
}
Toc目录
免责声明:本站多数资源来源于互联网。少数原创内容为本人随意书写不对其负任何法律责任(均为键盘和鼠标自行敲击),部分有助于网友的内容仅供学习与交流。如有转载、盗链等其它行为产生对国家社会网络不良影响均与本人无关。
版权说明:未经博主授权禁止转载、摘编、复制或建立镜像。对既成事实本站将保留所有的权利。
发表评论
暂无评论