当前位置: 首页>>代码示例>>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;未经允许,请勿转载。