dedecms 列表 用分页标签 判断 当第一页则显示,第二页以上不显示 土办法!
arc.listview.class.php
function GetPageListST($list_len,$listitem="index,end,pre,next,pageno,spurl") // ,spurl新增的
,spurl新境的
1
2
3
4
5
|
$purl = $this ->GetCurUrl(); $maininfo = "<li><span class="pageinfo">共 <strong>{$totalpage}</strong>页<strong>" . $this ->TotalResult. "</strong>条</span></li> " ; $tnamerule = $this ->GetMakeFileRule( $this ->Fields[ 'id' ], "list" , $this ->Fields[ 'typedir' ], $this ->Fields[ 'defaultname' ], $this ->Fields[ 'namerule2' ]); $tnamerule = preg_replace( "/^(.*)//" , '' , $tnamerule ); $typedir = ereg_replace ( '{cmspath}' , $GLOBALS [ 'cfg_cmspath' ], $this ->Fields[ 'typedir' ]); //新增的 |