Commit 7ac1f848 by 冷斌

踢人

parent 7ddabb78
......@@ -154,6 +154,11 @@
<else/>
<a href="{:U('indexadmin/recommend2',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要关注推荐此用户吗?">关注推荐</a> |
</if>
<if condition="$vo.ban_cash eq '1'">
<a href="{:U('indexadmin/cancelBanCash',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要取消禁止提现吗?">取消禁止提现</a> |
<else/>
<a href="{:U('indexadmin/banCash',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要禁止提现此用户吗?">禁止提现</a> |
</if>
<if condition="$vo.iszombie eq '1'">
<a href="{:U('indexadmin/cancelzombie',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要关闭僵尸粉吗?">关闭僵尸粉</a> |
<else/>
......
......@@ -359,6 +359,38 @@ class IndexadminController extends AdminbaseController {
}
}
function cancelBanCash(){
$id=intval($_GET['id']);
if ($id) {
$rst = M("Users")->where(array("id"=>$id,"user_type"=>2))->setField('ban_cash','0');
if ($rst!==false) {
$action="取消推荐会员:{$id}";
setAdminLog($action);
$this->success("会员取消禁止提现成功!");
} else {
$this->error('会员取消禁止提现失败!');
}
} else {
$this->error('数据传入失败!');
}
}
function banCash(){
$id=intval($_GET['id']);
if ($id) {
$rst = M("Users")->where(array("id"=>$id,"user_type"=>2))->setField('ban_cash','1');
if ($rst!==false) {
$action="设置推荐会员:{$id}";
setAdminLog($action);
$this->success("会员禁止提现成功!");
} else {
$this->error('会员禁止提现失败!');
}
} else {
$this->error('数据传入失败!');
}
}
function cancelzombie(){
$id=intval($_GET['id']);
if ($id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment