Home > Backend Development > PHP Tutorial > PHP universal paging source code with multiple paging effects [Collector's Edition]

PHP universal paging source code with multiple paging effects [Collector's Edition]

WBOY
Release: 2016-07-25 09:06:59
Original
1128 people have browsed it
php万能分页源码附多种分页效果【珍藏版】

演示地址:http://www.xiaogg.org/page/
所有样式: http://www.xiaogg.org/page/style.php
完整源码网盘下载:http://www.ctdisk.com/file/6449739

  1. php万能分页源码附多种分页效果
  2. php万能分页源码附多种分页效果

  3. 所有样式

  4. 完整配置 pageft($total,$pageSize,1,1,1,5);

  5. pageft($total,$pageSize,0,1,1,5);

  6. pageft($total,$pageSize,0,0,1,5);

  7. pageft($total,$pageSize,0,0,0,5);

  8. pageft($total,$pageSize,1,0,0,15);


  9. 点我下载----->>>>万能分页源码包下载

  10. 分页源码使用方法

  11. page.class.php 为本分页类的核心文件,其开源免费

  12. css 为演示中所有样式的css样式文件和图片文件

  13. 其它php文件为示例文件

  14. 使用方法:

  15. 引入分页核心文件

  16. <?php include_once('page.class.php');?>

  17. 引用你要的分页样式或从我原有的样式中分离出你要的样式

  18. <link rel="stylesheet" type="text/css" href="css/css.css" />

  19. $pageSize=20;        //此参数为每页数量

  20. $total=1000;         // 数据总数量

  21. pageft($total,$pageSize,1,1,1,5); 配置分页样式

  22. <div class="pager"><?php echo $pagenav;?></div> class 中为分页样式,中间调用分页效果

  23. OK,完成啦。。。很简单吧。。。


  24. 下面给段php+mysql 实例演示

  25. ..............省略几百字符的数据库连接操作。。。。

  26. <?php

  27. $pageSize=20;
  28.   $page////此处我不写啦,你们自己根据需要来设定
  29. $sql="SELECT * FROM `news` LIMIT $page,$pageSize;
  30. $total="select count(*) from news";
  31. pageft($total,$pageSize,0,1,0,5);

  32. ////写你的查询循环

  33. ?>
  34. <div class="pager"><?php echo $pagenav;?></div>
复制代码


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template