發(fā)表日期:2018-08 文章編輯:小燈 瀏覽次數(shù):2972
打開 \include\arc.listview.class.php 找到
$total_list = $list_len * 2 + 1; |
這里有2處,都需要在它的下面加入
//省略號(hào)if ($totalpage > $total_list) {$half = floor(($total_list - 4) / 2);$half_start = $this->PageNo - $half + 1;if ($total_list % 2 !== 0) --$half_start;$half_end = $this->PageNo + $half;}if (($totalpage - $this->PageNo) < ($total_list - 3)) {$half_start = $totalpage - $total_list + 3;unset($half_end);}if ($this->PageNo <= ($total_list - 3)) {$half_end = $total_list - 2;unset($half_start);} |
繼續(xù)找到
for($j;$j<=$total_list;$j++) |
這里也有2處,都需要改成
for($j=1;$j<=$totalpage;$j++) |
最后找到
if($j==$this->PageNo) |
這里也有2處,在它上面加入
//省略號(hào)if (isset($half_start) && $j < $half_start && $j > 1) {if ($j == 2) $listdd .= "<li style='border:0;'><a href='javascript:void(0)'>...</a></li>";continue;}if (isset($half_end) && $j > $half_end && $j < $totalpage) {if ($j == ($half_end + 1)) $listdd .= "<li style='border:0;'><a href='javascript:void(0)'>...</a></li>"; continue;} |
完成。
日期:2018-09 瀏覽次數(shù):4420
日期:2018-09 瀏覽次數(shù):3061
日期:2018-09 瀏覽次數(shù):3896
日期:2018-09 瀏覽次數(shù):3825
日期:2018-09 瀏覽次數(shù):3389
日期:2018-09 瀏覽次數(shù):3779
日期:2018-09 瀏覽次數(shù):3227
日期:2018-09 瀏覽次數(shù):3491
日期:2018-09 瀏覽次數(shù):3237
日期:2018-09 瀏覽次數(shù):3268
日期:2018-09 瀏覽次數(shù):2998
日期:2018-09 瀏覽次數(shù):3552
日期:2018-09 瀏覽次數(shù):3528
日期:2018-09 瀏覽次數(shù):3099
日期:2018-09 瀏覽次數(shù):3023
日期:2018-09 瀏覽次數(shù):3794
日期:2018-08 瀏覽次數(shù):2992
日期:2018-08 瀏覽次數(shù):3154
日期:2018-08 瀏覽次數(shù):2971
日期:2018-08 瀏覽次數(shù):2975
日期:2018-08 瀏覽次數(shù):3018
日期:2018-08 瀏覽次數(shù):2783
日期:2018-08 瀏覽次數(shù):2902
日期:2018-08 瀏覽次數(shù):2844
日期:2018-08 瀏覽次數(shù):2864
日期:2018-08 瀏覽次數(shù):3029
日期:2018-08 瀏覽次數(shù):3088
日期:2018-08 瀏覽次數(shù):3411
日期:2018-08 瀏覽次數(shù):2934
日期:2018-08 瀏覽次數(shù):3247
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.