当前位置: 首页>>代码示例>>PHP>>正文


PHP page::generatePages方法代码示例

本文整理汇总了PHP中page::generatePages方法的典型用法代码示例。如果您正苦于以下问题:PHP page::generatePages方法的具体用法?PHP page::generatePages怎么用?PHP page::generatePages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在page的用法示例。


在下文中一共展示了page::generatePages方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

$pages->setPageCss("page_mid");
$pages->setCurrentPageCss("page_now");
$pages->setPrePageCss("page_pre");
$pages->setNextPageCss("page_next");
$pages->setPrePageFadeCss("page_pre_fade");
$pages->setNextPageFadeCss("page_next_fade");
$pages->setPrePageStyle($style);
$pages->setNextPageStyle($style);
$pages->setPageStyle("");
$pages->setCurrentPageStyle("color:#fff;");
$pages->setLinkSymbol('?act=news_list&page=');
$pages->isShowFirstAndLast(true);
$pages->isShowForSimplePage(false);
$pages->setElPageCss("elpage");
$pageCount = $pages->getTotalPageNum();
$PageList = $pages->generatePages();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>分类Operate</title>
<link href="../css/manager.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/common.js"></script>
<script src="../../addon/artDialog/artDialog.js?skin=default"></script>
<script src="../../addon/artDialog/plugins/iframeTools.source.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	
开发者ID:howareyoucolin,项目名称:demo,代码行数:30,代码来源:newslist.php

示例2:

$pages->setPageCss("page_mid");
$pages->setCurrentPageCss("page_now");
$pages->setPrePageCss("page_pre");
$pages->setNextPageCss("page_next");
$pages->setPrePageFadeCss("page_pre_fade");
$pages->setNextPageFadeCss("page_next_fade");
$pages->setPrePageStyle($style);
$pages->setNextPageStyle($style);
$pages->setPageStyle("");
$pages->setCurrentPageStyle("color:#fff;");
$pages->setLinkSymbol('?classpage=');
$pages->isShowFirstAndLast(true);
$pages->isShowForSimplePage(false);
$pages->setElPageCss("elpage");
$pageCount = $pages->getTotalPageNum();
$classPageList = $pages->generatePages();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>新闻Operate</title>
<link href="../css/manager.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../../ckeditor/ckeditor.js"></script>
<script src="../../addon/artDialog/artDialog.js?skin=default"></script>
<script src="../../addon/artDialog/plugins/iframeTools.source.js"></script>
</head>
<script type="text/javascript">
开发者ID:howareyoucolin,项目名称:demo,代码行数:31,代码来源:index.php

示例3:

//设置上一页页码的样式,即style属性
$pages->setNextPageStyle($style);
//设置下一页页码的样式,即style属性
$pages->setPageStyle("");
//设置各分页码的样式,即style属性
$pages->setCurrentPageStyle("");
//设置当前页码的样式,即style属性
$pages->setLinkSymbol('&id=' . $id);
//设置地址链接中页码与变量的连接符,如page=2中的"="
$pages->isShowFirstAndLast(true);
//设置是否显示第一页与最后一页的链接
$pages->isShowForSimplePage(false);
//设置当只有一页时是否显示分页
$pages->setElPageCss("elpage");
$pageCount = $pages->getTotalPageNum();
echo $pages->generatePages();
?>
</div>
<div class="clear"></div>
</div>     
                </div>
                        <!-- End_Module_485 -->
            </div>
                </div>
          </div>
            <div class="clr">
            </div>
        </div>
    </div>
	<?php 
include 'foot.php';
开发者ID:howareyoucolin,项目名称:demo,代码行数:31,代码来源:events.php


注:本文中的page::generatePages方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。