第一步找到/include/arc.listview.class.php文件;
if($totalpage<=1&&$this->TotalResult>0)
{
return"<li><spanclass=\"pageinfo\">共<strong>1</strong>页<strong>".$this->TotalResult."</strong>条记录</span></li>\r\n";
}
if($this->TotalResult==0)
{
return"<li><spanclass=\"pageinfo\">共<strong>0</strong>页<strong>".$this->TotalResult."</strong>条记录</span></li>\r\n";
}
$purl=$this->GetCurUrl();
$maininfo="<li><spanclass=\"pageinfo\">共<strong>{$totalpage}</strong>页<strong>".$this->TotalResult."</strong>条</span></li>\r\n";
$tnamerule=$this->GetMakeFileRule($this->Fields['id'],"list",$this->Fields['typedir'],$this->Fields['defaultname'],$this->Fields['namerule2']);
$tnamerule=preg_replace("/^(.*)\//",'',$tnamerule);
//获得上一页和主页的链接
if($this->PageNo!=1)
{
$prepage.="<li><ahref='".str_replace("{page}",$prepagenum,$tnamerule)."'>上一页</a></li>\r\n";
$indexpage="<li><ahref='".str_replace("{page}",1,$tnamerule)."'>首页</a></li>\r\n";
}
else
{
$indexpage="<li>首页</li>\r\n";
}
//下一页,未页的链接
if($this->PageNo!=$totalpage&&$totalpage>1)
{
$nextpage.="<li><ahref='".str_replace("{page}",$nextpagenum,$tnamerule)."'>下一页</a></li>\r\n";
$endpage="<li><ahref='".str_replace("{page}",$totalpage,$tnamerule)."'>末页</a></li>\r\n";
}
else
{
$endpage="<li>末页</li>\r\n";
}
把这里面的li标签加上你的class类名;
if($totalpage<=1&&$this->TotalResult>0)
{
return"<li><spanclass=\"pageinfo\">共1页/".$this->TotalResult."条记录</span></li>\r\n";
}
if($this->TotalResult==0)
{
return"<li><spanclass=\"pageinfo\">共0页/".$this->TotalResult."条记录</span></li>\r\n";
}
$maininfo="<li><spanclass=\"pageinfo\">共<strong>{$totalpage}</strong>页<strong>".$this->TotalResult."</strong>条</span></li>\r\n";
$purl=$this->GetCurUrl();
//如果开启为静态,则对规则进行替换
if($cfg_rewrite=='Y')
{
$nowurls=preg_replace("/\-/",".php?",$purl);
$nowurls=explode("?",$nowurls);
$purl=$nowurls[0];
}
$geturl="tid=".$this->TypeID."&TotalResult=".$this->TotalResult."&";
$purl.='?'.$geturl;
$optionlist='';
//$hidenform="<inputtype='hidden'name='tid'value='".$this->TypeID."'>\r\n";
//$hidenform.="<inputtype='hidden'name='TotalResult'value='".$this->TotalResult."'>\r\n";
//获得上一页和下一页的链接
if($this->PageNo!=1)
{
$prepage.="<li><ahref='".$purl."PageNo=$prepagenum'>上一页</a></li>\r\n";
$indexpage="<li><ahref='".$purl."PageNo=1'>首页</a></li>\r\n";
}
else
{
$indexpage="<li><a>首页</a></li>\r\n";
}
if($this->PageNo!=$totalpage&&$totalpage>1)
{
$nextpage.="<li><ahref='".$purl."PageNo=$nextpagenum'>下一页</a></li>\r\n";
$endpage="<li><ahref='".$purl."PageNo=$totalpage'>末页</a></li>\r\n";
}
else
{
$endpage="<li><a>末页</a></li>\r\n";
}
这里的也是一样!这杨改完后生成一下就可以了!如果有什么不对的地方,再看看你修改的代码找找问题,就能解决,一定要自己动手,多修改你的经验救出来了!