$PostsList = new Common\Logic\PostsLogic(); $count = $PostsList->countAll('single'); // 查询满足要求的总记录数 ($count == 0) ? $res404 = 0 : $res404 = 1; if ($count != 0) { $Page = new Common\Util\GreenPage($count, get_opinion('PAGER')); // 实例化分页类 传入总记录数 $pager = $Page->show(); $limit = $Page->firstRow . ',' . $Page->listRows; $postslist= $PostsList->getList($limit, 'single', 'post_date desc', true); }
没有相关文章