52AV手機A片王|52AV.ONE
標題:
後台每頁顯示數量修改
[打印本頁]
作者:
coav4u
時間:
2023-10-19 09:09
標題:
後台每頁顯示數量修改
source/admincp/admincp_article.php
3 y) a# `, M7 t8 ~% }7 }( P3 f
找到
" Y, S, r4 s: `! K2 `
if(!in_array($perpage, array(10,20,50,100))) $perpage = 10;
複製代碼
/ h8 G; @5 v8 j$ P. e0 r- k
最後的數值,是默認顯示條數,
; g/ j/ D6 w5 h5 [
可以改為前面括號中的任意值,最大就是100
" Q; q7 _8 I: r; \0 S% C
% k# f% y' ?- w! e6 F
+ d; V! o( c/ h, T+ M
. X/ ?" N' D0 r
修改為
y" }( w2 H# O
1 z( M0 P' ]# i) [: h+ L' W
1 u2 S4 {+ [- ^' j' c: o6 L
if(!in_array($perpage, array(10,20,50,70,,100,200,500))) $perpage = 10;
複製代碼
0 b$ d5 y1 W$ w- B1 |( T
找到
" I7 E# y1 q2 Q( ?8 _" u+ C
$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');
複製代碼
新增
: U6 i' Z `, E
'perpage_200' , 'perpage_500'
複製代碼
找到
+ K3 S& x' j( w: f" S! Z; A
<select name="perpage">
) }- r; b7 |' J. G
<option value="10"$perpages[10]>$searchlang[perpage_10]</option>
* x, N% h! P6 h6 @* l- }; I' d7 r
<option value="20"$perpages[20]>$searchlang[perpage_20]</option>
" }6 z6 |$ f" A/ I
<option value="50"$perpages[50]>$searchlang[perpage_50]</option>
# a s& }2 ^0 O$ V( V. r9 p) B4 [
<option value="100"$perpages[100]>$searchlang[perpage_100]</option>
5 @3 Z9 L( F( n8 {' x6 V
</select>
複製代碼
1 g1 R* X5 ]" v' N. x* k, S0 p
新增
& x: |5 t; L6 i% [& ]: X
<option value="200"$perpages[200]>$searchlang[perpage_200]</option>
9 b+ U8 ^8 n9 p4 U
<option value="500"$perpages[500]>$searchlang[perpage_500]</option>
複製代碼
( L) w% G5 K0 ]$ j% j7 v; c2 m
有加註解者 20231019
5 k; a. |+ C9 @9 l+ N$ T3 O
L+ C/ G) E" a3 L! m, p
6 j* f' ~9 {! [5 |! K
但好像無效
9 t( @& Y( I7 n4 A" I, y/ K
3 p% y4 n7 R. k4 G( E# Q
u8 s1 y3 V( Y: ~$ V( c+ @% {
/ q3 F! l" X, ~- L7 `* X% j3 J. n& A W
歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/)
Powered by Discuz! X3.2