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
-
- PHP Universal Paging source with a variety of page effects
-
PHP Universal Paging source with a variety of page effects
All styles
Full configuration Pageft ($total, $pageSize, 1,1,1,5);
Pageft ($total, $pageSize, 0,1,1,5);
Pageft ($total, $pageSize, 0,0,1,5);
Pageft ($total, $pageSize, 0,0,0,5);
Pageft ($total, $pageSize, 1,0,0,15);
-
- Click I download----->>>> Universal Paging Source package download
How to use the paging source code
- Page.class.php is the core document of this sub-page class and its open source free
CSS style files and picture files for all styles in the presentation
Other PHP files are sample files
How to use:
Introduction of paging Core files
<?php include_once (' page.class.php ');? >
Refer to the page style you want or detach the style you want from my original style
<link rel= "stylesheet" type= "Text/css" href= "Css/css.css"/>
$pageSize = 20; This parameter is the number of pages per page
- $total = 1000; Total number of data
Pageft ($total, $pageSize, 1,1,1,5); Configure page-Out styles
<div class= "Pager" ><?php echo $pagenav;? ></div> page style in class, middle call paging effect
OK, finished ... It's simple ...
-
Here is a demonstration of the segment Php+mysql instance
.............. Omit the hundreds of-character database connection operation ....
<?php
- $pageSize = 20;
- $page////Here I do not write, you own according to the need to set
- $sql = "SELECT * from ' News ' LIMIT $page, $pageSize;
- $total = "SELECT count (*) from news";
- Pageft ($total, $pageSize, 0,1,0,5);
Write your query loop
- ?>
- <div class= "Pager" ><?php echo $pagenav;? ></div>
Copy Code |