當前位置: 首頁>>代碼示例>>PHP>>正文


PHP page::setLinkSymbol方法代碼示例

本文整理匯總了PHP中page::setLinkSymbol方法的典型用法代碼示例。如果您正苦於以下問題:PHP page::setLinkSymbol方法的具體用法?PHP page::setLinkSymbol怎麽用?PHP page::setLinkSymbol使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在page的用法示例。


在下文中一共展示了page::setLinkSymbol方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

//創建對象
$pages->setShowPageNum(9);
$pages->setCurrentIndexPage(5);
$pages->setPrePageText("<");
$pages->setNextPageText(">");
$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>
開發者ID:howareyoucolin,項目名稱:demo,代碼行數:31,代碼來源:index.php

示例2:

//創建對象
$pages->setShowPageNum(9);
$pages->setCurrentIndexPage(5);
$pages->setPrePageText("<");
$pages->setNextPageText(">");
$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>
開發者ID:howareyoucolin,項目名稱:demo,代碼行數:31,代碼來源:newslist.php

示例3:

//創建對象
$pages->setShowPageNum(9);
$pages->setCurrentIndexPage(5);
$pages->setPrePageText("<");
$pages->setNextPageText(">");
$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('&kw=' . $kw . '&idpathord=' . $pidpathord);
$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>
開發者ID:howareyoucolin,項目名稱:demo,代碼行數:31,代碼來源:index.php

示例4:

//設置當前頁碼css樣式的class名稱
$pages->setPrePageCss("page_pre");
//設置上一頁的css樣式的class名稱
$pages->setNextPageCss("page_next");
//設置下一頁的css樣式的class名稱
$pages->setPrePageFadeCss("page_pre_fade");
$pages->setNextPageFadeCss("page_next_fade");
$pages->setPrePageStyle($style);
//設置上一頁頁碼的樣式,即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>
開發者ID:howareyoucolin,項目名稱:demo,代碼行數:31,代碼來源:events.php

示例5: while

 //創建對象
 $pages->setShowPageNum(9);
 $pages->setCurrentIndexPage(5);
 $pages->setPrePageText("<");
 $pages->setNextPageText(">");
 $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=pro_list');
 $pages->isShowFirstAndLast(true);
 $pages->isShowForSimplePage(false);
 $pages->setElPageCss("elpage");
 $pageCount = $pages->getTotalPageNum();
 $editPageList = $pages->generatePages();
 $sql = "select cid,id,name,ord,model,pic,hot,new,dis from `th_pro_content` order by ord desc,uptime desc limit {$firstEditCount},{$eachDisEditNums}";
 $query = $db->query($sql);
 $pcount = 0;
 while ($row = $db->fetch_array($query)) {
     $pros['cid'][$pcount] = $row['cid'];
     $pros['id'][$pcount] = $row['id'];
     $pros['name'][$pcount] = $row['name'];
     $pros['model'][$pcount] = $row['model'];
     $pros['pic'][$pcount] = $row['pic'];
     $pros['dis'][$pcount] = $row['dis'];
開發者ID:howareyoucolin,項目名稱:demo,代碼行數:31,代碼來源:action.php

示例6:

//設置當前頁碼css樣式的class名稱
$pages->setPrePageCss("page_pre");
//設置上一頁的css樣式的class名稱
$pages->setNextPageCss("page_next");
//設置下一頁的css樣式的class名稱
$pages->setPrePageFadeCss("page_pre_fade");
$pages->setNextPageFadeCss("page_next_fade");
$pages->setPrePageStyle($style);
//設置上一頁頁碼的樣式,即style屬性
$pages->setNextPageStyle($style);
//設置下一頁頁碼的樣式,即style屬性
$pages->setPageStyle("");
//設置各分頁碼的樣式,即style屬性
$pages->setCurrentPageStyle("");
//設置當前頁碼的樣式,即style屬性
$pages->setLinkSymbol('');
//設置地址鏈接中頁碼與變量的連接符,如page=2中的"="
$pages->isShowFirstAndLast(true);
//設置是否顯示第一頁與最後一頁的鏈接
$pages->isShowForSimplePage(false);
//設置當隻有一頁時是否顯示分頁
$pages->setElPageCss("elpage");
$pageCount = $pages->getTotalPageNum();
echo $pages->generatePages();
?>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</div>
開發者ID:howareyoucolin,項目名稱:demo,代碼行數:31,代碼來源:comment.php


注:本文中的page::setLinkSymbol方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。