發表日期:2018-08 文章編輯:小燈 瀏覽次數:3029
打開 \include\arc.listview.class.php 找到
$total_list = $list_len * 2 + 1; |
這里有2處,都需要在它的下面加入
//省略號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);} |
繼續找到
for($j;$j<=$total_list;$j++) |
這里也有2處,都需要改成
for($j=1;$j<=$totalpage;$j++) |
最后找到
if($j==$this->PageNo) |
這里也有2處,在它上面加入
//省略號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 瀏覽次數:4488
日期:2018-09 瀏覽次數:3113
日期:2018-09 瀏覽次數:3946
日期:2018-09 瀏覽次數:3887
日期:2018-09 瀏覽次數:3433
日期:2018-09 瀏覽次數:3826
日期:2018-09 瀏覽次數:3283
日期:2018-09 瀏覽次數:3548
日期:2018-09 瀏覽次數:3283
日期:2018-09 瀏覽次數:3320
日期:2018-09 瀏覽次數:3072
日期:2018-09 瀏覽次數:3626
日期:2018-09 瀏覽次數:3587
日期:2018-09 瀏覽次數:3159
日期:2018-09 瀏覽次數:3079
日期:2018-09 瀏覽次數:3838
日期:2018-08 瀏覽次數:3059
日期:2018-08 瀏覽次數:3204
日期:2018-08 瀏覽次數:3028
日期:2018-08 瀏覽次數:3029
日期:2018-08 瀏覽次數:3086
日期:2018-08 瀏覽次數:2833
日期:2018-08 瀏覽次數:2961
日期:2018-08 瀏覽次數:2912
日期:2018-08 瀏覽次數:2926
日期:2018-08 瀏覽次數:3088
日期:2018-08 瀏覽次數:3139
日期:2018-08 瀏覽次數:3485
日期:2018-08 瀏覽次數:2995
日期:2018-08 瀏覽次數:3300
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.