|
|
|
@ -13,7 +13,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="tab-content tabcon1711">
|
|
|
|
|
<!-- 表单 -->
|
|
|
|
|
<form id="form" action="{:U('edit?model='.$model['id'])}" method="post" class="form-horizontal">
|
|
|
|
|
<form id="form" action="{:U('edit?id='.$model['id'])}" method="post" class="form-horizontal">
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
|
<h3 class="page_title">基本信息</h3>
|
|
|
|
|
<p class="description_text">说明:此处显示本站玩家账号的相关信息</p>
|
|
|
|
@ -57,12 +57,15 @@
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio table_btn player_table_btn">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" value="1" name="lock_status"
|
|
|
|
|
<eq name="data['lock_status']" value="1">checked="checked"</eq>> 开启
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" value="0" name="lock_status"
|
|
|
|
|
<eq name="data['lock_status']" value="0">checked="checked"</eq>> {:L('Lock')}
|
|
|
|
|
<if condition="get_info_status($data['lock_status'],4) eq 锁定">
|
|
|
|
|
已锁定
|
|
|
|
|
<a class="ajax-get" href="{:U('Member/lock_status',array('id'=>$data['id'],'lock_status'=>1))}">启用 </a>
|
|
|
|
|
<input type="hidden" name="lock_status" value="0">
|
|
|
|
|
<else />
|
|
|
|
|
正常
|
|
|
|
|
<a href="javascript:void();" id="lock" data-url="{:U('Member/lock_status',array('id'=>$data['id'],'lock_status'=>0))}">{:L('Lock')}</a>
|
|
|
|
|
<input type="hidden" name="lock_status" value="1">
|
|
|
|
|
</if>
|
|
|
|
|
</label>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="notice-text">可设置玩家账号的登录状态,锁定即无法登录本平台</span>
|
|
|
|
@ -475,4 +478,32 @@
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$("#lock").bind("click",function () {
|
|
|
|
|
var url = $(this).attr("data-url");
|
|
|
|
|
layer.prompt({
|
|
|
|
|
formType: 3,
|
|
|
|
|
title: "请备注锁定原因",
|
|
|
|
|
value: ''
|
|
|
|
|
}, function (remark,index) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
cache: true,
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: url,
|
|
|
|
|
data:{
|
|
|
|
|
lock_remark:remark
|
|
|
|
|
},
|
|
|
|
|
async: false,
|
|
|
|
|
error: function(data) {
|
|
|
|
|
layer.alert("服务器故障,请稍后重试!",{icon: 2});
|
|
|
|
|
},
|
|
|
|
|
success: function(data) {
|
|
|
|
|
location.reload()
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
layer.close(index);
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|
|
|
|
|