这个懒得细说了,自己看代码吧,文件位于/e/class/t_functions.php
修改函数sys_ShowListMorePage既可。

下面给出个例子,自己体悟下。多调试,少问。

function sys_ShowListMorePage($num,$page,$dolink,$type,$totalpage,$line,$ok,$search="",$add){
global $fun_r,$public_r;
if($num<=$line)
{
$pager['showpage']='';
return $pager;
}
//文件名
if(empty($add['dofile']))
{
$add['dofile']='index';
}
//静态页数
$repagenum=$add['repagenum'];
$page_line=$public_r['listpagelistnum'];
$snum=2;
$totalpage=ceil($num/$line);//取得总页数
$firststr='';//'<a title="Total record">&nbsp;<b>xxx'.$num.'</b> </a>&nbsp;&nbsp;';
//上一页
$toppage='';//'<a href="'.$dolink.$add['dofile'].$type.'">'.$fun_r['startpage'].'</a>&nbsp;';
$pagepr=$page-1;
if($pagepr==1){
$prido=$add['dofile'].$type;
}else{
$prido=$add['dofile'].'_'.$pagepr.$type;
}
if($pagepr==0){
$prepage='<div class="navigaiton"><a class="prev" href="JavaScript:void(0);"></a>';
}else{
$prepage='<div class="navigaiton"><a class="prev" href="'.$dolink.$prido.'"></a>';
}
//下一页
$pagenex=$page+1;
$nextpagelink=$repagenum&&$repagenum<$pagenex?eReturnRewritePageLink2($add,$pagenex):$dolink.$add['dofile'].'_'.$pagenex.$type;
$lastpagelink=$repagenum&&$repagenum<$totalpage?eReturnRewritePageLink2($add,$totalpage):$dolink.$add['dofile'].'_'.$totalpage.$type;
if($pagenex>$totalpage){
$nextpage='<a href="JavaScript:void(0);" class="next"></a></div>';
}else{
$nextpage='<a href="'.$nextpagelink.'" class="next"></a></div>';
}
$lastpage='';//'&nbsp;<a href="'.$lastpagelink.'">'.$fun_r['lastpage'].'</a>';
$starti=$page-$snum<1?1:$page-$snum;
$page_line=8;
$no=0;
for($i=$starti;$i<=$totalpage&&$no<$page_line;$i++){
$no++;
if($page==$i){
$is_1="<li><a href='JavaScript:void(0);' class='active'>";
$is_2="</a></li>";
}elseif($i==1){
$is_1='<li><a href="'.$dolink.$add['dofile'].$type.'">';
$is_2="</a></li>";
}else{
$thispagelink=$repagenum&&$repagenum<$i?eReturnRewritePageLink2($add,$i):$dolink.$add['dofile'].'_'.$i.$type;
$is_1='<li><a href="'.$thispagelink.'">';
$is_2="</a></li>";
}
$returnstr.='&nbsp;'.$is_1.$i.$is_2;
}
for($go=1;$go<=$totalpage;$go++){
if($go==1){$file=$add['dofile'].$type;
}else{$file=$add['dofile'].'_'.$go.$type;}
$thispagelink=$repagenum&&$repagenum<$go?eReturnRewritePageLink2($add,$go):$dolink.$file;
if($ok==$go){$select=" selected";}else{$select="";}
$myoptions.="<option value='".$thispagelink."'>".$fun_r['gotos'].$go.$fun_r['gotol']."</option>";
$options.="<option value='".$thispagelink."'".$select.">".$fun_r['gotos'].$go.$fun_r['gotol']."</option>";
}
$options='<li><span class="pagespan">转到:</span><select class="pagenum" name=select onchange="self.location.href=this.options[this.selectedIndex].value">'.$options."</select></li>";
//$returnstr='<div class="pagination"><div class="links"><ul>'.$firststr.$toppage.$returnstr.$options."</ul></div>".$prepage.$nextpage.$lastpage."</div>";
$returnstr='<div class="pagination"><div class="links"><ul>'.$firststr.$toppage.$returnstr.$options."</ul></div></div>";
//$returnstr=$firststr.$toppage.$prepage.$returnstr.$nextpage.$lastpage;
$pager['showpage']=$returnstr;
return $pager;
}

Related Posts: 帝国cms-列表页自定义翻页样式 :