欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php分页类代码,带漂亮样式的php分页代码

程序员文章站 2022-06-13 08:57:15
...
  1. include "pager.class.php";
  2. $CurrentPage=isset($_GET['page'])?$_GET['page']:1;
  3. //die($CurrentPage);
  4. $myPage=new pager(1300,intval($CurrentPage));
  5. $pageStr= $myPage->GetPagerContent();
  6. //echo $pageStr;
  7. $myPage=new pager(90,intval($CurrentPage));
  8. $pageStr= $myPage->GetPagerContent();
  9. echo $pageStr;
  10. ?>
复制代码
  1. php分页演示-bbs.it-home.org
  2. include "pager.class.php";
  3. $CurrentPage=isset($_GET['page'])?$_GET['page']:1;
  4. //die($CurrentPage);
  5. $myPage=new pager(1300,intval($CurrentPage));
  6. $pageStr= $myPage->GetPagerContent();
  7. //echo $pageStr;
  8. $myPage=new pager(90,intval($CurrentPage));
  9. $pageStr= $myPage->GetPagerContent();
  10. echo $pageStr;
  11. ?>