您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop后台会员管理列表增加按手机号码搜索会员功能
平蝶2024-01-01 21:25:35ecshop商城教程已有人查阅
导读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商城首页显示积分商品调用积分商品的代码示例
ECSHOP商城首页显示积分商品,如何在首页调用积分商品ecshop开发教程,希望对大家有些帮助!ecshop商品页调用热销商品的教程
在goods.php里面加了$smarty->assign('hot_goods',get_recommend_goods('hot了解ecshop中的aes加密封装
从一家做shopex,ecstore的公司到一家做b2b的ecshop的公司...来了就要实战,其他的不说了,先来了解什么是php的aes加密吧?ecshop常见报错的解决方法实例
Deprecated: Assigning the return value of new by reference is deprecated in定位到出错的那一行:[php] view plaincopyprint?$this->_ole =& new OLERead();我本地环
留言与评论 (共有 条评论) |