本文整理匯總了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';