search
Homephp教程php手册Thinkphp分页样式改造Bootstrap版本

Thinkphp分页样式改造成Bootstrap版本,还是非常简单的。
1.修改类库,目录:ThinkPHP/Extend/Library/ORG/Util/Page.class.php
把所有分页的样式加上

  • 标签

    2.程序调用类库,关键是$Page->setConfig    import('ORG.Util.Page');// 导入分页类<br> $count      = $this->dao->where($map)->count();//总数量<br> $Page       = new Page($count,5);<br> // 实例化分页类 传入总记录数和每页显示的条数<br> $Page->setConfig('theme', '<li><a>%totalRow% %header%</a></li> %upPage% %downPage% %first%  %prePage%  %linkPage%  %nextPage% %end% ');<br> $show       = $Page->show();// 分页显示输出<br> $this->assign('page',$show);// 赋值分页输出            4.模板内容<div> <br>     <ul> <br>        <?php echo $page;?><br>     </ul> <br> </div>Thinkphp分页样式改造Bootstrap版本

    更多Bootstrap模板,访问http://www.js-css.cn JS代码网


    附件 Page.class.zip ( 2.08 KB 下载:445 次 )

    AD:真正免费,域名+虚机+企业邮箱=0元

  • Statement
    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

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Article

    Hot Tools

    Safe Exam Browser

    Safe Exam Browser

    Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

    VSCode Windows 64-bit Download

    VSCode Windows 64-bit Download

    A free and powerful IDE editor launched by Microsoft

    MantisBT

    MantisBT

    Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

    SAP NetWeaver Server Adapter for Eclipse

    SAP NetWeaver Server Adapter for Eclipse

    Integrate Eclipse with SAP NetWeaver application server.

    SecLists

    SecLists

    SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.