83 lines
3.4 KiB
HTML
83 lines
3.4 KiB
HTML
{include file="public/header"}
|
|
<body>
|
|
<style type="text/css"> textarea, input[type="text"], input[type="password"],.uneditable-input{border: 1px solid #ccc;background-color: #fff; } .change_box a{font-size: 14px;padding: 10.5px 10px;} .change_box .table_list{border-right:1px solid #e5e5e5;border-top:1px solid #e5e5e5; position: relative;} .change_box .table_add{color: #3daae9;} .change_box .table_list:after{content: ""; bottom: -2px; background: #fff; width: 100%; height: 5px; position: absolute; left: 0; } .x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; } </style>
|
|
<div class="x-nav" style="padding: 0px;">
|
|
<span class="change_box">
|
|
<a href="javascript:;" class="table_list">吧台列表</a>
|
|
<a href="/game/add_table" class="table_add">吧台添加</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">
|
|
<table class="layui-table">
|
|
<thead>
|
|
<tr>
|
|
<th>网络ID号</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_info" item="vo"}
|
|
<tr>
|
|
<td>{$vo.id}</td>
|
|
<td>{$vo.table_num}</td>
|
|
<td>{$vo.table_name}</td>
|
|
<td>{$vo.game_name}</td>
|
|
<td>{$vo.bet_type}</td>
|
|
<td>{$vo.seat_num}</td>
|
|
<td>{$vo.username}</td>
|
|
<td>{$vo.wait_time}</td>
|
|
<td>{if $vo.is_scavenging eq 0}否{else}是{/if}</td>
|
|
<td>{$vo.number_total}</td>
|
|
<td>{if $vo.boot_total eq ''}0{else}{$vo.boot_total}{/if}</td>
|
|
<td><?php if($vo['is_localhost_control'] == 1){echo '本地控制';}else{echo '网络控制';} ?></td>
|
|
<td><?php if($vo['status'] == 1){echo '<span style="color:#139E5B">开启中</span>';}else{echo '<span style="color:#FF3B30">关停中</span>';} ?></td>
|
|
<td class="td-manage">
|
|
<a onclick="delete_table({$vo.id});" style="color:#1E90FF; cursor:pointer; text-decoration:underline; margin-right:20px;">停开 / 开台</a>
|
|
<a href="/game/edit_table_info?table_id={$vo.id}" style="color:#1E90FF; cursor:pointer; text-decoration:underline;">修改</a>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<script type="text/javascript">
|
|
function delete_table(table_id){
|
|
layer.confirm('是否要更改该桌子',{btn: ['确定','取消']}, function(index){
|
|
var query = new Object();
|
|
query.table_id = parseInt(table_id);
|
|
$.ajax({
|
|
url:"/game/delete_table",
|
|
type:"POST",
|
|
dataType:"JSON",
|
|
data:query,
|
|
success:function(data){
|
|
if(data.Success == 1){
|
|
layer.msg(data.Msg);
|
|
setTimeout("window.location.reload();", 2000);
|
|
}else{
|
|
layer.msg(data.Msg);
|
|
}
|
|
}
|
|
});
|
|
layer.close(index);
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |