后台文章排序怎么才可以按自己输入的数字排列?如按4,3,2,1,从大到小排列?
实现方法如下:
修改文件: phpcms\modules\content 中的 content.php
代码如下:
$datas = $this->db->listinfo($where,'id desc',$_GET['page']);
改成
代码如下:
$datas = $this->db->listinfo($where,'listorder ASC, id desc',$_GET['page']);
来源:互联网
免责声明:如果侵犯了您的权益,请联系站长(1277306191@qq.com),我们会及时删除侵权内容,谢谢合作! |
|