| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- {{extend name="layout/content" /}
- {block name="header"}
- <title>踢下线</title>
- <link rel="stylesheet" href="__STATIC__/css/admin/bootstrap.min.css">
- <link rel="stylesheet" href="__STATIC__/css/FuzzySearch.css?v={$Think.STATIC_VERSION}">
- {/block} {block name="content"}
- <div class="x-body">
-
- <form class="layui-form" method="post">
- <div style="float: right;">
- <div class="layui-inline">
- <div class="layui-input-inline">
- <input class="layui-input" placeholder="请输入玩家名称" id="username" name="username" value="{:input('username')}">
- </div>
- </div>
- <div class="layui-inline">
- <div class="layui-input-inline FuzzySearch_Container">
- <div>
- <input type="hidden" id='gameid' name="gameid" value="{:input('gameid')}" />
- </div>
- </div>
- </div>
- <div class="layui-inline">
- <button class="layui-btn layui-btn-radius" lay-submit>查询</button>
- </div>
- </div>
- <div style="clear:both"></div>
-
- <table class="layui-table">
- <thead>
- <tr>
- <th>玩家id</th>
- <th>玩家名称</th>
- <th>操作</th>
- </tr>
- </thead>
-
- <tbody id="viewer_wrap">
- {foreach name="list" item="vo"}
- <tr>
- <td>
- {$vo.id ?? '暂无数据'}
- </td>
- <td>
- {$vo.username ?? '暂无数据'}
- </td>
- <td>
- {if condition="$vo.token"}
- <a href="javascript:;" onclick="do_downline(this, '{:url(\'downline\')}?token={:urlencode($vo.token)}')" >踢下线(仅限sdk)</a>
- {else/}
- 不在线
- {/if}
- </td>
-
- </tr>
- {/foreach}
- </tbody>
- </table>
- <div class="pager-container">
- <span>
- {$list_count}条记录
- </span>
- <!-- 无分页 -->
- </div>
-
-
-
-
- </form>
- </div>
- {/block}{block name="footer"}
- <script type="text/javascript" src="__STATIC__/js/admin/bootstrap.min.js" charset="utf-8"></script>
- <script type="text/javascript" src="__STATIC__/js/FuzzySearch.js?v={$Think.STATIC_VERSION}"></script>
- <script>
- $("#gameid").FuzzySearch({
- inputID : 'gameid',
- title : '请输入游戏名称',
- data :{:json_encode($game_list)},
- searchBtn :'J_submit',
- });
- function do_downline(obj, url) {
- layer.confirm('确定要踢下线吗?', {shade: 0.4}, function (index) {
- $.getJSON(url, function (res) {
- if (res.code) {
- layer.msg(res.msg, {
- icon: 1,
- shade: 0.4,
- time: 1000
- }, function () {
- location.href = res.url;
- });
- } else {
- layer.msg(res.msg, {
- icon: 1,
- shade: 0.4,
- time: 1000
- });
- }
- });
- });
- }
- </script>
- {/block}
|