本文整理汇总了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(){
示例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">
示例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';