Home > php教程 > php手册 > thinkphp paging class php general paging class v1.1

thinkphp paging class php general paging class v1.1

WBOY
Release: 2016-10-23 23:59:47
Original
1162 people have browsed it

Routing paging is supported

thinkphp paging class php general paging class v1.1thinkphp paging class php general paging class v1.1thinkphp paging class php general paging class v1.1thinkphp paging class php general paging class v1.1thinkphp paging class php general paging class v1.1thinkphp paging class php general paging class v1.1thinkphp paging class php general paging class v1.1/**<br> * Mengxue Pagination Class v1.1<br> * @author Mengxue Network<br> * @Update 2016-10-10<br> * <br> * Style 1 First page Previous page 1 2 3 4 5 6 Next page Last page <br> * Style 3 <1...6789101112...18><br> * Style 3 First page Previous page Next page Last page<br> * Style 4 Previous page Next page<br>*/<br> <br> /**<br> * 基本样式<br>         .page {<br>             margin: 0px 15px 20px 15px;<br>             height: 40px;<br>                 overflow:hidden;<br>             border-left: 1px solid #93D3FF;<br>         }<br>          <br>         .page a ,<br>         .page span {<br>             display: block;<br>             float: left;<br>             line-height: 36px;<br>                 width:60px;<br>             height: 38px;<br>             margin-bottom: 10px;<br>             text-align: center;<br>             background-color: #FFF;<br>             font-size: 12px;<br>             border-right: 1px solid #93D3FF;<br>             border-top: 1px solid #93D3FF;<br>             border-bottom: 1px solid #93D3FF;<br>         }<br>          <br>         .page a:hover,<br>         .page a.now_page {<br>             font-weight: bold;<br>             background-color: #93D3FF;<br>             color: #fff;<br>             text-decoration: none;<br>         }<br>*/<br> <br> /**<br> * Usage<br> $params = array(<br>                'total_rows'=> $count, //(required) //Total number<br> 'method' => 'html', //(required) //Static paging html ajax paging ajax Do not fill in as dynamic paging<br> 'parameter' => '/list/?.html', //(required) Generate static url?Represents the number of pages<br> ‘now_page’ =>               'list_rows' => $rows, //(optional) How many rows to display on one page, default 15<br>);<br>         $page = new Core_Lib_Page($params);<br> ​​​​echo $page->show(); //show(style number defaults to 1);<br> */Code Portal http://www.flash127.com/thread-89349-1-1.html

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template