init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user