init: 从宝塔同步到 Gitea
This commit is contained in:
Executable
+419
@@ -0,0 +1,419 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.layui-form-radio{margin-right:-20px;margin-left:10px;}
|
||||
.layui-form-label {
|
||||
width: 140px;
|
||||
}
|
||||
/* 下拉多选样式 需要引用*/
|
||||
select[multiple]+.layui-form-select dd{ padding:0;}
|
||||
select[multiple]+.layui-form-select .layui-form-checkbox[lay-skin=primary]{ margin:0 !important; display:block; line-height:36px !important; position:relative; padding-left:26px;}
|
||||
select[multiple]+.layui-form-select .layui-form-checkbox[lay-skin=primary] span{line-height:36px !important; float:none;}
|
||||
select[multiple]+.layui-form-select .layui-form-checkbox[lay-skin=primary] i{ position:absolute; left:10px; top:0; margin-top:9px;}
|
||||
.multiSelect{ line-height:normal; height:auto; padding:4px 10px; overflow:hidden;min-height:38px; margin-top:-38px; left:0; z-index:99;position:relative;background:none;}
|
||||
.multiSelect a{ padding:2px 5px; background:#908e8e; border-radius:2px; color:#fff; display:block; line-height:20px; height:20px; margin:2px 5px 2px 0; float:left;}
|
||||
.multiSelect a span{ float:left;}
|
||||
.multiSelect a i{ float:left; display:block; margin:2px 0 0 2px; border-radius:2px; width:8px; height:8px; background:url('/static/agent/lib/layui/close.png') no-repeat center; background-size:65%; padding:4px;}
|
||||
.multiSelect a i:hover{ background-color:#545556;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_parent" class="layui-form-label">{$lang['directly_under']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_parent" value="{$agentParent.username}({$agentParent.nickname})"
|
||||
autocomplete="off" class="layui-input layui-username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['username']}</label>
|
||||
<?php if(!empty($newLetter)): ?>
|
||||
<div class="layui-input-inline" style="width: 240px;">
|
||||
<div style="width: 70px;float: left;">
|
||||
<select id="letter">
|
||||
<?php foreach($newLetter as $key=>$letter): ?>
|
||||
<option value="<?=$letter?>"><?=$letter?></option>
|
||||
<?php endForeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input" style="width:150px; float: left">
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class="layui-input-inline">
|
||||
<input type="hidden" id="letter" value="">
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<?php endIf; ?>
|
||||
<button class="layui-btn" type="button" id="createUsername">{$lang['automatically']}</button>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="nickname" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="password" class="layui-form-label">{$lang['password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="password" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="repassword" class="layui-form-label">{$lang['confirm_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="repassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">手机</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="mobile" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="username" class="layui-form-label">投注方式</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="bet_type" autocomplete="off" class="layui-select">
|
||||
<option value="3">全部</option>
|
||||
<option value="2">电话投注</option>
|
||||
<option value="1">网络投注</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low" class="layui-form-label">{$lang['min_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low" autocomplete="off" class="layui-input" value="{$agentParent.limit_low}">
|
||||
</div>
|
||||
<label for="limit_high" class="layui-form-label">{$lang['max_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high" autocomplete="off" class="layui-input" value="{$agentParent.limit_high}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_tie" class="layui-form-label">{$lang['min_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_tie" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_tie}">
|
||||
</div>
|
||||
<label for="limit_high_tie" class="layui-form-label">{$lang['max_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_tie" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_tie}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_pair" class="layui-form-label">{$lang['min_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_pair" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_pair}">
|
||||
</div>
|
||||
<label for="limit_high_pair" class="layui-form-label">{$lang['max_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_pair" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_pair}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_nn}">
|
||||
</div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_nn}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 信用线展示码率 -->
|
||||
<?php if($user_info['agent_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv" class="layui-form-label">{$lang['baccarat']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv" value="{$agentParent.agent_ximalv}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_baccacat_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv}%</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_dt" class="layui-form-label">{$lang['dt']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_dt" value="{$agentParent.agent_ximalv_dt}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_dt_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv_dt}%</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_nn" class="layui-form-label">{$lang['cow']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_nn" value="{$agentParent.agent_ximalv_nn}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_cow_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv_nn}%</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="display: none;">
|
||||
<label for="agent_ximalv_tc" class="layui-form-label">{$lang['three_card']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_tc" value="{$agentParent.agent_ximalv_tc}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_tc_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv_tc}%</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_cs" class="layui-form-label">{$lang['share_ratio']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_cs" value="0" autocomplete="off"
|
||||
class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_rate_word']}(%)。{$lang['default']} {$agentParent.agent_cs}%</div>
|
||||
</div>
|
||||
|
||||
<!-- 现金线展示返水 -->
|
||||
<?php if($user_info['agent_type'] == 1) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="rebate_rate" class="layui-form-label">{$lang['rebate_rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="rebate_rate" value="0" autocomplete="off"
|
||||
class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_rate_word']}(%)。{$lang['default']} {$agentParent.rebate_rate}%</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['bet_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="manager_list" class="layui-form-label">{$lang['manager']}</label>
|
||||
<div class="layui-input-inline" style="width: 550px;">
|
||||
<select name="manager_list" id="manager_list" autocomplete="off" class="layui-select" multiple>
|
||||
<option value="">{$lang['select_manager']}</option>
|
||||
{foreach name="manager_list" item="vo"}
|
||||
<option value={$vo.id} >{$vo.nickname}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="remark" class="layui-form-label">{$lang['remark']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea type="text" id="remark" autocomplete="off" class="layui-textarea"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<!--<button class="layui-btn" type="button" id="submit">立即提交</button>-->
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
<input type="hidden" id="parent_id" value="{$agentParent.id}">
|
||||
<input type="hidden" id="parent_bet_type" value="{$agentParent.bet_type}">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
var lang = {$jsonlang};
|
||||
// 系统随机生成用户名
|
||||
$('#createUsername').click(function(){
|
||||
var rand = '';
|
||||
var num = '';
|
||||
for(var i = 0; i < 6; i++){
|
||||
num = Math.floor(Math.random() * 10);
|
||||
rand += num;
|
||||
}
|
||||
$('#username').val(rand);
|
||||
});
|
||||
|
||||
// 提交添加会员
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.parent_id = $('#parent_id').val();
|
||||
query.letter = $('#letter').val();
|
||||
query.username = $('#username').val();
|
||||
query.nickname = $('#nickname').val();
|
||||
query.password = $('#password').val();
|
||||
query.repassword = $('#repassword').val();
|
||||
query.mobile = $('#mobile').val();
|
||||
query.bet_type = $('#bet_type').val();
|
||||
query.limit_low = $('#limit_low').val();
|
||||
query.limit_high = $('#limit_high').val();
|
||||
query.limit_low_tie = $('#limit_low_tie').val();
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.type_xima = $('#xima_type').val();
|
||||
query.agent_ximalv = $('#agent_ximalv').val() || 0;
|
||||
query.agent_ximalv_dt = $('#agent_ximalv_dt').val() || 0;
|
||||
query.agent_ximalv_nn = $('#agent_ximalv_nn').val() || 0;
|
||||
query.agent_ximalv_tc = $('#agent_ximalv_tc').val() || 0;
|
||||
query.agent_cs = $('#agent_cs').val();
|
||||
query.rebate_rate = $('#rebate_rate').val() || 0;
|
||||
query.manager_list = $('#manager_list').val() || [];
|
||||
query.remark = $('#remark').val();
|
||||
|
||||
// 验证数据
|
||||
if(query.username.length == 0 || query.username == undefined){
|
||||
layer.alert(lang.empty_username,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
query.username = query.letter+query.username;//重新定义username
|
||||
if(query.nickname.length == 0 || query.nickname == undefined){
|
||||
layer.alert(lang.empty_nickname,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password.length == 0 || query.password == undefined){
|
||||
layer.alert(lang.empty_password,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password.length < 6){
|
||||
layer.alert(lang.new_pass_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password != query.repassword){
|
||||
layer.alert(lang.pass_diff,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low.length == 0 || query.limit_low == undefined){
|
||||
layer.alert(lang.empty_min_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high.length == 0 || query.limit_high == undefined){
|
||||
layer.alert(lang.empty_max_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_tie.length == 0 || query.limit_low_tie == undefined){
|
||||
layer.alert(lang.empty_min_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_tie.length == 0 || query.limit_high_tie == undefined){
|
||||
layer.alert(lang.empty_max_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_pair.length == 0 || query.limit_low_pair == undefined){
|
||||
layer.alert(lang.empty_min_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_pair.length == 0 || query.limit_high_pair == undefined){
|
||||
layer.alert(lang.empty_max_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.type_xima == ''){
|
||||
layer.alert(lang.empty_wash_type,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv.length == 0 || query.agent_ximalv == undefined){
|
||||
layer.alert(lang.empty_baccacat_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_dt.length == 0 || query.agent_ximalv_dt == undefined){
|
||||
layer.alert(lang.empty_dt_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_nn.length == 0 || query.agent_ximalv_nn == undefined){
|
||||
layer.alert(lang.empty_cow_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_tc.length == 0 || query.agent_ximalv_tc == undefined){
|
||||
layer.alert(lang.empty_tc_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_cs.length == 0 || query.agent_cs == undefined){
|
||||
layer.alert(lang.empty_proportion,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
var parent_bet_type = $('#parent_bet_type').val();
|
||||
if(parent_bet_type == 2){
|
||||
if(query.manager_list.length == 0){
|
||||
layer.alert(lang.select_manager,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
query.manager_list = query.manager_list.join(",");
|
||||
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url:'/agent/do_add',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
},function(index){
|
||||
layer.close(index);
|
||||
x_admin_show(lang.agent_list,'/agent/index?username='+query.username);
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/agent/delete" method="get">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
<input type="hidden" name="agent_parent_id" value="{$user_info.id}">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th style="width:15%;">{$lang['recent_recharge']}</th>
|
||||
<th style="width:15%;">{$lang['account_balance']}</th>
|
||||
<th style="width:20%;">{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']}/{$lang['three_card']} {$lang['washing_rate']}</th>
|
||||
<th>{$lang['proportion']}</th>
|
||||
<th>{$lang['create_time']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$agent_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.last_recharge}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.agent_ximalv}/{$vo.agent_ximalv_dt}/{$vo.agent_ximalv_nn}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<td>{$vo.reg_time}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($agent_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$agent_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Executable
+288
@@ -0,0 +1,288 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.layui-form-radio{margin-right:-20px;margin-left:10px;}
|
||||
.layui-form-label {
|
||||
width: 140px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="nickname" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input" value="{$user.nickname}">
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">手机</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="mobile" autocomplete="off" class="layui-input" value="{$user.mobile}">
|
||||
</div>
|
||||
<label class="layui-form-label">投注方式</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="bet_type" autocomplete="off" class="layui-select">
|
||||
<option value="3" <?php if($user['bet_type'] == 3) echo 'selected="selected"'; ?>>全部</option>
|
||||
<option value="2" <?php if($user['bet_type'] == 2) echo 'selected="selected"'; ?>>电话投注</option>
|
||||
<option value="1" <?php if($user['bet_type'] == 1) echo 'selected="selected"'; ?>>网络投注</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low" class="layui-form-label">{$lang['min_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low" autocomplete="off" value="{$user.limit_low}" class="layui-input">
|
||||
</div>
|
||||
<label for="limit_high" class="layui-form-label">{$lang['max_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high" autocomplete="off" value="{$user.limit_high}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_tie" class="layui-form-label">{$lang['min_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_tie" autocomplete="off" value="{$user.limit_low_tie}" class="layui-input">
|
||||
</div>
|
||||
<label for="limit_high_tie" class="layui-form-label">{$lang['max_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_tie" autocomplete="off" value="{$user.limit_high_tie}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_pair" class="layui-form-label">{$lang['min_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_pair" autocomplete="off" value="{$user.limit_low_pair}" class="layui-input">
|
||||
</div>
|
||||
<label for="limit_high_pair" class="layui-form-label">{$lang['max_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_pair" autocomplete="off" value="{$user.limit_high_pair}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" value="{$user.limit_low_nn}" class="layui-input">
|
||||
</div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" value="{$user.limit_high_nn}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 信用线展示码率 -->
|
||||
<?php if($user['agent_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv" class="layui-form-label">{$lang['baccarat']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv" value="{$user.agent_ximalv}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="agent_ximalv_dt" class="layui-form-label">{$lang['dt']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_dt" value="{$user.agent_ximalv_dt}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_nn" class="layui-form-label">{$lang['cow']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_nn" value="{$user.agent_ximalv_nn}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="display: none;">
|
||||
<label for="agent_ximalv_tc" class="layui-form-label">{$lang['three_card']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_tc" value="{$user.agent_ximalv_tc}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_cs" class="layui-form-label">{$lang['share_ratio']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_cs" value="{$user.agent_cs}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<?php if($user['agent_type'] == 1) : ?>
|
||||
<label for="rebate_rate" class="layui-form-label" >{$lang['rebate_rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="rebate_rate" value="{$user.rebate_rate}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="remark" class="layui-form-label">{$lang['remark']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea type="text" id="remark" autocomplete="off" class="layui-textarea">{$user.remarks}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<!--<button class="layui-btn" type="button" id="submit">立即提交</button>-->
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- 隐藏参数 -->
|
||||
<input type="hidden" id="parent_id" value="{$user.agent_parent_id}">
|
||||
<input type="hidden" id="user_id" value="{$user.id}">
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
var lang = {$jsonlang};
|
||||
// 提交编辑代理
|
||||
$('#submit').click(function () {
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.parent_id = $('#parent_id').val();
|
||||
query.user_id = $('#user_id').val();
|
||||
query.nickname = $('#nickname').val();
|
||||
query.mobile = $('#mobile').val();
|
||||
//query.bet_type = $('#bet_type').val();
|
||||
query.limit_low = $('#limit_low').val();
|
||||
query.limit_high = $('#limit_high').val();
|
||||
query.limit_low_tie = $('#limit_low_tie').val();
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.agent_ximalv = $('#agent_ximalv').val() || 0;
|
||||
query.agent_ximalv_dt = $('#agent_ximalv_dt').val() || 0;
|
||||
query.agent_ximalv_nn = $('#agent_ximalv_nn').val() || 0;
|
||||
query.agent_ximalv_tc = $('#agent_ximalv_tc').val() || 0;
|
||||
query.agent_cs = $('#agent_cs').val();
|
||||
query.rebate_rate = $('#rebate_rate').val() || 0;
|
||||
query.remark = $('#remark').val();
|
||||
|
||||
// 验证数据
|
||||
if (query.nickname.length == 0 || query.nickname == undefined) {
|
||||
layer.alert(lang.empty_nickname,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
/*
|
||||
if (query.bet_type.length == 0 || query.bet_type == undefined) {
|
||||
layer.alert('请选择投注方式');
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
if(query.limit_low.length == 0 || query.limit_low == undefined){
|
||||
layer.alert(lang.empty_min_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high.length == 0 || query.limit_high == undefined){
|
||||
layer.alert(lang.empty_max_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_tie.length == 0 || query.limit_low_tie == undefined){
|
||||
layer.alert(lang.empty_min_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_tie.length == 0 || query.limit_high_tie == undefined){
|
||||
layer.alert(lang.empty_max_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_pair.length == 0 || query.limit_low_pair == undefined){
|
||||
layer.alert(lang.empty_min_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_pair.length == 0 || query.limit_high_pair == undefined){
|
||||
layer.alert(lang.empty_max_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv.length == 0 || query.agent_ximalv == undefined){
|
||||
ayer.alert(lang.empty_baccacat_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_dt.length == 0 || query.agent_ximalv_dt == undefined){
|
||||
layer.alert(lang.empty_dt_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_nn.length == 0 || query.agent_ximalv_nn == undefined){
|
||||
layer.alert(lang.empty_cow_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_tc.length == 0 || query.agent_ximalv_tc == undefined){
|
||||
layer.alert(lang.empty_tc_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url: '/agent/do_edit',
|
||||
data: query,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
success: function (data) {
|
||||
if (data.code == 0) {
|
||||
layer.msg(data.msg);
|
||||
} else if (data.code == 1) {
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
}, function () {
|
||||
x_admin_close();
|
||||
parent.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,270 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<!-- <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/> -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.relation{ text-decoration: underline;}
|
||||
.relation:hover{ color:#807362}
|
||||
.self{ background:rgb(199, 182, 151)}
|
||||
.self:hover{ background:rgb(199, 182, 151) !important;}
|
||||
.layui-form-radio{margin:0;}
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.layui-form-switch em {
|
||||
width: 45px;
|
||||
}
|
||||
.layui-form-onswitch i {
|
||||
left: 48px;
|
||||
}
|
||||
.layui-form-switch {
|
||||
width: 55px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/agent/index" method="get">
|
||||
<input type="hidden" name="agent_id" value="{$user_info.id}">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span class="margin-left">{$lang['attribution_type']}:</span>
|
||||
<input class="is_under" type="radio" name="is_under" value="1" title="{$lang['all']}" <?php if(isset($get['is_under']) && $get['is_under'] == 1) echo 'checked'; ?>>
|
||||
<input class="is_under" type="radio" name="is_under" value="2" title="{$lang['directly_under']}" <?php if(isset($get['is_under']) && $get['is_under'] == 2) echo 'checked'; ?>>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form" style="overflow: auto;">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['recent_up_score']}</th>
|
||||
<th>{$lang['account_balance']}</th>
|
||||
<th>{$lang['under_all_balance']}</th>
|
||||
<!--
|
||||
<th style="width:10%;">{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']}/{$lang['three_card']} {$lang['washing_rate']}%</th>-->
|
||||
<th style="width:10%;">{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']} {$lang['washing_rate']}%</th>
|
||||
<th>{$lang['proportion']}%</th>
|
||||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||||
<th>{$lang['rebate_rate']}%</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['create_time']}</th>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||||
<th>{$lang['online_recharge']}</th>
|
||||
<!--<th>{$lang['title']}</th>-->
|
||||
<?php if($user_info['top_agent_type'] == 1 && $user_info['top_agent_pay_channel'] == "USDT") : ?>
|
||||
<th style="width:10%">{$lang['wallet_address']}</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['status']}</th>
|
||||
<?php endif; ?>
|
||||
<th style="width:45%;">{$lang['operate']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$agent_list" item="vo"}
|
||||
<tr class="<?php if($vo['id'] == $user_info['id']) echo 'self'; ?>">
|
||||
<td><a href="javascript:;" class="relation" onclick="x_admin_show('{$lang.relationship_structure}','/index/relation?id={$vo.id}',400,500)">{$vo.username}</a></td>
|
||||
<td><a href="javascript:;" class="relation" onclick="x_admin_show('{$lang.relationship_structure}','/index/relation?id={$vo.id}',400,500)">{$vo.nickname}</a></td>
|
||||
<!--
|
||||
<td><a href="javascript:;" class="relation">{$vo.username}</a></td>
|
||||
<td><a href="javascript:;" class="relation">{$vo.nickname}</a></td>
|
||||
-->
|
||||
<td>{$vo.last_recharge}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.all_money}</td>
|
||||
<td>{$vo.ximalv}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||||
<td>{$vo.rebate_rate}</td>
|
||||
<?php endif; ?>
|
||||
<td>{$vo.reg_time}</td>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||||
<td style="text-align:center;">{$vo.onlineRecharge}</td>
|
||||
<!--<td style="text-align:center;">{$vo.onlineRechargeTitle}</td>-->
|
||||
<?php if($user_info['top_agent_type'] == 1 && $user_info['top_agent_pay_channel'] == "USDT") : ?>
|
||||
<td style="text-align:center;">{$vo.wallet_address}</td>
|
||||
<?php endif; ?>
|
||||
<td class="td-status">
|
||||
<?php if($vo['id'] == $user_info['id']): ?>
|
||||
<div class="layui-form">
|
||||
<input type="checkbox" lay-skin="switch" lay-text="{$lang['enable']}|{$lang['ban']}" disabled <?php if($vo['status'] == 1) echo 'checked="checked"'; ?> >
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="layui-form" onclick="changeStatus(this)">
|
||||
<input type="checkbox" id="status_{$vo.id}" lay-skin="switch" lay-text="{$lang['enable']}|{$lang['ban']}" data-username="{$vo.username}" data-user-id="{$vo.id}" value="{$vo.status}" <?php if($vo['status'] == 1) echo 'checked="checked"'; ?>>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<td class="td-manage">
|
||||
<?php if($user_info['bet_type'] == 2): ?>
|
||||
<a class="layui-btn layui-operation child-true" href="javascript:;" onclick="x_admin_show('{$vo.nickname}({$vo.username}) > {$lang.manager}','/manager/manager_list?agent_id={$vo.id}')">{$lang['manager']}</a>
|
||||
<?php endif; ?>
|
||||
{if condition="$vo.childMember == true"}
|
||||
<a class="layui-btn layui-operation child-true" href="javascript:;" onclick="x_admin_show('{$vo.nickname}({$vo.username}) > {$lang.subordinate_members}','/player/index?agent_id={$vo.id}')">{$lang['subordinate_members']}</a>
|
||||
{else}
|
||||
<a class="layui-btn layui-operation child-false" href="javascript:;">{$lang['subordinate_members']}</a>
|
||||
{/if}
|
||||
{if condition="$vo.childAgent == true && $vo.id != $user_info.id"}
|
||||
<a class="layui-btn layui-operation child-true" href="javascript:;" onclick="x_admin_show('{$vo.nickname}({$vo.username}) > {$lang.subordinate_members}','/agent/index?agent_id={$vo.id}')">{$lang['subordinate_agents']}</a>
|
||||
{else}
|
||||
<a class="layui-btn layui-operation child-false" href="javascript:;">{$lang['subordinate_agents']}</a>
|
||||
{/if}
|
||||
{if condition="$vo.id != $user_info.id"}
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 2 || $user_info['account_type'] == 3) : ?>
|
||||
|
||||
<!--总代类型为 信用线-->
|
||||
<?php if($user_info['top_agent_type'] == 2 || $user_info['top_agent_type'] == 0) : ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.recharge_withdrawal} > {$vo.username}({$vo.nickname})','/settle/recharge?id={$vo.id}')">{$lang['recharge_withdrawal']}</a>
|
||||
<?php endif; ?>
|
||||
<!--总代类型为 现金线-->
|
||||
<?php if(empty($vo['wallet_address']) && $user_info['top_agent_type'] == 1 && $user_info['top_agent_pay_channel'] == "USDT") : ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="createWallet('{$vo.id}')">生成钱包地址</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.account_editing} > {$vo.username}({$vo.nickname})','/agent/edit?user_id={$vo.id}')">{$lang['account_editing']}</a>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.change_password} > {$vo.username}({$vo.nickname})','/index/password_child?id={$vo.id}')">{$lang['change_password']}</a>
|
||||
<?php endif; ?>
|
||||
{/if}
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('{$lang.add_agent} > {$vo.username}({$vo.nickname})','/agent/add?parent_id={$vo.id}')">{$lang['add_agent']}</a>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('{$lang.add_member} > {$vo.username}({$vo.nickname})','/player/add?parent_id={$vo.id}')">{$lang['add_member']}</a>
|
||||
<?php if($user_info['top_agent_type'] == 2) : ?>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('洗码结算 > {$vo.username}({$vo.nickname})','/settle/xima?user_id={$vo.id}')">洗码结算</a>
|
||||
<?php endif; ?>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('占股结算 > {$vo.username}({$vo.nickname})','/settle/cs?user_id={$vo.id}')">占股结算</a>
|
||||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('返水结算 > {$vo.username}({$vo.nickname})','/settle/rebate?user_id={$vo.id}&game_type=1')">真人返水</a>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('棋牌返水结算 > {$vo.username}({$vo.nickname})','/settle/rebate?user_id={$vo.id}&game_type=2')">棋牌返水</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($agent_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$agent_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
var lang = {$jsonlang};
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 用户启用/禁用
|
||||
function changeStatus(obj){
|
||||
obj = $(obj).find('input').eq(0);
|
||||
// 拼装参数
|
||||
var query = new Object();
|
||||
query.username = $(obj).attr('data-username');
|
||||
query.user_id = $(obj).attr('data-user-id');
|
||||
query.status = $(obj).val();
|
||||
|
||||
// 发送后台
|
||||
$.ajax({
|
||||
url:'/index/change_status_child',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
var agentChilds = data.agentChilds;
|
||||
var updateStatus = data.updateStatus;
|
||||
for(var i=0; i< agentChilds.length; i++){
|
||||
var v = agentChilds[i];
|
||||
$('#status_'+ v.id).val(updateStatus);
|
||||
if(updateStatus == 1){
|
||||
$('#status_'+ v.id).attr('checked','checked').next().addClass('layui-form-onswitch').find('em').html(lang.enable);
|
||||
}else{
|
||||
$('#status_'+ v.id).removeAttr('checked').next().removeClass('layui-form-onswitch').find('em').html(lang.ban);
|
||||
}
|
||||
}
|
||||
layer.msg(data.msg,{icon:1,title:lang.message,});
|
||||
}else{
|
||||
layer.msg(data.msg,{
|
||||
title:lang.message,
|
||||
},function(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 生成钱包
|
||||
function createWallet(userId){
|
||||
layer.confirm('确定为该用户生成钱包地址?',function(){
|
||||
$.ajax({
|
||||
url:'/agent/createWallet',
|
||||
data:{user_id:userId},
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
layer.msg(data.msg,{icon:1});
|
||||
}else{
|
||||
layer.msg(data.msg,function(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
/*禁止ios缩放,双击和双指*/
|
||||
window.onload=function () {
|
||||
document.addEventListener('touchstart',function (event) {
|
||||
if(event.touches.length>1){
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
var lastTouchEnd=0;
|
||||
document.addEventListener('touchend',function (event) {
|
||||
var now=(new Date()).getTime();
|
||||
if(now-lastTouchEnd<=300){
|
||||
event.preventDefault();
|
||||
}
|
||||
lastTouchEnd=now;
|
||||
},false);
|
||||
document.addEventListener('gesturestart', function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,482 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>带梨 > {$title_en}|{$title}</title>
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<link rel="stylesheet" href="/static/agent/css/bootstrap.min.css">
|
||||
<link rel="shortcut icon" href="{$Think.ADMIN_STATIC_DOMAIN}/static/wp.ico" type="image/x-icon" />
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="/static/agent/css/font-awesome.min.css">
|
||||
<!-- Ionicons -->
|
||||
<link rel="stylesheet" href="/static/agent/css/ionicons.min.css">
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="/static/agent/css/AdminLTE.min.css">
|
||||
<!-- AdminLTE Skins. Choose a skin from the css/skins
|
||||
folder instead of downloading all of them to reduce the load. -->
|
||||
<link rel="stylesheet" href="/static/agent/css/_all-skins.min.css">
|
||||
<!-- Morris chart -->
|
||||
<link rel="stylesheet" href="/static/agent/css/morris.css">
|
||||
<!-- jvectormap -->
|
||||
<link rel="stylesheet" href="/static/agent/css/jquery-jvectormap.css">
|
||||
<!-- Date Picker -->
|
||||
<link rel="stylesheet" href="/static/agent/css/bootstrap-datepicker.min.css">
|
||||
<!-- Daterange picker -->
|
||||
<link rel="stylesheet" href="/static/agent/css/daterangepicker.css">
|
||||
<!-- bootstrap wysihtml5 - text editor -->
|
||||
<link rel="stylesheet" href="/static/agent/css/bootstrap3-wysihtml5.min.css">
|
||||
<!-- jQuery 3 -->
|
||||
<script src="/static/agent/js/jquery.min.js"></script>
|
||||
<!-- jQuery UI 1.11.4 -->
|
||||
<script src="/static/agent/js/jquery-ui.min.js"></script>
|
||||
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
|
||||
<script>
|
||||
$.widget.bridge('uibutton', $.ui.button);
|
||||
</script>
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<script src="/static/agent/js/bootstrap.min.js"></script>
|
||||
<!-- Morris.js charts -->
|
||||
<script src="/static/agent/js/raphael.min.js"></script>
|
||||
<!-- <script src="/static/agent/js/morris.min.js"></script> -->
|
||||
<!-- Sparkline -->
|
||||
<script src="/static/agent/js/jquery.sparkline.min.js"></script>
|
||||
<!-- jvectormap -->
|
||||
<script src="/static/agent/js/jquery-jvectormap-1.2.2.min.js"></script>
|
||||
<script src="/static/agent/js/jquery-jvectormap-world-mill-en.js"></script>
|
||||
<!-- jQuery Knob Chart -->
|
||||
<script src="/static/agent/js/jquery.knob.min.js"></script>
|
||||
<!-- daterangepicker -->
|
||||
<script src="/static/agent/js/moment.min.js"></script>
|
||||
<script src="/static/agent/js/daterangepicker.js"></script>
|
||||
<!-- datepicker -->
|
||||
<script src="/static/agent/js/bootstrap-datepicker.min.js"></script>
|
||||
<!-- Bootstrap WYSIHTML5 -->
|
||||
<script src="/static/agent/js/bootstrap3-wysihtml5.all.min.js"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="/static/agent/js/jquery.slimscroll.min.js"></script>
|
||||
<!-- FastClick -->
|
||||
<script src="/static/agent/js/fastclick.js"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="/static/agent/js/adminlte.min.js"></script>
|
||||
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
|
||||
<!-- <script src="/static/agent/js/dashboard.js"></script> -->
|
||||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="/static/agent/js/demo.js"></script>
|
||||
<script src="/static/agent/layer/layer.js"></script>
|
||||
|
||||
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Google Font -->
|
||||
<link rel="stylesheet" href="/static/agent/css/fonts_googleapis.css">
|
||||
</head>
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<header class="main-header">
|
||||
<!-- Logo -->
|
||||
<a href="/index/index" class="logo">
|
||||
<!-- mini logo for sidebar mini 50x50 pixels -->
|
||||
<span class="logo-mini"><b>D</b>L</span>
|
||||
<!-- logo for regular state and mobile devices -->
|
||||
<span class="logo-lg"><b>带</b>梨</span>
|
||||
</a>
|
||||
<!-- Header Navbar: style can be found in header.less -->
|
||||
<nav class="navbar navbar-static-top">
|
||||
<!-- Sidebar toggle button-->
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<!-- Notifications: style can be found in dropdown.less -->
|
||||
<li class="dropdown notifications-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="ion ion-tshirt-outline"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">请选择喜爱的颜色风格</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
<li>
|
||||
<a href="javascript:void(0)" data-skin="skin-red"
|
||||
style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)"
|
||||
class="clearfix full-opacity-hover">
|
||||
<i class="fa fa-square text-red"></i> 红色
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" data-skin="skin-yellow"
|
||||
style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)"
|
||||
class="clearfix full-opacity-hover">
|
||||
<i class="fa fa-square text-yellow"></i> 黄色
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" data-skin="skin-green"
|
||||
style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)"
|
||||
class="clearfix full-opacity-hover">
|
||||
<i class="fa fa-square text-green"></i> 绿色
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" data-skin="skin-blue"
|
||||
style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)"
|
||||
class="clearfix full-opacity-hover">
|
||||
<i class="fa fa-square text-blue"></i> 蓝色
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" data-skin="skin-purple"
|
||||
style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)"
|
||||
class="clearfix full-opacity-hover">
|
||||
<i class="fa fa-square text-purple"></i> 紫色
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="/static/agent/images/user2-160x160.jpg" class="user-image" alt="User Image">
|
||||
<span class="hidden-xs">{$user_info.username}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header">
|
||||
<img src="/static/agent/images/user2-160x160.jpg" class="img-circle" alt="User Image">
|
||||
|
||||
<p>{$user_info.username}<small>代理</small></p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-right">
|
||||
<a href="/login/logout" class="btn btn-default btn-flat logout">退出</a>
|
||||
</div>
|
||||
</li>
|
||||
<!-- Control Sidebar Toggle Button -->
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar">
|
||||
<!-- Sidebar user panel -->
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="/static/agent/images/user2-160x160.jpg" class="img-circle" alt="User Image">
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>{$user_info.username}</p>
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> 代理</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.search form -->
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul class="sidebar-menu" data-widget="tree">
|
||||
<li class="header">导航</li>
|
||||
<li {if $li_num eq 1}class="active"{/if}>
|
||||
<a href="/index/index"><i class="fa fa-home"></i> <span>首页</span><span class="pull-right-container" {if $li_num neq 1}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span></a>
|
||||
</li>
|
||||
<li {if $li_num eq 2}class="active"{/if}>
|
||||
<a href="/bills/index"><i class="fa fa-book"></i> <span>上下分记录</span><span class="pull-right-container" {if $li_num neq 2}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span></a>
|
||||
</li>
|
||||
<li {if $li_num eq 5}class="active"{/if}>
|
||||
<a href="/xima/index"><i class="fa fa-file-text"></i> <span>洗码管理</span><span class="pull-right-container" {if $li_num neq 5}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $li_num eq 3}class="active"{/if}>
|
||||
<a href="/washcode/index"><i class="fa fa-file-text"></i> <span>洗码记录</span><span class="pull-right-container" {if $li_num neq 3}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $li_num eq 4}class="active"{/if}>
|
||||
<a href="/agent/index"><i class="fa fa-user-secret"></i> <span>我的下属</span><span class="pull-right-container" {if $li_num neq 4}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span></a>
|
||||
</li>
|
||||
<li {if $li_num eq 18}class="active"{/if}>
|
||||
<a href="/agent/is_del"><i class="fa fa-user-secret"></i> <span>我的下属(已删除)</span><span class="pull-right-container" {if $li_num neq 18}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span></a>
|
||||
</li>
|
||||
<!--
|
||||
<li {if $li_num eq 5}class="active"{/if}>
|
||||
<a href="/player/index"><i class="fa fa-user"></i> <span>我的玩家</span><span class="pull-right-container" {if $li_num neq 5}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span></a>
|
||||
</li>
|
||||
-->
|
||||
<li {if $li_num eq 7}class="active"{/if}>
|
||||
<a href="/player/table_online">
|
||||
<i class="fa fa-user"></i>
|
||||
<span>游戏桌实时数据</span>
|
||||
<span class="pull-right-container" {if $li_num neq 7}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $li_num eq 19}class="active"{/if}>
|
||||
<a href="/player/user_online">
|
||||
<i class="fa fa-user"></i>
|
||||
<span>玩家实时数据</span>
|
||||
<span class="pull-right-container" {if $li_num neq 19}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $li_num eq 6 || $li_num eq 8|| $li_num eq 9|| $li_num eq 10|| $li_num eq 11|| $li_num eq 12|| $li_num eq 14|| $li_num eq 15|| $li_num eq 16}class="active"{/if}>
|
||||
<a class="heid-btn">
|
||||
<i class="fa fa-calculator"></i>
|
||||
<span>报表</span>
|
||||
<!-- <span class="pull-right-container" ><i class="fa fa-angle-right pull-right"></i></span> -->
|
||||
</a>
|
||||
<div class="list-heid" style="height:0;overflow: hidden;">
|
||||
<!--
|
||||
<a href="/report/index" {if $li_num eq 6}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>总汇</span>
|
||||
<span class="pull-right-container" {if $li_num neq 6}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a>
|
||||
-->
|
||||
<!-- <a href="/report/under_player" {if $li_num eq 13}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>直属玩家报表</span>
|
||||
<span class="pull-right-container" {if $li_num neq 13}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a> -->
|
||||
<a href="/report/under_agent" {if $li_num eq 14}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>下属报表</span>
|
||||
<span class="pull-right-container" {if $li_num neq 14}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="/report/baccarat_list" {if $li_num eq 9}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>百家乐查询(铺流水表)</span>
|
||||
<span class="pull-right-container" {if $li_num neq 9}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="/report/dt_list" {if $li_num eq 10}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>龙虎斗查询(铺流水表)</span>
|
||||
<span class="pull-right-container" {if $li_num neq 10}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="/report/dn_list" {if $li_num eq 15}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>牛牛查询(铺流水表)</span>
|
||||
<span class="pull-right-container" {if $li_num neq 15}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="/report/baccarat_bet" {if $li_num eq 11}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>百家乐注单查询</span>
|
||||
<span class="pull-right-container" {if $li_num neq 11}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="/report/dt_bet" {if $li_num eq 12}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>龙虎斗注单查询</span>
|
||||
<span class="pull-right-container" {if $li_num neq 12}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="/report/dn_bet" {if $li_num eq 16}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>牛牛注单查询</span>
|
||||
<span class="pull-right-container" {if $li_num neq 16}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="/log/user_login" {if $li_num eq 8}style="background-color:#1e282c;color: #fff;"{/if}>
|
||||
<span>玩家登录日志</span>
|
||||
<span class="pull-right-container" {if $li_num neq 8}style="display: none;"{/if}>
|
||||
<i class="fa fa-angle-right pull-right" style="margin-right: 6px;"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<!-- <li {if $li_num eq 8}class="active"{/if}>
|
||||
<a href="/log/user_login"><i class="fa fa-user"></i> <span>玩家登录日志</span><span class="pull-right-container" {if $li_num neq 8}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span></a>
|
||||
</li> -->
|
||||
<!-- <li {if $li_num eq 6}class="active"{/if}>
|
||||
|
||||
<a href="/report/index"><i class="fa fa-calculator"></i> <span>报表</span><span class="pull-right-container" {if $li_num neq 6}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span></a>
|
||||
</li> -->
|
||||
<!-- <li {if $li_num eq 7}class="active"{/if}>
|
||||
<a href="/marketing/index"><i class="fa fa-share-alt"></i> <span>推广</span><span class="pull-right-container" {if $li_num neq 7}style="display: none;"{/if}><i class="fa fa-angle-right pull-right"></i></span></a>
|
||||
</li> -->
|
||||
</ul>
|
||||
<style type="text/css">
|
||||
..list-heid{
|
||||
background-color: #324148;
|
||||
}
|
||||
.list-heid a{
|
||||
padding: 12px 5px 12px 40px;
|
||||
display: block;
|
||||
}
|
||||
.list-heid a:hover{
|
||||
background-color:#1e282c;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
if({$li_num} == 6 ||{$li_num} == 8 ||{$li_num} == 9 ||{$li_num} == 10 ||{$li_num} == 11 ||{$li_num} == 12||{$li_num} == 14||{$li_num} == 15||{$li_num} == 16){
|
||||
var heid=true;
|
||||
$(".heid-btn").parent("li").find(".list-heid").animate({height:"342px"},200);
|
||||
}else{
|
||||
var heid=false;
|
||||
}
|
||||
var heid=false;
|
||||
$(".heid-btn").click(function(){
|
||||
if(heid==false){
|
||||
$(this).parent("li").find(".list-heid").animate({height:"342px"},200);
|
||||
heid=true
|
||||
}else{
|
||||
$(this).parent("li").find(".list-heid").animate({height:"0"},200);
|
||||
heid=false
|
||||
}
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
|
||||
|
||||
<!-- Control Sidebar -->
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="control-sidebar-settings-tab">
|
||||
<form method="post">
|
||||
<h3 class="control-sidebar-heading" style="border-bottom:dotted 1px #444;">设置</h3>
|
||||
|
||||
<div class="form-group" id="changePassword">
|
||||
<label class="control-sidebar-subheading">
|
||||
密码
|
||||
</label>
|
||||
<p>
|
||||
<span>******</span>
|
||||
<a href="#" title="修改密码" class="text-right">
|
||||
<i class="fa fa-edit pull-right" id="update_pass"></i>
|
||||
</a>
|
||||
</p>
|
||||
<div class="box box-solid" id="change_box" style="display: none;background:none ">
|
||||
<div class="form-group">
|
||||
<input type="password" id="oldPswd" placeholder="输入旧密码" class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" id="newPswd1" placeholder="输入新密码" class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" id="newPswd2" placeholder="再次输入新密码" class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-primary" id="submit-new-password">保存修改</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.form-group -->
|
||||
<div id="customerService" class="form-group">
|
||||
<label class="control-sidebar-subheading">客服</label>
|
||||
</div>
|
||||
<!-- /.form-group -->
|
||||
<div class="form-group">
|
||||
<label class="control-sidebar-subheading">版本</label>
|
||||
<p>v.3.0.0</p>
|
||||
</div>
|
||||
<!-- /.form-group -->
|
||||
<h3 class="control-sidebar-heading" style="border-bottom:dotted 1px #444;"> </h3>
|
||||
<!-- /.form-group -->
|
||||
<div id="copyright" class="form-group">
|
||||
<label class="control-sidebar-subheading">胜派国际娱乐有限公司</label>
|
||||
<p>
|
||||
"Copyright © 2018."
|
||||
<br>
|
||||
"All rights reserved."
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
</div>
|
||||
</aside>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
// 隐藏显示修改密码框
|
||||
$("#update_pass").click(function () {
|
||||
$(".form-control").val("")
|
||||
$("#change_box").toggle();
|
||||
});
|
||||
|
||||
//提交修改密码
|
||||
$('#submit-new-password').click(function(){
|
||||
// 旧密码
|
||||
var old_password = $('#oldPswd').val();
|
||||
// 新密码
|
||||
var new_password1 = $('#newPswd1').val();
|
||||
var new_password2 = $('#newPswd2').val();
|
||||
var user_id = {$user_info['id']};
|
||||
//验证密码
|
||||
if(old_password == '' || old_password == null){
|
||||
layer.alert('请输入旧密码');
|
||||
return false;
|
||||
}
|
||||
if(new_password1 == '' || new_password1 == null){
|
||||
layer.alert('请输入新密码');
|
||||
return false;
|
||||
}
|
||||
if(new_password1.length < 6 || new_password1.length >20){
|
||||
layer.alert('密码长度必须是6到20个字符');
|
||||
return false;
|
||||
}
|
||||
if(new_password2 == '' || new_password2 == null){
|
||||
layer.alert('请再次输入新密码');
|
||||
return false;
|
||||
}
|
||||
if(new_password1 != new_password2){
|
||||
layer.alert('两次输入的密码不一致');
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
url:"/common/update_password",
|
||||
type:"POST",
|
||||
dataType:"JSON",
|
||||
data:{user_id:user_id,old_password:old_password,new_password1:new_password1,new_password2:new_password2},
|
||||
success:function(data){
|
||||
if(data.status == 1){
|
||||
layer.alert(data.code);
|
||||
}else{
|
||||
layer.alert(data.code);
|
||||
$('#oldPswd').val('');
|
||||
$('#newPswd1').val('');
|
||||
$('#newPswd2').val('');
|
||||
$("#update_pass").click();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,152 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['personal_homepage']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<style type="text/css">
|
||||
|
||||
.layui-table{min-width: auto}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="x-body layui-anim layui-anim-up">
|
||||
<fieldset class="layui-elem-field to-hide">
|
||||
<legend>{$lang['data_statistics']}</legend>
|
||||
<div class="layui-field-box">
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
|
||||
<div carousel-item="">
|
||||
<ul class="layui-row layui-col-space10 layui-this">
|
||||
<li class="layui-col-xs3 x-admin-backlog-body">
|
||||
<div class="icon-box bg-blue">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box" id="agent">
|
||||
<a href="javascript:;">
|
||||
<p><b>{$underAgentCount}</b></p>
|
||||
<p><b>{$lang['total_number_of_agents']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="layui-col-xs3 x-admin-backlog-body">
|
||||
<div class="icon-box bg-red">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box">
|
||||
<a href="javascript:;">
|
||||
<p><b>{$underAgentCountToday}</b></p>
|
||||
<p><b>{$lang['new_agents_added_today']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="layui-col-xs3 x-admin-backlog-body">
|
||||
<div class="icon-box bg-dark-green">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box" id="member">
|
||||
<a href="javascript:;">
|
||||
<p><b>{$underMemberCount}</b></p>
|
||||
<p><b>{$lang['total_number_of_member']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="layui-col-xs3 x-admin-backlog-body">
|
||||
<div class="icon-box bg-yellow-green">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box">
|
||||
<a href="javascript:;">
|
||||
<p><b>{$underMemberCountToday}</b></p>
|
||||
<p><b>{$lang['new_member_added_today']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="layui-elem-field">
|
||||
<legend>{$lang['user_information']}</legend>
|
||||
<div class="layui-field-box">
|
||||
<table class="layui-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<td>{$user_info.username}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<td>{$user_info.nickname}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang['login_time']}</th>
|
||||
<td>{$user_info.agent_last_login_time}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang['login_ip']}</th>
|
||||
<td>{$user_info.agent_last_login_ip}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang['available_limit']}</th>
|
||||
<td>{$user_info.money}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!--<th>{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']}/{$lang['three_card']} {$lang['washing_rate']}(%)</th>-->
|
||||
<th>{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']} {$lang['washing_rate']}(%)</th>
|
||||
<td>{$user_info.ximalv}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang['share_ratio']}(%)</th>
|
||||
<td>{$user_info.agent_cs}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// 代理总数 和 会员总数 点击直接跳链
|
||||
$('#agent').click(function(){
|
||||
parent.$('#agent').trigger('click');
|
||||
});
|
||||
$('#member').click(function(){
|
||||
parent.$('#member').trigger('click');
|
||||
});
|
||||
})
|
||||
/*禁止ios缩放,双击和双指*/
|
||||
window.onload=function () {
|
||||
document.addEventListener('touchstart',function (event) {
|
||||
if(event.touches.length>1){
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
var lastTouchEnd=0;
|
||||
document.addEventListener('touchend',function (event) {
|
||||
var now=(new Date()).getTime();
|
||||
if(now-lastTouchEnd<=300){
|
||||
event.preventDefault();
|
||||
}
|
||||
lastTouchEnd=now;
|
||||
},false);
|
||||
document.addEventListener('gesturestart', function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,471 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
|
||||
<!-- <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" /> -->
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
||||
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/fontIndex.css?v=0.0.1">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css?v=0.0.5">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<style>
|
||||
.lang_box{
|
||||
position:absolute;
|
||||
bottom: 1%;
|
||||
right: 1%;
|
||||
}
|
||||
.login .form-label {
|
||||
width: 20%;
|
||||
}
|
||||
.login .layui-input {
|
||||
width: 78%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- 手机版菜单栏 -->
|
||||
<div class="mobile-box">
|
||||
<div class="menu">{$lang['menu']}</div>
|
||||
<section class="menu-box">
|
||||
<div class="menu-sub active">
|
||||
<div class="list"><i class="iconfont"></i>{$lang['personal_center']}</div>
|
||||
<div class="list">
|
||||
<ul>
|
||||
<li data-url="/index/admin"><i class="iconfont"></i>{$lang['personal_homepage']}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu-sub">
|
||||
<div class="list"><i class="iconfont"></i>{$lang['account_management']}</div>
|
||||
<div class="list">
|
||||
<ul>
|
||||
<li data-url="/agent/index"><i class="iconfont"></i>{$lang['agent_list']}</li>
|
||||
<?php if($user_info['agent_parent_id'] == 0 && $user_info['bet_type'] == 2) : ?>
|
||||
<li data-url="/manager/index"><i class="iconfont"></i>{$lang['manager_list']}</li>
|
||||
<?php endif; ?>
|
||||
<li data-url="/player/index"><i class="iconfont"></i>{$lang['member_list']}</li>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1) : ?>
|
||||
<li data-url="/agent/add?parent_id={$user_info.id}"><i class="iconfont"></i>{$lang['add_agent']}</li>
|
||||
<?php if($user_info['agent_parent_id'] == 0 && $user_info['bet_type'] == 2) : ?>
|
||||
<li data-url="/manager/add?parent_id={$user_info.id}"><i class="iconfont"></i>{$lang['add_manager']}</li>
|
||||
<?php endif; ?>
|
||||
<li data-url="/player/add?parent_id={$user_info.id}"><i class="iconfont"></i>{$lang['add_member']}</li>
|
||||
<li data-url="/agent/delete"><i class="iconfont"></i>{$lang['agent_deleted']}</li>
|
||||
<li data-url="/player/delete"><i class="iconfont"></i>{$lang['member_deleted']}</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu-sub">
|
||||
<div class="list"><i class="iconfont"></i>{$lang['report_management']}</div>
|
||||
<div class="list">
|
||||
<ul>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 3) : ?>
|
||||
<li data-url="/report/agent"><i class="iconfont"></i>{$lang['supply_and_drainage_report']}</li>
|
||||
<!--<li data-url="/report/player"><i class="iconfont"></i>会员日结表</li>-->
|
||||
<?php endif; ?>
|
||||
<li data-url="/report/number_tab"><i class="iconfont"></i>{$lang['table_game_query']}</li>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 3) : ?>
|
||||
<li data-url="/report/bet"><i class="iconfont"></i>{$lang['annotation_query']}</li>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 2 || $user_info['account_type'] == 3) : ?>
|
||||
<li data-url="/report/recharge"><i class="iconfont"></i>{$lang['recharge_withdrawal_query']}</li>
|
||||
<?php endif; ?>
|
||||
<li data-url="/report/online_recharge"><i class="iconfont"></i>{$lang['online_recharge_query']}</li>
|
||||
<li data-url="/report/win_total"><i class="iconfont"></i>{$lang['game_report']}</li>
|
||||
<!--<li data-url="/report/xima"><i class="iconfont"></i>洗码查询</li>-->
|
||||
<!--<li data-url="/report/settle"><i class="iconfont"></i>结算查询</li>-->
|
||||
<!--<li data-url="/report/child"><i class="iconfont"></i>下级查询</li>-->
|
||||
<!--<li data-url="/report/commission"><i class="iconfont"></i>代理抽水查询</li>-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu-sub">
|
||||
<div class="list"><i class="iconfont"></i>{$lang['online_management']}</div>
|
||||
<div class="list">
|
||||
<ul>
|
||||
<li data-url="/online/index"><i class="iconfont"></i>{$lang['online_players']}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($user_info['account_type'] == 0) : ?>
|
||||
<div class="menu-sub">
|
||||
<div class="list"><i class="iconfont"></i>{$lang['sub_account_management']}</div>
|
||||
<div class="list">
|
||||
<ul>
|
||||
<li data-url="/sub/index"><i class="iconfont"></i>{$lang['sub_account_list']}</li>
|
||||
<li data-url="/sub/add_sub"><i class="iconfont"></i>{$lang['add_sub_account']}</li>
|
||||
<li data-url="/sub/delete"><i class="iconfont"></i>{$lang['sub_account_deleted']}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($show_market == 1 && !$isLine): ?>
|
||||
<div class="menu-sub">
|
||||
<div class="list"><i class="iconfont"></i>{$lang['promotion']}</div>
|
||||
<div class="list">
|
||||
<ul>
|
||||
<li data-url="/marketing/index"><i class="iconfont"></i>{$lang['promote_QR_codes']}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endIf; ?>
|
||||
<?php if($show_market == 1 && $isLine): ?>
|
||||
<div class="menu-sub">
|
||||
<div class="list"><i class="iconfont"></i>{$lang['line_promote']}</div>
|
||||
<div class="list">
|
||||
<ul>
|
||||
<li data-url="/wt/line_marketing"><i class="iconfont"></i>{$lang['line_promote']}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endIf; ?>
|
||||
<?php if($user_info['username'] == $all_wt_agent) : ?>
|
||||
<div class="menu-sub">
|
||||
<div class="list"><i class="iconfont"></i>{lang['line_management']}</div>
|
||||
<div class="list">
|
||||
<ul>
|
||||
<li data-url="/wt/index"><i class="iconfont"></i>{lang['line_management']}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endIf; ?>
|
||||
</section>
|
||||
</div>
|
||||
<!-- 顶部开始 -->
|
||||
<div class="container">
|
||||
<div class="logo" id="logo"><a href="/index/index"><img src="{$Think.LOGO_PATH}" alt="" height="60"></a></div>
|
||||
<ul class="layui-nav left fast-add" lay-filter="">
|
||||
<li class="layui-nav-item nav-item layui-this" _class="home">
|
||||
<a href="javascript:;">{$lang['personal_center']}</a>
|
||||
</li>
|
||||
<li class="layui-nav-item nav-item" _class="account">
|
||||
<a href="javascript:;">{$lang['account_management']}</a>
|
||||
</li>
|
||||
<li class="layui-nav-item nav-item" _class="report">
|
||||
<a href="javascript:;">{$lang['report_management']}</a>
|
||||
</li>
|
||||
<li class="layui-nav-item nav-item" _class="online">
|
||||
<a href="javascript:;">{$lang['online_management']}</a>
|
||||
</li>
|
||||
<?php if($user_info['account_type'] == 0) : ?>
|
||||
<li class="layui-nav-item nav-item" _class="sub">
|
||||
<a href="javascript:;">{$lang['sub_account_management']}</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($show_market == 1 && !$isLine): ?>
|
||||
|
||||
<li class="layui-nav-item nav-item" _class="marketing">
|
||||
<a href="javascript:;">{$lang['promotion']}</a>
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php if($show_market == 1 && $isLine): ?>
|
||||
<li class="layui-nav-item nav-item" _class="line_marketing">
|
||||
<a href="javascript:;">{$lang['line_promote']}</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['username'] == $all_wt_agent) : ?>
|
||||
<li class="layui-nav-item nav-item" _class="wt">
|
||||
<a href="javascript:;">{lang['line_management']}</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<ul class="layui-nav right" lay-filter="">
|
||||
<li class="layui-nav-item">
|
||||
<a href="javascript:;"><?php if($user_info['sub_name']) : ?><span>{$lang['sub_account']}:{$user_info.sub_name} | </span><?php endif; ?>{$user_info.username}({$user_info.nickname})</a>
|
||||
</li>
|
||||
<?php if($user_info['account_type'] == 0) : ?>
|
||||
<li class="layui-nav-item" onclick="x_admin_show('','/index/password',600,280)">
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>{$lang['change_password']}
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="exit"><a href="/login/logout">{$lang['exit']}</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<!-- 顶部结束 -->
|
||||
<!-- 中部开始 -->
|
||||
<div class="page-content">
|
||||
<div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
|
||||
<div class="left-nav layui-tab-nav" >
|
||||
<ul id="nav">
|
||||
<!-- 个人中心 -->
|
||||
<li class="show-nav home">
|
||||
<a href="javascript:;" _href="/index/admin"><cite>{$lang['personal_homepage']}</cite></a>
|
||||
</li>
|
||||
|
||||
<!-- 账户管理 -->
|
||||
<li class="show-nav account" id="agent">
|
||||
<a href="javascript:;" _href="/agent/index"><cite>{$lang['agent_list']}</cite></a>
|
||||
</li>
|
||||
<li class="show-nav account" id="member">
|
||||
<a href="javascript:;" _href="/player/index"><cite>{$lang['member_list']}</cite></a>
|
||||
</li>
|
||||
<?php if($user_info['agent_parent_id'] == 0 && $user_info['bet_type'] == 2) : ?>
|
||||
<li class="show-nav account" id="manager">
|
||||
<a href="javascript:;" _href="/manager/index"><cite>{$lang['manager_list']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1) : ?>
|
||||
<li class="show-nav account">
|
||||
<a href="javascript:;" _href="/agent/add?parent_id={$user_info.id}"><cite>{$lang['add_agent']}</cite></a>
|
||||
</li>
|
||||
<?php if($user_info['agent_parent_id'] == 0 && $user_info['bet_type'] == 2) : ?>
|
||||
<li class="show-nav account">
|
||||
<a href="javascript:;" _href="/manager/add?parent_id={$user_info.id}"><cite>{$lang['add_manager']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="show-nav account">
|
||||
<a href="javascript:;" _href="/player/add?parent_id={$user_info.id}"><cite>{$lang['add_member']}</cite></a>
|
||||
</li>
|
||||
<li class="show-nav account">
|
||||
<a href="javascript:;" _href="/agent/delete"><cite>{$lang['agent_deleted']}</cite></a>
|
||||
</li>
|
||||
<li class="show-nav account">
|
||||
<a href="javascript:;" _href="/player/delete"><cite>{$lang['member_deleted']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 报表管理 -->
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 3) : ?>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/agent"><cite>{$lang['supply_and_drainage_report']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/settle"><cite>{$lang['settle_report']}</cite></a>
|
||||
</li>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/win_total"><cite>{$lang['game_report']}</cite></a>
|
||||
</li>
|
||||
<!--
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 3) : ?>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/player"><cite>会员日结表</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
-->
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/number_tab"><cite>{$lang['table_game_query']}</cite></a>
|
||||
</li>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 3) : ?>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/bet"><cite>{$lang['annotation_query']}</cite></a>
|
||||
</li>
|
||||
<!--此判断为 总代信用线 记录-->
|
||||
<?php if($user_info['top_agent_type'] == 2 || $user_info['top_agent_type'] == 0) : ?>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/recharge"><cite>{$lang['up_down_score_query']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!--此判断为 总代现金线 并是总代 记录-->
|
||||
<?php if($user_info['top_agent_type'] == 1 || $user_info['agent_level'] == 1) : ?>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/recharge"><cite>{$lang['up_down_score_query']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!--此判断为 总代现金线 记录-->
|
||||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/user_recharge"><cite>{$lang['recharge_query']}</cite></a>
|
||||
</li>
|
||||
<!-- <li class="show-nav report">-->
|
||||
<!-- <a href="javascript:;" _href="/report/online_recharge"><cite>{$lang['online_recharge_query']}</cite></a>-->
|
||||
<!-- </li>-->
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/user_withdraw"><cite>{$lang['withdraw_query']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/game_log"><cite>{$lang['chess_card_game']}</cite></a>
|
||||
</li>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/score_log"><cite>{$lang['chess_card_game_score_log']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<!-- <li class="show-nav report">-->
|
||||
<!-- <a href="javascript:;" _href="/report/online_recharge"><cite>在线充值查询</cite></a>-->
|
||||
<!-- </li>-->
|
||||
|
||||
<!--
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/xima"><cite>洗码结算查询</cite></a>
|
||||
</li>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/settle"><cite>占股结算查询</cite></a>
|
||||
</li>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/child"><cite>下级查询</cite></a>
|
||||
</li>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/commission"><cite>代理抽水查询</cite></a>
|
||||
</li>
|
||||
<li class="show-nav report">
|
||||
<a href="javascript:;" _href="/report/commission_banker"><cite>代理抽佣查询</cite></a>
|
||||
</li>
|
||||
-->
|
||||
<!-- 在线管理 -->
|
||||
<li class="show-nav online">
|
||||
<a href="javascript:;" _href="/online/index"><cite>{$lang['online_players']}</cite></a>
|
||||
</li>
|
||||
<!-- 子账户管理 -->
|
||||
<li class="show-nav sub">
|
||||
<a href="javascript:;" _href="/sub/index"><cite>{$lang['sub_account_list']}</cite></a>
|
||||
</li>
|
||||
<li class="show-nav sub">
|
||||
<a href="javascript:;" _href="/sub/add_sub"><cite>{$lang['add_sub_account']}</cite></a>
|
||||
</li>
|
||||
<li class="show-nav sub">
|
||||
<a href="javascript:;" _href="/sub/delete"><cite>{$lang['sub_account_deleted']}</cite></a>
|
||||
</li>
|
||||
<?php if( $show_market == 1 && !$isLine): ?>
|
||||
<!-- 推广 -->
|
||||
<li class="show-nav marketing">
|
||||
<a href="javascript:;" _href="/marketing/index"><cite>推广</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($show_market == 1 && $isLine): ?>
|
||||
<li class="show-nav line_marketing">
|
||||
<a href="javascript:;" _href="/wt/line_marketing"><cite>{$lang['line_promote']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['username'] == $all_wt_agent) : ?>
|
||||
<li class="show-nav wt">
|
||||
<a href="javascript:;" _href="/wt/index"><cite>{lang['line_management']}</cite></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="layui-tab-title">
|
||||
<li class="home layui-this" id="show-home">{$lang['personal_homepage']}</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<iframe id="iframe" src='/index/admin' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page-content-bg"></div>
|
||||
<div class="lang_box">
|
||||
<span style="color: #000;">lang/语言:</span>
|
||||
<span>
|
||||
<select style="width: 125px;" id="language">
|
||||
<option value="cn" <?php if(isset($langType) && $langType == 'zh-cn') echo 'selected="selected"'; ?> >中文</option>
|
||||
<option value="en" <?php if(isset($langType) && $langType == 'en-us') echo 'selected="selected"'; ?> >English</option>
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
$(function(){
|
||||
//setInterval("getSessionId()",3000);
|
||||
// 多语言切换
|
||||
$('#language').change(function(){
|
||||
var language = $('#language').val();
|
||||
if(language == "cn" || language == "en"){
|
||||
$.get("/login/lang?lang="+language,function(data){
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
});
|
||||
})
|
||||
function getSessionId(){
|
||||
$.ajax({
|
||||
url:'/Index/get_session_id',
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
var dbSessId = data.session_id;
|
||||
var CookieSessId = getCookie('PHPSESSID');
|
||||
if(dbSessId != CookieSessId){
|
||||
//alert('该账号已经在其他地方登陆,即将退出');
|
||||
window.location.href='/login/logout';
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
function getCookie(name) {
|
||||
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
|
||||
if(arr=document.cookie.match(reg)){
|
||||
return unescape(arr[2]);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
// 最顶部导航栏切换
|
||||
$('.nav-item').click(function(){
|
||||
// 切换中级导航栏
|
||||
var _class = $(this).attr('_class');
|
||||
$('.show-nav').hide();
|
||||
$('.'+_class).show();
|
||||
|
||||
// 默认低级导航
|
||||
$('.'+_class).eq(0).trigger('click');
|
||||
});
|
||||
|
||||
$(".mobile-box .menu-sub").click(function(){
|
||||
var isActive = $(this).hasClass('active');
|
||||
if(isActive){
|
||||
$(this).removeClass("active")
|
||||
}else{
|
||||
$(this).addClass("active").siblings().removeClass("active");
|
||||
}
|
||||
})
|
||||
$(".mobile-box .menu-sub li").click(function(){
|
||||
$(this).addClass("on").siblings().removeClass("on")
|
||||
var url = $(this).attr('data-url');
|
||||
$(".mobile-box .menu-box").removeClass("show")
|
||||
$('#iframe').attr('src',url);
|
||||
})
|
||||
$(".mobile-box .menu").click(function(){
|
||||
var isShow= $(".mobile-box .menu-box").hasClass("show");
|
||||
if(isShow){
|
||||
$(".mobile-box .menu-box").removeClass("show")
|
||||
}else{
|
||||
$(".mobile-box .menu-box").addClass("show")
|
||||
}
|
||||
|
||||
})
|
||||
/*禁止ios缩放,双击和双指*/
|
||||
window.onload=function () {
|
||||
document.addEventListener('touchstart',function (event) {
|
||||
if(event.touches.length>1){
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
var lastTouchEnd=0;
|
||||
document.addEventListener('touchend',function (event) {
|
||||
var now=(new Date()).getTime();
|
||||
if(now-lastTouchEnd<=300){
|
||||
event.preventDefault();
|
||||
}
|
||||
lastTouchEnd=now;
|
||||
},false);
|
||||
document.addEventListener('gesturestart', function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
@@ -0,0 +1,116 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<script type="text/javascript">
|
||||
var lang = {$jsonlang};
|
||||
</script>
|
||||
<style>
|
||||
.layui-form-label {
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['current_account' ]}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="username" value="{$user_info.nickname}({$user_info.username})" autocomplete="off" class="layui-input layui-username" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['original_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="password" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['new_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="newPassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['confirm_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="reNewPassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label">
|
||||
</label>
|
||||
<button class="layui-btn" id="submit" type="button">{$lang['submit_now']}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
// 提交登录
|
||||
$('#submit').click(function(){
|
||||
// 获取参数
|
||||
var password = $('#password').val();
|
||||
var newPassword = $('#newPassword').val();
|
||||
var reNewPassword = $('#reNewPassword').val();
|
||||
// 验证参数
|
||||
if(password.length == 0){
|
||||
layer.msg(lang.enter_original_password);
|
||||
return false;
|
||||
}
|
||||
if(newPassword.length == 0){
|
||||
layer.msg(lang.enter_new_password);
|
||||
return false;
|
||||
}
|
||||
if(reNewPassword.length == 0){
|
||||
layer.msg(lang.enter_confirmation_password);
|
||||
return false;
|
||||
}
|
||||
if(newPassword !== reNewPassword){
|
||||
layer.msg(lang.pass_diff);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 发送数据给后台
|
||||
var query = new Object();
|
||||
query.password = password;
|
||||
query.newPassword = newPassword;
|
||||
query.reNewPassword = reNewPassword;
|
||||
$.ajax({
|
||||
url:'/index/change_password',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.msg(data.msg,{time:2000},function(){
|
||||
x_admin_close();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,110 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<script type="text/javascript">
|
||||
var lang = {$jsonlang};
|
||||
</script>
|
||||
<style>
|
||||
.layui-form-label {
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['current_account' ]}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="username" value="{$user_info.nickname}({$user_info.username})" autocomplete="off" class="layui-input layui-username" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['new_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="newPassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['confirm_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="reNewPassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label">
|
||||
</label>
|
||||
<button class="layui-btn" id="submit" type="button">{$lang['submit_now']}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- 隐藏函数 -->
|
||||
<input type="hidden" id="user_id" value="{$user_info.id}">
|
||||
<script>
|
||||
$(function(){
|
||||
// 提交登录
|
||||
$('#submit').click(function(){
|
||||
// 获取参数
|
||||
var user_id = $('#user_id').val();
|
||||
var username = $('#username').val();
|
||||
var newPassword = $('#newPassword').val();
|
||||
var reNewPassword = $('#reNewPassword').val();
|
||||
// 验证参数
|
||||
if(newPassword.length == 0){
|
||||
layer.msg(lang.enter_new_password);
|
||||
return false;
|
||||
}
|
||||
if(reNewPassword.length == 0){
|
||||
layer.msg(lang.enter_confirmation_password);
|
||||
return false;
|
||||
}
|
||||
if(newPassword !== reNewPassword){
|
||||
layer.msg(lang.pass_diff);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 发送数据给后台
|
||||
var query = new Object();
|
||||
query.user_id = user_id;
|
||||
query.username = username;
|
||||
query.newPassword = newPassword;
|
||||
query.reNewPassword = reNewPassword;
|
||||
$.ajax({
|
||||
url:'/index/change_password_child',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.msg(data.msg,{time:2000},function(){
|
||||
x_admin_close();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.x-body{padding-top:20px;width:96%;margin:10px 2%;}
|
||||
.iconfont{color:#5FB878;position:relative;top:-25px;left:-10px;}
|
||||
.username{position:relative;top:-50px;left:20px;}
|
||||
.line-ul{padding-top:20px;}
|
||||
.line-li{border-left:1px solid #ccc;margin-top:18px;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<fieldset class="layui-elem-field">
|
||||
<legend>{$lang['relationship_structure']}</legend>
|
||||
<div class="layui-field-box">
|
||||
<table class="layui-table">
|
||||
<tbody>
|
||||
<ul class="line-ul">
|
||||
{foreach name="$relation" item="vo"}
|
||||
<li class="line-li">
|
||||
<i class="icon iconfont">O</i>
|
||||
<div class="username">
|
||||
<b>{$vo.username}</b>
|
||||
<span>({$vo.nickname})</span>
|
||||
<span style="color:{$vo.color}">({$vo.agent})</span>
|
||||
<div>{$lang['create_time']}:{$vo.reg_time}</div>
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,158 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
</head>
|
||||
<script type="text/javascript">
|
||||
var lang = {$jsonlang};
|
||||
</script>
|
||||
<style>
|
||||
.layui-form-radio {
|
||||
line-height: 16px;
|
||||
margin: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.layui-form-radio>i {
|
||||
margin-right: 4px;
|
||||
font-size: 16px;
|
||||
color: #c2c2c2;
|
||||
}
|
||||
.login{
|
||||
padding-top: 25px;
|
||||
}
|
||||
hr{
|
||||
margin: 5px 0px;
|
||||
}
|
||||
.lang_box{
|
||||
padding: 10px;
|
||||
float: right;
|
||||
}
|
||||
.login .form-label {
|
||||
width: 20%;
|
||||
}
|
||||
.login .layui-input {
|
||||
width: 78%;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body class="login-bg">
|
||||
<div class="container">
|
||||
<div class="page-home">
|
||||
<div class="top_repeat">
|
||||
<div class="lang_box">
|
||||
<span style="color: #fff;">lang/语言:</span>
|
||||
<span>
|
||||
<select style="width: 125px;" id="language">
|
||||
<option value="cn" <?php if(isset($langType) && $langType == 'zh-cn') echo 'selected="selected"'; ?> >中文</option>
|
||||
<option value="en" <?php if(isset($langType) && $langType == 'en-us') echo 'selected="selected"'; ?> >English</option>
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-logo">
|
||||
<img src="{$Think.LOGO_PATH}">
|
||||
</div>
|
||||
<div class="form-wrapper">
|
||||
<div class="login layui-anim layui-anim-up">
|
||||
<div class="message">{$lang['system_name']}</div>
|
||||
<div class="form-wrapper">
|
||||
<form class="layui-form" >
|
||||
<div class="form-label">{$lang['username']}</div>
|
||||
<input name="username" placeholder="{$lang['username']}" id="username" type="text" class="layui-input" >
|
||||
<hr class="hr15">
|
||||
<div class="form-label">{$lang['password']}</div>
|
||||
<input name="password" id="password" placeholder="{$lang['password']}" type="password" class="layui-input">
|
||||
<hr class="hr15">
|
||||
<div class="form-label">{$lang['verification']}</div>
|
||||
<input name="code" id="code" class="layui-input" type="text" lay-verify="required" placeholder="{$lang['verification']}" style="width:130px;">
|
||||
<img id="validateCode" src="/login/validateCode" onclick="this.src=this.src+'?'" style="height: 28px;">
|
||||
<hr class="hr15">
|
||||
<div id="account_type" style=" margin: 5px 0;float: right;padding-right: 12px;">
|
||||
<label style="padding-right: 10px;"><input name="account_type" type="radio" value="0" checked="checked"/>{$lang['agent_login']} </label>
|
||||
<label><input name="account_type" type="radio" value="1" />{$lang['sub_login']} </label>
|
||||
</div>
|
||||
<hr class="hr15">
|
||||
<button class="layui-button" type="button" id="submit">{$lang['login']}</button>
|
||||
<hr class="hr15" >
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
// 多语言切换
|
||||
$('#language').change(function(){
|
||||
var language = $('#language').val();
|
||||
if(language == "cn" || language == "en"){
|
||||
$.get("/login/lang?lang="+language,function(data){
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
});
|
||||
// 提交登录
|
||||
$('#submit').click(function(){
|
||||
// 获取参数
|
||||
var username = $('#username').val();
|
||||
var password = $('#password').val();
|
||||
var code = $('#code').val();
|
||||
var account_type = $('#account_type input[name="account_type"]:checked ').val();
|
||||
// 验证参数
|
||||
if(username.length == 0){
|
||||
layer.msg(lang.empty_username);
|
||||
return false;
|
||||
}
|
||||
if(password.length == 0){
|
||||
layer.msg(lang.empty_password);
|
||||
return false;
|
||||
}
|
||||
if(code.length == 0){
|
||||
layer.msg(lang.empty_validateCode);
|
||||
return false;
|
||||
}
|
||||
if(account_type.length == 0){
|
||||
layer.msg(lang.choose_account_type);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 发送数据给后台
|
||||
var query = new Object();
|
||||
query.username = username;
|
||||
query.password = password;
|
||||
query.code = code;
|
||||
query.account_type = account_type;
|
||||
$.ajax({
|
||||
url:'/login/dologin',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
$('#validateCode').trigger('click');
|
||||
}else if(data.code == 1){
|
||||
location.href = data.url;
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<!-- 底部结束 -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,120 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
|
||||
<meta name="wap-font-scale" content="no">
|
||||
<meta name="full-screen" content="yes">
|
||||
<meta name="x5-fullscreen" content="true">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta http-equiv="Access-Control-Allow-Origin" content="*">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
<meta name="format-detection" content="telephone=no, email=no" />
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="HandheldFriendly" content="true">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="screen-orientation" content="portrait">
|
||||
<meta name="x5-orientation" content="portrait">
|
||||
<meta name="browsermode" content="application">
|
||||
<meta name="x5-page-mode" content="app">
|
||||
<meta name="msapplication-tap-highlight" content="no">
|
||||
<title>注册</title>
|
||||
<!-- <link rel="shortcut icon" href="{$Think.ADMIN_STATIC_DOMAIN}/static/wp.ico" type="image/x-icon" /> -->
|
||||
<link rel="stylesheet" type="text/css" href="/static/wapchip/css/global.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/wapchip/css/public.css{$Think.VERSION_V}">
|
||||
<script type="text/javascript" src="/static/wapchip/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/wapchip/js/public.js{$Think.VERSION_V}"></script>
|
||||
<script type="text/javascript">
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.register .login-btn{margin-top:0.2rem;}
|
||||
</style>
|
||||
</head>
|
||||
<body class="register">
|
||||
<div class="title">
|
||||
<img class="logo" src="/static/agent/images/hc-logo-1.png">
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<i class="icon-img user"></i>
|
||||
<input type="text" id="account" placeholder="请输入账号" autocomplete="off">
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<i class="icon-img password"></i>
|
||||
<input type="password" id="pass" placeholder="请输入密码" autocomplete="off">
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<i class="icon-img password"></i>
|
||||
<input type="password" id="repass" placeholder="再次入密码" autocomplete="off">
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<i class="icon-img password"></i>
|
||||
<input type="text" id="mobile" placeholder="手机号码" autocomplete="off">
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<i class="icon-img password"></i>
|
||||
<input type="text" id="agent" value="{$agent.username}" readonly>
|
||||
</div>
|
||||
<button class="login-btn" id="doregister">注 册</button>
|
||||
<button class="login-btn"><a href="{$loginUrl}">去登陆</a></button>
|
||||
<script type="text/javascript">
|
||||
$(function (){
|
||||
$('#doregister').click(function (){
|
||||
var username = $('#account').val();
|
||||
var pass = $('#pass').val()
|
||||
var repass = $('#repass').val();
|
||||
var mobile = $('#mobile').val();
|
||||
var agent = $('#agent').val();
|
||||
|
||||
if(username == undefined || username.length <= 0){
|
||||
alert_box('请输入账号');
|
||||
return false;
|
||||
}
|
||||
if(pass == undefined || pass.length < 6){
|
||||
alert_box('密码不能小于6个字符');
|
||||
return false;
|
||||
}
|
||||
if(pass != repass){
|
||||
alert_box('两次输入密码不一致');
|
||||
return false;
|
||||
}
|
||||
|
||||
var query = new Object();
|
||||
query.username = username;
|
||||
query.pass = pass;
|
||||
query.repass = repass;
|
||||
query.mobile = mobile;
|
||||
query.agent = agent;
|
||||
|
||||
|
||||
$.ajax({
|
||||
url:'/login/doRegister',
|
||||
data:query,
|
||||
dataType:"json",
|
||||
type:"POST",
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
alert_box(data.msg);
|
||||
setTimeout(function(){
|
||||
window.location.href = data.url;
|
||||
},1000)
|
||||
}else{
|
||||
alert_box(data.msg);
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,218 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box span.margin-left{ width:120px;}
|
||||
.search-box button.margin-left{ width:120px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:10px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/login/tpbet" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<span>开始时间:</span>
|
||||
<input type="text" name="startDate" placeholder="开始时间" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
<span class="margin-left">结束时间:</span>
|
||||
<input type="text" name="endDate" placeholder="结束时间" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
<span style="margin-left:80px;">中奖类型:</span>
|
||||
<select name="brt" class="layui-select">
|
||||
<option value="tie" <?php if(isset($get['brt']) && $get['brt'] == 'tie') echo 'selected="selected"'; ?>>和</option>
|
||||
<option value="pair" <?php if(isset($get['brt']) && $get['brt'] == 'pair') echo 'selected="selected"'; ?>>对子</option>
|
||||
</select>
|
||||
<span class="margin-left">游戏类型:</span>
|
||||
<input class="game_id" type="radio" name="game_id" value="1" title="百家乐" <?php if(isset($get['game_id']) && $get['game_id'] == 1) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="2" title="龙虎斗" <?php if(isset($get['game_id']) && $get['game_id'] == 2) echo 'checked'; ?>>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<button class="layui-btn search-btn">查找</button>
|
||||
<a class="layui-btn search-btn" href="javascript:location.replace(location.href);" title="刷新">刷新</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2" title="今日">今日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1" title="昨日">昨日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4" title="本月">本月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3" title="上月">上月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5" title="全部">全部</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>注单号</th>
|
||||
<th>台类型</th>
|
||||
<th>台号</th>
|
||||
<th>下注时间</th>
|
||||
<th>靴号</th>
|
||||
<th>铺号</th>
|
||||
<th>会员名称[账号]</th>
|
||||
<th style="width:20%;">注单详情</th>
|
||||
<th>开牌结果</th>
|
||||
<th>下注金额</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($bet) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="8"></td>
|
||||
<td>合计</td>
|
||||
<td>{$total.amount}</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$bet" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.id}</td>
|
||||
<td>{$vo.game_name}</td>
|
||||
<td>{$vo.table_name}</td>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.boot_num}</td>
|
||||
<td>{$vo.number}</td>
|
||||
<td>{$vo.nickname}[{$vo.username}]</td>
|
||||
<td>{$vo.bet_detail}</td>
|
||||
<td style="color:{$vo.color}">{$vo.result}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($bet) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">没有数据</div>
|
||||
<?php else: ?>
|
||||
<div class="page"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,200 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.layui-form-radio{margin-right:-20px;margin-left:10px;}
|
||||
.layui-form-label {
|
||||
width: 140px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_parent" class="layui-form-label">{$lang['directly_under']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_parent" value="{$agentParent.username}({$agentParent.nickname})"
|
||||
autocomplete="off" class="layui-input layui-username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['username']}</label>
|
||||
<?php if(!empty($newLetter)): ?>
|
||||
<div class="layui-input-inline" style="width: 240px;">
|
||||
<div style="width: 70px;float: left;">
|
||||
<select id="letter">
|
||||
<?php foreach($newLetter as $key=>$letter): ?>
|
||||
<option value="<?=$letter?>"><?=$letter?></option>
|
||||
<?php endForeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input" style="width:150px; float: left">
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class="layui-input-inline">
|
||||
<input type="hidden" id="letter" value="">
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<?php endIf; ?>
|
||||
<button class="layui-btn" type="button" id="createUsername">{$lang['automatically']}</button>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="nickname" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="password" class="layui-form-label">{$lang['password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="password" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="repassword" class="layui-form-label">{$lang['confirm_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="repassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="mobile" class="layui-form-label">{$lang['mobile']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="mobile" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="mobile" class="layui-form-label">Telegram</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="telegram" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="remark" class="layui-form-label">{$lang['remark']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea type="text" id="remark" autocomplete="off" class="layui-textarea"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<!--<button class="layui-btn" type="button" id="submit">立即提交</button>-->
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
<input type="hidden" id="parent_id" value="{$agentParent.id}">
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
var lang = {$jsonlang};
|
||||
// 系统随机生成用户名
|
||||
$('#createUsername').click(function(){
|
||||
var rand = '';
|
||||
var num = '';
|
||||
for(var i = 0; i < 6; i++){
|
||||
num = Math.floor(Math.random() * 10);
|
||||
rand += num;
|
||||
}
|
||||
$('#username').val(rand);
|
||||
});
|
||||
|
||||
|
||||
// 提交添加会员
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.parent_id = $('#parent_id').val();
|
||||
query.letter = $('#letter').val();
|
||||
query.username = $('#username').val();
|
||||
query.nickname = $('#nickname').val();
|
||||
query.password = $('#password').val();
|
||||
query.repassword = $('#repassword').val();
|
||||
query.mobile = $('#mobile').val();
|
||||
query.telegram = $('#telegram').val();
|
||||
query.remark = $('#remark').val();
|
||||
|
||||
// 验证数据
|
||||
if(query.username.length == 0 || query.username == undefined){
|
||||
layer.alert(lang.empty_username,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
query.username = query.letter+query.username;//重新定义username
|
||||
if(query.nickname.length == 0 || query.nickname == undefined){
|
||||
layer.alert(lang.empty_nickname,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password.length == 0 || query.password == undefined){
|
||||
layer.alert(lang.empty_password,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password.length < 6){
|
||||
layer.alert(lang.new_pass_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password != query.repassword){
|
||||
layer.alert(lang.pass_diff,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
if(query.mobile.length == 0 || query.mobile == undefined){
|
||||
layer.alert(lang.empty_mobile,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
if(query.telegram.length == 0 || query.telegram == undefined){
|
||||
layer.alert(lang.empty_telegram,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url:'/manager/do_add',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
},function(index){
|
||||
layer.close(index);
|
||||
x_admin_show(lang.agent_list,'/manager/index?username='+query.username);
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,102 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.layui-form-radio{margin-right:-20px;margin-left:10px;}
|
||||
.layui-form-label {
|
||||
width: 140px;
|
||||
}
|
||||
/* 下拉多选样式 需要引用*/
|
||||
select[multiple]+.layui-form-select dd{ padding:0;}
|
||||
select[multiple]+.layui-form-select .layui-form-checkbox[lay-skin=primary]{ margin:0 !important; display:block; line-height:36px !important; position:relative; padding-left:26px;}
|
||||
select[multiple]+.layui-form-select .layui-form-checkbox[lay-skin=primary] span{line-height:36px !important; float:none;}
|
||||
select[multiple]+.layui-form-select .layui-form-checkbox[lay-skin=primary] i{ position:absolute; left:10px; top:0; margin-top:9px;}
|
||||
.multiSelect{ line-height:normal; height:auto; padding:4px 10px; overflow:hidden;min-height:38px; margin-top:-38px; left:0; z-index:99;position:relative;background:none;}
|
||||
.multiSelect a{ padding:2px 5px; background:#908e8e; border-radius:2px; color:#fff; display:block; line-height:20px; height:20px; margin:2px 5px 2px 0; float:left;}
|
||||
.multiSelect a span{ float:left;}
|
||||
.multiSelect a i{ float:left; display:block; margin:2px 0 0 2px; border-radius:2px; width:8px; height:8px; background:url('/static/agent/lib/layui/close.png') no-repeat center; background-size:65%; padding:4px;}
|
||||
.multiSelect a i:hover{ background-color:#545556;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="manager_list" class="layui-form-label">{$lang['manager']}</label>
|
||||
<div class="layui-input-inline" style="width: 550px;">
|
||||
<select name="manager_list" id="manager_list" autocomplete="off" class="layui-select" multiple>
|
||||
<option value="">{$lang['select_manager']}</option>
|
||||
{foreach name="manager_list" item="vo"}
|
||||
<option value={$vo.id} >{$vo.nickname}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
<input type="hidden" id="parent_id" value="{$user.id}">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
var lang = {$jsonlang};
|
||||
// 提交添加会员
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.user_id = $('#parent_id').val();
|
||||
query.manager_list = $('#manager_list').val() || [];
|
||||
if(query.manager_list.length == 0){
|
||||
layer.alert(lang.select_manager,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
query.manager_list = query.manager_list.join(",");
|
||||
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url:'/manager/do_agent_manager_add',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
},function(index){
|
||||
layer.close(index);
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,124 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.layui-form-radio{margin-right:-20px;margin-left:10px;}
|
||||
.layui-form-label {
|
||||
width: 140px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="nickname" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input" value="{$user.nickname}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{$lang['mobile']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="mobile" autocomplete="off" class="layui-input" value="{$user.mobile}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">Telegram</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="telegram" autocomplete="off" class="layui-input" value="{$user.telegram}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label for="remark" class="layui-form-label">{$lang['remark']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea type="text" id="remark" autocomplete="off" class="layui-textarea">{$user.remark}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- 隐藏参数 -->
|
||||
<input type="hidden" id="user_id" value="{$user.id}">
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
var lang = {$jsonlang};
|
||||
// 提交编辑代理
|
||||
$('#submit').click(function () {
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.user_id = $('#user_id').val();
|
||||
query.nickname = $('#nickname').val();
|
||||
query.mobile = $('#mobile').val();
|
||||
query.telegram = $('#telegram').val();
|
||||
query.remark = $('#remark').val();
|
||||
|
||||
// 验证数据
|
||||
if (query.nickname.length == 0 || query.nickname == undefined) {
|
||||
layer.alert(lang.empty_nickname,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (query.mobile.length == 0 || query.mobile == undefined) {
|
||||
layer.alert(lang.empty_mobile,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (query.telegram.length == 0 || query.telegram == undefined) {
|
||||
layer.alert(lang.empty_telegram,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url: '/manager/do_edit',
|
||||
data: query,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
success: function (data) {
|
||||
if (data.code == 0) {
|
||||
layer.msg(data.msg);
|
||||
} else if (data.code == 1) {
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
}, function () {
|
||||
x_admin_close();
|
||||
parent.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,129 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<!-- <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/> -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.relation{ text-decoration: underline;}
|
||||
.relation:hover{ color:#807362}
|
||||
.self{ background:rgb(199, 182, 151)}
|
||||
.self:hover{ background:rgb(199, 182, 151) !important;}
|
||||
.layui-form-radio{margin:0;}
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.layui-form-switch em {
|
||||
width: 45px;
|
||||
}
|
||||
.layui-form-onswitch i {
|
||||
left: 48px;
|
||||
}
|
||||
.layui-form-switch {
|
||||
width: 55px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/manager/index" method="get">
|
||||
<input type="hidden" name="agent_id" value="{$user_info.id}">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form" style="overflow: auto;">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>Telegram</th>
|
||||
<th>{$lang['mobile']}</th>
|
||||
<th>{$lang['last_login_time']}</th>
|
||||
<th>{$lang['last_login_ip']}</th>
|
||||
<th>{$lang['remark']}</th>
|
||||
<th>{$lang['create_time']}</th>
|
||||
<th>{$lang['operate']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$manager_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.telegram}</td>
|
||||
<td>{$vo.mobile}</td>
|
||||
<td>{$vo.last_login_time}</td>
|
||||
<td>{$vo.last_login_ip}</td>
|
||||
<td>{$vo.remark}</td>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td class="td-manage">
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.account_editing} > {$vo.username}({$vo.nickname})','/manager/edit?user_id={$vo.id}')">{$lang['account_editing']}</a>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.change_password} > {$vo.username}({$vo.nickname})','/manager/password_manager?id={$vo.id}')">{$lang['change_password']}</a>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($manager_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$manager_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
var lang = {$jsonlang};
|
||||
/*禁止ios缩放,双击和双指*/
|
||||
window.onload=function () {
|
||||
document.addEventListener('touchstart',function (event) {
|
||||
if(event.touches.length>1){
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
var lastTouchEnd=0;
|
||||
document.addEventListener('touchend',function (event) {
|
||||
var now=(new Date()).getTime();
|
||||
if(now-lastTouchEnd<=300){
|
||||
event.preventDefault();
|
||||
}
|
||||
lastTouchEnd=now;
|
||||
},false);
|
||||
document.addEventListener('gesturestart', function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,115 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<!-- <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/> -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.relation{ text-decoration: underline;}
|
||||
.relation:hover{ color:#807362}
|
||||
.self{ background:rgb(199, 182, 151)}
|
||||
.self:hover{ background:rgb(199, 182, 151) !important;}
|
||||
.layui-form-radio{margin:0;}
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.layui-form-switch em {
|
||||
width: 45px;
|
||||
}
|
||||
.layui-form-onswitch i {
|
||||
left: 48px;
|
||||
}
|
||||
.layui-form-switch {
|
||||
width: 55px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<?php if($topAgent['agent_parent_id']): ?>
|
||||
<div class="layui-row" style="padding-top: 10px;">
|
||||
<a class="layui-btn search-btn" style="margin-left: 10px" href="javascript:;" onclick="x_admin_show('{$lang.add_manager}','/manager/add_agent_manager?user_id={$topAgent.id}')">{$lang['add_manager']}</a>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="layui-form" style="overflow: auto;">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>Telegram</th>
|
||||
<th>{$lang['mobile']}</th>
|
||||
<th>{$lang['last_login_time']}</th>
|
||||
<th>{$lang['last_login_ip']}</th>
|
||||
<th>{$lang['remark']}</th>
|
||||
<th>{$lang['create_time']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$manager_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.telegram}</td>
|
||||
<td>{$vo.mobile}</td>
|
||||
<td>{$vo.last_login_time}</td>
|
||||
<td>{$vo.last_login_ip}</td>
|
||||
<td>{$vo.remark}</td>
|
||||
<td>{$vo.create_time}</td>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($manager_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$manager_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
var lang = {$jsonlang};
|
||||
/*禁止ios缩放,双击和双指*/
|
||||
window.onload=function () {
|
||||
document.addEventListener('touchstart',function (event) {
|
||||
if(event.touches.length>1){
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
var lastTouchEnd=0;
|
||||
document.addEventListener('touchend',function (event) {
|
||||
var now=(new Date()).getTime();
|
||||
if(now-lastTouchEnd<=300){
|
||||
event.preventDefault();
|
||||
}
|
||||
lastTouchEnd=now;
|
||||
},false);
|
||||
document.addEventListener('gesturestart', function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,110 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<script type="text/javascript">
|
||||
var lang = {$jsonlang};
|
||||
</script>
|
||||
<style>
|
||||
.layui-form-label {
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['current_account' ]}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="username" value="{$user_info.nickname}({$user_info.username})" autocomplete="off" class="layui-input layui-username" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['new_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="newPassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['confirm_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="reNewPassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label">
|
||||
</label>
|
||||
<button class="layui-btn" id="submit" type="button">{$lang['submit_now']}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- 隐藏函数 -->
|
||||
<input type="hidden" id="user_id" value="{$user_info.id}">
|
||||
<script>
|
||||
$(function(){
|
||||
// 提交登录
|
||||
$('#submit').click(function(){
|
||||
// 获取参数
|
||||
var user_id = $('#user_id').val();
|
||||
var username = $('#username').val();
|
||||
var newPassword = $('#newPassword').val();
|
||||
var reNewPassword = $('#reNewPassword').val();
|
||||
// 验证参数
|
||||
if(newPassword.length == 0){
|
||||
layer.msg(lang.enter_new_password);
|
||||
return false;
|
||||
}
|
||||
if(reNewPassword.length == 0){
|
||||
layer.msg(lang.enter_confirmation_password);
|
||||
return false;
|
||||
}
|
||||
if(newPassword !== reNewPassword){
|
||||
layer.msg(lang.pass_diff);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 发送数据给后台
|
||||
var query = new Object();
|
||||
query.user_id = user_id;
|
||||
query.username = username;
|
||||
query.newPassword = newPassword;
|
||||
query.reNewPassword = reNewPassword;
|
||||
$.ajax({
|
||||
url:'/manager/change_password_manager',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.msg(data.msg,{time:2000},function(){
|
||||
x_admin_close();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,125 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>个人首页</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.qrcode.min.js"></script>
|
||||
<style type="text/css">
|
||||
.layui-field-box{
|
||||
min-width:1280px;
|
||||
padding:0 5%;
|
||||
}
|
||||
.layui-field-box section{
|
||||
margin-bottom:20px;
|
||||
min-width:495px;
|
||||
}
|
||||
.layui-field-box section .item-box{
|
||||
width:40%;
|
||||
background:#F2F2F2;
|
||||
border-radius:5px;
|
||||
position:relative;
|
||||
display:inline-block;
|
||||
}
|
||||
.layui-field-box section .item-box.url-box{
|
||||
border-top:3px solid #f39c12;
|
||||
position:relative;
|
||||
top:-125px;
|
||||
left:5%;
|
||||
}
|
||||
.layui-field-box section .item-box .item-title{
|
||||
height:40px;
|
||||
text-align: center;
|
||||
line-height:40px;
|
||||
font-size:18px;
|
||||
border-bottom:1px solid #ccc;
|
||||
}
|
||||
.layui-field-box section .item-box .item-qrcode #qrcode{
|
||||
width: 205px;
|
||||
height: 205px;
|
||||
margin: 10px auto;
|
||||
position: relative;
|
||||
background: rgb(250, 250, 250);
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
opacity: 1;
|
||||
}
|
||||
.layui-field-box section .item-box .item-qrcode #qrcode canvas{
|
||||
width: 205px;
|
||||
}
|
||||
.layui-field-box section .item-box .item-message{
|
||||
padding:10px;
|
||||
font-size:15px;
|
||||
}
|
||||
.layui-field-box section .item-box .item-message p{
|
||||
padding:10px 0;
|
||||
}
|
||||
.layui-field-box section .item-box .item-url {
|
||||
padding:10px;
|
||||
width:470px;
|
||||
}
|
||||
.layui-field-box section .item-box .item-url input{
|
||||
width:450px;
|
||||
padding:10px;
|
||||
font-size:15px;
|
||||
border:1px solid #ccc;
|
||||
background:#F2F2F2;
|
||||
border-radius:5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<div class="x-body layui-anim layui-anim-up" style="overflow-x: scroll;">
|
||||
<img src="{$Think.LOGO_PATH}" id="logo" style="position:absolute;top:-933px;left:-1000px;">
|
||||
<fieldset class="layui-elem-field">
|
||||
<legend>推广信息</legend>
|
||||
<div class="layui-field-box qrcode-box" >
|
||||
<section>
|
||||
<div class="item-box" style="border-top:3px solid #00a65a;">
|
||||
<div class="item-title">
|
||||
<span>我的专用推广二维码</span>
|
||||
</div>
|
||||
<div class="item-qrcode" >
|
||||
<div id="qrcode"></div>
|
||||
</div>
|
||||
<div class="item-message">
|
||||
<p>我的推荐码:<?=$user_info['referral_code']; ?></p>
|
||||
<p>我的推广链接:<?=$marketingUrl; ?></p>
|
||||
<p>使用方法:在上面的二维码图片上点击右键,选择“图片另存为”,保存二维码图片。</p>
|
||||
<p style="color:red;">说明:用户通过此二维码可注册成为当前代理名下玩家。</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item-box url-box" style="display:none;">
|
||||
<div class="item-title">
|
||||
<span>我的专用推广链接</span>
|
||||
</div>
|
||||
<div class="item-url">
|
||||
<input type="text" value="{$marketingUrl}" readonly>
|
||||
</div>
|
||||
<div class="item-message">
|
||||
<p>使用方法:点击上面的输入框,按下Ctrl+C复制,或者点击鼠标右键后选择“复制”。</p>
|
||||
<p style="color:red;">说明:用户通过此链接访问游戏网站可注册成为当前代理名下玩家。请勿担心玩家将此链接后的代理ID删除后注册,玩家一旦删除代理ID,则无法成功注册。</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="marketingUrl" value="{$marketingUrl}">
|
||||
<script type="text/javascript">
|
||||
window.onload=function(){
|
||||
var marketingUrl = $('#marketingUrl').val();
|
||||
$('#qrcode').qrcode(marketingUrl);
|
||||
$("#qrcode canvas")[0].getContext('2d').drawImage($("#logo")[0], 80, 80, 80, 80);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,313 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.layui-elem-field{border:none;}
|
||||
.layui-field-box{padding:0}
|
||||
.layui-card-body{padding:0}
|
||||
.x-admin-backlog-body div.icon-box{width:50%;height:45px;line-height:45px;}
|
||||
.x-admin-backlog-body div.num-box{width:50%;left:50%;height:45px;top:-46px;background:#fff;border:none;}
|
||||
.x-admin-backlog-body div.num-box a{color:#564b4b;}
|
||||
.x-admin-carousel, .layui-carousel, .x-admin-carousel>[carousel-item]>*{background:#F2F2F2;padding:0;height:45px;}
|
||||
.x-admin-backlog-body{padding:0;height:45px;}
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.search-btn.countDown{width:30px;height:30px;border-radius:100%;padding:0;background:#fff;border:2px solid #AA947D;color:#AA947D;font-weight:bold;font-size:20px;}
|
||||
.layui-col-xs2{width:14%}
|
||||
.member-count{display:none;}
|
||||
.member-count span {
|
||||
padding:0 5px;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'iconfont'; /* project id 493588 */
|
||||
src: url('//at.alicdn.com/t/font_493588_k78dkyec54m.eot');
|
||||
src: url('//at.alicdn.com/t/font_493588_k78dkyec54m.eot?#iefix') format('embedded-opentype'),
|
||||
url('//at.alicdn.com/t/font_493588_k78dkyec54m.woff') format('woff'),
|
||||
url('//at.alicdn.com/t/font_493588_k78dkyec54m.ttf') format('truetype'),
|
||||
url('//at.alicdn.com/t/font_493588_k78dkyec54m.svg#iconfont') format('svg');
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<div class="x-body">
|
||||
<div class="member-count">
|
||||
<span>{$lang['total_num']}:{$totalData.count}</span>
|
||||
<span>{$lang['pc']}:{$totalData.pc}</span>
|
||||
<span>{$lang['ios']}:{$totalData.ios}</span>
|
||||
<span>{$lang['android']}:{$totalData.android}</span>
|
||||
<span>{$lang['web']}:{$totalData.wap}</span>
|
||||
<span>{$lang['wc']}:{$totalData.wx}</span>
|
||||
<span>{$lang['all_bet']}:{$totalData.amount}</span>
|
||||
</div>
|
||||
<fieldset class="layui-elem-field to-hide">
|
||||
<div class="layui-field-box">
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%;height:60px;">
|
||||
<div carousel-item="">
|
||||
<ul class="layui-row layui-col-space14 layui-this">
|
||||
<li class="layui-col-xs2 x-admin-backlog-body">
|
||||
<div class="icon-box bg-blue">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box" id="agent">
|
||||
<a href="javascript:;">
|
||||
<p><b id="count">{$totalData.count}</b></p>
|
||||
<p><b>{$lang['total_num']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="layui-col-xs2 x-admin-backlog-body">
|
||||
<div class="icon-box bg-red">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box">
|
||||
<a href="javascript:;">
|
||||
<p><b id="pc">{$totalData.pc}</b></p>
|
||||
<p><b>{$lang['pc']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="layui-col-xs2 x-admin-backlog-body">
|
||||
<div class="icon-box bg-dark-green">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box" id="member">
|
||||
<a href="javascript:;">
|
||||
<p><b id="ios">{$totalData.ios}</b></p>
|
||||
<p><b>{$lang['ios']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="layui-col-xs2 x-admin-backlog-body">
|
||||
<div class="icon-box bg-yellow-green">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box">
|
||||
<a href="javascript:;">
|
||||
<p><b id="android">{$totalData.android}</b></p>
|
||||
<p><b>{$lang['android']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="layui-col-xs2 x-admin-backlog-body">
|
||||
<div class="icon-box bg-orange">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box">
|
||||
<a href="javascript:;">
|
||||
<p><b id="wap">{$totalData.wap}</b></p>
|
||||
<p><b>{$lang['web']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="layui-col-xs2 x-admin-backlog-body">
|
||||
<div class="icon-box bg-purple">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box">
|
||||
<a href="javascript:;">
|
||||
<p><b id="wx">{$totalData.wx}</b></p>
|
||||
<p><b>{$lang['wc']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="layui-col-xs2 x-admin-backlog-body">
|
||||
<div class="icon-box bg-yellow">
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
<div class="num-box">
|
||||
<a href="javascript:;">
|
||||
<p><b id="amount">{$totalData.amount}</b></p>
|
||||
<p><b>{$lang['all_bet']}</b></p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so search-box" action="/online/index" method="get">
|
||||
<div class="gap">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" id="username" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span >{$lang['client']}:</span>
|
||||
<select name="client" id="client">
|
||||
<option value="">{$lang['client']}</option>
|
||||
<option value="1">{$lang['pc']}</option>
|
||||
<option value="2">{$lang['ios']}</option>
|
||||
<option value="3">{$lang['android']}</option>
|
||||
<option value="4">{$lang['web']}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
<button class="layui-btn search-btn countDown">10</button>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span style="color:red;">{$lang['red_waring']}</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['login_ip']}</th>
|
||||
<th>{$lang['login_time']}</th>
|
||||
<th>{$lang['client']}</th>
|
||||
<th>{$lang['table_num']}</th>
|
||||
<th>{$lang['all_bet']}</th>
|
||||
<th>{$lang['account_balance']}</th>
|
||||
<th>{$lang['operate']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$user_online" item="vo"}
|
||||
{if $vo.is_beat == 1}
|
||||
<tr style="background:#e28282;">
|
||||
{else}
|
||||
<tr>
|
||||
{/if}
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.last_login_ip}</td>
|
||||
<td>{$vo.last_login_time}</td>
|
||||
<td>{$vo.client}</td>
|
||||
<td>{$vo.table_name}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('注单查询','/report/bet?username={$vo.username}&game_id={$vo.game_id}&online=1')">{$lang['details']}</a>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="logout('{$vo.id}')">{$lang['force_offline']}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($user_online) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
// 自动刷新
|
||||
var countDown = 10;
|
||||
var lang = {$jsonlang};
|
||||
setInterval(function(){
|
||||
countDown--;
|
||||
$('.countDown').html(countDown);
|
||||
if(countDown == 0){
|
||||
autoRefresh();
|
||||
countDown = 11;
|
||||
}
|
||||
},1000);
|
||||
function autoRefresh(){
|
||||
var query = new Object();
|
||||
query.username = $('#username').val();
|
||||
query.client = $('#client').val();
|
||||
$.ajax({
|
||||
url:'/online/autoRefresh',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.alert(data.msg);
|
||||
if(data.url){
|
||||
setTimeout(function(){
|
||||
parent.location.href = data.url;
|
||||
},"2000");
|
||||
}
|
||||
return;
|
||||
}
|
||||
var totalData = data.totalData;
|
||||
var user_online = data.user_online;
|
||||
|
||||
// 汇总数据
|
||||
$('#count').html(totalData.count);
|
||||
$('#pc').html(totalData.pc);
|
||||
$('#ios').html(totalData.ios);
|
||||
$('#android').html(totalData.android);
|
||||
$('#wap').html(totalData.wap);
|
||||
$('#wx').html(totalData.wx);
|
||||
$('#amount').html(totalData.amount);
|
||||
|
||||
// 表格数据
|
||||
if(user_online){
|
||||
var str = '';
|
||||
for(var i=0; i<user_online.length; i++){
|
||||
if(user_online[i]['is_beat'] == 1){
|
||||
str += '<tr style="background:#e28282;">';
|
||||
}else{
|
||||
str += '<tr>';
|
||||
}
|
||||
str += '<td>'+user_online[i]['username']+'</td>';
|
||||
str += '<td>'+user_online[i]['nickname']+'</td>';
|
||||
str += '<td>'+user_online[i]['last_login_ip']+'</td>';
|
||||
str += '<td>'+user_online[i]['last_login_time']+'</td>';
|
||||
str += '<td>'+user_online[i]['client']+'</td>';
|
||||
str += '<td>'+user_online[i]['table_name']+'</td>';
|
||||
str += '<td>'+user_online[i]['amount']+'</td>';
|
||||
str += '<td>'+user_online[i]['money']+'</td>';
|
||||
str += '<td>';
|
||||
str += '<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show(\'注单查询\',\'/report/bet?username='+user_online[i]['username']+'&game_id='+user_online[i]['game_id']+'\')">'+lang.details+'</a>';
|
||||
str += '<a class="layui-btn layui-operation" href="javascript:;" onclick="logout('+user_online[i]['id']+')">'+lang.force_offline+'</a>';
|
||||
str += '</td>';
|
||||
str += '</tr>';
|
||||
}
|
||||
$('tbody').empty().append(str);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
// 踢人
|
||||
function logout(id){
|
||||
layer.confirm(lang.sure_offline,function(){
|
||||
$.ajax({
|
||||
url:'/online/logout',
|
||||
data:{user_id:id},
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
layer.alert(data.msg,function(){
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Executable
+900
@@ -0,0 +1,900 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.layui-form-label {
|
||||
width: 200px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_parent" class="layui-form-label">{$lang['superior_account']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_parent" value="{$agentParent.username}({$agentParent.nickname})"
|
||||
autocomplete="off" class="layui-input layui-username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['username']}</label>
|
||||
<?php if(!empty($newLetter)): ?>
|
||||
<div class="layui-input-inline" style="width: 240px;">
|
||||
<div style="width: 70px;float: left;">
|
||||
<select id="letter">
|
||||
<?php foreach($newLetter as $key=>$letter): ?>
|
||||
<option value="<?=$letter?>"><?=$letter?></option>
|
||||
<?php endForeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input" style="width:150px; float: left">
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class="layui-input-inline">
|
||||
<input type="hidden" id="letter" value="">
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<?php endIf; ?>
|
||||
<button class="layui-btn" type="button" id="createUsername">{$lang['automatically']}</button>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="nickname" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="password" class="layui-form-label">{$lang['password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="password" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="repassword" class="layui-form-label">{$lang['confirm_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="repassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">手机</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="mobile" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="username" class="layui-form-label">投注方式</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="bet_type" autocomplete="off" class="layui-select">
|
||||
<option value="3">全部</option>
|
||||
<option value="2">电话投注</option>
|
||||
<option value="1">网络投注</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div class="layui-form-item">
|
||||
<label for="price_banker" class="layui-form-label">{$lang['banker_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_banker" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_banker}">
|
||||
</div>
|
||||
<label for="price_player" class="layui-form-label">{$lang['player_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_player" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_player}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_pair" class="layui-form-label">{$lang['pair_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_pair" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_pair}">
|
||||
</div>
|
||||
<label for="price_tie_baccarat" class="layui-form-label">{$lang['tie_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_baccarat" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tie_baccarat}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['baccarct_tie_odds']}</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_big" class="layui-form-label">{$lang['big_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_big" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_big}">
|
||||
</div>
|
||||
<label for="price_small" class="layui-form-label">{$lang['small_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_small" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_small}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_dragon" class="layui-form-label">{$lang['dragon_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_dragon" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_dragon}">
|
||||
</div>
|
||||
<label for="price_tiger" class="layui-form-label">{$lang['tiger_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tiger" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tiger}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tie_5n" class="layui-form-label">{$lang['five_Lords_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_5n" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_5n}">
|
||||
</div>
|
||||
<label for="price_bomb" class="layui-form-label">押四条赔率</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_bomb" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_bomb}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tie_dt" class="layui-form-label">{$lang['tie_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_dt" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tie_dt}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['dt_tie_odds']}</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_n0_n6" class="layui-form-label">{$lang['cow0_cow6_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_n0_n6" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_n0_n6}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_n7_n9" class="layui-form-label">{$lang['cow7_cow9_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_n7_n9" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_n7_n9}">
|
||||
</div>
|
||||
<label for="price_nn" class="layui-form-label">{$lang['cowcow_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_nn" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_nn}">
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: none;">
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n1" class="layui-form-label">{$lang['tc_cow1_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n1" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_n1}">
|
||||
</div>
|
||||
<label for="price_tc_n2" class="layui-form-label">{$lang['tc_cow2_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n2" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_n2}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n3" class="layui-form-label">{$lang['tc_cow3_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n3" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_n3}">
|
||||
</div>
|
||||
<label for="price_tc_n4" class="layui-form-label">{$lang['tc_cow4_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n4" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_n4}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n5" class="layui-form-label">{$lang['tc_cow5_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n5" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_n5}">
|
||||
</div>
|
||||
<label for="price_tc_n6" class="layui-form-label">{$lang['tc_cow6_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n6" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_n6}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n7" class="layui-form-label">{$lang['tc_cow7_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n7" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_n7}">
|
||||
</div>
|
||||
<label for="price_tc_n8" class="layui-form-label">{$lang['tc_cow8_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n8" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_n8}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n9" class="layui-form-label">{$lang['tc_cow9_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n9" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_n9}">
|
||||
</div>
|
||||
<label for="price_tc_nn" class="layui-form-label">{$lang['tc_cowcow_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_nn" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_nn}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_bz" class="layui-form-label">{$lang['tc_leopard_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_bz" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_bz}">
|
||||
</div>
|
||||
<label for="price_tc_ths" class="layui-form-label">{$lang['tc_straight_flush']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_ths" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_ths}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_hjths" class="layui-form-label">{$lang['tc_royal_flush']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_hjths" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_tc_hjths}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_toning" class="layui-form-label">{$lang['color_disc_price_1']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_toning" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_toning}">
|
||||
</div>
|
||||
<label for="price_toning_0" class="layui-form-label">{$lang['color_disc_price_2']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_toning_0" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_toning_0}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_toning_1" class="layui-form-label">{$lang['color_disc_price_3']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_toning_1" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.price_toning_1}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_small" class="layui-form-label">{$lang['dice_price_small']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_small" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_small}">
|
||||
</div>
|
||||
<label for="dice_price_big" class="layui-form-label">{$lang['dice_price_big']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_big" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_big}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_singular" class="layui-form-label">{$lang['dice_price_singular']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_singular" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_singular}">
|
||||
</div>
|
||||
<label for="dice_price_plural" class="layui-form-label">{$lang['dice_price_plural']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_plural" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_plural}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_11" class="layui-form-label">{$lang['dice_price_two_11']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_11" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_11}">
|
||||
</div>
|
||||
<label for="dice_price_two_22" class="layui-form-label">{$lang['dice_price_two_22']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_22" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_22}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_33" class="layui-form-label">{$lang['dice_price_two_33']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_33" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_33}">
|
||||
</div>
|
||||
<label for="dice_price_two_44" class="layui-form-label">{$lang['dice_price_two_44']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_44" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_44}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_55" class="layui-form-label">{$lang['dice_price_two_55']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_55" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_55}">
|
||||
</div>
|
||||
<label for="dice_price_two_66" class="layui-form-label">{$lang['dice_price_two_66']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_66" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_66}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_leopard" class="layui-form-label">{$lang['dice_price_leopard']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_leopard" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_leopard}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_three_111" class="layui-form-label">{$lang['dice_price_three_111']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_111" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_three_111}">
|
||||
</div>
|
||||
<label for="dice_price_three_222" class="layui-form-label">{$lang['dice_price_three_222']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_222" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_three_222}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_three_333" class="layui-form-label">{$lang['dice_price_three_333']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_333" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_three_333}">
|
||||
</div>
|
||||
<label for="dice_price_three_444" class="layui-form-label">{$lang['dice_price_three_444']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_444" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_three_444}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_three_555" class="layui-form-label">{$lang['dice_price_three_555']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_555" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_three_555}">
|
||||
</div>
|
||||
<label for="dice_price_three_666" class="layui-form-label">{$lang['dice_price_three_666']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_666" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_three_666}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_4" class="layui-form-label">{$lang['dice_price_number_4']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_4" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_4}">
|
||||
</div>
|
||||
<label for="dice_price_number_5" class="layui-form-label">{$lang['dice_price_number_5']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_5" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_5}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_6" class="layui-form-label">{$lang['dice_price_number_6']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_6" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_6}">
|
||||
</div>
|
||||
<label for="dice_price_number_7" class="layui-form-label">{$lang['dice_price_number_7']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_7" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_7}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_8" class="layui-form-label">{$lang['dice_price_number_8']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_8" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_8}">
|
||||
</div>
|
||||
<label for="dice_price_number_9" class="layui-form-label">{$lang['dice_price_number_9']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_9" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_9}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_10" class="layui-form-label">{$lang['dice_price_number_10']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_10" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_10}">
|
||||
</div>
|
||||
<label for="dice_price_number_11" class="layui-form-label">{$lang['dice_price_number_11']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_11" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_11}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_12" class="layui-form-label">{$lang['dice_price_number_12']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_12" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_12}">
|
||||
</div>
|
||||
<label for="dice_price_number_13" class="layui-form-label">{$lang['dice_price_number_13']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_13" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_13}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_14" class="layui-form-label">{$lang['dice_price_number_14']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_14" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_14}">
|
||||
</div>
|
||||
<label for="dice_price_number_15" class="layui-form-label">{$lang['dice_price_number_15']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_15" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_15}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_16" class="layui-form-label">{$lang['dice_price_number_16']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_16" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_16}">
|
||||
</div>
|
||||
<label for="dice_price_number_17" class="layui-form-label">{$lang['dice_price_number_17']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_17" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_number_17}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_12" class="layui-form-label">{$lang['dice_price_two_12']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_12" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_12}">
|
||||
</div>
|
||||
<label for="dice_price_two_13" class="layui-form-label">{$lang['dice_price_two_13']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_13" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_13}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_14" class="layui-form-label">{$lang['dice_price_two_14']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_14" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_14}">
|
||||
</div>
|
||||
<label for="dice_price_two_15" class="layui-form-label">{$lang['dice_price_two_15']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_15" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_15}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_16" class="layui-form-label">{$lang['dice_price_two_16']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_16" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_16}">
|
||||
</div>
|
||||
<label for="dice_price_two_23" class="layui-form-label">{$lang['dice_price_two_23']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_23" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_23}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_24" class="layui-form-label">{$lang['dice_price_two_24']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_24" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_24}">
|
||||
</div>
|
||||
<label for="dice_price_two_25" class="layui-form-label">{$lang['dice_price_two_25']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_25" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_25}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_26" class="layui-form-label">{$lang['dice_price_two_26']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_26" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_26}">
|
||||
</div>
|
||||
<label for="dice_price_two_34" class="layui-form-label">{$lang['dice_price_two_34']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_34" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_34}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_35" class="layui-form-label">{$lang['dice_price_two_35']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_35" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_35}">
|
||||
</div>
|
||||
<label for="dice_price_two_36" class="layui-form-label">{$lang['dice_price_two_36']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_36" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_36}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_45" class="layui-form-label">{$lang['dice_price_two_45']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_45" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_45}">
|
||||
</div>
|
||||
<label for="dice_price_two_46" class="layui-form-label">{$lang['dice_price_two_46']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_46" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_46}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_56" class="layui-form-label">{$lang['dice_price_two_56']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_56" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_two_56}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_once" class="layui-form-label">{$lang['dice_price_once']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_once" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_once}">
|
||||
</div>
|
||||
<label for="dice_price_double" class="layui-form-label">{$lang['dice_price_double']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_double" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_double}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_triple" class="layui-form-label">{$lang['dice_price_triple']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_triple" autocomplete="off" class="layui-input readonly" readonly value="{$agentParent.dice_price_triple}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low" class="layui-form-label">{$lang['min_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low" autocomplete="off" class="layui-input" value="{$agentParent.limit_low}">
|
||||
</div>
|
||||
<label for="limit_high" class="layui-form-label">{$lang['max_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high" autocomplete="off" class="layui-input" value="{$agentParent.limit_high}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_tie" class="layui-form-label">{$lang['min_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_tie" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_tie}">
|
||||
</div>
|
||||
<label for="limit_high_tie" class="layui-form-label">{$lang['max_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_tie" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_tie}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_pair" class="layui-form-label">{$lang['min_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_pair" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_pair}">
|
||||
</div>
|
||||
<label for="limit_high_pair" class="layui-form-label">{$lang['max_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_pair" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_pair}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_nn}">
|
||||
</div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_nn}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="win_limit" class="layui-form-label">{$lang['daily_win_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="win_limit" autocomplete="off" class="layui-input" value="0">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['unrestricted']}</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">上级代理抽水</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission" autocomplete="off" class="layui-input" value="0">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">(%)百家乐</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">上级代理抽水</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission_dt" autocomplete="off" class="layui-input" value="0">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">(%)龙虎</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">上级代理抽水</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission_nn" autocomplete="off" class="layui-input" value="0">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">(%)牛牛</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">上级代理系统抽水</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission_tc" autocomplete="off" class="layui-input" value="0">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">(%)三卡牛牛</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">上级代理庄家抽佣</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission_tc_banker" autocomplete="off" class="layui-input" value="0">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">(%)三卡牛牛</div>
|
||||
</div>
|
||||
-->
|
||||
<?php if($user_info['agent_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv" class="layui-form-label">{$lang['baccarat']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv" value="{$agentParent.agent_ximalv}" autocomplete="off"
|
||||
class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_baccacat_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv}%</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_dt" class="layui-form-label">{$lang['dt']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_dt" value="{$agentParent.agent_ximalv_dt}" autocomplete="off"
|
||||
class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_dt_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv_dt}%</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_nn" class="layui-form-label">{$lang['cow']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_nn" value="{$agentParent.agent_ximalv_nn}" autocomplete="off"
|
||||
class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_cow_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv_nn}%</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="display: none;">
|
||||
<label for="agent_ximalv_tc" class="layui-form-label">{$lang['three_card']} {$lang['rate']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_tc" value="{$agentParent.agent_ximalv_tc}" autocomplete="off"
|
||||
class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_tc_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv_tc}%</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['agent_type'] == 1) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="rebate_rate" class="layui-form-label">{$lang['rebate_rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="rebate_rate" value="0" autocomplete="off"
|
||||
class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_rate_word']}(%)。{$lang['default']} {$agentParent.rebate_rate}%</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['bet_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['manager']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="manager_id" autocomplete="off" class="layui-select">
|
||||
<option value="">{$lang['select_manager']}</option>
|
||||
{foreach name="manager_list" item="vo"}
|
||||
<option value={$vo.id} >{$vo.nickname}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="remark" class="layui-form-label">{$lang['remark']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea type="text" id="remark" autocomplete="off" class="layui-textarea"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<!--<button class="layui-btn" type="button" id="submit">立即提交</button>-->
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
<input type="hidden" id="parent_id" value="{$agentParent.id}">
|
||||
<input type="hidden" id="parent_bet_type" value="{$agentParent.bet_type}">
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
var lang = {$jsonlang};
|
||||
// 系统随机生成用户名
|
||||
$('#createUsername').click(function(){
|
||||
var rand = '';
|
||||
var num = '';
|
||||
for(var i = 0; i < 9; i++){
|
||||
num = Math.floor(Math.random() * 10);
|
||||
rand += num;
|
||||
}
|
||||
$('#username').val(rand);
|
||||
});
|
||||
|
||||
|
||||
// 提交添加代理
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.parent_id = $('#parent_id').val();
|
||||
query.letter = $('#letter').val();
|
||||
query.username = $('#username').val();
|
||||
query.nickname = $('#nickname').val();
|
||||
query.password = $('#password').val();
|
||||
query.repassword = $('#repassword').val();
|
||||
//query.mobile = $('#mobile').val();
|
||||
//query.bet_type = $('#bet_type').val();
|
||||
query.limit_low = $('#limit_low').val();
|
||||
query.limit_high = $('#limit_high').val();
|
||||
query.limit_low_tie = $('#limit_low_tie').val();
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.win_limit = $('#win_limit').val();
|
||||
query.agent_commission = $('#agent_commission').val();
|
||||
query.agent_commission_dt = $('#agent_commission_dt').val();
|
||||
query.agent_commission_nn = $('#agent_commission_nn').val();
|
||||
query.agent_commission_tc = $('#agent_commission_tc').val();
|
||||
query.agent_commission_tc_banker = $('#agent_commission_tc_banker').val();
|
||||
query.agent_ximalv = $('#agent_ximalv').val() || 0;
|
||||
query.agent_ximalv_dt = $('#agent_ximalv_dt').val() || 0;
|
||||
query.agent_ximalv_nn = $('#agent_ximalv_nn').val() || 0;
|
||||
query.agent_ximalv_tc = $('#agent_ximalv_tc').val() || 0;
|
||||
query.rebate_rate = $('#rebate_rate').val() || 0;
|
||||
query.manager_id = $('#manager_id').val() || 0;
|
||||
query.remark = $('#remark').val();
|
||||
|
||||
// 验证数据
|
||||
if(query.username.length == 0 || query.username == undefined){
|
||||
layer.alert(lang.empty_username,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
query.username = query.letter+query.username;
|
||||
if(query.nickname.length == 0 || query.nickname == undefined){
|
||||
layer.alert(lang.empty_nickname,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password.length == 0 || query.password == undefined){
|
||||
layer.alert(lang.empty_password,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password.length < 6){
|
||||
layer.alert(lang.new_pass_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password != query.repassword){
|
||||
layer.alert(lang.pass_diff,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
/*
|
||||
if(query.mobile.length == 0 || query.mobile == undefined){
|
||||
layer.alert('请输入手机');
|
||||
query.mobile = 0;
|
||||
}
|
||||
if(query.bet_type.length == 0 || query.bet_type == undefined){
|
||||
layer.alert('请选择投注方式');
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
if(query.limit_low.length == 0 || query.limit_low == undefined){
|
||||
layer.alert(lang.empty_min_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high.length == 0 || query.limit_high == undefined){
|
||||
layer.alert(lang.empty_max_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_tie.length == 0 || query.limit_low_tie == undefined){
|
||||
layer.alert(lang.empty_min_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_tie.length == 0 || query.limit_high_tie == undefined){
|
||||
layer.alert(lang.empty_max_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_pair.length == 0 || query.limit_low_pair == undefined){
|
||||
layer.alert(lang.empty_min_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_pair.length == 0 || query.limit_high_pair == undefined){
|
||||
layer.alert(lang.empty_max_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.win_limit.length == 0 || query.win_limit == undefined){
|
||||
layer.alert(lang.empty_day_win_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
/*
|
||||
if(query.agent_commission.length == 0 || query.agent_commission == undefined){
|
||||
layer.alert('请输入上级代理抽水(百家乐)');
|
||||
return false;
|
||||
}
|
||||
if(query.agent_commission_dt.length == 0 || query.agent_commission_dt == undefined){
|
||||
layer.alert('请输入上级代理抽水(龙虎)');
|
||||
return false;
|
||||
}
|
||||
if(query.agent_commission_nn.length == 0 || query.agent_commission_nn == undefined){
|
||||
layer.alert('请输入上级代理抽水(牛牛)');
|
||||
return false;
|
||||
}
|
||||
if(query.agent_commission_tc.length == 0 || query.agent_commission_tc == undefined){
|
||||
layer.alert('请输入上级代理系统抽水(三卡牛牛)');
|
||||
return false;
|
||||
}
|
||||
if(query.agent_commission_tc_banker.length == 0 || query.agent_commission_tc_banker == undefined){
|
||||
layer.alert('请输入上级代理庄家抽佣(三卡牛牛)');
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
if(query.agent_ximalv.length == 0 || query.agent_ximalv == undefined){
|
||||
layer.alert(lang.empty_baccacat_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_dt.length == 0 || query.agent_ximalv_dt == undefined){
|
||||
layer.alert(lang.empty_dt_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_nn.length == 0 || query.agent_ximalv_nn == undefined){
|
||||
layer.alert(lang.empty_cow_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_tc.length == 0 || query.agent_ximalv_tc == undefined){
|
||||
layer.alert(lang.empty_tc_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
var parent_bet_type = $('#parent_bet_type').val();
|
||||
if(parent_bet_type == 2){
|
||||
if(!query.manager_id){
|
||||
layer.alert(lang.select_manager,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url:'/player/do_add',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
},function(index){
|
||||
layer.close(index);
|
||||
x_admin_show(lang.member_list,'/player/index?username='+query.username);
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,74 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/player/delete" method="get">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
<input type="hidden" name="agent_parent_id" value="{$user_info.id}">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['superior_account']}</th>
|
||||
<th style="width:15%;">{$lang['recent_recharge']}</th>
|
||||
<th style="width:15%;">{$lang['account_balance']}</th>
|
||||
<th style="width:15%;">{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']}/{$lang['three_card']} {$lang['washing_rate']}</th>
|
||||
<th>{$lang['create_time']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$player_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.agentParent}</td>
|
||||
<td>{$vo.last_recharge}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.agent_ximalv}/{$vo.agent_ximalv_dt}/{$vo.agent_ximalv_nn}</td>
|
||||
<td>{$vo.reg_time}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($player_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$player_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Executable
+818
@@ -0,0 +1,818 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.layui-form-label {
|
||||
width: 200px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label for="nickname" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input" value="{$user.nickname}" placeholder="{$lang['empty_nickname']}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux nickname"></div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">手机</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="mobile" autocomplete="off" class="layui-input" value="{$user.mobile}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux mobile"></div>
|
||||
<label class="layui-form-label">投注方式</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="bet_type" autocomplete="off" class="layui-select">
|
||||
<option value="3" <?php if($user['bet_type'] == 3) echo 'selected="selected"'; ?>>全部</option>
|
||||
<option value="2" <?php if($user['bet_type'] == 2) echo 'selected="selected"'; ?>>电话投注</option>
|
||||
<option value="1" <?php if($user['bet_type'] == 1) echo 'selected="selected"'; ?>>网络投注</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div class="layui-form-item">
|
||||
<label for="win_limit" class="layui-form-label">{$lang['daily_win_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="win_limit" autocomplete="off" class="layui-input" value="{$user.win_limit}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux win_limit">{$lang['unrestricted']}</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">上级代理抽水</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission" autocomplete="off" class="layui-input" value="{$user.agent_commission}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux win_limit">(%)百家乐</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">上级代理抽水</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission_dt" autocomplete="off" class="layui-input" value="{$user.agent_commission_dt}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux win_limit">(%)龙虎</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">上级代理抽水</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission_nn" autocomplete="off" class="layui-input" value="{$user.agent_commission_nn}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux win_limit">(%)牛牛</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">上级代理抽水</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission_tc" autocomplete="off" class="layui-input" value="{$user.agent_commission_tc}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux win_limit">(%)三卡牛牛</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">上级代理抽佣</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_commission_tc_banker" autocomplete="off" class="layui-input" value="{$user.agent_commission_tc_banker}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux win_limit">(%)三卡牛牛</div>
|
||||
</div>
|
||||
-->
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low" class="layui-form-label">{$lang['min_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low" autocomplete="off" class="layui-input" value="{$user.limit_low}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_low"></div>
|
||||
<label for="limit_high" class="layui-form-label">{$lang['max_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high" autocomplete="off" class="layui-input" value="{$user.limit_high}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_high"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_tie" class="layui-form-label">{$lang['min_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_tie" autocomplete="off" class="layui-input" value="{$user.limit_low_tie}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_low_tie"></div>
|
||||
<label for="limit_high_tie" class="layui-form-label">{$lang['max_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_tie" autocomplete="off" class="layui-input" value="{$user.limit_high_tie}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_high_tie"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_pair" class="layui-form-label">{$lang['min_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_pair" autocomplete="off" class="layui-input" value="{$user.limit_low_pair}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_low_pair"></div>
|
||||
<label for="limit_high_pair" class="layui-form-label">{$lang['max_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_pair" autocomplete="off" class="layui-input" value="{$user.limit_high_pair}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_high_pair"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" class="layui-input" value="{$user.limit_low_nn}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_low_nn"></div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" class="layui-input" value="{$user.limit_high_nn}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_high_nn"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_banker" class="layui-form-label">{$lang['banker_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_banker" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_banker}">
|
||||
</div>
|
||||
<label for="price_player" class="layui-form-label">{$lang['player_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_player" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_player}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_pair" class="layui-form-label">{$lang['pair_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_pair" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_pair}">
|
||||
</div>
|
||||
<label for="price_tie_baccarat" class="layui-form-label">{$lang['tie_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_baccarat" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tie_baccarat}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['baccarct_tie_odds']}</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_big" class="layui-form-label">{$lang['big_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_big" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_big}">
|
||||
</div>
|
||||
<label for="price_small" class="layui-form-label">{$lang['small_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_small" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_small}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_dragon" class="layui-form-label">{$lang['dragon_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_dragon" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_dragon}">
|
||||
</div>
|
||||
<label for="price_tiger" class="layui-form-label">{$lang['tiger_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tiger" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tiger}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tie_5n" class="layui-form-label">{$lang['five_Lords_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_5n" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_5n}">
|
||||
</div>
|
||||
<label for="price_bomb" class="layui-form-label">押四条赔率</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_bomb" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_bomb}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tie_dt" class="layui-form-label">{$lang['tie_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tie_dt" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tie_dt}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['dt_tie_odds']}</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_n0_n6" class="layui-form-label">{$lang['cow0_cow6_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_n0_n6" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_n0_n6}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_n7_n9" class="layui-form-label">{$lang['cow7_cow9_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_n7_n9" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_n7_n9}">
|
||||
</div>
|
||||
<label for="price_nn" class="layui-form-label">{$lang['cowcow_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_nn" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_nn}">
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: none;">
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n1" class="layui-form-label">{$lang['tc_cow1_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n1" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_n1}">
|
||||
</div>
|
||||
<label for="price_tc_n2" class="layui-form-label">{$lang['tc_cow2_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n2" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_n2}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n3" class="layui-form-label">{$lang['tc_cow3_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n3" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_n3}">
|
||||
</div>
|
||||
<label for="price_tc_n4" class="layui-form-label">{$lang['tc_cow4_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n4" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_n4}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n5" class="layui-form-label">{$lang['tc_cow5_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n5" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_n5}">
|
||||
</div>
|
||||
<label for="price_tc_n6" class="layui-form-label">{$lang['tc_cow6_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n6" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_n6}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n7" class="layui-form-label">{$lang['tc_cow7_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n7" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_n7}">
|
||||
</div>
|
||||
<label for="price_tc_n8" class="layui-form-label">{$lang['tc_cow8_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n8" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_n8}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_n9" class="layui-form-label">{$lang['tc_cow9_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_n9" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_n9}">
|
||||
</div>
|
||||
<label for="price_tc_nn" class="layui-form-label">{$lang['tc_cowcow_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_nn" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_nn}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_bz" class="layui-form-label">{$lang['tc_leopard_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_bz" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_bz}">
|
||||
</div>
|
||||
<label for="price_tc_ths" class="layui-form-label">{$lang['tc_straight_flush']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_ths" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_ths}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_tc_hjths" class="layui-form-label">{$lang['tc_royal_flush']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_tc_hjths" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_tc_hjths}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_toning" class="layui-form-label">{$lang['color_disc_price_1']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_toning" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_toning}">
|
||||
</div>
|
||||
<label for="price_toning_0" class="layui-form-label">{$lang['color_disc_price_2']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_toning_0" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_toning_0}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_toning_1" class="layui-form-label">{$lang['color_disc_price_3']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="price_toning_1" autocomplete="off" class="layui-input readonly" readonly value="{$user.price_toning_1}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_small" class="layui-form-label">{$lang['dice_price_small']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_small" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_small}">
|
||||
</div>
|
||||
<label for="dice_price_big" class="layui-form-label">{$lang['dice_price_big']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_big" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_big}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_singular" class="layui-form-label">{$lang['dice_price_singular']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_singular" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_singular}">
|
||||
</div>
|
||||
<label for="dice_price_plural" class="layui-form-label">{$lang['dice_price_plural']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_plural" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_plural}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_11" class="layui-form-label">{$lang['dice_price_two_11']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_11" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_11}">
|
||||
</div>
|
||||
<label for="dice_price_two_22" class="layui-form-label">{$lang['dice_price_two_22']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_22" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_22}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_33" class="layui-form-label">{$lang['dice_price_two_33']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_33" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_33}">
|
||||
</div>
|
||||
<label for="dice_price_two_44" class="layui-form-label">{$lang['dice_price_two_44']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_44" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_44}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_55" class="layui-form-label">{$lang['dice_price_two_55']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_55" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_55}">
|
||||
</div>
|
||||
<label for="dice_price_two_66" class="layui-form-label">{$lang['dice_price_two_66']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_66" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_66}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_leopard" class="layui-form-label">{$lang['dice_price_leopard']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_leopard" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_leopard}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_three_111" class="layui-form-label">{$lang['dice_price_three_111']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_111" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_three_111}">
|
||||
</div>
|
||||
<label for="dice_price_three_222" class="layui-form-label">{$lang['dice_price_three_222']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_222" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_three_222}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_three_333" class="layui-form-label">{$lang['dice_price_three_333']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_333" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_three_333}">
|
||||
</div>
|
||||
<label for="dice_price_three_444" class="layui-form-label">{$lang['dice_price_three_444']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_444" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_three_444}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_three_555" class="layui-form-label">{$lang['dice_price_three_555']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_555" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_three_555}">
|
||||
</div>
|
||||
<label for="dice_price_three_666" class="layui-form-label">{$lang['dice_price_three_666']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_three_666" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_three_666}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_4" class="layui-form-label">{$lang['dice_price_number_4']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_4" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_4}">
|
||||
</div>
|
||||
<label for="dice_price_number_5" class="layui-form-label">{$lang['dice_price_number_5']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_5" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_5}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_6" class="layui-form-label">{$lang['dice_price_number_6']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_6" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_6}">
|
||||
</div>
|
||||
<label for="dice_price_number_7" class="layui-form-label">{$lang['dice_price_number_7']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_7" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_7}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_8" class="layui-form-label">{$lang['dice_price_number_8']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_8" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_8}">
|
||||
</div>
|
||||
<label for="dice_price_number_9" class="layui-form-label">{$lang['dice_price_number_9']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_9" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_9}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_10" class="layui-form-label">{$lang['dice_price_number_10']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_10" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_10}">
|
||||
</div>
|
||||
<label for="dice_price_number_11" class="layui-form-label">{$lang['dice_price_number_11']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_11" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_11}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_12" class="layui-form-label">{$lang['dice_price_number_12']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_12" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_12}">
|
||||
</div>
|
||||
<label for="dice_price_number_13" class="layui-form-label">{$lang['dice_price_number_13']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_13" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_13}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_14" class="layui-form-label">{$lang['dice_price_number_14']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_14" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_14}">
|
||||
</div>
|
||||
<label for="dice_price_number_15" class="layui-form-label">{$lang['dice_price_number_15']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_15" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_15}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_number_16" class="layui-form-label">{$lang['dice_price_number_16']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_16" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_16}">
|
||||
</div>
|
||||
<label for="dice_price_number_17" class="layui-form-label">{$lang['dice_price_number_17']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_number_17" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_number_17}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_12" class="layui-form-label">{$lang['dice_price_two_12']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_12" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_12}">
|
||||
</div>
|
||||
<label for="dice_price_two_13" class="layui-form-label">{$lang['dice_price_two_13']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_13" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_13}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_14" class="layui-form-label">{$lang['dice_price_two_14']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_14" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_14}">
|
||||
</div>
|
||||
<label for="dice_price_two_15" class="layui-form-label">{$lang['dice_price_two_15']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_15" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_15}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_16" class="layui-form-label">{$lang['dice_price_two_16']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_16" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_16}">
|
||||
</div>
|
||||
<label for="dice_price_two_23" class="layui-form-label">{$lang['dice_price_two_23']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_23" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_23}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_24" class="layui-form-label">{$lang['dice_price_two_24']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_24" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_24}">
|
||||
</div>
|
||||
<label for="dice_price_two_25" class="layui-form-label">{$lang['dice_price_two_25']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_25" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_25}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_26" class="layui-form-label">{$lang['dice_price_two_26']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_26" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_26}">
|
||||
</div>
|
||||
<label for="dice_price_two_34" class="layui-form-label">{$lang['dice_price_two_34']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_34" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_34}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_35" class="layui-form-label">{$lang['dice_price_two_35']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_35" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_35}">
|
||||
</div>
|
||||
<label for="dice_price_two_36" class="layui-form-label">{$lang['dice_price_two_36']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_36" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_36}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_45" class="layui-form-label">{$lang['dice_price_two_45']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_45" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_45}">
|
||||
</div>
|
||||
<label for="dice_price_two_46" class="layui-form-label">{$lang['dice_price_two_46']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_46" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_46}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_two_56" class="layui-form-label">{$lang['dice_price_two_56']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_two_56" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_two_56}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_once" class="layui-form-label">{$lang['dice_price_once']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_once" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_once}">
|
||||
</div>
|
||||
<label for="dice_price_double" class="layui-form-label">{$lang['dice_price_double']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_double" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_double}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="dice_price_triple" class="layui-form-label">{$lang['dice_price_triple']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="dice_price_triple" autocomplete="off" class="layui-input readonly" readonly value="{$user.dice_price_triple}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- 信用线展示码率 -->
|
||||
<?php if($user['agent_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv" class="layui-form-label">{$lang['baccarat']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv" value="{$user.agent_ximalv}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_dt" class="layui-form-label">{$lang['dt']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_dt" value="{$user.agent_ximalv_dt}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_nn" class="layui-form-label">{$lang['cow']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_nn" value="{$user.agent_ximalv_nn}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="display: none;">
|
||||
<label for="agent_ximalv_tc" class="layui-form-label">{$lang['three_card']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_tc" value="{$user.agent_ximalv_tc}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($user['agent_type'] == 1) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="rebate_rate" class="layui-form-label" >{$lang['rebate_rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="rebate_rate" value="{$user.rebate_rate}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['bet_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="manager_id" class="layui-form-label">{$lang['manager']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="manager_id" autocomplete="off" class="layui-select">
|
||||
<option value="">{$lang['select_manager']}</option>
|
||||
{foreach name="manager_list" item="vo"}
|
||||
<option value="{$vo.id}" <?php if($user['manager_id'] == $vo['id']) echo 'selected="selected"'; ?> >{$vo.nickname}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="remark" class="layui-form-label">{$lang['remark']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea type="text" id="remark" autocomplete="off" class="layui-textarea">{$user.remarks}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<!--<button class="layui-btn" type="button" id="submit">立即提交</button>-->
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- 隐藏参数 -->
|
||||
<input type="hidden" id="parent_id" value="{$user.agent_parent_id}">
|
||||
<input type="hidden" id="parent_bet_type" value="{$agent_parent.bet_type}">
|
||||
<input type="hidden" id="user_id" value="{$user.id}">
|
||||
<input type="hidden" id="hidden_limit_low" value="{$agent_parent.limit_low}">
|
||||
<input type="hidden" id="hidden_limit_high" value="{$agent_parent.limit_high}">
|
||||
<input type="hidden" id="hidden_limit_low_tie" value="{$agent_parent.limit_low_tie}">
|
||||
<input type="hidden" id="hidden_limit_high_tie" value="{$agent_parent.limit_high_tie}">
|
||||
<input type="hidden" id="hidden_limit_low_pair" value="{$agent_parent.limit_low_pair}">
|
||||
<input type="hidden" id="hidden_limit_high_pair" value="{$agent_parent.limit_high_pair}">
|
||||
<input type="hidden" id="hidden_limit_low_nn" value="{$agent_parent.limit_low_nn}">
|
||||
<input type="hidden" id="hidden_limit_high_nn" value="{$agent_parent.limit_high_nn}">
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
// 提交编辑会员
|
||||
var lang = {$jsonlang};
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.parent_id = $('#parent_id').val();
|
||||
query.user_id = $('#user_id').val();
|
||||
query.nickname = $('#nickname').val();
|
||||
//query.mobile = $('#mobile').val();
|
||||
//query.bet_type = $('#bet_type').val();
|
||||
query.win_limit = $('#win_limit').val();
|
||||
/*
|
||||
query.agent_commission = $('#agent_commission').val();
|
||||
query.agent_commission_dt = $('#agent_commission_dt').val();
|
||||
query.agent_commission_nn = $('#agent_commission_nn').val();
|
||||
query.agent_commission_tc = $('#agent_commission_tc').val();
|
||||
query.agent_commission_tc_banker = $('#agent_commission_tc_banker').val();
|
||||
*/
|
||||
query.limit_low = $('#limit_low').val();
|
||||
query.limit_high = $('#limit_high').val();
|
||||
query.limit_low_tie = $('#limit_low_tie').val();
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.agent_ximalv = $('#agent_ximalv').val() || 0;
|
||||
query.agent_ximalv_dt = $('#agent_ximalv_dt').val() || 0;
|
||||
query.agent_ximalv_nn = $('#agent_ximalv_nn').val() || 0;
|
||||
query.agent_ximalv_tc = $('#agent_ximalv_tc').val() || 0;
|
||||
query.rebate_rate = $('#rebate_rate').val();
|
||||
query.manager_id = $('#manager_id').val() || 0;
|
||||
query.remark = $('#remark').val();
|
||||
|
||||
// 验证数据
|
||||
if(query.nickname.length == 0 || query.nickname == undefined){
|
||||
layer.alert(lang.empty_nickname,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
/*
|
||||
if(query.mobile.length == 0 || query.mobile == undefined){
|
||||
layer.alert('请输入手机');
|
||||
return false;
|
||||
}
|
||||
if(query.bet_type.length == 0 || query.bet_type == undefined){
|
||||
layer.alert('请选择投注方式');
|
||||
return false;
|
||||
}
|
||||
if(query.agent_commission.length == 0 || query.agent_commission == undefined){
|
||||
layer.alert('请输入上级代理抽水(百家乐)');
|
||||
return false;
|
||||
}
|
||||
if(query.agent_commission_dt.length == 0 || query.agent_commission_dt == undefined){
|
||||
layer.alert('请输入上级代理抽水(龙虎)');
|
||||
return false;
|
||||
}
|
||||
if(query.agent_commission_nn.length == 0 || query.agent_commission_nn == undefined){
|
||||
layer.alert('请输入上级代理抽水(牛牛)');
|
||||
return false;
|
||||
}
|
||||
if(query.agent_commission_tc.length == 0 || query.agent_commission_tc == undefined){
|
||||
layer.alert('请输入上级代理抽水(三卡牛牛)');
|
||||
return false;
|
||||
}
|
||||
if(query.agent_commission_tc_banker.length == 0 || query.agent_commission_tc_banker == undefined){
|
||||
layer.alert('请输入上级代理抽佣(三卡牛牛)');
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
if(query.win_limit.length == 0 || query.win_limit == undefined){
|
||||
layer.alert(lang.empty_day_win_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low.length == 0 || query.limit_low == undefined){
|
||||
layer.alert(lang.empty_min_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high.length == 0 || query.limit_high == undefined){
|
||||
layer.alert(lang.empty_max_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_tie.length == 0 || query.limit_low_tie == undefined){
|
||||
layer.alert(lang.empty_min_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_tie.length == 0 || query.limit_high_tie == undefined){
|
||||
layer.alert(lang.empty_max_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_pair.length == 0 || query.limit_low_pair == undefined){
|
||||
layer.alert(lang.empty_min_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_pair.length == 0 || query.limit_high_pair == undefined){
|
||||
layer.alert(lang.empty_day_win_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv.length == 0 || query.agent_ximalv == undefined){
|
||||
layer.alert(lang.empty_baccacat_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_dt.length == 0 || query.agent_ximalv_dt == undefined){
|
||||
layer.alert(lang.empty_dt_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_nn.length == 0 || query.agent_ximalv_nn == undefined){
|
||||
layer.alert(lang.empty_cow_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_tc.length == 0 || query.agent_ximalv_tc == undefined){
|
||||
layer.alert(lang.empty_tc_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
var parent_bet_type = $('#parent_bet_type').val();
|
||||
if(parent_bet_type == 2){
|
||||
if(!query.manager_id){
|
||||
layer.alert(lang.select_manager,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url:'/player/do_edit',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
},function(){
|
||||
x_admin_close();
|
||||
parent.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,105 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body" style="height: 440px;">
|
||||
<form class="layui-form" style="height:440px;">
|
||||
<div class="layui-form-item" style="padding-top: 20px;">
|
||||
<label for="win_limit" class="layui-form-label">{$lang['current_agent']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="win_limit" autocomplete="off" class="layui-input" value="{$user.agent_parent_username}" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-form-mid layui-word-aux mobile"></div>
|
||||
<label class="layui-form-label">{$lang['new_agent']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="new_agent_id" autocomplete="off" class="layui-select">
|
||||
<option value="0">{$lang['choose']}</option>
|
||||
{foreach name="$under_agent_list" item="vo"}
|
||||
<option value="{$vo.id}">{$vo.username}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<!--<button class="layui-btn" type="button" id="submit">立即提交</button>-->
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- 隐藏参数 -->
|
||||
<input type="hidden" id="parent_id" value="{$user.agent_parent_id}">
|
||||
<input type="hidden" id="user_id" value="{$user.id}">
|
||||
<input type="hidden" id="hidden_limit_low" value="{$agent_parent.limit_low}">
|
||||
<input type="hidden" id="hidden_limit_high" value="{$agent_parent.limit_high}">
|
||||
<input type="hidden" id="hidden_limit_low_tie" value="{$agent_parent.limit_low_tie}">
|
||||
<input type="hidden" id="hidden_limit_high_tie" value="{$agent_parent.limit_high_tie}">
|
||||
<input type="hidden" id="hidden_limit_low_pair" value="{$agent_parent.limit_low_pair}">
|
||||
<input type="hidden" id="hidden_limit_high_pair" value="{$agent_parent.limit_high_pair}">
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
var lang = {$langjson};
|
||||
// 提交编辑会员
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.user_id = $('#user_id').val();
|
||||
query.new_agent_id = $("#new_agent_id option:selected").val();
|
||||
|
||||
// 验证数据
|
||||
if(query.new_agent_id == 0){
|
||||
layer.alert(lang.choose_the_new_agent,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url:'/player/do_edit_agent',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg,{
|
||||
title:lang.message,
|
||||
});
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
},function(){
|
||||
x_admin_close();
|
||||
parent.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,258 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.relation{ text-decoration: underline;}
|
||||
.relation:hover{ color:#807362}
|
||||
.self{ background:rgb(199, 182, 151)}
|
||||
.self:hover{ background:rgb(199, 182, 151) !important;}
|
||||
.layui-form-radio{margin:0;}
|
||||
.layui-table th{min-width:50px;}
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.layui-form-switch em {
|
||||
width: 45px;
|
||||
}
|
||||
.layui-form-onswitch i {
|
||||
left: 48px;
|
||||
}
|
||||
.layui-form-switch {
|
||||
width: 55px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/player/index" method="get">
|
||||
<input type="hidden" name="agent_id" value="{$user_info.id}">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['system_name']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
<span class="margin-left">{$lang['attribution_type']}:</span>
|
||||
<input class="is_under" type="radio" name="is_under" value="1" title="{$lang['all']}" <?php if(isset($get['is_under']) && $get['is_under'] == 1) echo 'checked'; ?>>
|
||||
<input class="is_under" type="radio" name="is_under" value="2" title="{$lang['directly_under']}" <?php if(isset($get['is_under']) && $get['is_under'] == 2) echo 'checked'; ?>>
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table" style="min-width:1500px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['superior_account']}</th>
|
||||
<?php if($user_info['bet_type'] == 2) : ?>
|
||||
<th>{$lang['manager']}</th>
|
||||
<?php endif; ?>
|
||||
<!--
|
||||
<th>代理抽水</th>
|
||||
-->
|
||||
<th>{$lang['recent_up_score']}</th>
|
||||
<th>{$lang['account_balance']}</th>
|
||||
<th>{$lang['wash_type']}</th>
|
||||
<!--
|
||||
<th style="width:10%;">{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']}/{$lang['three_card']} {$lang['washing_rate']}%</th>-->
|
||||
<th style="width:10%;">{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']} {$lang['washing_rate']}%</th>
|
||||
<!--
|
||||
<th style="width:10%;">百/龙/牛牛/三宝上级代理抽水(%)</th>
|
||||
<th style="width:10%;">三宝上级代理抽佣(%)</th>
|
||||
-->
|
||||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||||
<th>{$lang['rebate_rate']}%</th>
|
||||
<?php endif; ?>
|
||||
<th style="width:13%;">{$lang['create_time']}</th>
|
||||
<th style="width:8%;">{$lang['login_ip']}</th>
|
||||
<th>{$lang['is_online']}</th>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||||
<th>{$lang['online_recharge']}</th>
|
||||
<!--<th>{$lang['title']}</th>-->
|
||||
<?php if($user_info['top_agent_type'] == 1 && $user_info['top_agent_pay_channel'] == "USDT") : ?>
|
||||
<th style="width:10%">{$lang['wallet_address']}</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['status']}</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['operate']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$player_list" item="vo"}
|
||||
<tr>
|
||||
<td><a href="javascript:;" class="relation" onclick="x_admin_show('{$lang.relationship_structure}','/index/relation?id={$vo.id}',400,500)">{$vo.username}</a></td>
|
||||
<td><a href="javascript:;" class="relation" onclick="x_admin_show('{$lang.relationship_structure}','/index/relation?id={$vo.id}',400,500)">{$vo.nickname}</a></td>
|
||||
<!--
|
||||
<td><a href="javascript:;" class="relation">{$vo.username}</a></td>
|
||||
<td><a href="javascript:;" class="relation">{$vo.nickname}</a></td>
|
||||
-->
|
||||
<td>{$vo.agentParent}</td>
|
||||
<?php if($user_info['bet_type'] == 2) : ?>
|
||||
<th>{$vo.manager_id}</th>
|
||||
<?php endif; ?>
|
||||
<!--
|
||||
<td>{$vo.agent_commission}</td>
|
||||
-->
|
||||
<td>{$vo.last_recharge}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.type_xima_msg}</td>
|
||||
<td>{$vo.ximalv}</td>
|
||||
<!--
|
||||
<td>{$vo.commission}</td>
|
||||
<td>{$vo.commission_tc_banker}</td>
|
||||
-->
|
||||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||||
<td>{$vo.rebate_rate}</td>
|
||||
<?php endif; ?>
|
||||
<td>{$vo.reg_time}</td>
|
||||
<td>{$vo.last_login_ip}</td>
|
||||
<td>
|
||||
<?php if($vo['online'] == 1): ?>
|
||||
<a class="layui-btn layui-operation child-true" href="javascript:;" >{$vo.onlineMsg}</a>
|
||||
<?php else: ?>
|
||||
<a class="layui-btn layui-operation child-false" href="javascript:;" >{$vo.onlineMsg}</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||||
<td style="text-align:center;">{$vo.onlineRecharge}</td>
|
||||
<!--<td style="text-align:center;">{$vo.onlineRechargeTitle}</td>-->
|
||||
<?php if($user_info['top_agent_type'] == 1 && $user_info['top_agent_pay_channel'] == "USDT") : ?>
|
||||
<td style="text-align:center;">{$vo.wallet_address}</td>
|
||||
<?php endif; ?>
|
||||
<td class="td-status">
|
||||
<div class="layui-form" onclick="changeStatus(this)">
|
||||
<input type="checkbox" id="status_{$vo.id}" lay-skin="switch" lay-text="{$lang['enable']}|{$lang['ban']}" data-username="{$vo.username}" data-user-id="{$vo.id}" value="{$vo.status}" <?php if($vo['status'] == 1) echo 'checked="checked"'; ?>>
|
||||
</div>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<td class="td-manage">
|
||||
{if condition="$vo.id != $user_info.id"}
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 2 || $user_info['account_type'] == 3) : ?>
|
||||
|
||||
<!--总代类型为 信用线-->
|
||||
<?php if($user_info['top_agent_type'] == 2 || $user_info['top_agent_type'] == 0) : ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.recharge_withdrawal} > {$vo.username}({$vo.nickname})','/settle/recharge?id={$vo.id}')">{$lang['recharge_withdrawal']}</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<!--总代类型为 现金线 并且当前用户是总代-->
|
||||
<?php if($user_info['top_agent_type'] == 1 && $user_info['agent_level'] == 1) : ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.recharge_withdrawal_2} > {$vo.username}({$vo.nickname})','/settle/recharge?id={$vo.id}')">{$lang['recharge_withdrawal_2']}</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<!--总代类型为 现金线-->
|
||||
<?php if(empty($vo['wallet_address']) && $user_info['top_agent_type'] == 1 && $user_info['top_agent_pay_channel'] == "USDT") : ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="createWallet('{$vo.id}')">生成钱包地址</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.account_editing} > {$vo.username}({$vo.nickname})','/player/edit?user_id={$vo.id}')">{$lang['account_editing']}</a>
|
||||
<?php if($user_info['username'] == $wt_agent): ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.change_agent} > {$vo.username}({$vo.nickname})','/player/edit_agent?user_id={$vo.id}',500,500)">{$lang['change_agent']}</a>
|
||||
<?php endif; ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.change_password} > {$vo.username}({$vo.nickname})','/index/password_child?id={$vo.id}')">{$lang['change_password']}</a>
|
||||
<?php endif; ?>
|
||||
{/if}
|
||||
<?php if($user_info['top_agent_type'] == 2) : ?>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('洗码结算 > {$vo.username}({$vo.nickname})','/settle/xima?user_id={$vo.id}')">洗码结算</a>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('返水结算 > {$vo.username}({$vo.nickname})','/settle/rebate?user_id={$vo.id}&game_type=1')">真人返水</a>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('棋牌返水 > {$vo.username}({$vo.nickname})','/settle/rebate?user_id={$vo.id}&game_type=2')">棋牌返水</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($player_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;"></div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$player_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 用户启用/禁用
|
||||
function changeStatus(obj){
|
||||
obj = $(obj).find('input').eq(0);
|
||||
// 拼装参数
|
||||
var query = new Object();
|
||||
query.username = $(obj).attr('data-username');
|
||||
query.user_id = $(obj).attr('data-user-id');
|
||||
query.status = $(obj).val();
|
||||
|
||||
// 发送后台
|
||||
$.ajax({
|
||||
url:'/index/change_status_child',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
var agentChilds = data.agentChilds;
|
||||
var updateStatus = data.updateStatus;
|
||||
for(var i=0; i< agentChilds.length; i++){
|
||||
var v = agentChilds[i];
|
||||
$('#status_'+ v.id).val(updateStatus);
|
||||
if(updateStatus == 1){
|
||||
$('#status_'+ v.id).attr('checked','checked').next().addClass('layui-form-onswitch').find('em').html(lang.enable);
|
||||
}else{
|
||||
$('#status_'+ v.id).removeAttr('checked').next().removeClass('layui-form-onswitch').find('em').html(lang.ban);
|
||||
}
|
||||
}
|
||||
layer.msg(data.msg,{title:lang.message,icon:1});
|
||||
}else{
|
||||
layer.msg(data.msg,{
|
||||
title:lang.message,
|
||||
},function(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 生成钱包
|
||||
function createWallet(userId){
|
||||
layer.confirm('确定为该用户生成钱包地址?',function(){
|
||||
$.ajax({
|
||||
url:'/agent/createWallet',
|
||||
data:{user_id:userId},
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
layer.msg(data.msg,{icon:1});
|
||||
}else{
|
||||
layer.msg(data.msg,function(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,337 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:90px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:10px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
.high-a{text-decoration: underline;color:dodgerblue;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/agent" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span >{$lang['game_type']}:</span>
|
||||
<select name="game_id" class="layui-select">
|
||||
<option value="0">{$lang['all']}</option>
|
||||
<option value="1" <?php if(isset($get['game_id']) && $get['game_id'] == 1) echo 'selected="selected"'; ?>>{$lang['baccarat']}</option>
|
||||
<option value="2" <?php if(isset($get['game_id']) && $get['game_id'] == 2) echo 'selected="selected"'; ?>>{$lang['dt']}</option>
|
||||
<option value="4" <?php if(isset($get['game_id']) && $get['game_id'] == 4) echo 'selected="selected"'; ?>>{$lang['cow']}</option>
|
||||
<!--
|
||||
<option value="5" <?php if(isset($get['game_id']) && $get['game_id'] == 5) echo 'selected="selected"'; ?>>{$lang['three_card']}</option>-->
|
||||
<option value="6" <?php if(isset($get['game_id']) && $get['game_id'] == 6) echo 'selected="selected"'; ?>>{$lang.color_plate}</option>
|
||||
<option value="7" <?php if(isset($get['game_id']) && $get['game_id'] == 7) echo 'selected="selected"'; ?>>{$lang.sic_bo}</option>
|
||||
<option value="8" <?php if(isset($get['game_id']) && $get['game_id'] == 8) echo 'selected="selected"'; ?>>{$lang.roulette}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span class="margin-left">{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="导出" id="export">{$lang['export']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['member_type']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['account_balance']}</th>
|
||||
<th>{$lang['all_bet']}</th>
|
||||
<th>{$lang['all_win']}</th>
|
||||
<th>{$lang.chess_card}{$lang['all_bet']}</th>
|
||||
<th>{$lang.chess_card}{$lang['all_win']}</th>
|
||||
<th>{$lang['collect_pay_money_subordinates']}</th>
|
||||
<th>{$lang['collect_pay_money_superiors']}</th>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<th>{$lang['code_washing_amount']}</th>
|
||||
<th>{$lang['code_amount']}</th>
|
||||
<th>{$lang['share_code_amount']}</th>
|
||||
<th>{$lang['code_income']}</th>
|
||||
<?php endif ?>
|
||||
<th>{$lang['share_income']}</th>
|
||||
<?php if($top_agent['agent_type'] == 1): ?>
|
||||
<th>{$lang['rebate_income']}</th>
|
||||
<th>{$lang['qp_rebate_income']}</th>
|
||||
<?php endif ?>
|
||||
<th>{$lang['all_income']}</th>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<th>{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']}<br>{$lang['washing_rate']}%</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['share_ratio']}%</th>
|
||||
<?php if($top_agent['agent_type'] == 1): ?>
|
||||
<th>{$lang['rebate_rate']}%</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['operate']}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td><?php if($vo['agent'] == 1){echo '<font style="color:#0037ff;">代理</font>';}else{echo '<font style="color:#ca7609;">会员</font>';} ?></td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang[\'details_1\']} > {$vo.username}({$vo.nickname})','/report/bet?{$query}&username={$vo.username}')"><?php echo number_format($vo['amount'],2,".",""); ?></a></td>
|
||||
<td>{$vo.win_total}</td>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang[\'details_1\']} > {$vo.username}({$vo.nickname})','/report/game_log?{$query}&username={$vo.username}')"><?php echo number_format($vo['qp_amount'],2,".",""); ?></a></td>
|
||||
<td>{$vo.qp_win_total}</td>
|
||||
<td><?php if($vo['income_down'] < 0){echo '<font style="color:#f00;">'.number_format($vo['income_down'],2,".","").'</font>';}else{echo '<font style="color:#1f9433">'.number_format($vo['income_down'],2,".","").'<font>';} ?></td>
|
||||
<td><?php if($vo['income_up'] < 0){echo '<font style="color:#f00;">'.number_format($vo['income_up'],2,".","").'</font>';}else{echo '<font style="color:#1f9433">'.number_format($vo['income_up'],2,".","").'<font>';} ?></td>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<td>{$vo.ximaliang}</td>
|
||||
<td>{$vo.maliang}</td>
|
||||
<td>{$vo.share_maliang}</td>
|
||||
<td>{$vo.income_maliang}</td>
|
||||
<?php endif; ?>
|
||||
<td>{$vo.income_cs}</td>
|
||||
<?php if($top_agent['agent_type'] == 1): ?>
|
||||
<td>{$vo.rebate_amount}</td>
|
||||
<td>{$vo.qp_rebate_amount}</td>
|
||||
<?php endif; ?>
|
||||
<td>{$vo.income}</td>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<td>{$vo.ximalv}</td>
|
||||
<?php endif; ?>
|
||||
<?php if($vo['agent'] == 0): ?>
|
||||
<td>-</td>
|
||||
<?php else: ?>
|
||||
<td><?php echo number_format($vo['agent_cs'],2,".",""); ?> %</td>
|
||||
<?php endif; ?>
|
||||
<?php if($top_agent['agent_type'] == 1): ?>
|
||||
<td>{$vo.rebate_rate}</td>
|
||||
<?php endif; ?>
|
||||
<?php if($vo['id'] == $user_info['id'] || $vo['agent'] == 0): ?>
|
||||
<td>-</td>
|
||||
<?php else: ?>
|
||||
<td>
|
||||
<a class="layui-btn layui-operation child-true" href="javascript:;" onclick="x_admin_show('{$lang[\'subordinates\']} > {$vo.username}({$vo.nickname})','/report/agent?{$query}&username={$vo.username}')">{$lang['subordinates']}</a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
var langType = '{$langType}';
|
||||
if(langType != 'zh-cn'){
|
||||
dateLang = 'en'
|
||||
}else{
|
||||
dateLang = 'cn';
|
||||
}
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
});
|
||||
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('#search').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('#search').trigger('click');
|
||||
});
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/report/agent?export=1&{$query}";
|
||||
layer.close(index);
|
||||
});
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,358 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:90px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:10px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
|
||||
.layui-btn.search-btn.countDown{width:30px;height:30px;border-radius:100%;padding:0;background:#fff;border:2px solid #AA947D;color:#AA947D;font-weight:bold;font-size:20px;display:none;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/bet" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['game_type']}:</span>
|
||||
<input class="game_id" type="radio" name="game_id" value="0" title="{$lang['all']}" <?php if(isset($get['game_id']) && $get['game_id'] == 0) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="1" title="{$lang['baccarat']}" <?php if(isset($get['game_id']) && $get['game_id'] == 1) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="2" title="{$lang['dt']}" <?php if(isset($get['game_id']) && $get['game_id'] == 2) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="4" title="{$lang['cow']}" <?php if(isset($get['game_id']) && $get['game_id'] == 4) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="5" title="{$lang['three_card']}" <?php if(isset($get['game_id']) && $get['game_id'] == 5) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="6" title="{$lang['color_disc']}" <?php if(isset($get['game_id']) && $get['game_id'] == 6) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="7" title="{$lang['dice']}" <?php if(isset($get['game_id']) && $get['game_id'] == 7) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="8" title="{$lang['roulette']}" <?php if(isset($get['game_id']) && $get['game_id'] == 8) echo 'checked'; ?>>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span >{$lang['table']}:</span>
|
||||
<select name="table_id" class="layui-select">
|
||||
<option value="0">{$lang['all']}</option>
|
||||
{foreach name="$table_list" item="vo"}
|
||||
<option value="{$vo.id}" <?php if(isset($get['table_id']) && $get['table_id'] == $vo['id']) echo 'selected="selected"'; ?>>{$vo.table_name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
<button class="layui-btn search-btn countDown">5</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-form">
|
||||
<table class="layui-table" style="min-width:1500px;">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['odd_numbers']}</th>
|
||||
<th>{$lang['game_type']}</th>
|
||||
<th>{$lang['table_num']}</th>
|
||||
<th>{$lang['betting_time']}</th>
|
||||
<th>{$lang['boots']}</th>
|
||||
<th>{$lang['round']}</th>
|
||||
<th>{$lang['nickname']}[{$lang['username']}]</th>
|
||||
<th>{$lang['balance_before_betting']}</th>
|
||||
<th style="width:20%;">{$lang['details']}</th>
|
||||
<th>{$lang['balance_after_betting']}</th>
|
||||
<th>{$lang['balance_after_lottery']}</th>
|
||||
<th>{$lang['result']}</th>
|
||||
<th>{$lang['result_before_modification']}</th>
|
||||
<th>{$lang['betting_money']}</th>
|
||||
<th>{$lang['win_or_lose']}</th>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<th>{$lang['code_washing_amount']}</th>
|
||||
<th>{$lang['washing_rate']}%</th>
|
||||
<th>{$lang['odd_code_fee']}</th>
|
||||
<?php endif; ?>
|
||||
<?php if($top_agent['agent_type'] == 1): ?>
|
||||
<th>{$lang['rebate_bet_amount']}</th>
|
||||
<th>{$lang['rebate_rate']}%</th>
|
||||
<th>{$lang['rebate_amount']}</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['status']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($bet) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="12"></td>
|
||||
<td>{$lang['total']}</td>
|
||||
<td>{$total.amount}</td>
|
||||
<td>{$total.win_total}</td>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<td>{$total.ximaliang}</td>
|
||||
<td>-</td>
|
||||
<td>{$total.maliang}</td>
|
||||
<?php endif; ?>
|
||||
<?php if($top_agent['agent_type'] == 1): ?>
|
||||
<td>{$total.rebate_bet_amount}</td>
|
||||
<td>-</td>
|
||||
<td>{$total.rebate_amount}</td>
|
||||
<?php endif; ?>
|
||||
<td></td>
|
||||
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$bet" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.id}</td>
|
||||
<td>{$vo.game_name}</td>
|
||||
<td>{$vo.table_name}</td>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.boot_num}</td>
|
||||
<td>{$vo.number}</td>
|
||||
<td>{$vo.nickname}[{$vo.username}]</td>
|
||||
<td><?php echo number_format($vo['money_before_bet'],2,".",""); ?></td>
|
||||
<td>{$vo.bet_detail}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['end_money'],2,".",""); ?></td>
|
||||
<td style="color:{$vo.color}">{$vo.result}</td>
|
||||
<td style="color:{$vo.result_before_color}">{$vo.result_before_edit}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td><?php echo number_format($vo['win_total'],2,".",""); ?></td>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<td><?php echo number_format($vo['ximaliang'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['ximalv'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['maliang'],2,".",""); ?></td>
|
||||
<?php endif; ?>
|
||||
<?php if($top_agent['agent_type'] == 1): ?>
|
||||
<td><?php echo number_format($vo['rebate_bet_amount'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['rebate_rate'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['rebate_amount'],2,".",""); ?></td>
|
||||
<?php endif; ?>
|
||||
<td style="color:{$vo.is_end_color}">{$vo.is_end}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($bet) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$bet->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="online" value="{$online}">
|
||||
<input type="hidden" id="refreshUrl" value="{$refreshUrl}">
|
||||
<script>
|
||||
$(function(){
|
||||
var online = $('#online').val();
|
||||
var refreshUrl = $('#refreshUrl').val();
|
||||
var countDown = 10;
|
||||
if(online == 1){
|
||||
$('.countDown').show();
|
||||
setInterval(function(){
|
||||
countDown = countDown - 1;
|
||||
$('.countDown').html(countDown);
|
||||
if(countDown == 0){
|
||||
location.href = refreshUrl;
|
||||
}
|
||||
},1000);
|
||||
}
|
||||
})
|
||||
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
var langType = '{$langType}';
|
||||
if(langType != 'zh-cn'){
|
||||
dateLang = 'en'
|
||||
}else{
|
||||
dateLang = 'cn';
|
||||
}
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
});
|
||||
|
||||
// 游戏类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,277 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:10px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/child" method="get">
|
||||
<input type="hidden" name="agent_id" value="{$user_info.id}">
|
||||
{if $is_child == true}
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>开始时间:</span>
|
||||
<input type="text" name="startDate" placeholder="开始时间" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>结束时间:</span>
|
||||
<input type="text" name="endDate" placeholder="结束时间" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>下级账号:</span>
|
||||
<input type="text" name="username" placeholder="下级账号" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">查找</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="刷新">刷新</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="导出" id="export">导出</a>
|
||||
<a href="javascript:;" style="color:red;">{$relation}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table" style="min-width:1600px;">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2" title="今日">今日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1" title="昨日">昨日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4" title="本月">本月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3" title="上月">上月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5" title="全部">全部</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>账户类型</th>
|
||||
<th>名称</th>
|
||||
<th>账号</th>
|
||||
<th>上级代理</th>
|
||||
<th>剩余额度</th>
|
||||
<th>下级<br>总剩余<br>额度</th>
|
||||
<th>总押码</th>
|
||||
<th>总赢</th>
|
||||
<th>总洗码</th>
|
||||
<th>百/龙/牛牛/三宝<br>洗码率%</th>
|
||||
<th>占股%</th>
|
||||
<th>洗码费</th>
|
||||
<th>实际总赢</th>
|
||||
<th>占股收益</th>
|
||||
<th>洗码费<br>(全部未结)</th>
|
||||
<th>占股收益<br>(全部未结)</th>
|
||||
<th>抽水金额</th>
|
||||
<th>抽水金额<br>(全部未结)</th>
|
||||
<th>操作</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$child_list" item="vo"}
|
||||
<tr <?php if($vo['id'] == $user['id']) echo 'style="background:#67B8D8;color:#fff;"' ;?>>
|
||||
<td>{$vo.agent_msg}</td>
|
||||
<td><a href="javascript:;" class="relation" onclick="x_admin_show('关系结构','/index/relation?id={$vo.id}',400,500)">{$vo.nickname}</a></td>
|
||||
<td><a href="javascript:;" class="relation" onclick="x_admin_show('关系结构','/index/relation?id={$vo.id}',400,500)">{$vo.username}</a></td>
|
||||
<td>{$vo.agent_parent_username}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['money_child'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['amount'],2,".",""); ?></td>
|
||||
<td><?php if($vo['win_total'] < 0){echo '<font style="color:#f00;">'.number_format($vo['win_total'],2,".","").'</font>';}else{echo number_format($vo['win_total'],2,".","");} ?></td>
|
||||
<td><?php echo number_format($vo['ximaliang'],2,".",""); ?></td>
|
||||
<td>{$vo.ximalv}/{$vo.ximalv_dt}/{$vo.ximalv_nn}/{$vo.ximalv_dt}</td>
|
||||
<td><?php echo number_format($vo['agent_cs'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['maliang'],2,".",""); ?></td>
|
||||
<th><?php if(($vo['win_total'] + $vo['maliang']) < 0){echo '<font style="color:#f00;">'.number_format($vo['win_total'] + $vo['maliang'],2,".","").'</font>';}else{echo number_format($vo['win_total'] + $vo['maliang'],2,".","");} ?></th>
|
||||
<td><?php if($vo['cs'] < 0){echo '<font style="color:#f00;">'.$vo['cs'].'</font>';}else{echo $vo['cs'];} ?></td>
|
||||
<td><?php echo number_format($vo['maliang_unbalanced'],2,".",""); ?></td>
|
||||
<td><?php if($vo['cs_unbalanced'] < 0){echo '<font style="color:#f00;">'.number_format($vo['cs_unbalanced'],2,".","").'</font>';}else{echo number_format($vo['cs_unbalanced'],2,".","");} ?></td>
|
||||
<td><?php echo number_format($vo['commission'],2,".",""); ?></td>
|
||||
<td><?php if($vo['commission_unbalanced'] < 0){echo '<font style="color:#f00;">'.number_format($vo['commission_unbalanced'],2,".","").'</font>';}else{echo number_format($vo['commission_unbalanced'],2,".","");} ?></td>
|
||||
<td>
|
||||
{if condition="$vo.id != $user_info.id"}
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 2 || $user_info['account_type'] == 3) : ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('代理充值提现 > {$vo.username}({$vo.nickname})','/settle/recharge?id={$vo.id}')">充值提现</a>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||||
<?php if($vo['agent'] == 1): ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('代理账号编辑 > {$vo.username}({$vo.nickname})','/agent/edit?id={$vo.id}')">账号编辑</a>
|
||||
<?php else: ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('会员账号编辑 > {$vo.username}({$vo.nickname})','/player/edit?id={$vo.id}')">账号编辑</a>
|
||||
<?php endif; ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('修改代理密码 > {$vo.username}({$vo.nickname})','/index/password_child?id={$vo.id}')">修改密码</a>
|
||||
<?php endif; ?>
|
||||
{/if}
|
||||
{if $vo.agent_parent_id == $user_info.id}
|
||||
<?php if($vo['agent'] == 1): ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('代理洗码 > {$vo.username}({$vo.nickname})','/settle/xima?user_id={$vo.id}')">洗码</a>
|
||||
<?php else: ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('会员洗码 > {$vo.username}({$vo.nickname})','/settle/xima?user_id={$vo.id}')">洗码</a>
|
||||
<?php endif; ?>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('代理结算 > {$vo.username}({$vo.nickname})','/settle/cs?user_id={$vo.id}')">结算</a>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('代理抽水 > {$vo.username}({$vo.nickname})','/settle/commission?user_id={$vo.id}')">抽水</a>
|
||||
{/if}
|
||||
{if condition="$vo.agent == 1"}
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('添加代理 > {$vo.username}({$vo.nickname})','/agent/add?parent_id={$vo.id}')">添加代理</a>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('添加会员 > {$vo.username}({$vo.nickname})','/player/add?parent_id={$vo.id}')">添加会员</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($child_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">没有数据</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('#search').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('#search').trigger('click');
|
||||
});
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/report/child?export=1&{$query}";
|
||||
layer.close(index);
|
||||
});
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,224 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/commission" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>开始时间:</span>
|
||||
<input type="text" name="startDate" placeholder="开始时间" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>结束时间:</span>
|
||||
<input type="text" name="endDate" placeholder="结束时间" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>代理账号:</span>
|
||||
<input type="text" name="agent_username" placeholder="代理账号" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['agent_username'])) echo $get['agent_username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">查找</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="刷新">刷新</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2" title="今日">今日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1" title="昨日">昨日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4" title="本月">本月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3" title="上月">上月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5" title="全部">全部</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">时间</th>
|
||||
<th>代理账号</th>
|
||||
<th>抽水基数</th>
|
||||
<th>抽水率</th>
|
||||
<th>抽水金额</th>
|
||||
<th>抽水方式</th>
|
||||
<th>操作人</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if($totalMoney > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="3"></td>
|
||||
<td>合计</td>
|
||||
<td>{$totalMoney}</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$commission_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.agent_username}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td>{$vo.agent_commission} %</td>
|
||||
<td>{$vo.money_commission}</td>
|
||||
<td>{$vo.type_msg}</td>
|
||||
<td>{$vo.controller_username}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($commission_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">没有数据</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$commission_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,224 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/commission_banker" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>开始时间:</span>
|
||||
<input type="text" name="startDate" placeholder="开始时间" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>结束时间:</span>
|
||||
<input type="text" name="endDate" placeholder="结束时间" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>代理账号:</span>
|
||||
<input type="text" name="agent_username" placeholder="代理账号" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['agent_username'])) echo $get['agent_username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">查找</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="刷新">刷新</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2" title="今日">今日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1" title="昨日">昨日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4" title="本月">本月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3" title="上月">上月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5" title="全部">全部</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">时间</th>
|
||||
<th>代理账号</th>
|
||||
<th>抽佣基数</th>
|
||||
<th>抽佣率</th>
|
||||
<th>抽佣金额</th>
|
||||
<th>抽佣方式</th>
|
||||
<th>操作人</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if($totalMoney > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="3"></td>
|
||||
<td>合计</td>
|
||||
<td>{$totalMoney}</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$commission_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.agent_username}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td>{$vo.agent_commission} %</td>
|
||||
<td>{$vo.money_commission}</td>
|
||||
<td>{$vo.type_msg}</td>
|
||||
<td>{$vo.controller_username}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($commission_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">没有数据</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$commission_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,235 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/cs" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span class="margin-left">{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="{$lang['refresh']}">{$lang['refresh']}</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="{$lang['export']}" id="export">{$lang['export']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">{$lang.time}</th>
|
||||
<th>{$lang.username}</th>
|
||||
<th>{$lang.game_name}</th>
|
||||
<th>{$lang.table_num}</th>
|
||||
<th>{$lang.boots}</th>
|
||||
<th>{$lang.round}</th>
|
||||
<th>{$lang.all_bet}</th>
|
||||
<th>{$lang.member_all_win}</th>
|
||||
<th>{$lang.share_income}</th>
|
||||
<th>{$lang.share_ratio}(%)</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="5"></td>
|
||||
<td>{$lang.total}</td>
|
||||
<td>{$total.total}</td>
|
||||
<td>{$total.win_total}</td>
|
||||
<td>{$total.net_cs}</td>
|
||||
<td colspan="1"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.game_name}</td>
|
||||
<td>{$vo.table_name}</td>
|
||||
<td>{$vo.boot_num}</td>
|
||||
<td>{$vo.number}</td>
|
||||
<td>{$vo.total}</td>
|
||||
<td>{$vo.win_total}</td>
|
||||
<td>{$vo.net_cs}</td>
|
||||
<td>{$vo.share_percent}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,229 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/cs_log" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span class="margin-left">{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="{$lang['refresh']}">{$lang['refresh']}</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="{$lang['export']}" id="export">{$lang['export']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">{$lang.time}</th>
|
||||
<th>{$lang.username}</th>
|
||||
<th>{$lang.share_earnings}</th>
|
||||
<th>{$lang.share_code_amount}</th>
|
||||
<th>{$lang.profit_share_income}</th>
|
||||
<th>{$lang.settled_method}</th>
|
||||
<th>{$lang.operate_terminal}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="1"></td>
|
||||
<td>{$lang.total}</td>
|
||||
<td>{$total.share_amount}</td>
|
||||
<td>{$total.share_maliang}</td>
|
||||
<td>{$total.income}</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.share_amount}</td>
|
||||
<td>{$vo.share_maliang}</td>
|
||||
<td>{$vo.income}</td>
|
||||
<td>{$vo.type_msg}</td>
|
||||
<td>{$vo.admin_or_agent_msg}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,309 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:90px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:10px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
|
||||
.layui-btn.search-btn.countDown{width:30px;height:30px;border-radius:100%;padding:0;background:#fff;border:2px solid #AA947D;color:#AA947D;font-weight:bold;font-size:20px;display:none;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/game_log" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span >{$lang['game_type']}:</span>
|
||||
<select name="game_type" class="layui-select">
|
||||
<option value="0">{$lang['all']}</option>
|
||||
{foreach name="$game_type" item="vo" key="index"}
|
||||
<option value="{$index}" <?php if(isset($get['game_type']) && $get['game_type'] == $index) echo 'selected="selected"'; ?>>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
<button class="layui-btn search-btn countDown">5</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-form">
|
||||
<table class="layui-table" style="min-width:1500px;">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['game_name']}</th>
|
||||
<th>{$lang['room_num']}</th>
|
||||
<th>{$lang['round']}</th>
|
||||
<th>{$lang['odd_numbers']}</th>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['all_bet']}</th>
|
||||
<th>{$lang['win_or_lose_absolute']}</th>
|
||||
<th>{$lang['win_or_lose']}</th>
|
||||
<th>{$lang['tax']}</th>
|
||||
<th>{$lang['water']}</th>
|
||||
<th>{$lang['money_before_bet']}</th>
|
||||
<th>{$lang['betting_time']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="4"></td>
|
||||
<td>{$lang['total']}</td>
|
||||
<td>{$total.allBet}</td>
|
||||
<td>{$total.validBet}</td>
|
||||
<td>{$total.gold}</td>
|
||||
<td>{$total.tax}</td>
|
||||
<td>{$total.water}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.gameName}</td>
|
||||
<td>{$vo.childGameID}</td>
|
||||
<td>{$vo.deskid}</td>
|
||||
<td>{$vo.recordid}</td>
|
||||
<td>{$vo.userName}</td>
|
||||
<td>{$vo.allBet}</td>
|
||||
<td>{$vo.validBet}</td>
|
||||
<td>{$vo.gold}</td>
|
||||
<td>{$vo.tax}</td>
|
||||
<td>{$vo.water}</td>
|
||||
<td>{$vo.beforeGold}</td>
|
||||
<td>{$vo.createTime}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
var online = $('#online').val();
|
||||
var refreshUrl = $('#refreshUrl').val();
|
||||
var countDown = 10;
|
||||
if(online == 1){
|
||||
$('.countDown').show();
|
||||
setInterval(function(){
|
||||
countDown = countDown - 1;
|
||||
$('.countDown').html(countDown);
|
||||
if(countDown == 0){
|
||||
location.href = refreshUrl;
|
||||
}
|
||||
},1000);
|
||||
}
|
||||
})
|
||||
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
var langType = '{$langType}';
|
||||
if(langType != 'zh-cn'){
|
||||
dateLang = 'en'
|
||||
}else{
|
||||
dateLang = 'cn';
|
||||
}
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
});
|
||||
|
||||
// 游戏类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,294 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:90px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:10px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/number_tab" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['game_type']}:</span>
|
||||
<input class="game_id" type="radio" name="game_id" value="1" title="{$lang['baccarat']}" <?php if(isset($get['game_id']) && $get['game_id'] == 1) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="2" title="{$lang['dt']}" <?php if(isset($get['game_id']) && $get['game_id'] == 2) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="4" title="{$lang['cow']}" <?php if(isset($get['game_id']) && $get['game_id'] == 4) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="5" title="{$lang['three_card']}" <?php if(isset($get['game_id']) && $get['game_id'] == 5) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="6" title="{$lang['color_disc']}" <?php if(isset($get['game_id']) && $get['game_id'] == 6) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="7" title="{$lang['dice']}" <?php if(isset($get['game_id']) && $get['game_id'] == 7) echo 'checked'; ?>>
|
||||
<input class="game_id" type="radio" name="game_id" value="8" title="{$lang['roulette']}" <?php if(isset($get['game_id']) && $get['game_id'] == 8) echo 'checked'; ?>>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['table']}:</span>
|
||||
<select name="table_id" id="table_id" class="layui-select">
|
||||
<option value="">{$lang['all']}</option>
|
||||
{foreach name="$table_list" item="vo"}
|
||||
<option value="{$vo.id}" <?php if(isset($get['table_id']) && $get['table_id'] == $vo['id']) echo 'selected="selected"'; ?>>{$vo.table_name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['superior_account']}</th>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['betting_time']}</th>
|
||||
<th>{$lang['boots']}-{$lang['round']}</th>
|
||||
<th>{$lang['table_num']}</th>
|
||||
<th>{$lang['betting_point']}</th>
|
||||
<th>{$lang['lottery_opening_time']}</th>
|
||||
<th>{$lang['result']}</th>
|
||||
<th>{$lang['result_before_modification']}</th>
|
||||
<th>{$lang['win_or_lose']}</th>
|
||||
<th>{$lang['balance_before_betting']}</th>
|
||||
<th>{$lang['balance_after_lottery']}</th>
|
||||
<th>{$lang['status']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($bet) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="9"></td>
|
||||
<td>{$lang['total']}</td>
|
||||
<td><?php echo number_format($total['win_total'],2,".",""); ?></td>
|
||||
<td colspan="6"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$bet" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.parent_username}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td style="color:red;">{$vo.create_time}</td>
|
||||
<td>{$vo.boot_num}-{$vo.number}</td>
|
||||
<td>{$vo.table_name}</td>
|
||||
<td>{$vo.bet_detail}</td>
|
||||
<td style="color:red;">{$vo.end_time}</td>
|
||||
<td style="color:{$vo.color}">{$vo.result}</td>
|
||||
<td style="color:{$vo.color_result_before_edit}">{$vo.result_before_edit}</td>
|
||||
<td style="color:{$vo.color_win_total}"><?php echo number_format($vo['win_total'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['money_before_bet'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['end_money'],2,".",""); ?></td>
|
||||
<td>{$vo.is_end}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($bet) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$bet->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
var langType = '{$langType}';
|
||||
if(langType != 'zh-cn'){
|
||||
dateLang = 'en'
|
||||
}else{
|
||||
dateLang = 'cn';
|
||||
}
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
});
|
||||
|
||||
// 游戏类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2019';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,256 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:90px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/online_recharge" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">{$lang['time']}</th>
|
||||
<th>{$lang['type']}</th>
|
||||
<th>{$lang['nickname']}[$lang['username']]</th>
|
||||
<th>{$lang['amount_before_recharge']}</th>
|
||||
<th>{$lang['Recharge_amount']}</th>
|
||||
<th>{$lang['amount_after_recharge']}</th>
|
||||
<th>{$lang['operator']}[{$lang['username']}]</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{foreach name="$rechargeList" item="vo"}
|
||||
<tr>
|
||||
<td><?=date('Y-m-d H:i:s',$vo['create_time'])?></td>
|
||||
<td>{$lang['recharge']}</td>
|
||||
<td>{$vo.nickname_for}[{$vo.username_for}]</td>
|
||||
<td><?php echo number_format($vo['old_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['amount'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['new_money'],2,".",""); ?></td>
|
||||
<td>{$vo.controller_nickname}[{$vo.controller_username}]</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($rechargeList) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$rechargeList->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
var langType = '{$langType}';
|
||||
if(langType != 'zh-cn'){
|
||||
dateLang = 'en'
|
||||
}else{
|
||||
dateLang = 'cn';
|
||||
}
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,281 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:10px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/player" method="get">
|
||||
<input type="hidden" name="agent_id" value="{$user_info.id}">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>开始时间:</span>
|
||||
<input type="text" name="startDate" placeholder="开始时间" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>结束时间:</span>
|
||||
<input type="text" name="endDate" placeholder="结束时间" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>归属类型:</span>
|
||||
<input class="is_under" type="radio" name="is_under" value="1" title="全部" <?php if(isset($get['is_under']) && $get['is_under'] == 1) echo 'checked'; ?>>
|
||||
<input class="is_under" type="radio" name="is_under" value="2" title="直属" <?php if(isset($get['is_under']) && $get['is_under'] == 2) echo 'checked'; ?>>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span >游戏类型:</span>
|
||||
<select name="game_id" class="layui-select">
|
||||
<option value="0">全部</option>
|
||||
<option value="1" <?php if(isset($get['game_id']) && $get['game_id'] == 1) echo 'selected="selected"'; ?>>百家乐</option>
|
||||
<option value="2" <?php if(isset($get['game_id']) && $get['game_id'] == 2) echo 'selected="selected"'; ?>>龙虎</option>
|
||||
<option value="4" <?php if(isset($get['game_id']) && $get['game_id'] == 4) echo 'selected="selected"'; ?>>牛牛</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>会员账号:</span>
|
||||
<input type="text" name="username" placeholder="会员账号" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">查找</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="刷新">刷新</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="导出" id="export">导出</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2" title="今日">今日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1" title="昨日">昨日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4" title="本月">本月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3" title="上月">上月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5" title="全部">全部</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>台类型</th>
|
||||
<th>名称</th>
|
||||
<th>账号</th>
|
||||
<th>当前金额</th>
|
||||
<th>下注次数</th>
|
||||
<th>下注总额</th>
|
||||
<th>总赢</th>
|
||||
<th>总洗码</th>
|
||||
<th>洗码方式</th>
|
||||
<th>百/龙洗码率%</th>
|
||||
<th>洗码费</th>
|
||||
<th>总收益</th>
|
||||
<!--
|
||||
<th>洗码费(全部未结)</th>
|
||||
<th>操作</th>
|
||||
-->
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($player_list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td>合计</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
<td>{$totalData.count}</td>
|
||||
<td><?php echo number_format($totalData['amount'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($totalData['win_total'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($totalData['ximaliang'],2,".",""); ?></td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
<td><?php echo number_format($totalData['maliang'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($totalData['income'],2,".",""); ?></td>
|
||||
<!--
|
||||
<td><?php echo number_format($totalData['maliang_unbalanced'],2,".",""); ?></td>
|
||||
<td>-</td>
|
||||
-->
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$player_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.table_name}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td>{$vo.count}</td>
|
||||
<td><?php echo number_format($vo['amount'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['win_total'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['ximaliang'],2,".",""); ?></td>
|
||||
<th>{$vo.type_xima_msg}</th>
|
||||
<td>{$vo.ximalv}</td>
|
||||
<td><?php echo number_format($vo['maliang'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['income'],2,".",""); ?></td>
|
||||
<!--
|
||||
<td><?php echo number_format($vo['maliang_unbalanced'],2,".",""); ?></td>
|
||||
<td>
|
||||
{if $vo.agent_parent_id == $user_info.id}
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('会员洗码 > {$vo.username}({$vo.nickname})','/settle/xima?user_id={$vo.id}')">洗码</a>
|
||||
{/if}
|
||||
</td>
|
||||
-->
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($player_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">没有数据</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('#search').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('#search').trigger('click');
|
||||
});
|
||||
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/report/player?export=1&{$query}";
|
||||
layer.close(index);
|
||||
});
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,233 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/rebate" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span class="margin-left">{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<input type="hidden" id="game_type" value="{$game_type}">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="{$lang['refresh']}">{$lang['refresh']}</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="{$lang['export']}" id="export">{$lang['export']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">{$lang.time}</th>
|
||||
<th>{$lang.username}</th>
|
||||
<th>{$lang.game_name}</th>
|
||||
<th>{$lang.table_num}</th>
|
||||
<th>{$lang.boots}</th>
|
||||
<th>{$lang.round}</th>
|
||||
<th>{$lang.all_bet}</th>
|
||||
<th>{$lang.rebate_amount}</th>
|
||||
<th>{$lang['rebate_rate']}%</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="5"></td>
|
||||
<td>{$lang.total}</td>
|
||||
<td>{$total.amount}</td>
|
||||
<td>{$total.rebate_amount_actual}</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.game_name}</td>
|
||||
<td>{$vo.table_name}</td>
|
||||
<td>{$vo.boot_num}</td>
|
||||
<td>{$vo.number}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td>{$vo.rebate_amount_actual}</td>
|
||||
<td>{$vo.rebate_rate}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,225 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/rebate_log" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span class="margin-left">{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<input type="hidden" id="game_type" value="{$game_type}">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="{$lang['refresh']}">{$lang['refresh']}</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="{$lang['export']}" id="export">{$lang['export']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">{$lang.time}</th>
|
||||
<th>{$lang.username}</th>
|
||||
<th>{$lang.all_bet}</th>
|
||||
<th>{$lang.settled_rebate_income}</th>
|
||||
<th>{$lang.operate_terminal}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="1"></td>
|
||||
<td>{$lang.total}</td>
|
||||
<td>{$total.amount}</td>
|
||||
<td>{$total.rebate_amount}</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td>{$vo.rebate_amount}</td>
|
||||
<td>{$vo.admin_or_agent_msg}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,275 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:90px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/recharge" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['operate']}:</span>
|
||||
<select name="mode" class="layui-select">
|
||||
<option value="0">{$lang['all']}</option>
|
||||
<option value="1" <?php if(isset($get['mode']) && $get['mode'] == 1) echo 'selected="selected"'; ?>>{$lang['recharge']}</option>
|
||||
<option value="2" <?php if(isset($get['mode']) && $get['mode'] == 2) echo 'selected="selected"'; ?>>{$lang['withdrawal']}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="刷新">{$lang['refresh']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:130px;">{$lang['time']}</th>
|
||||
<th>{$lang['type']}</th>
|
||||
<th>{$lang['nickname']}[{$lang['username']}]</th>
|
||||
<th>{$lang['amount_before_operation']}</th>
|
||||
<th>{$lang['up_down_money']}</th>
|
||||
<th>{$lang['amount_after_operation']}</th>
|
||||
<th>{$lang['operator']}[{$lang['username']}]</th>
|
||||
<th>{$lang['operation_type']}</th>
|
||||
<th>{$lang['remark']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($recharge_list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="3"></td>
|
||||
<td>{$lang['total']}</td>
|
||||
<td>{$totalAmount}</td>
|
||||
<td colspan="4"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$recharge_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.mode_msg}</td>
|
||||
<td>{$vo.nickname_for}[{$vo.username_for}]</td>
|
||||
<td><?php echo number_format($vo['old_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['amount'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['new_money'],2,".",""); ?></td>
|
||||
<td>{$vo.controller_nickname}[{$vo.controller_username}]</td>
|
||||
<td>{$vo.agent_or_admin_msg}</td>
|
||||
<td>{$vo.remake}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($recharge_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$recharge_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
var langType = '{$langType}';
|
||||
if(langType != 'zh-cn'){
|
||||
dateLang = 'en'
|
||||
}else{
|
||||
dateLang = 'cn';
|
||||
}
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,294 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:90px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:10px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
|
||||
.layui-btn.search-btn.countDown{width:30px;height:30px;border-radius:100%;padding:0;background:#fff;border:2px solid #AA947D;color:#AA947D;font-weight:bold;font-size:20px;display:none;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/score_log" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
<button class="layui-btn search-btn countDown">5</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-form">
|
||||
<table class="layui-table" style="min-width:1500px;">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['order_no']}</th>
|
||||
<th>{$lang['order_id']}</th>
|
||||
<th>{$lang['order_type']}</th>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['allocation_user_id']}</th>
|
||||
<th>{$lang['order_money']}</th>
|
||||
<th>{$lang['confirm_money']}</th>
|
||||
<th>{$lang['pay_status']}</th>
|
||||
<th>{$lang['order_time']}</th>
|
||||
<th>{$lang['pay_time']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="4"></td>
|
||||
<td>{$lang['total']}</td>
|
||||
<td>{$total.money}</td>
|
||||
<td>{$total.gold}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.orderNo}</td>
|
||||
<td>{$vo.orderId}</td>
|
||||
<td>{$vo.typeText}</td>
|
||||
<td>{$vo.account}</td>
|
||||
<td>{$vo.userId}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.gold}</td>
|
||||
<td>{$vo.statusText}</td>
|
||||
<td>{$vo.createTime}</td>
|
||||
<td>{$vo.payTime}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
var online = $('#online').val();
|
||||
var refreshUrl = $('#refreshUrl').val();
|
||||
var countDown = 10;
|
||||
if(online == 1){
|
||||
$('.countDown').show();
|
||||
setInterval(function(){
|
||||
countDown = countDown - 1;
|
||||
$('.countDown').html(countDown);
|
||||
if(countDown == 0){
|
||||
location.href = refreshUrl;
|
||||
}
|
||||
},1000);
|
||||
}
|
||||
})
|
||||
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
var langType = '{$langType}';
|
||||
if(langType != 'zh-cn'){
|
||||
dateLang = 'en'
|
||||
}else{
|
||||
dateLang = 'cn';
|
||||
}
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
});
|
||||
|
||||
// 游戏类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,325 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:10px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
.high-a{text-decoration: underline;color:dodgerblue;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/settle" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span class="margin-left">{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="{$lang['refresh']}">{$lang['refresh']}</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="{$lang['export']}" id="export">{$lang['export']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['member_type']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['account_balance']}</th>
|
||||
<th>{$lang['all_bet']}</th>
|
||||
<th>{$lang['member_all_win']}</th>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<th>{$lang['code_washing_amount']}</th>
|
||||
<th>{$lang['code_amount']}</th>
|
||||
<th>{$lang['settled_code_amount']}</th>
|
||||
<th>{$lang['unsettled_code_amount']}</th>
|
||||
<th>{$lang['code_income']}</th>
|
||||
<!--<th>{$lang['baccarat_1']}/{$lang['dt_1']}/{$lang['cow_1']}/{$lang['three_card_1']}<br>{$lang['washing_rate']}%</th>-->
|
||||
<th>{$lang['baccarat_1']}/{$lang['dt_1']}/{$lang['cow_1']}<br>{$lang['washing_rate']}%</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['bet_share_income']}</th>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<th>{$lang['share_code_amount']}</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['profit_share_income']}</th>
|
||||
<th>{$lang['settled_share_income']}</th>
|
||||
<th>{$lang['unsettled_share_income']}</th>
|
||||
<th>{$lang['share_ratio']}%</th>
|
||||
<?php if($top_agent['agent_type'] == 1): ?>
|
||||
<th>{$lang['rebate_income']}</th>
|
||||
<th>{$lang['settled_rebate_income']}</th>
|
||||
<th>{$lang['qp_rebate_income']}</th>
|
||||
<th>{$lang['qp_settled_rebate_income']}</th>
|
||||
<th>{$lang['rebate_rate']}%</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['operate']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$list" item="vo"}
|
||||
|
||||
<tr>
|
||||
<td><?php if($vo['agent'] == 1){echo '<font style="color:#0037ff;">代理</font>';}elseif($vo['agent'] == 0){echo '<font style="color:#ca7609;">会员</font>';}else{echo '-';} ?></td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.bet_detail} > {$vo.username}({$vo.nickname})','/report/bet?{$query}&username={$vo.username}')">{$vo.amount}</a></td>
|
||||
<td>{$vo.win_total}</td>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<td>{$vo.ximaliang}</td>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.wash_code_detail} > {$vo.username}({$vo.nickname})','/report/xima?{$query}&username={$vo.username}')">{$vo.maliang}</a></td>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.Settled_code_record} > {$vo.username}({$vo.nickname})','/report/xima_log?{$query}&username={$vo.username}')">{$vo.maliang_checkout}</a></td>
|
||||
<td>{$vo.maliang_unsettled}</td>
|
||||
<td>{$vo.net_maliang}</td>
|
||||
<td>{$vo.ximalv}</td>
|
||||
<?php endif; ?>
|
||||
<?php if($vo['agent'] == 1): ?>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.share_detail} > {$vo.username}({$vo.nickname})','/report/cs?{$query}&username={$vo.username}')">{$vo.net_cs}</a></td>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.wash_code_detail} > {$vo.username}({$vo.nickname})','/report/xima?{$query}&username={$vo.username}')">{$vo.share_maliang}</a></td>
|
||||
<?php endif; ?>
|
||||
<td>{$vo.cs_income}</td>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.Settled_share_record} > {$vo.username}({$vo.nickname})','/report/cs_log?{$query}&username={$vo.username}')">{$vo.cs_checkout}</a></td>
|
||||
<?php else: ?>
|
||||
<td>{$vo.net_cs}</td>
|
||||
<?php if($top_agent['agent_type'] == 2): ?>
|
||||
<td>{$vo.share_maliang}</td>
|
||||
<?php endif; ?>
|
||||
<td>{$vo.cs_income}</td>
|
||||
<td>{$vo.cs_checkout}</td>
|
||||
<?php endif; ?>
|
||||
<td>{$vo.cs_unsettled}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<?php if($top_agent['agent_type'] == 1): ?>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.Settled_rebate_record} > {$vo.username}({$vo.nickname})','/report/rebate?{$query}&username={$vo.username}&game_type=1')">{$vo.rebate}</a></td>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.Settled_rebate_record} > {$vo.username}({$vo.nickname})','/report/rebate_log?{$query}&username={$vo.username}&game_type=1')">{$vo.rebate_checkout}</a></td>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.Settled_rebate_record} > {$vo.username}({$vo.nickname})','/report/rebate?{$query}&username={$vo.username}&game_type=2')">{$vo.qp_rebate}</a></td>
|
||||
<td><a class="high-a" href="javascript:;" onclick="x_admin_show('{$lang.Settled_rebate_record} > {$vo.username}({$vo.nickname})','/report/rebate_log?{$query}&username={$vo.username}&game_type=2')">{$vo.qp_rebate_checkout}</a></td>
|
||||
<td>{$vo.rebate_rate}</td>
|
||||
<?php endif; ?>
|
||||
<?php if($vo['id'] == $user_info['id'] || $vo['agent'] == 0): ?>
|
||||
<td>-</td>
|
||||
<?php else: ?>
|
||||
<td>
|
||||
<a class="layui-btn layui-operation child-true" href="javascript:;" onclick="x_admin_show('{$lang.subordinates} > {$vo.username}({$vo.nickname})','/report/settle?{$query}&username={$vo.username}')">查看下级</a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td colspan="99">已结码量合计:{$total.maliang_checkout}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('#search').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('#search').trigger('click');
|
||||
});
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/report/settle?export=1&{$query}";
|
||||
layer.close(index);
|
||||
});
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,281 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/user_recharge" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>开始时间:</span>
|
||||
<input type="text" name="startDate" placeholder="开始时间" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>结束时间:</span>
|
||||
<input type="text" name="endDate" placeholder="结束时间" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>查询账号:</span>
|
||||
<input type="text" name="username" placeholder="查询账号" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">查找</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="刷新">刷新</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2" title="今日">今日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1" title="昨日">昨日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6" title="昨日">本周</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7" title="昨日">上周</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4" title="本月">本月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3" title="上月">上月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5" title="全部">全部</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:130px;">时间</th>
|
||||
<th>用户名称[账号]</th>
|
||||
<th>类型</th>
|
||||
<th>充值U币</th>
|
||||
<th>充值金额</th>
|
||||
<th>充值前余额</th>
|
||||
<th>充值后余额</th>
|
||||
<th>外部交易号</th>
|
||||
<th>转账地址</th>
|
||||
<th>入账地址</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="2"></td>
|
||||
<td>合计</td>
|
||||
<td>{$total.amount}</td>
|
||||
<td>{$total.money}</td>
|
||||
<td colspan="9"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.nickname}[{$vo.username}]</td>
|
||||
<td>{$vo.type_text}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['old_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['new_money'],2,".",""); ?></td>
|
||||
<td>{$vo.out_trade_no}</td>
|
||||
<td>{$vo.from_addr}</td>
|
||||
<td>{$vo.to_addr}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">没有数据</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
// 处理提现
|
||||
function doWithdraw(id){
|
||||
var msg = "确定通过?";
|
||||
layer.confirm(msg,function(){
|
||||
$.ajax({
|
||||
url:'/report/doWithdraw',
|
||||
data:{id:id},
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
layer.msg(data.msg,{icon:1});
|
||||
}else{
|
||||
layer.msg(data.msg,function(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,316 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/user_withdraw" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>开始时间:</span>
|
||||
<input type="text" name="startDate" placeholder="开始时间" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>结束时间:</span>
|
||||
<input type="text" name="endDate" placeholder="结束时间" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>查询账号:</span>
|
||||
<input type="text" name="username" placeholder="查询账号" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">查找</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="刷新">刷新</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2" title="今日">今日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1" title="昨日">昨日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6" title="昨日">本周</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7" title="昨日">上周</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4" title="本月">本月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3" title="上月">上月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5" title="全部">全部</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:130px;">时间</th>
|
||||
<th>用户名称[账号]</th>
|
||||
<th>提现U币</th>
|
||||
<th>手续费(U币)</th>
|
||||
<th>提现金额</th>
|
||||
<th>手续费金额</th>
|
||||
<th>提现前余额</th>
|
||||
<th>提现后余额</th>
|
||||
<th>审核状态</th>
|
||||
<th>操作人[账号]</th>
|
||||
<th>操作类型</th>
|
||||
<th>操作</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="1"></td>
|
||||
<td>合计</td>
|
||||
<td>{$total.amount}</td>
|
||||
<td>{$total.service_fee}</td>
|
||||
<td>{$total.money}</td>
|
||||
<td>{$total.service_fee_money}</td>
|
||||
<td colspan="6"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.nickname}[{$vo.username}]</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td>{$vo.service_fee}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['service_fee_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['old_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['new_money'],2,".",""); ?></td>
|
||||
<td>{$vo.status_msg}</td>
|
||||
<td>{$vo.operator_nickname}[{$vo.operator_username}]</td>
|
||||
<td>{$vo.operator_source_msg}</td>
|
||||
<td class="td-manage">
|
||||
{if condition="$user_info.agent_level == 1 && $vo.status == 'WAIT'"}
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="doWithdraw('{$vo.id}')">审核通过</a>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="cancelWithdraw('{$vo.id}')">取消提现</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">没有数据</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
// 处理提现
|
||||
function doWithdraw(id){
|
||||
var msg = "确定通过?";
|
||||
layer.confirm(msg,function(){
|
||||
$.ajax({
|
||||
url:'/report/doUserWithdraw',
|
||||
data:{id:id},
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
layer.msg(data.msg,{icon:1},function(){
|
||||
location.href = "/report/user_withdraw";
|
||||
});
|
||||
}else{
|
||||
layer.msg(data.msg,function(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
// 取消提现
|
||||
function cancelWithdraw(id){
|
||||
var msg = "确定取消?";
|
||||
layer.confirm(msg,function(){
|
||||
$.ajax({
|
||||
url:'/report/cancelUserWithdraw',
|
||||
data:{id:id},
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
layer.msg(data.msg,{icon:1},function(){
|
||||
location.href = "/report/user_withdraw";
|
||||
});
|
||||
}else{
|
||||
layer.msg(data.msg,function(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,254 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:90px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/win_total" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">{$lang['win_or_lose']}</th>
|
||||
<th>{$lang['code_amount']}</th>
|
||||
<th>{$lang['baccarat']}</th>
|
||||
<th>{$lang['dt']}</th>
|
||||
<th>{$lang['cow']}</th>
|
||||
<th>{$lang['chess_card']}</th>
|
||||
<!--
|
||||
<th>{$lang['three_card']}</th>
|
||||
-->
|
||||
<th>{$lang['color_plate']}</th>
|
||||
<th>{$lang['sic_bo']}</th>
|
||||
<th>{$lang['roulette']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td><?php echo number_format($win_total,2,".",""); ?></td>
|
||||
<td><?=$maliang_total;?></td>
|
||||
<td><?php echo number_format($data['baccarat_win'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($data['dt_win'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($data['bull_win'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($data['qp_win'],2,".",""); ?></td>
|
||||
<!--
|
||||
<td><?php echo number_format($data['sanka_win'],2,".",""); ?></td>-->
|
||||
<td><?php echo number_format($data['color_plate_win'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($data['sic_bo_win'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($data['roulette_win'],2,".",""); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
var langType = '{$langType}';
|
||||
if(langType != 'zh-cn'){
|
||||
dateLang = 'en'
|
||||
}else{
|
||||
dateLang = 'cn';
|
||||
}
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
});
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,291 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/withdraw" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>开始时间:</span>
|
||||
<input type="text" name="startDate" placeholder="开始时间" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>结束时间:</span>
|
||||
<input type="text" name="endDate" placeholder="结束时间" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>查询账号:</span>
|
||||
<input type="text" name="username" placeholder="查询账号" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">查找</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="刷新">刷新</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2" title="今日">今日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1" title="昨日">昨日</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6" title="昨日">本周</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7" title="昨日">上周</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4" title="本月">本月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3" title="上月">上月</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5" title="全部">全部</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:130px;">时间</th>
|
||||
<th>用户名称[账号]</th>
|
||||
<th>提现U币</th>
|
||||
<th>手续费(U币)</th>
|
||||
<th>提现金额</th>
|
||||
<th>手续费金额</th>
|
||||
<th>提现前余额</th>
|
||||
<th>提现后余额</th>
|
||||
<th>审核状态</th>
|
||||
<th>操作人[账号]</th>
|
||||
<th>操作类型</th>
|
||||
<th>操作</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="1"></td>
|
||||
<td>合计</td>
|
||||
<td>{$total.amount}</td>
|
||||
<td>{$total.service_fee}</td>
|
||||
<td>{$total.money}</td>
|
||||
<td>{$total.service_fee_money}</td>
|
||||
<td colspan="6"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.nickname}[{$vo.username}]</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td>{$vo.service_fee}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['service_fee_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['old_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['new_money'],2,".",""); ?></td>
|
||||
<td>{$vo.status_msg}</td>
|
||||
<td>{$vo.operator_nickname}[{$vo.operator_username}]</td>
|
||||
<td>{$vo.operator_source_msg}</td>
|
||||
<td class="td-manage">
|
||||
{if condition="$user_info.agent_level == 1 && $vo.status == 'WAIT'"}
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="doWithdraw('{$vo.id}')">审核通过</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">没有数据</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
// 处理提现
|
||||
function doWithdraw(id){
|
||||
var msg = "确定通过?";
|
||||
layer.confirm(msg,function(){
|
||||
$.ajax({
|
||||
url:'/report/doWithdraw',
|
||||
data:{id:id},
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
layer.msg(data.msg,{icon:1});
|
||||
}else{
|
||||
layer.msg(data.msg,function(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
if(type == 6 || type == 7){
|
||||
var result = getNeedTime(type,0);
|
||||
}else{
|
||||
var result = getNeedTime(type,1);
|
||||
}
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 本周
|
||||
case 6:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday + 1)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday + 7)).format('yyyy-MM-dd');
|
||||
break;
|
||||
//上周
|
||||
case 7:
|
||||
var weekday = new Date().getDay() || 7;
|
||||
var startDay = new Date(new Date().setDate(new Date().getDate() - weekday - 6)).format('yyyy-MM-dd');
|
||||
var endDay = new Date(new Date().setDate(new Date().getDate() - weekday)).format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
Date.prototype.format = function (format) {
|
||||
var o = {
|
||||
"M+": this.getMonth() + 1, //month
|
||||
"d+": this.getDate(), //day
|
||||
"h+": this.getHours(), //hour
|
||||
"m+": this.getMinutes(), //minute
|
||||
"s+": this.getSeconds(), //second
|
||||
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
|
||||
"S": this.getMilliseconds() //millisecond
|
||||
}
|
||||
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
|
||||
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
||||
for (var k in o) if (new RegExp("(" + k + ")").test(format))
|
||||
format = format.replace(RegExp.$1,
|
||||
RegExp.$1.length == 1 ? o[k] :
|
||||
("00" + o[k]).substr(("" + o[k]).length));
|
||||
return format;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,244 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/xima" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span class="margin-left">{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="{$lang['refresh']}">{$lang['refresh']}</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="{$lang['export']}" id="export">{$lang['export']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">{$lang.time}</th>
|
||||
<th>{$lang.username}</th>
|
||||
<th>{$lang.game_name}</th>
|
||||
<th>{$lang.table_num}</th>
|
||||
<th>{$lang.boots}</th>
|
||||
<th>{$lang.round}</th>
|
||||
<th>{$lang.all_bet}</th>
|
||||
<th>{$lang.member_all_win}</th>
|
||||
<th>{$lang.code_washing_amount}</th>
|
||||
<th>{$lang.code_amount}</th>
|
||||
<th>{$lang.code_income}</th>
|
||||
<th>{$lang.share_code_amount}</th>
|
||||
<th>{$lang['baccarat_1']}/{$lang['dt_1']}/{$lang['cow_1']}/{$lang['three_card_1']}<br>{$lang['washing_rate']}%</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="5"></td>
|
||||
<td>{$lang.total}</td>
|
||||
<td>{$total.total}</td>
|
||||
<td>{$total.win_total}</td>
|
||||
<td>{$total.ximaliang}</td>
|
||||
<td>{$total.maliang}</td>
|
||||
<td>{$total.net_maliang}</td>
|
||||
<td>{$total.share_maliang}</td>
|
||||
<td colspan="1"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.game_name}</td>
|
||||
<td>{$vo.table_name}</td>
|
||||
<td>{$vo.boot_num}</td>
|
||||
<td>{$vo.number}</td>
|
||||
<td>{$vo.total}</td>
|
||||
<td>{$vo.win_total}</td>
|
||||
<td>{$vo.ximaliang}</td>
|
||||
<td>{$vo.maliang}</td>
|
||||
<td>{$vo.net_maliang}</td>
|
||||
<td>{$vo.share_maliang}</td>
|
||||
<td>{$vo.ximalv}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,226 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||||
.search-box span{ display:inline-block; width:70px; text-align:right; }
|
||||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||||
.layui-form-select{display:inline-block;}
|
||||
.layui-form-select .layui-input{height:28px;}
|
||||
.layui-btn.time-btn{height:28px;padding:0 10px;margin:5px 0 0 5px;background:#67B8D8;}
|
||||
.layui-form-radio{margin:0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<!-- 遮罩loading -->
|
||||
<div class="shadow"></div>
|
||||
<img class="loading" src="/static/agent/images/loading.gif">
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/report/xima_log" method="get">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['start_time']}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang['start_time']}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<span>{$lang['end_time']}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang['end_time']}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span class="margin-left">{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);" title="{$lang['refresh']}">{$lang['refresh']}</a>
|
||||
<a class="layui-btn search-btn" href="javascript:;" title="{$lang['export']}" id="export">{$lang['export']}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="2">{$lang['today']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="1">{$lang['yesterday']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="6">{$lang['this_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="7">{$lang['last_week']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="4">{$lang['this_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="3">{$lang['last_month']}</a>
|
||||
<a class="layui-btn time-btn" href="javascript:;" data-type="5">{$lang['all']}</a>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:120px;">{$lang.time}</th>
|
||||
<th>{$lang.username}</th>
|
||||
<th>{$lang.code_washing_amount}</th>
|
||||
<th>{$lang.code_amount}</th>
|
||||
<th>{$lang.settled_method}</th>
|
||||
<th>{$lang.operate_terminal}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="1"></td>
|
||||
<td>{$lang.total}</td>
|
||||
<td>{$total.ximaliang}</td>
|
||||
<td>{$total.maliang}</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="$list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.ximaliang}</td>
|
||||
<td>{$vo.maliang}</td>
|
||||
<td>{$vo.type_msg}</td>
|
||||
<td>{$vo.admin_or_agent_msg}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
// 归属类型切换
|
||||
$(document).on('click','.layui-form-radio',function(){
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
|
||||
// 快捷时间选择
|
||||
$('.time-btn').click(function(){
|
||||
var type = $(this).attr('data-type');
|
||||
var result = getNeedTime(type,1);
|
||||
$('#start').val(result.startDate);
|
||||
$('#end').val(result.endDate);
|
||||
$('.search-btn').trigger('click');
|
||||
});
|
||||
// 自定义时间函数
|
||||
function getNeedTime(type,format){
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
var query = new Object();
|
||||
var startYear;
|
||||
var endYear;
|
||||
var startMonth;
|
||||
var endMonth;
|
||||
var startDay;
|
||||
var endDay;
|
||||
var startDate;
|
||||
var endDate;
|
||||
|
||||
switch(parseInt(type)){
|
||||
// 昨天
|
||||
case 1:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate() - 1);
|
||||
endDay = plusZero(now.getDate() - 1);
|
||||
break;
|
||||
// 今天
|
||||
case 2:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = plusZero(now.getDate());
|
||||
endDay = plusZero(now.getDate());
|
||||
break;
|
||||
// 上月
|
||||
case 3:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth());
|
||||
endMonth = plusZero(now.getMonth());
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date(year,endMonth,0).getDate());
|
||||
break;
|
||||
// 本月
|
||||
case 4:
|
||||
startYear = year;
|
||||
endYear = year;
|
||||
startMonth = plusZero(now.getMonth() + 1);
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
// 全部
|
||||
case 5:
|
||||
startYear = '2018';
|
||||
endYear = year;
|
||||
startMonth = '01';
|
||||
endMonth = plusZero(now.getMonth() + 1);
|
||||
startDay = '01';
|
||||
endDay = plusZero(new Date().getDate());
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
}else{
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay;
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay;
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
return query;
|
||||
}
|
||||
|
||||
// 月和日 前加0;
|
||||
function plusZero(str){
|
||||
if(str != undefined){
|
||||
if(str >= 1 && str <= 9){
|
||||
str = "0" + str.toString();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,111 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.layui-form-item .layui-input-inline{width:220px;}
|
||||
.layui-form-radio>i{margin-right:0 !important;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">抽水账号</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="username" value="{$user_info.nickname}({$user_info.username})" autocomplete="off" class="layui-input layui-username" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">抽水基数</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="洗码量" autocomplete="off" class="layui-input" value="{$user_info.amount_commission}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">抽水率(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_cs" autocomplete="off" class="layui-input" value="{$user_info.agent_commission}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">未结抽水金额</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="malaing_unbalanced" autocomplete="off" class="layui-input" value="{$user_info.money_commission}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">最近抽水时间</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="checkoutTime" autocomplete="off" class="layui-input" value="{$user_info.last_commission_time}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">抽水方式</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="radio" name="type_commission" autocomplete="off" class="layui-input type_commission" value="1" title="充值上分" readonly>
|
||||
<input type="radio" name="type_commission" autocomplete="off" class="layui-input type_commission" value="2" title="现金结算" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label">
|
||||
</label>
|
||||
<button class="layui-btn" id="submit" type="button">立即提交</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- 隐藏函数 -->
|
||||
<input type="hidden" id="user_id" value="{$user_info.id}">
|
||||
<script>
|
||||
$(function(){
|
||||
// 提交登录
|
||||
$('#submit').click(function(){
|
||||
// 获取参数
|
||||
var user_id = $('#user_id').val();
|
||||
var type_commission = $('.type_commission:checked').val();
|
||||
if(type_commission == undefined || type_commission == ""){
|
||||
layer.msg('请选择抽水方式');
|
||||
return false;
|
||||
}
|
||||
// 发送数据给后台
|
||||
var query = new Object();
|
||||
query.user_id = user_id;
|
||||
query.type_commission = type_commission;
|
||||
$.ajax({
|
||||
url:'/settle/do_commission',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.msg(data.msg,{time:2000},function(){
|
||||
x_admin_close();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,153 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.layui-form-item .layui-input-inline{width:220px;}
|
||||
.layui-form-radio>i{margin-right:0 !important;}
|
||||
.search-box input{width:150px; display: inline-block;}
|
||||
.search-box span{color:#807c7c; display:inline-block;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form" style="overflow:hidden;">
|
||||
<div class="search-box margin-bottom" style="margin:15px 0 0 80px; overflow:hidden;">
|
||||
<span>{$lang.start_time}:</span>
|
||||
<input type="text" name="startDate" placeholder="{$lang.start_time}" id="start" autocomplete="off" class="layui-input search-input" value="<?php if(isset($startDate)) echo $startDate; ?>">
|
||||
<span class="margin-left">{$lang.end_time}:</span>
|
||||
<input type="text" name="endDate" placeholder="{$lang.end_time}" id="end" autocomplete="off" class="layui-input search-input" value="<?php if(isset($endDate)) echo $endDate; ?>">
|
||||
<a class="layui-btn time-btn" id="search" href="javascript:;" style="height:28px; line-height:28px; background:#67B8D8; display:inline-block; margin-left:10px;" title="{$lang.query}">{$lang.query}</a>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.settle_account}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="username" value="{$user_info.nickname}({$user_info.username})" autocomplete="off" class="layui-input layui-username" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.all_win}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" autocomplete="off" class="layui-input" value="{$user_info.win_total}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.share_ratio}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_cs" autocomplete="off" class="layui-input" value="{$user_info.agent_cs}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.unsettled_share_income}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="malaing_unbalanced" autocomplete="off" class="layui-input" value="{$user_info.cs_unbalanced}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.unsettled_share_code_amount}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="share_maliang" autocomplete="off" class="layui-input" value="{$user_info.share_maliang}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.settle_last_time}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="checkoutTime" autocomplete="off" class="layui-input" value="{$user_info.last_cs_time}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.settled_method}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="radio" name="type_cs" autocomplete="off" class="layui-input type_cs" value="1" title="{$lang.up_down_score}" readonly>
|
||||
<input type="radio" name="type_cs" autocomplete="off" class="layui-input type_cs" value="2" title="{$lang.cash_settlement}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label">
|
||||
</label>
|
||||
<button class="layui-btn" id="submit" type="button">{$lang.submit_now}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- 隐藏函数 -->
|
||||
<input type="hidden" id="user_id" value="{$user_info.id}">
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
,type:'datetime'
|
||||
});
|
||||
});
|
||||
$(function(){
|
||||
$('#search').click(function(){
|
||||
var startDate = $('#start').val();
|
||||
var endDate = $('#end').val();
|
||||
if(startDate == '' || endDate == ''){
|
||||
layer.msg('{$lang.need_time}');
|
||||
return false;
|
||||
}else{
|
||||
window.location.href="/settle/cs?user_id={$user_info.id}&startDate="+startDate+"&endDate="+endDate;
|
||||
}
|
||||
})
|
||||
// 提交
|
||||
$('#submit').click(function(){
|
||||
// 获取参数
|
||||
var user_id = $('#user_id').val();
|
||||
var type_cs = $('.type_cs:checked').val();
|
||||
if(type_cs == undefined || type_cs == ""){
|
||||
layer.msg('{$lang.need_settle_type}');
|
||||
return false;
|
||||
}
|
||||
var startDate = $('#start').val();
|
||||
var endDate = $('#end').val();
|
||||
// 发送数据给后台
|
||||
var query = new Object();
|
||||
query.user_id = user_id;
|
||||
query.type_cs = type_cs;
|
||||
query.startDate = startDate;
|
||||
query.endDate = endDate;
|
||||
$.ajax({
|
||||
url:'/settle/do_cs',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.msg(data.msg,{time:2000},function(){
|
||||
x_admin_close();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,128 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.layui-form-item .layui-input-inline{width:220px;}
|
||||
.layui-form-item .layui-btn{background:#ccc;}
|
||||
.layui-form-radio>i{margin-right:0 !important;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body" style="overflow:hidden;">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item" style="margin-top:15px; margin-left:15px;">
|
||||
<a class="layui-btn time-btn" href="/settle/rebate?user_id={$user_info.id}&time_length=1&game_type={$game_type}" style="line-height:38px; <?php if($time_length == 1){echo 'background:#67B8D8;';}?>" data-type="2" title="{$lang.previous_rebate}">{$lang.previous_rebate}</a>
|
||||
<a class="layui-btn time-btn" href="/settle/rebate?user_id={$user_info.id}&time_length=2&game_type={$game_type}" style="line-height:38px; <?php if($time_length == 2){echo 'background:#67B8D8;';}?>" data-type="1" title="{$lang.current_rebate}">{$lang.current_rebate}</a>
|
||||
<a class="layui-btn time-btn" href="/settle/rebate?user_id={$user_info.id}&time_length=3&game_type={$game_type}" style="line-height:38px; <?php if($time_length == 3){echo 'background:#67B8D8;';}?>" data-type="0" title="{$lang.all_rebate}">{$lang.all_rebate}</a>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.rebate_account}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="username" value="{$user_info.nickname}({$user_info.username})" autocomplete="off" class="layui-input layui-username" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.all_bet}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" autocomplete="off" class="layui-input" value="{$user_info.amount}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['rebate_rate']}%</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv" autocomplete="off" class="layui-input" value="{$user_info.rebate_rate}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.unsettled_rebate_amount}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="malaing_unbalanced" autocomplete="off" class="layui-input" value="{$user_info.rebate_unbalanced}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.rebate_last_time}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="checkoutTime" autocomplete="off" class="layui-input" value="{$user_info.last_rebate_time}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="layui-form-item">-->
|
||||
<!-- <label for="username" class="layui-form-label">{$lang.wash_type}</label>-->
|
||||
<!-- <div class="layui-input-inline">-->
|
||||
<!-- <input type="radio" name="type_xima" autocomplete="off" class="layui-input type_xima" value="1" title="{$lang.up_down_score}" readonly>-->
|
||||
<!-- <input type="radio" name="type_xima" autocomplete="off" class="layui-input type_xima" value="2" title="{$lang.cash_settlement}" readonly>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label"></label>
|
||||
<input type="hidden" id="time_length" value="{$time_length}">
|
||||
<input type="hidden" id="time_start" value="{$time_start}">
|
||||
<input type="hidden" id="time_end" value="{$time_end}">
|
||||
<button class="layui-btn" id="submit" type="button">{$lang.submit_now}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- 隐藏函数 -->
|
||||
<input type="hidden" id="user_id" value="{$user_info.id}">
|
||||
<input type="hidden" id="game_type" value="{$game_type}">
|
||||
<script>
|
||||
$(function(){
|
||||
// 提交登录
|
||||
$('#submit').click(function(){
|
||||
// 获取参数
|
||||
var user_id = $('#user_id').val();
|
||||
var game_type = $('#game_type').val();
|
||||
var time_length = $('#time_length').val();
|
||||
var time_start = $('#time_start').val();
|
||||
var time_end = $('#time_end').val();
|
||||
// var type_xima = $('.type_xima:checked').val();
|
||||
// if(type_xima == undefined || type_xima == ""){
|
||||
// layer.msg('{$lang.need_wash_type}');
|
||||
// return false;
|
||||
// }
|
||||
// 发送数据给后台
|
||||
var query = new Object();
|
||||
query.user_id = user_id;
|
||||
query.game_type = game_type;
|
||||
// query.type_xima = type_xima;
|
||||
query.time_length = time_length;
|
||||
query.time_start = time_start;
|
||||
query.time_end = time_end;
|
||||
$.ajax({
|
||||
url:'/settle/do_rebate',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.msg(data.msg,{time:2000},function(){
|
||||
x_admin_close();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,185 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{$lang['system_name']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" value="{$user_info.username}" autocomplete="off" class="layui-input layui-username" readonly>
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{$lang['account_balance']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="money" value="{$user_info.money}" autocomplete="off" class="layui-input layui-username" readonly>
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{$lang['type']}</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="recharge" value="1" title="{$lang['recharge']}" checked class="recharge">
|
||||
<input type="radio" name="recharge" value="2" title="{$lang['withdrawal']}" class="recharge">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
{if condition="$intersect eq 1"}
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{$lang['whether_to_send_points']}</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="recharge_give" value="0" title="{$lang['no']}" checked class="recharge_give" disabled="disabled">
|
||||
<input type="radio" name="recharge_give" value="1" title="{$lang['yes']}" class="recharge_give" checked="checked">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{$lang['money']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="rechargeMoney" autocomplete="off" class="layui-input" placeholder="{$lang['enter_amount']}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"></label>
|
||||
<div class="layui-input-block">
|
||||
<font color="blue">
|
||||
{$lang['current_available_limit_is']}
|
||||
<strong>{$agentParentMoney}</strong>
|
||||
</font>
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">{$lang['remark']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea id="remake" name="remake" maxlength="200" class="layui-textarea" rows="2" style="resize: none;"></textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label">
|
||||
</label>
|
||||
<button class="layui-btn" type="button" id="submit">{$lang['submit_now']}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- 隐藏参数 -->
|
||||
<input type="hidden" id="userId" value="{$user_info.id}">
|
||||
<input type="hidden" id="agent" value="{$user_info.agent}">
|
||||
<input type="hidden" id="username" value="{$user_info.username}">
|
||||
<input type="hidden" id="userMoney" value="{$user_info.money}">
|
||||
<input type="hidden" id="agentParentMoney" value="{$agentParentMoney}">
|
||||
<script>
|
||||
$(function(){
|
||||
var lang = {$jsonlang}
|
||||
// 输入框触发事件
|
||||
$('.layui-input').keyup(function(){
|
||||
showRemind(this);
|
||||
});
|
||||
$('.layui-input').blur(function(){
|
||||
showRemind(this);
|
||||
});
|
||||
// 数据验证提醒 (需配合 .layui-input触发事件使用)
|
||||
function showRemind(obj){
|
||||
// 获取数据
|
||||
var id = $(obj).attr('id');
|
||||
var value = $(obj).val();
|
||||
var tip = '';
|
||||
|
||||
// 判断输入框是否为空
|
||||
if(value.length == 0){
|
||||
tip = lang.non_negative_number;
|
||||
$(obj).addClass('warning');
|
||||
$(obj).parent().next().addClass('warning').html(tip);
|
||||
return false;
|
||||
}
|
||||
// 恢复正常颜色提醒
|
||||
$(obj).removeClass('warning');
|
||||
$(obj).parent().next().removeClass('warning').html('');
|
||||
}
|
||||
|
||||
// 提交添加会员
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
var userMoney = parseFloat($('#userMoney').val());
|
||||
var agentParentMoney = parseFloat($('#agentParentMoney').val());
|
||||
var username = $('#username').val();
|
||||
var agent = $('#agent').val();
|
||||
query.userId = $('#userId').val();
|
||||
query.recharge = $('.recharge:checked').val();
|
||||
query.rechargeMoney = parseFloat($('#rechargeMoney').val());
|
||||
query.remake = $('#remake').val();
|
||||
|
||||
{if condition="$intersect eq 1"}
|
||||
query.recharge_give = $('.recharge_give:checked').val();
|
||||
{/if}
|
||||
|
||||
// 验证数据
|
||||
if(isNaN(query.rechargeMoney)){
|
||||
layer.msg(lang.enter_amount,function(){});
|
||||
return false;
|
||||
}
|
||||
if(query.rechargeMoney <= 0 || isNaN(query.rechargeMoney)){
|
||||
layer.msg(lang.amount_big_than_0,function(){});
|
||||
return false;
|
||||
}
|
||||
if(query.recharge == 1 && query.rechargeMoney > agentParentMoney){
|
||||
layer.msg(lang.recharge_exceeds_limit,function(){});
|
||||
return false;
|
||||
}
|
||||
if(query.recharge == 2 && query.rechargeMoney > userMoney){
|
||||
layer.msg(lang.insufficient_balance,function(){});
|
||||
return false;
|
||||
}
|
||||
|
||||
layer.confirm(lang.are_you_sure,{title:lang.confirm_operation,icon:3,btn: [lang.yse,lang.no]},function(){
|
||||
$.ajax({
|
||||
url:'/settle/do_recharge',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,function(index){
|
||||
layer.close(index);
|
||||
x_admin_show('充值提现查询','/report/recharge?username='+ username);
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,131 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台管理系统</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.layui-form-item .layui-input-inline{width:220px;}
|
||||
.layui-form-item .layui-btn{background:#ccc;}
|
||||
.layui-form-radio>i{margin-right:0 !important;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body" style="overflow:hidden;">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item" style="margin-top:15px; margin-left:15px;">
|
||||
<a class="layui-btn time-btn" href="/settle/xima?user_id={$user_info.id}&time_length=1" style="line-height:38px; <?php if($time_length == 1){echo 'background:#67B8D8;';}?>" data-type="2" title="{$lang.previous_wash_code}">{$lang.previous_wash_code}</a>
|
||||
<a class="layui-btn time-btn" href="/settle/xima?user_id={$user_info.id}&time_length=2" style="line-height:38px; <?php if($time_length == 2){echo 'background:#67B8D8;';}?>" data-type="1" title="{$lang.current_wash_code}">{$lang.current_wash_code}</a>
|
||||
<a class="layui-btn time-btn" href="/settle/xima?user_id={$user_info.id}&time_length=3" style="line-height:38px; <?php if($time_length == 3){echo 'background:#67B8D8;';}?>" data-type="0" title="{$lang.all_wash_code_1}">{$lang.all_wash_code_1}</a>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.wash_code_account}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="username" value="{$user_info.nickname}({$user_info.username})" autocomplete="off" class="layui-input layui-username" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.wash_code_amount}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" autocomplete="off" class="layui-input" value="{$user_info.ximaliang}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['baccarat_1']}/{$lang['dt_1']}/{$lang['cow_1']}/{$lang['three_card_1']}<br>{$lang['washing_rate']}%</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv" autocomplete="off" class="layui-input" value="{$user_info.agent_ximalv}/{$user_info.agent_ximalv_dt}/{$user_info.agent_ximalv_nn}/{$user_info.agent_ximalv_tc}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.share_ratio}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_cs" autocomplete="off" class="layui-input" value="{$user_info.agent_cs}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.unsettled_code_amount}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="malaing_unbalanced" autocomplete="off" class="layui-input" value="{$user_info.maliang_unbalanced}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.wash_code_last_time}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="checkoutTime" autocomplete="off" class="layui-input" value="{$user_info.last_xima_time}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang.wash_type}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="radio" name="type_xima" autocomplete="off" class="layui-input type_xima" value="1" title="{$lang.up_down_score}" readonly>
|
||||
<input type="radio" name="type_xima" autocomplete="off" class="layui-input type_xima" value="2" title="{$lang.cash_settlement}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label"></label>
|
||||
<input type="hidden" id="time_length" value="{$time_length}">
|
||||
<input type="hidden" id="time_start" value="{$time_start}">
|
||||
<input type="hidden" id="time_end" value="{$time_end}">
|
||||
<button class="layui-btn" id="submit" type="button">{$lang.submit_now}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- 隐藏函数 -->
|
||||
<input type="hidden" id="user_id" value="{$user_info.id}">
|
||||
<script>
|
||||
$(function(){
|
||||
// 提交登录
|
||||
$('#submit').click(function(){
|
||||
// 获取参数
|
||||
var user_id = $('#user_id').val();
|
||||
var time_length = $('#time_length').val();
|
||||
var time_start = $('#time_start').val();
|
||||
var time_end = $('#time_end').val();
|
||||
var type_xima = $('.type_xima:checked').val();
|
||||
if(type_xima == undefined || type_xima == ""){
|
||||
layer.msg('{$lang.need_wash_type}');
|
||||
return false;
|
||||
}
|
||||
// 发送数据给后台
|
||||
var query = new Object();
|
||||
query.user_id = user_id;
|
||||
query.type_xima = type_xima;
|
||||
query.time_length = time_length;
|
||||
query.time_start = time_start;
|
||||
query.time_end = time_end;
|
||||
$.ajax({
|
||||
url:'/settle/do_xima',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.msg(data.msg,{time:2000},function(){
|
||||
x_admin_close();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,155 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.layui-form-item .layui-input-inline {
|
||||
width: 260px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['superior_account']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_parent" value="{$user_info.username}({$user_info.nickname})"
|
||||
autocomplete="off" class="layui-input layui-username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['username']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<button class="layui-btn" type="button" id="createUsername">{$lang['automatically']}</button>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="password" autocomplete="off" class="layui-input" onfocus="this.type='password'">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['confirm_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="repassword" autocomplete="off" class="layui-input" onfocus="this.type='password'">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['sub_account_function']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="account_type" autocomplete="off" class="layui-select">
|
||||
<option value="1">{$lang['account_management']}</option>
|
||||
<option value="2">{$lang['supply_and_drainage_management']}</option>
|
||||
<option value="3">{$lang['report_management']}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label">
|
||||
</label>
|
||||
<button class="layui-btn" type="button" id="submit">{$lang['submit_now']}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
var lang = {$jsonlang};
|
||||
// 系统随机生成用户名
|
||||
$('#createUsername').click(function(){
|
||||
var rand = '';
|
||||
var num = '';
|
||||
for(var i = 0; i < 6; i++){
|
||||
num = Math.floor(Math.random() * 10);
|
||||
rand += num;
|
||||
}
|
||||
$('#username').val(rand);
|
||||
});
|
||||
|
||||
|
||||
// 提交添加会员
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.username = $('#username').val();
|
||||
query.nickname = $('#nickname').val();
|
||||
query.password = $('#password').val();
|
||||
query.repassword = $('#repassword').val();
|
||||
query.account_type = $('#account_type').val();
|
||||
|
||||
// 验证数据
|
||||
if(query.username.length == 0 || query.username == undefined){
|
||||
layer.alert(lang.empty_username);
|
||||
return false;
|
||||
}
|
||||
if(query.nickname.length == 0 || query.nickname == undefined){
|
||||
layer.alert(lang.empty_nickname);
|
||||
return false;
|
||||
}
|
||||
if(query.password.length == 0 || query.password == undefined){
|
||||
layer.alert(lang.empty_password);
|
||||
return false;
|
||||
}
|
||||
if(query.password.length < 6){
|
||||
layer.alert(lang.new_pass_limit);
|
||||
return false;
|
||||
}
|
||||
if(query.password != query.repassword){
|
||||
layer.alert(lang.pass_diff);
|
||||
return false;
|
||||
}
|
||||
if(query.account_type.length == 0 || query.account_type == undefined){
|
||||
layer.alert(lang['select_account_function']);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url:'/sub/do_add',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,function(index){
|
||||
layer.close(index);
|
||||
window.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.relation{ text-decoration: underline;}
|
||||
.relation:hover{ color:#807362}
|
||||
.self{ background:rgb(199, 182, 151)}
|
||||
.self:hover{ background:rgb(199, 182, 151) !important;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<div class="x-body">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['sub_account_function']}</th>
|
||||
<th>{$lang['create_time']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$sub_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.account_type}</td>
|
||||
<td>{$vo.create_time}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($sub_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,137 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.layui-form-label {
|
||||
width: 150px;
|
||||
}
|
||||
.layui-form-item .layui-input-inline {
|
||||
width: 320px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['superior_account']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_parent" value="{$user_info.username}({$user_info.nickname})"
|
||||
autocomplete="off" class="layui-input layui-username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['username']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input readonly" value={$sub_info.username} readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input" value={$sub_info.nickname}>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="password" autocomplete="off" class="layui-input" onfocus="this.type='password'">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['confirm_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="repassword" autocomplete="off" class="layui-input" onfocus="this.type='password'">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['sub_account_function']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="account_type" autocomplete="off" class="layui-select">
|
||||
<option value="1" <?php if($sub_info['account_type'] == 1) echo 'selected="selected"'; ?>>{$lang['account_management']}</option>
|
||||
<option value="2" <?php if($sub_info['account_type'] == 2) echo 'selected="selected"'; ?>>{$lang['supply_and_drainage_management']}</option>
|
||||
<option value="3" <?php if($sub_info['account_type'] == 3) echo 'selected="selected"'; ?>>{$lang['report_management']}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="" class="layui-form-label">
|
||||
</label>
|
||||
<button class="layui-btn" type="button" id="submit">{$lang['submit_now']}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
// 提交添加会员
|
||||
var lang = {$jsonlang};
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.sub_id = {$sub_info['id']};
|
||||
query.nickname = $('#nickname').val();
|
||||
query.password = $('#password').val();
|
||||
query.repassword = $('#repassword').val();
|
||||
query.account_type = $('#account_type').val();
|
||||
if(query.nickname.length == 0 || query.nickname == undefined){
|
||||
layer.alert(lang.empty_nickname);
|
||||
return false;
|
||||
}
|
||||
if(query.password.length > 0){
|
||||
if(query.password.length < 6){
|
||||
layer.alert(lang.new_pass_limit);
|
||||
return false;
|
||||
}
|
||||
if(query.password != query.repassword){
|
||||
layer.alert(lang.pass_diff);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(query.account_type.length == 0 || query.account_type == undefined){
|
||||
layer.alert(lang.select_account_function);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url:'/sub/do_edit',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,function(index){
|
||||
layer.close(index);
|
||||
parent.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,98 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$lang['system_name']}</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
.relation{ text-decoration: underline;}
|
||||
.relation:hover{ color:#807362}
|
||||
.self{ background:rgb(199, 182, 151)}
|
||||
.self:hover{ background:rgb(199, 182, 151) !important;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<div class="x-body">
|
||||
<div class="layui-form">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['sub_account_function']}</th>
|
||||
<th>{$lang['create_time']}</th>
|
||||
<th>{$lang['operate']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$sub_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.account_type}</td>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.edit_sub_account}','/sub/edit_sub?id={$vo.id}',800,430)">{$lang['edit_sub_account']}</a>
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="del({$vo.id})">{$lang['delete_sub_account']}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($sub_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$sub_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
var lang = {$jsonlang};
|
||||
function del(id){
|
||||
layer.confirm(lang.is_delete_sub_account, {
|
||||
title: lang.delete_sub_account,
|
||||
btn: [lang.yse,lang.no] //按钮
|
||||
}, function(){
|
||||
var query = new Object();
|
||||
query.sub_id = id;
|
||||
$.ajax({
|
||||
url:'/sub/do_del',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg,{
|
||||
title:lang.message,
|
||||
});
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
},function(index){
|
||||
layer.close(index);
|
||||
window.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
}, function(){
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
@@ -0,0 +1,192 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>个人首页</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.qrcode.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
.layui-field-box{
|
||||
min-width:1280px;
|
||||
padding:0 5%;
|
||||
}
|
||||
.layui-field-box section{
|
||||
margin-bottom:20px;
|
||||
min-width:495px;
|
||||
}
|
||||
.layui-field-box section .item-box{
|
||||
width:49%;
|
||||
background:#F2F2F2;
|
||||
border-radius:5px;
|
||||
position:relative;
|
||||
display:inline-block;
|
||||
|
||||
border-top:3px solid #00a65a;
|
||||
height: 550px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.layui-field-box section .item-box .item-title{
|
||||
height:40px;
|
||||
text-align: center;
|
||||
line-height:40px;
|
||||
font-size:18px;
|
||||
border-bottom:1px solid #ccc;
|
||||
}
|
||||
.layui-field-box section .item-box .item-qrcode #qrcode{
|
||||
width: 205px;
|
||||
height: 205px;
|
||||
margin: 10px auto;
|
||||
position: relative;
|
||||
background: rgb(250, 250, 250);
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
opacity: 1;
|
||||
}
|
||||
.layui-field-box section .item-box .item-qrcode #qrcode canvas{
|
||||
width: 205px;
|
||||
}
|
||||
.layui-field-box section .item-box .item-message{
|
||||
padding:10px;
|
||||
font-size:15px;
|
||||
}
|
||||
.layui-field-box section .item-box .item-message p{
|
||||
padding:10px 0;
|
||||
}
|
||||
.layui-field-box section .item-box .item-url {
|
||||
padding:10px;
|
||||
width:470px;
|
||||
}
|
||||
.layui-field-box section .item-box .item-url input{
|
||||
width:450px;
|
||||
padding:10px;
|
||||
font-size:15px;
|
||||
border:1px solid #ccc;
|
||||
background:#F2F2F2;
|
||||
border-radius:5px;
|
||||
}
|
||||
.box-sec{ overflow: hidden; text-align: center;}
|
||||
.url-box{ float: left; margin-right: 10px;padding: 10px;}
|
||||
.check-div{padding: 20px 20px;}
|
||||
.check-div p{ padding: 5px 0; text-align: left;}
|
||||
.check-div input{ }
|
||||
.check-div span{display: inline-block;font-size: 16px;padding-left: 5px;}
|
||||
.btn-div{padding: 10px 0; text-align: center;background: #ddd;color:}
|
||||
.btn-div button{border: none;background: #000;color: #fff; padding: 5px 10px;}
|
||||
</style>
|
||||
</head>
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<div class="x-body layui-anim layui-anim-up" style="overflow-x: scroll;">
|
||||
<img src="{$Think.LOGO_PATH}" id="logo" style="position:absolute;top:-933px;left:-1000px;">
|
||||
<fieldset class="layui-elem-field">
|
||||
<legend>Line投设置</legend>
|
||||
<div class="layui-field-box qrcode-box">
|
||||
<section class="box-sec">
|
||||
<div class="item-box" style="margin-right: 2%;">
|
||||
<div class="item-title">
|
||||
<span>绑定Line投台桌</span>
|
||||
</div>
|
||||
<div class="item-qrcode check-div" >
|
||||
{foreach name="tables" item="vo"}
|
||||
<p class="c1"><input type="checkbox" name="wt_table" value='{$vo.id}' <?php if($vo['is_wt']) {echo 'checked="checked"';} ?>><span>{$vo.table_name}</span></p>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="btn-div"><button onclick="do_wt_table()">提交</button></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="item-box " >
|
||||
<div class="item-title">
|
||||
<span>Line投推广码</span>
|
||||
</div>
|
||||
<div class="item-qrcode" >
|
||||
<div id="qrcode"></div>
|
||||
</div>
|
||||
<div class="item-message">
|
||||
<p id="agent_input">运行线路:
|
||||
<select style="width: 150px;padding: 5px 0;" id="wt_agent">
|
||||
<option value ="0" <?php if(!$wt_agent) {echo 'selected="true"';} ?> >请选择</option>
|
||||
{foreach name="agent_list" item="vo"}
|
||||
<option value ="{$vo.username}" <?php if($wt_agent == $vo['username'] ) {echo 'selected="true"';} ?> >{$vo.username}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<span style="padding: 5px 10px;background-color:#000;color: #fff; margin-left: 10px;cursor:pointer;" onclick="do_wt_agent()">提交</span>
|
||||
</p>
|
||||
<!-- <p>我的推荐码:<?=$user_info['referral_code']; ?></p> -->
|
||||
<p>我的推广链接:<span id="share_url"><?=$marketingUrl; ?></span></p>
|
||||
<p>使用方法:在上面的二维码图片上点击右键,选择“图片另存为”,保存二维码图片。</p>
|
||||
<!-- <p style="color:red;">说明:用户通过此二维码可注册成为当前代理名下玩家。</p> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<input type="hidden" id="marketingUrl" value="{$marketingUrl}">
|
||||
<script type="text/javascript">
|
||||
window.onload=function(){
|
||||
<?php if($wt_agent){echo 'var marketingUrl = $("#marketingUrl").val(); $("#qrcode").qrcode(marketingUrl);';}
|
||||
|
||||
?>
|
||||
}
|
||||
function do_wt_table(){
|
||||
var table_str='';
|
||||
$('input[name="wt_table"]:checked').each(function(){
|
||||
table_str+=$(this).val()+',';
|
||||
});
|
||||
var query = new Object();
|
||||
query.table_str = table_str;
|
||||
var url = '/wt/do_wt_table';
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: query,
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
success: function (data) {
|
||||
layer.msg(data.Msg);
|
||||
}
|
||||
})
|
||||
}
|
||||
function do_wt_agent(){
|
||||
var wt_agent = $("#wt_agent option:selected").val();
|
||||
if(wt_agent == 0){
|
||||
layer.msg('请选择运行路线');
|
||||
return false;
|
||||
}
|
||||
var query = new Object();
|
||||
query.wt_agent = wt_agent;
|
||||
var url = '/wt/do_wt_agent';
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: query,
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
success: function (data) {
|
||||
if(data.success == 0){
|
||||
layer.msg(data.Msg);
|
||||
}else{
|
||||
layer.msg(data.Msg);
|
||||
var marketingUrl = data.url;
|
||||
$('#qrcode').html('');
|
||||
$('#share_url').html(data.url);
|
||||
$("#qrcode").qrcode(marketingUrl);
|
||||
// $("#qrcode canvas")[0].getContext("2d").drawImage($("#logo")[0], 80, 80, 80, 80);
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,123 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>个人首页</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/agent/js/jquery.qrcode.min.js"></script>
|
||||
<style type="text/css">
|
||||
.layui-field-box{
|
||||
min-width:1280px;
|
||||
padding:0 5%;
|
||||
}
|
||||
.layui-field-box section{
|
||||
margin-bottom:20px;
|
||||
min-width:495px;
|
||||
}
|
||||
.layui-field-box section .item-box{
|
||||
width:40%;
|
||||
background:#F2F2F2;
|
||||
border-radius:5px;
|
||||
position:relative;
|
||||
display:inline-block;
|
||||
}
|
||||
.layui-field-box section .item-box.url-box{
|
||||
border-top:3px solid #f39c12;
|
||||
position:relative;
|
||||
top:-125px;
|
||||
left:5%;
|
||||
}
|
||||
.layui-field-box section .item-box .item-title{
|
||||
height:40px;
|
||||
text-align: center;
|
||||
line-height:40px;
|
||||
font-size:18px;
|
||||
border-bottom:1px solid #ccc;
|
||||
}
|
||||
.layui-field-box section .item-box .item-qrcode #qrcode{
|
||||
width: 205px;
|
||||
height: 205px;
|
||||
margin: 10px auto;
|
||||
position: relative;
|
||||
background: rgb(250, 250, 250);
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
opacity: 1;
|
||||
}
|
||||
.layui-field-box section .item-box .item-qrcode #qrcode canvas{
|
||||
width: 205px;
|
||||
}
|
||||
.layui-field-box section .item-box .item-message{
|
||||
padding:10px;
|
||||
font-size:15px;
|
||||
}
|
||||
.layui-field-box section .item-box .item-message p{
|
||||
padding:10px 0;
|
||||
}
|
||||
.layui-field-box section .item-box .item-url {
|
||||
padding:10px;
|
||||
width:470px;
|
||||
}
|
||||
.layui-field-box section .item-box .item-url input{
|
||||
width:450px;
|
||||
padding:10px;
|
||||
font-size:15px;
|
||||
border:1px solid #ccc;
|
||||
background:#F2F2F2;
|
||||
border-radius:5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="iframeClass scroll-wrapper">
|
||||
<div class="x-body layui-anim layui-anim-up" style="overflow-x: scroll;">
|
||||
<img src="{$Think.LOGO_PATH}" id="logo" style="position:absolute;top:-933px;left:-1000px;">
|
||||
<fieldset class="layui-elem-field">
|
||||
<legend>Line投推广</legend>
|
||||
<div class="layui-field-box qrcode-box" >
|
||||
<section>
|
||||
<div class="item-box" style="border-top:3px solid #00a65a;">
|
||||
<div class="item-title">
|
||||
<span>我的专用Line投推广二维码</span>
|
||||
</div>
|
||||
<div class="item-qrcode" >
|
||||
<div id="qrcode"></div>
|
||||
</div>
|
||||
<div class="item-message">
|
||||
<p>我的推广链接:<?=$marketingUrl; ?></p>
|
||||
<p>使用方法:在上面的二维码图片上点击右键,选择“图片另存为”,保存二维码图片。</p>
|
||||
<p style="color:red;">说明:用户通过此二维码进行游戏即可成为当前代理名下玩家。</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item-box url-box" style="display:none;">
|
||||
<div class="item-title">
|
||||
<span>我的专用推广链接</span>
|
||||
</div>
|
||||
<div class="item-url">
|
||||
<input type="text" value="{$marketingUrl}" readonly>
|
||||
</div>
|
||||
<div class="item-message">
|
||||
<p>使用方法:点击上面的输入框,按下Ctrl+C复制,或者点击鼠标右键后选择“复制”。</p>
|
||||
<p style="color:red;">说明:用户通过此链接访问游戏网站可注册成为当前代理名下玩家。请勿担心玩家将此链接后的代理ID删除后注册,玩家一旦删除代理ID,则无法成功注册。</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="marketingUrl" value="{$marketingUrl}">
|
||||
<script type="text/javascript">
|
||||
window.onload=function(){
|
||||
var marketingUrl = $('#marketingUrl').val();
|
||||
$('#qrcode').qrcode(marketingUrl);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user