You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

401 lines
17 KiB
HTML

5 years ago
<extend name="Public/base"/>
<block name="body">
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
<script type="text/javascript" src="__JS__/select2.min.js"></script>
<script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
<style>
.select2-container--default .select2-selection--single {
color: #000;
resize: none;
border-width: 1px;
border-style: solid;
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
height:28px;border-radius:3px;font-size:12px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
line-height:35px;
line-height:28px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
height:26px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
height:26px;line-height:26px;font-size:12px;
}
.select2-results__option[aria-selected] {font-size:12px;}
</style>
<!-- 标题栏 -->
<div class="cf main-place top_nav_list navtab_list">
<div class="fr">
<a <if condition="(I('type') eq 1) or (I('type') eq '') "> class="tabchose" </if> href="{:U('user_info',array('type'=>1))}">本站玩家</a>
<a <if condition="I('type') eq 2"> class="tabchose" </if> href="{:U('user_info',array('type'=>2))}">第三方玩家</a>
<a href="{:U('public_account')}">公用账户</a>
</div>
<h3 class="page_title">玩家列表</h3>
<if condition="(I('type',1) eq 1) ">
<p class="description_text">说明本站用户即手机和账号注册用户第三方用户即通过微信、百度、QQ、新浪等方式登录用户。</p>
<else/>
<p class="description_text">说明游客登录默认属于第三方用户当用户通过SDK设置了用户名以后记录变换到本站用户列表里账户自动更换为设置的账号</p>
</if>
</div>
<style>
</style>
<div class="cf top_nav_list">
<!-- 高级搜索 -->
<div class="jssearch search_list fl cf">
<div class="input-list search-title-box">
<label>搜索:</label>
</div>
<if condition="I('type') eq 2 ">
<div class="input-list input-list-resway search_label_rehab">
<select id="register_type" name="register_type" class="select_gallery" style="width:120px;">
<option value="">第三方来源</option>
<volist name=":all_register_type()" id="vo">
<option value="{$vo.key}">{$vo.value}</option>
</volist>
</select>
</div>
</if>
<div class="input-list">
<input type="text" name="account" class="" placeholder="玩家账号" value="{:I('account')}"/>&nbsp;
</div>
<div class="input-list">
<input type="text" id="time_start" name="time_start" class="" value="{:I('time_start')}" placeholder="注册开始时间" />
&nbsp;-&nbsp;
<div class="input-append date" id="datetimepicker" style="display:inline-block">
<input type="text" id="time_end" name="time_end" class="" value="{:I('time_end')}" placeholder="注册结束时间" />
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
<div class="input-list input-list-promote search_label_rehab">
<select style="width: 120px;" id="promote_id" name="promote_id" class="select_gallery" >
<option value="">所属推广员</option>
<option value="0">官方渠道</option>
<option value="UC">UC用户</option>
<volist name=":get_promote_list(1)" id="vo">
<option promote-id="{$vo.id}" value="{$vo.id}">{$vo.account}</option>
</volist>
</select>
</div>
<if condition="I('type') eq 1 or I('type') eq ''">
<div class="input-list input-list-resway search_label_rehab">
<select id="register_way" name="register_way" class="select_gallery" style="width:120px;">
<option value="">注册方式</option>
<option value="1">账号</option>
<option value="2">手机号</option>
<option value="7">邮箱</option>
</select>
</div>
</if>
<div class="sleft">
<select id="status1" name="status" class="select_gallery">
<option value="" <if condition="I('status') eq ''" >selected="true"</if>>账号状态</option>
<option value="1" <if condition="I('status') eq '1'" >selected="true"</if>>正常</option>
<option value="0" <if condition="I('status') eq '0'" >selected="true"</if>>已{:L('Lock')}</option>
</select>
</div>
<div class="sleft">
<select id="viplevel" name="viplevel" class="select_gallery">
<option value="">VIP等级</option>
<option value="0">VIP 0</option>
<option value="1">VIP 1</option>
<option value="2">VIP 2</option>
<option value="3">VIP 3</option>
</select>
</div>
<input type="hidden" name="" value="" class="sortBy">
<input type="hidden" name="type" value="{:I('type')}" class="sortBy">
<input type="hidden" name="balance_status" value="" id="balance_status">
<input type="hidden" name="recharge_status" value="" id="recharge_status">
<input type="hidden" name="key" value="" id='key'>
<input type="hidden" name="value" value="" id='value'>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Member/user_info','model='.$model['name'] .'&row='.I('row'),false)}">
搜索</a>
</div>
<!-- <div class="input-list">
<a class="sch-btn" href="{:U('Export/expUser',array_merge(['id'=>3],I('get.')))}">导出</a>
</div> -->
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<th>账号ID</th>
<if condition="I('type') eq 2">
<th>第三方来源</th>
<th>绑定账号</th>
<else/>
<th>玩家账号</th>
</if>
<th>所属推广员</th>
<th>
<a class="paixu" data-order="{:I('balance_status',1)}" name="balance_status">
账户平台币
</a>
</th>
<th>
<a class="paixu" data-order="{:I('recharge_status',1)}" name="recharge_status">
累计充值
</a>
</th>
<th>
金币
</th>
<th>
绑定支付宝
</th>
<th>
小号
</th>
<th>
VIP等级
</th>
<if condition="I('type') eq 1 or I('type') eq ''">
<th>注册方式</th>
</if>
<th >注册时间</th>
<th >最后登录时间</th>
<th >最后登录IP</th>
<th >设备号</th>
<th >账号状态</th>
<th >拉黑状态</th>
<th >操作</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<empty name ="list_data">
<td colspan="15" class="text-center">aOh! 暂时还没有内容!</td>
<else/>
<volist name="list_data" id="data">
<tr>
<td >{$data.id}</td>
<if condition="I('type') eq 2">
<td >{:get_registertype($data['register_type'])}</td>
<td >{$data.account}</td>
<else/>
<td >{$data.account}</td>
</if>
<td >
<if condition="$data['promote_account'] eq '自然注册'">
官方渠道
<else/>
<empty name='data["promote_account"]'>---<else/>{$data.promote_account}</empty>
</if>
</td>
<td >{$data.balance}</td>
<td >{$data.recharge_total}</td>
<td >{$data.gold_coin|default='0.00'}</td>
<td >{$data.alipay|default='--'}</td>
<td >
<gt name="data.small_count" value="0">
<a class="jssamlllist" data-url="{:U('Member/small_list',array('id'=>$data['id'],'account'=>$data['account']))}" data-account="{$data.account}" href="javascript:;">{$data.small_count|default=0}</a>
<else />--
</gt>
</td>
<td>{:get_vip_level($data['recharge_total'])}</td>
<if condition="I('type') eq 1 or I('type') eq ''">
<td >
<switch name="data['register_type']">
<case value='2'>手机号</case>
<case value='7'>邮箱</case>
<default />账号
</switch>
</td>
</if>
<td >{$data.register_time|date='Y-m-d H:i:s',###}</td>
<td >
<if condition="$data.login_time eq null">
<else />
<span class="login_old">{$data['login_time']|date='Y-m-d H:i:s',###}</span>
</if>
</td>
<td >{$data.register_ip}</td>
<td >{$data.device_number}</td>
<if condition="get_info_status($data['lock_status'],4) eq 锁定">
<td style="color:red;">已{:get_info_status($data['lock_status'],4)}</td>
<else />
<td >{:get_info_status($data['lock_status'],4)}</td>
</if>
<eq name="data.check_status" value="1">
<td>正常</td>
<else/>
<td style="color:red;">已拉黑</td>
</eq>
<td >
<a href="{:U('Member/edit?id='.$data['id'])}">查看 </a>
<a class="ajax-get" href="{:U('Member/lock_status',array('id'=>$data['id'],'lock_status'=>1))}">启用 </a>
<a class="ajax-get" href="{:U('Member/lock_status',array('id'=>$data['id'],'lock_status'=>0))}">{:L('Lock')}</a>
</td>
</tr>
</volist>
</empty>
</tbody>
</table>
</div>
</div>
<div class="page">
<a class="sch-btn" href="{:U('Export/expUser',array_merge(['id'=>3,'xlsname'=>'玩家_玩家列表_'.(I('get.type')==2?'第三方玩家':'本站玩家')],I('get.')))}">导出</a>
{$_page|default=''}
</div>
<!-- 添加常用设置 begin-->
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="Member/user_info">
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
<!--end 添加常用设置 -->
</block>
<block name="script">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
</script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Member/user_info')}');
$(function(){
<volist name=":I('get.')" id="vo">
Think.setValue('{$key}',"{$vo}");
</volist>
});
</script>
<script type="text/javascript">
$(function(){
$(".select_gallery").select2();
//搜索功能
$("#search").click(function(){
var url = $(this).attr('url');
var query = $('.jssearch').find('input').serialize();
query += "&" + $('.jssearch').find('select').serialize();
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
query = query.replace(/^&/g,'');
if( url.indexOf('?')>0 ){
url += '&' + query;
}else{
url += '?' + query;
}
var start = $("#time_start").val();
var end = $("#time_end").val();
if(start !='' && end != ''){
if (Date.parse(start) > Date.parse(end)){
layer.msg('开始时间必须小于等于结束时间');
return false;
}
}
window.location.href = url;
});
$('.jssamlllist').click(function() {
var that = $(this),url = that.attr('data-url');
var url =
layer.open({
type: 2,
title: "【"+that.attr('data-account')+"】小号列表",
shadeClose: true,
shade: 0.8,
area: ['1062px', '80%'],
content: url,//iframe的url
});
return false;
});
$(".paixu").click(function(){
var val = $(this).attr('data-order');
if(val == 1){
val = 2;
}else if(val == 2){
val = 1;
}
var name = $(this).attr('name');
if (name == 'balance_status') {
$('#key').val(1);
}else{
$('#key').val(2);
}
$("#"+name).val(val);
$("#search").click();
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){
$("#search").click();
}
});
$("#total_status").click(function(){
$("#search").click();
})
$('#time_start').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView:2,
autoclose:true
});
$('#datetimepicker').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView:2,
autoclose:true,
pickerPosition:'bottom-left'
})
})
function shenhe(){
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
return $(elem).val();
}).get().join(',');
$.ajax({
cache: true,
type: "POST",
url:"{:U('Member/age_check')}",
data:{id:text},// 你的formid
async: false,
error: function(data) {
layer.alert("服务器故障,请稍后重试!",{icon: 2});
},
success: function(data) {
var obj = JSON.parse(data);
layer.alert(obj.info,{icon:obj.status})
}
});
}
</script>
</block>