init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,189 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
.x-body .layui-row{ margin-top:-10px; line-height:25px; background:#f5f5f5; border-radius:10px; }
|
||||
.x-body .layui-row .xblock button{ margin-top:-20px; }
|
||||
.x-body .layui-form{ margin-top:15px; margin-bottom:16px; }
|
||||
.x-body .layui-form .layui-input-block{ display:inline-block; width:150px; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item{ display:inline-block; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-label{ width:48px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block{ margin-left:-10px; width:100px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block .layui-form-radio i{ margin-right:4px; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-radio{ margin-top:6px; margin-right:-8px; }
|
||||
.layui-input-block dl{ text-align:left; }
|
||||
.x-so{ margin:0; }
|
||||
.x-so input.layui-input{ width:150px; }
|
||||
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
|
||||
.change_box .actived{border-right:1px solid #e5e5e5;border-left:1px solid #e5e5e5;border-top:1px solid #e5e5e5; position: relative; color: #3daae9; }
|
||||
.change_box .actived:after{content: ""; bottom: -2px; background: #fff; width: 100%; height: 5px; position: absolute; left: 0; }
|
||||
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
||||
.title-ag{height: 40px; line-height: 40px; background: #fdeeda; margin-top: 10px; text-align:center;}
|
||||
.title-ag span{font-size: 15px;}
|
||||
.layui-table td, .layui-table th{font-size:12px;}
|
||||
</style>
|
||||
<body>
|
||||
<div class="x-nav" style="padding: 0px;">
|
||||
<span class="change_box">
|
||||
<a href="javascript:;" class="list-one actived" data-id="1">牛牛桌台账目</a>
|
||||
<!--<a href="javascript:;" class="list-two" data-id="2">玩家添加</a>-->
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-small refresh" style="line-height:1.6em;margin-top:3px;float:right"
|
||||
href="javascript:location.replace(location.href);" title="刷新">
|
||||
<i class="layui-icon" style="line-height:30px">ဂ</i></a>
|
||||
</div>
|
||||
<br>
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so float-left" action="/table/nn" method="get">
|
||||
<input class="layui-input" placeholder="开始时间" name="startDate" id="start" value="<?php if(isset($get['startDate'])) {echo $get['startDate'];} ?>">
|
||||
<input class="layui-input" placeholder="结束时间" name="endDate" id="end" value="<?php if(isset($get['endDate'])) {echo $get['endDate'];} ?>">
|
||||
<div class="layui-input-block" >
|
||||
<select name="table_id" id="table_id">
|
||||
<option value="-1" selected>请选择桌子</option>
|
||||
{foreach name="$table_list" item="vo"}
|
||||
<option value="{$vo.id}" <?php if(isset($get['table_id']) && $get['table_id'] == $vo['id']) {echo 'selected';} ?>>{$vo.table_name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon"></i></button>
|
||||
<span class="layui-btn" id="export">导出excel</span>
|
||||
<!-- <span class="layui-btn" id="print">打印</span> -->
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<table class="layui-table">
|
||||
<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>
|
||||
<th>闲一(次)</th>
|
||||
<th>闲二(次)</th>
|
||||
<th>闲三(次)</th>
|
||||
<th>总押</th>
|
||||
<th>会员赢</th>
|
||||
<th>收益</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="table" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.table_name}</td>
|
||||
<td>{$vo.amount_player_1_Sum}</td>
|
||||
<td>{$vo.amount_player_1_times_Sum}</td>
|
||||
<td>{$vo.amount_player_1_banker_Sum}</td>
|
||||
<td>{$vo.amount_player_1_banker_times_Sum}</td>
|
||||
<td>{$vo.amount_player_2_Sum}</td>
|
||||
<td>{$vo.amount_player_2_times_Sum}</td>
|
||||
<td>{$vo.amount_player_2_banker_Sum}</td>
|
||||
<td>{$vo.amount_player_2_banker_times_Sum}</td>
|
||||
<td>{$vo.amount_player_3_Sum}</td>
|
||||
<td>{$vo.amount_player_3_times_Sum}</td>
|
||||
<td>{$vo.amount_player_3_banker_Sum}</td>
|
||||
<td>{$vo.amount_player_3_banker_times_Sum}</td>
|
||||
<td>{$vo.win_banker}</td>
|
||||
<td>{$vo.win_player_1}</td>
|
||||
<td>{$vo.win_player_2}</td>
|
||||
<td>{$vo.win_player_3}</td>
|
||||
<td>{$vo.totalSum}</td>
|
||||
<td>{$vo.totalWinSum}</td>
|
||||
<td>{$vo.income}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<!-- 汇总信息 -->
|
||||
<tr style="border-left:1px solid #ddd;">
|
||||
<td colspan="16" style="border-left:none;"></td>
|
||||
<td>汇总</td>
|
||||
<td>{$total_nn.total_sum}</td>
|
||||
<td>{$total_nn.total_win_sum}</td>
|
||||
<td>{$total_nn.income}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{$table->render()}
|
||||
</div>
|
||||
<script>
|
||||
// 代理列表和添加代理切换
|
||||
$('.x-nav .change_box a').click(function(){
|
||||
// 样式切换
|
||||
$('.x-nav .change_box a').removeClass('actived');
|
||||
$(this).addClass('actived');
|
||||
// 页面切换
|
||||
var id = $(this).attr('data-id');
|
||||
if(id == "1") location.href = '/table/dn';
|
||||
// if(id == "2") location.href = '/player/player_add';
|
||||
});
|
||||
// 时间选择器
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
// 开始时间
|
||||
laydate.render({
|
||||
elem: '#start',
|
||||
type: 'datetime'
|
||||
});
|
||||
|
||||
// 结束时间
|
||||
laydate.render({
|
||||
elem: '#end',
|
||||
type: 'datetime'
|
||||
});
|
||||
});
|
||||
$('#print').click(function(){
|
||||
var qs = getQueryString();
|
||||
var startDate = qs["startDate"];
|
||||
var endDate = qs["endDate"];
|
||||
var table_id = qs["table_id"];
|
||||
if(startDate == undefined) startDate = '';
|
||||
if(endDate == undefined) endDate = '';
|
||||
if(table_id == undefined) table_id = '';
|
||||
|
||||
layer.open({
|
||||
type: 2,
|
||||
title:'龙虎斗桌台账目打印',
|
||||
content: '/table/nn_print?startDate='+startDate+'&endDate='+endDate+'&table_id='+table_id,
|
||||
area: ['95%', '95%']
|
||||
});
|
||||
});
|
||||
function getQueryString() {
|
||||
var qs = location.search.substr(1), // 获取url中"?"符后的字串
|
||||
args = {}, // 保存参数数据的对象
|
||||
items = qs.length ? qs.split("&") : [], // 取得每一个参数项,
|
||||
item = null,
|
||||
len = items.length;
|
||||
|
||||
for(var i = 0; i < len; i++) {
|
||||
item = items[i].split("=");
|
||||
var name = decodeURIComponent(item[0]),
|
||||
value = decodeURIComponent(item[1]);
|
||||
if(name) {
|
||||
args[name] = value;
|
||||
}
|
||||
}
|
||||
return args;
|
||||
}
|
||||
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
var startDate = $('#start').val();
|
||||
var endDate = $('#end').val();
|
||||
var table_id = $('#table_id').val();
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/table/nn?export=1&startDate="+startDate+"&endDate="+endDate+"&table_id="+table_id;
|
||||
layer.close(index);
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user