摘要: 1:数据收集$pageIndex = $_GET['p']?$_GET['p']:'1';//当前页码 $perpage = 10;//每页显示多少数量,和页码无关 $count = 121;//总数是多少,//和页码无关 $flag =9;//显示页码个数 $pageCount = ceil($count/$perpage); //总的页码个数 $pagesInRange = $this->page_show($pageIndex, $pageCount, $flag);//显示的页码数组注:page_show 是个函数,用于构造显示的页 阅读全文
posted @ 2014-03-09 01:10 ybbshanshan 阅读(1761) 评论(0) 推荐(0) 编辑