|
source/admincp/admincp_article.php
9 K4 D' I+ @# z8 W找到; e% M8 H+ i9 n7 ]
- if(!in_array($perpage, array(10,20,50,100))) $perpage = 10;
複製代碼 ( E, t* o" G2 i# o8 u6 Q" w5 ?
最後的數值,是默認顯示條數,
6 Q4 U- U. d, X2 Y# B3 Z8 @可以改為前面括號中的任意值,最大就是100
8 r5 q0 s1 e* h2 _/ [* E! z9 j0 y% Y) H/ q: P1 N; `; o
9 g! m4 Q$ E4 O4 K( W2 z7 f% j2 u8 k1 S) r% L8 \* ^
修改為# k# i: S& @. s+ c; i$ b
% B) @2 C: x; z5 P4 D( u! M0 c& l
L* A2 W3 ^' Q2 o5 F$ H- if(!in_array($perpage, array(10,20,50,70,,100,200,500))) $perpage = 10;
複製代碼 ( G0 z+ T# l( T4 ?
找到7 K/ T, s% w) T. o7 J
- $keys = array('search', 'likesupport', 'resultsort', 'defaultsort', 'orderdesc', 'orderasc', 'perpage_10', 'perpage_20', 'perpage_50', 'perpage_100', 'article_dateline', 'article_id', 'article_title', 'article_uid', 'article_username', 'article_category', 'article_tag');
複製代碼 新增
' Q& K" S6 Q4 h' y5 k- 'perpage_200' , 'perpage_500'
複製代碼 找到/ _# k9 c; R$ A2 D' O$ T' {
- <select name="perpage">9 g# o+ v$ V0 m: Y
- <option value="10"$perpages[10]>$searchlang[perpage_10]</option>
4 E+ v8 M1 k: H% S8 N5 V - <option value="20"$perpages[20]>$searchlang[perpage_20]</option>
, P% k% S$ Y) U/ ? - <option value="50"$perpages[50]>$searchlang[perpage_50]</option>0 a0 O4 m8 G0 [; T+ N8 {7 _
- <option value="100"$perpages[100]>$searchlang[perpage_100]</option>- \- k' ?7 u# G
- </select>
複製代碼
$ J' _7 g9 U# E( b% q新增& m7 G' l; X2 @1 U4 L1 I: R
- <option value="200"$perpages[200]>$searchlang[perpage_200]</option>
8 c5 e5 m/ Z* P2 Y# d - <option value="500"$perpages[500]>$searchlang[perpage_500]</option>
複製代碼
5 [4 N3 ^+ s) ]7 h/ H( P- ~有加註解者 20231019$ `5 L( d, y h5 \
}. {6 Z5 D& F1 t5 @! `* w$ A; g
8 [+ o' v. c- f) {1 E
但好像無效
; \! f r8 G: J/ h% Z
+ k0 u4 d+ X) Q0 r8 v3 Z- H; U/ b7 T" s
5 \# v3 g! c7 l9 {
7 x+ W( j' \ m" G9 J1 @3 m |
|
-->
|