您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop后台会员列表页怎么增加按手机查询会员
代荷2023-11-21 16:23:14ecshop商城教程已有人查阅
导读1、首先修改程序文件 admin/users.php找到;2、修改模板文件 admin/templates/users_list.htm找到
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);
本文标签:
很赞哦! ()
相关文章
随机图文
-
ecshop首页显示最新交易订单的方法
1. 在根目录修改index.php文件:2、在index.php最后面加一个函数:3.在模版文件夹themes\xxx\library\ 把原来order_query.lbi模板内容改为以下内容(注意备份原文件): -
ecshop后台"云提醒未激活 点击激活" 补丁删除方法
ecshop后台提示"云提醒未激活 点击激活"删除方法,下面由代码号(www.ebingou.cn)教程为大家解答一下吧! -
ipad等智能机访问ecshop网站不跳转wap的修复方法
打开ecshop文件,找到修改index.php找到 $ua = strtolower($_SERVER['HTTP_USER_AGENT']); 做如下代码修改(增加了普通手机的ua代码 -
ecshop怎么样合并商品分类
这是一个基本操作的问题。有人问起这样的问题:如何合并商品分类,例如将A类商品合并到B类?
留言与评论 (共有 条评论) |