|
|
|
<extend name="Public/base" />
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
|
|
|
<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>
|
|
|
|
<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;}
|
|
|
|
.badge {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0 6px;
|
|
|
|
font-size: 12px;
|
|
|
|
text-align: center;
|
|
|
|
background-color: #1E9FFF;
|
|
|
|
color: #fff;
|
|
|
|
border-radius: 2px;
|
|
|
|
height: 18px;
|
|
|
|
line-height: 18px;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<!-- 标题栏 -->
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
<h3 class="page_title">角色查询</h3>
|
|
|
|
<p class="description_text">说明:角色查询仅作为玩家角色查询的辅助工具,使用此功能需先保证游戏对接已经获取相关参数</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cf top_nav_list">
|
|
|
|
<!-- 高级搜索 -->
|
|
|
|
<div class="jssearch fl cf search_list">
|
|
|
|
<div class="input-list search-title-box">
|
|
|
|
<label>搜索:</label>
|
|
|
|
</div>
|
|
|
|
<div class="input-list">
|
|
|
|
<input type="text" name="user_account" class="" value="{:I('user_account')}" placeholder="玩家账号">
|
|
|
|
</div>
|
|
|
|
<div class="input-list">
|
|
|
|
<input type="text" name="role_name" class="" value="{:I('role_name')}" placeholder="角色名称">
|
|
|
|
</div>
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
<select id="game_type" name="game_type" class="select_gallery" >
|
|
|
|
<option value="">设备类型</option>
|
|
|
|
<option value="1">安卓</option>
|
|
|
|
<option value="2">苹果</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
<select id="game_name" name="game_name" class="select_gallery" >
|
|
|
|
<option value="">游戏名称</option>
|
|
|
|
<!-- <volist name=":get_game_list(null, $_GET['game_type'])" id="vo">
|
|
|
|
<option game-id="{$vo.id}" value="{$vo.id}">{$vo.game_name}</option>
|
|
|
|
</volist> -->
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list input-list-server search_label_rehab">
|
|
|
|
<select id="server_id" name="server_id" class="select_gallery" style="width:120px;">
|
|
|
|
<option value="">区服名称</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list search_item input-list-gamenoticestatus">
|
|
|
|
<select name="promote_level" style="color:#444" class="select_gallery" id="promote_level">
|
|
|
|
<option value="">请选择推广员等级</option>
|
|
|
|
<option value="1" <?php if ($_POST['promote_level'] == 1):?>selected<?php endif;?>>会长</option>
|
|
|
|
<option value="2" <?php if ($_POST['promote_level'] == 2):?>selected<?php endif;?>>部门长</option>
|
|
|
|
<option value="3" <?php if ($_POST['promote_level'] == 3):?>selected<?php endif;?>>组长</option>
|
|
|
|
<option value="4" <?php if ($_POST['promote_level'] == 4):?>selected<?php endif;?>>组员</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
-
|
|
|
|
</div>
|
|
|
|
<div class="input-list search_item input-list-gamenoticestatus">
|
|
|
|
<select name="promote_id" style="color:#444" class="select_gallery" id="promote_id">
|
|
|
|
<option value="">请选择推广员</option>
|
|
|
|
<option value="0" <?php if ($_POST['promote_id'] == 0):?>selected<?php endif;?>>官方渠道</option>
|
|
|
|
<option value="UC" <?php if ($_POST['promote_id'] == 'UC'):?>selected<?php endif;?>>UC用户</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list">
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('rolelist',array('row'=>I('row')))}">搜索</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 数据列表 -->
|
|
|
|
<div class="data_list">
|
|
|
|
<table class="">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="">查询时间</th>
|
|
|
|
<th class="">玩家账号</th>
|
|
|
|
<th class="">游戏名称</th>
|
|
|
|
<th class="">游戏区服ID</th>
|
|
|
|
<th class="">游戏区服</th>
|
|
|
|
<th class="">角色ID</th>
|
|
|
|
<th class="">角色名</th>
|
|
|
|
<th class="">游戏等级</th>
|
|
|
|
<th class="">所属推广员</th>
|
|
|
|
<th class="">最后登录时间</th>
|
|
|
|
<th class="">最后登录IP</th>
|
|
|
|
<!-- <th class="">操作</th> -->
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<notempty name="list">
|
|
|
|
<volist name="list" id="data">
|
|
|
|
<tr>
|
|
|
|
<td>{$data.play_time|date='Y-m-d H:i:s',###}</td>
|
|
|
|
<td>{$data.user_account} </td>
|
|
|
|
<?php $gamename = trim($data['game_name']);
|
|
|
|
$servername = trim($data['server_name']);
|
|
|
|
$rolename = trim($data['role_name']);?>
|
|
|
|
<td><notempty name="gamename">{$gamename}<else />空</notempty></td>
|
|
|
|
<td><span class="badge">{$data['server_id']}</span></td>
|
|
|
|
<td><notempty name="servername">{$servername}<else />空</notempty></td>
|
|
|
|
<td><span class="badge">{$data['role_id']}</span></td>
|
|
|
|
<td><notempty name="rolename">{$rolename}<else />空</notempty></td>
|
|
|
|
<td>{$data.role_level}</td>
|
|
|
|
<td>{$data.promote_account}</td>
|
|
|
|
<td><?= date('Y-m-d H:i:s', $data['play_time']) ?></td>
|
|
|
|
<td>{$data.play_ip}</td>
|
|
|
|
<!-- <td><a class="ajax-get" href="{:U('user_update',['ids'=>$data['id']])}">更新</a></td> -->
|
|
|
|
</tr>
|
|
|
|
</volist>
|
|
|
|
<else/>
|
|
|
|
<td colspan="9" class="text-center">aOh! 暂时还没有内容!</td>
|
|
|
|
</notempty>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="page">
|
|
|
|
<a class="sch-btn" href="{:U('Export/expUser',array(
|
|
|
|
'id'=>1,
|
|
|
|
'user_account'=>I('user_account'),
|
|
|
|
'game_name'=>I('game_name'),
|
|
|
|
'server_id'=>I('server_id'),
|
|
|
|
'role_name'=>I('role_name'),
|
|
|
|
'promote_level'=>I('promote_level'),
|
|
|
|
'promote_id'=>I('promote_id'),
|
|
|
|
'game_type'=>I('game_type'),
|
|
|
|
'xlsname'=>'玩家_角色查询',
|
|
|
|
))}">导出</a>
|
|
|
|
{$_page}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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="User/rolelist">
|
|
|
|
</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>
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
<block name="script">
|
|
|
|
<script>
|
|
|
|
<volist name=":I('get.')" id="vo">
|
|
|
|
Think.setValue('{$key}',"{$vo}");
|
|
|
|
</volist>
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
</script>
|
|
|
|
<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
//搜索功能
|
|
|
|
$("#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;
|
|
|
|
}
|
|
|
|
window.location.href = url;
|
|
|
|
});
|
|
|
|
//回车搜索
|
|
|
|
$(".search-input").keyup(function(e){
|
|
|
|
if(e.keyCode === 13){
|
|
|
|
$("#search").click();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
//导航高亮
|
|
|
|
highlight_subnav('{:U('User/rolelist')}');
|
|
|
|
if('{$Think.get.game_name}'!=''){
|
|
|
|
$('#select2-game_id-container').text('{$Think.get.game_name}');
|
|
|
|
}
|
|
|
|
|
|
|
|
if('{$Think.get.server_id}'!=''){
|
|
|
|
$('#select2-server_id-container').text('{:get_server_name(I("server_id"))}');
|
|
|
|
}
|
|
|
|
|
|
|
|
$(".jssearch").find(".drop-down1").hover(function(){
|
|
|
|
$("#sub-sch-menu").removeClass("hidden");
|
|
|
|
},function(){
|
|
|
|
$("#sub-sch-menu").addClass("hidden");
|
|
|
|
});
|
|
|
|
|
|
|
|
get_sever($("#game_id").find("option:selected").attr('game-id'));
|
|
|
|
|
|
|
|
$("#game_id").change(function(){
|
|
|
|
get_sever($(this).find("option:selected").attr('game-id'));
|
|
|
|
})
|
|
|
|
|
|
|
|
function get_sever(game_id){
|
|
|
|
//var game_id = game_id;//$("this").find("option:selected").attr('game-id');
|
|
|
|
if(!game_id) {return;}
|
|
|
|
$.ajax({
|
|
|
|
url:"{:U('User/get_server_lists')}",
|
|
|
|
type:"post",
|
|
|
|
dataType:"json",
|
|
|
|
data:{game_id:game_id},
|
|
|
|
success:function(result){
|
|
|
|
//$("#server_id").append("<option value='0'>请选择</option>");
|
|
|
|
if(result.status == 1){
|
|
|
|
var data = result.data;
|
|
|
|
$("#server_id").html("");
|
|
|
|
$("#server_id").append("<option value=''>请选择</option>");
|
|
|
|
for ( var i = 0; i < data.length; i++) {
|
|
|
|
var server_id = data[i].id;
|
|
|
|
var server_name = data[i].server_name;
|
|
|
|
$("#server_id").append("<option value="+server_id+">" + server_name + "</option>");
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
$("#server_id").html("");
|
|
|
|
$("#server_id").append("<option value=''>请选择</option>");
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
error:function(){
|
|
|
|
alert("??");
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
var promote_id = "{:I('promote_id')}";
|
|
|
|
$("#promote_level").change(function(){
|
|
|
|
$.ajax({
|
|
|
|
url:"{:U('Ajax/getPromotersByLevel')}",
|
|
|
|
type:"get",
|
|
|
|
data:{level:$("#promote_level option:selected").val()},
|
|
|
|
dataType:'json',
|
|
|
|
success:function(response){
|
|
|
|
str = '<option value="">请选择推广员</option><option value="0"'+(promote_id && 0 == promote_id?'selected':'')+'>官方渠道</option><option value="UC"'+(promote_id && 'UC' == promote_id?'selected':'')+'>UC渠道</option>';
|
|
|
|
// $.each(response.data, function(index, item){
|
|
|
|
// console.log(item.id);
|
|
|
|
// str += '<option value="'+item.id+' '+(promote_id && item.id == promote_id?'selected':'')+'">'+item.nickname+'</option>';
|
|
|
|
// });
|
|
|
|
data = response.data;
|
|
|
|
for (var i in data){
|
|
|
|
str += "<option value='"+data[i].id+"' "+(promote_id && data[i].id == promote_id?'selected':'')+">"+data[i].nickname+"</option>"
|
|
|
|
}
|
|
|
|
$("#promote_id").empty();
|
|
|
|
$("#promote_id").append(str);
|
|
|
|
$("#promote_id").select2();
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
|
|
|
$("#promote_level").change();
|
|
|
|
var game_name = "{:I('game_name')}";
|
|
|
|
$("#game_type").change(function(){
|
|
|
|
$.ajax({
|
|
|
|
url:"{:U('Ajax/getGameList')}",
|
|
|
|
type:"get",
|
|
|
|
data:{sdk_type:$("#game_type option:selected").val()},
|
|
|
|
dataType:'json',
|
|
|
|
success:function(response){
|
|
|
|
str = '<option value="">游戏名称</option>';
|
|
|
|
// $.each(response.data, function(index, item){
|
|
|
|
// console.log(item.id);
|
|
|
|
// str += '<option value="'+item.id+' '+(promote_id && item.id == promote_id?'selected':'')+'">'+item.nickname+'</option>';
|
|
|
|
// });
|
|
|
|
data = response.data;
|
|
|
|
for (var i in data){
|
|
|
|
str += "<option value='"+data[i].relation_game_name+"' "+(game_name && data[i].relation_game_name == game_name?'selected':'')+">"+data[i].relation_game_name+"</option>"
|
|
|
|
}
|
|
|
|
$("#game_name").empty();
|
|
|
|
$("#game_name").append(str);
|
|
|
|
$("#game_name").select2();
|
|
|
|
$("#game_name").change();
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
|
|
|
$("#game_type").change();
|
|
|
|
|
|
|
|
var game_server = "{:I('server_id')}";
|
|
|
|
$("#game_name").change(function(){
|
|
|
|
$.ajax({
|
|
|
|
url:"{:U('Ajax/getGmeServer')}",
|
|
|
|
type:"post",
|
|
|
|
data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()},
|
|
|
|
dataType:'json',
|
|
|
|
success:function(data){
|
|
|
|
str = "<option value=''>请选择区服</option>";
|
|
|
|
for (var i in data){
|
|
|
|
str += "<option value='"+data[i].server_id+"' "+(game_server && data[i].server_id == game_server?'selected':'')+">"+data[i].server_name+"</option>"
|
|
|
|
}
|
|
|
|
$("#server_id").empty();
|
|
|
|
$("#server_id").append(str);
|
|
|
|
$("#server_id").select2();
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</block>
|