1、' Q- J/ k7 ~5 x) J
首先修改程序文件 admin/users.php ( f3 @9 U0 A: }9 i2 {
6 H& p. m( t/ d0 e; ^* F
找到
; B# K! N7 e0 Z$ ^ L$filter['pay_points_lt'] = empty($_REQUEST['pay_points_lt']) ? 0 : intval($_REQUEST['pay_points_lt']); | 2 l) I* @7 Z2 |: _/ X
在它下面增加一行代码1 O0 m: X( |! d0 q8 v ?+ C
$filter['mobile_phone'] = empty($_REQUEST['mobile_phone']) ? 0 : trim($_REQUEST['mobile_phone']); | 9 M# d0 y0 l! _
7 r7 w0 m' H/ I: o; e9 B
继续找到
8 z5 E; z( h- @2 w$ @! s if ($filter['pay_points_lt']): A; V7 O" S/ ^; P
{; c3 T( t' I0 B; H
$ex_where .=" AND pay_points < '$filter[pay_points_lt]' ";+ }. F7 p# ^9 f. K4 P
} | Z6 `$ l3 \' t4 O2 N* j5 G7 C
在它下面增加下列代码
$ F3 A6 R8 a, cif ($filter['mobile_phone'])' K6 Y k1 P3 ~3 |6 H& }
{3 W1 k6 N: p+ X0 ?( J! P
$ex_where .=" AND mobile_phone like '%$filter[mobile_phone]%' ";
# [5 I+ C$ f! [$ H: i. o* ? } |
/ R1 I# E6 I; N0 A
+ @2 }) B) X: B3 I! x$ w7 `& Q2、修改模板文件 admin/templates/users_list.htm
4 O$ _. Z" j4 ]6 j8 X7 S
2 x, h5 e+ d( x找到: _# Z; K* o2 C e/ j% |
{$lang.label_user_name} <input type="text" name="keyword" /> | 3 g2 x. Z5 M1 ]/ S3 O4 F
在它后面增加代码
3 @( C. i- K4 A0 t) j3 T4 z 手机号码: <input type="text" name="mobile_phone" /> | ' l! T6 n& R9 ^4 F% b
继续找到
2 W* W9 |/ S5 W* x: x/ dlistTable.filter['keywords'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value); |
& d q7 y& \; O$ v9 W9 D在它下面增加一行代码listTable.filter['mobile_phone'] = Utils.trim(document.forms['searchForm'].elements['mobile_phone'].value); | w$ I9 u/ I! P
|