摘要:
分页方法文件名pagestyle.php<?phpfunction page($page,$total,$phpfile,$pagesize=3,$pagelen=3){$pagecode = "";$page = intval($page);$total = intval($total);if(!$total) return array();$pages = ceil($total/$pagesize);if($page<1) $page = 1;if($page>$pages) $page = $pages;$offset = $pagesize*($ 阅读全文