PHP Universal Paging source with a variety of paging effect "collector's Edition"

Source: Internet
Author: User
PHP Universal Paging source with a variety of paging effect "collector's Edition"

Demo Address: http://www.xiaogg.org/page/
All styles: http://www.xiaogg.org/page/style.php
Full Source network download: http://www.ctdisk.com/file/6449739

  1. PHP Universal Paging source with a variety of page effects
  2. PHP Universal Paging source with a variety of page effects

  3. All styles

  4. Full configuration 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. Click I download----->>>> Universal Paging Source package download

  10. How to use the paging source code

  11. Page.class.php is the core document of this sub-page class and its open source free

  12. CSS style files and picture files for all styles in the presentation

  13. Other PHP files are sample files

  14. How to use:

  15. Introduction of paging Core files

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

  17. Refer to the page style you want or detach the style you want from my original style

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

  19. $pageSize = 20; This parameter is the number of pages per page

  20. $total = 1000; Total number of data

  21. Pageft ($total, $pageSize, 1,1,1,5); Configure page-Out styles

  22. <div class= "Pager" ><?php echo $pagenav;? ></div> page style in class, middle call paging effect

  23. OK, finished ... It's simple ...

  24. Here is a demonstration of the segment Php+mysql instance

  25. .............. Omit the hundreds of-character database connection operation ....

  26. <?php

  27. $pageSize = 20;
  28. $page////Here I do not write, you own according to the need to set
  29. $sql = "SELECT * from ' News ' LIMIT $page, $pageSize;
  30. $total = "SELECT count (*) from news";
  31. Pageft ($total, $pageSize, 0,1,0,5);

  32. Write your query loop

  33. ?>
  34. <div class= "Pager" ><?php echo $pagenav;? ></div>
Copy Code
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.