找到php文件

include/arc_archives.class.php

查找

for($i=1;$i<=$totalPage;$i++)

修改为

$total_list=7; //显示7个,3*2+1=7 
  if($nowPage >= $total_list) { 
  $i = $nowPage-3; //前后6个,(7-1)/ 2=3 
  $total_list = $nowPage+3; //前后3个,(7-1)/ 2=3 
  if($total_list >= $totalPage) 
  $total_list = $totalPage; 
    }else{ 
     $i=1; 
     if($total_list >= $totalPage) 
     $total_list = $totalPage; 
   } 
for($i;$i<=$total_list;$i++) 

发表评论

共有 0 条评论