filter = "`main` = '0'"; $total = $mpages->count(); if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)) $curpage = ceil($total_rows / $showrow); //当前页数大于最后页数,取最后一页 $mpages_banner = new sys('pages'); $page_banner = $mpages_banner->get_one(10); $img = $page_banner['img'] == "" ? "": "background-image:url('".$page_banner['img']."')"; ?>

新聞中心

    filter = "`main` = '0'"; $pages = $mpages->get_query('id DESC'." LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"); foreach($pages as $page){ $time = explode(' ',$page['time']); ?>
$showrow) {//总记录数大于每页显示数,显示分页 $page = new page($total, $showrow, $curpage, $url, 2); echo $page->myde_write(); } ?>