ECSHOP后台会员管理列表增加按手机号码搜索会员功能
1、首先修改程序文件 admin/users.php找到$filter['pay_points_lt'] = empty($_REQUEST['pay_points_lt']) ? 0 : intval($_REQUEST['pay_points_lt']);在它下面增加一行代码$filter['mobile_phone'] = empty($_REQUEST['mobile_phone']) ? 0 : trim($_REQUEST['mobile_phone']);继续找到if ($filter['pay_points_lt']){$ex_where .=" AND pay_points < '$filter[pay_points_lt]' ";}在它下面增加下列代码if ($filter['mobile_phone']){$ex_where .=" AND mobile_phone like '%$filter[mobile_phone]%' ";}2、修改模板文件 admin/templates/users_list.htm找到 {$lang.label_user_name} <input type="text" name="keyword" />在它后面增加代码 手机号码: <input type="text" name="mobile_phone" />继续找到listTable.filter['keywords'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);在它下面增加一行代码listTable.filter['mobile_phone'] = Utils.trim(document.forms['searchForm'].elements['mobile_phone'].value);转载请注明:http://www.gehut.cn//ecshopjc-889.html