kulawawa 9f2836208e map
2025-04-24 14:38:38 +08:00

147 lines
6.6 KiB
PHP

{extend name="public/base" /}
{block name='content'}
{include file='public/content_header' /}
<!--数据列表页面-->
<section class="content">
<!--顶部搜索筛选-->
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-body">
<form class="form-inline searchForm" id="searchForm" action="{:url('index')}" method="GET">
<div class="form-group">
<input {if(!empty($_keywords))} value="{$_keywords|trim=\0}" {else /} value='' {/if}
name="_keywords" id="_keywords" class="form-control"
placeholder="ID/角色名/账号">
</div>
<div class="form-group">
<select name="serverid" id="serverid" class="form-control">
<option value="">选择大区</option>
{volist name="$Think.config.game.server" id="vo"}
<option value="{$vo.id}" {if isset($serverid) &&''!==$serverid && $serverid==$vo.id}selected{/if}>{$vo.name}</option>
{/volist}
</select>
</div>
<div class="form-group">
<button class="btn btn-sm btn-primary" type="submit"><i class="fa fa-search"></i> 查询
</button>
</div>
<div class="form-group">
<button onclick="clearSearchForm()" class="btn btn-sm btn-default" type="button"><i
class="fa fa-eraser"></i> 清空查询
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="box">
<!--数据列表顶部-->
<div class="box-header">
<div>
<a class="btn btn-success btn-sm ReloadButton" data-toggle="tooltip" title="刷新">
<i class="fa fa-refresh"></i> 刷新
</a>
</div>
</div>
<div class="box-body table-responsive">
<table class="table table-hover table-bordered datatable" width="100%">
<thead>
<tr>
<th>角色ID</th>
<th>角色名</th>
<th>账号</th>
<th>大区ID</th>
<th>等级</th>
<th>所属代理</th>
<th>仙玉</th>
<th>地图id</th>
<th>X</th>
<th>Y</th>
<th>创建时间</th>
<th>最后在线时间</th>
<th>最后登录IP</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{foreach name='data' id='item' key='data_key'}
<tr>
<td>{$item.roleid}</td>
<td>{$item.name}</td>
<td>{$item.account.account}</td>
<td>{$item.serverid}</td>
<td>{$item.level}</td>
<td>{$item.roleid|get_role_agency_account|default=''}</td>
<td>{$item.jade}</td>
<td>{$item.mapid}</td>
<td>{$item.x}</td>
<td>{$item.y}</td>
<td>{$item.create_time}</td>
<td>{$item.lastonline}</td>
<td>{$item.account.login_ip|default='无'}</td>
<td class="td-do">
{if $item.account.state==0}
<a class="btn btn-warning btn-xs AjaxButton" data-toggle="tooltip" title="封账账号"
data-id="{$item.account.accountid}" data-confirm-title="确认封号"
data-confirm-content='您确定要禁封账号 <span class="text-red">{$item.account.account}</span> 吗'
data-url="{:url('user/disable')}">
<i class="fa fa-circle"></i>
</a>
{else/}
<a class="btn btn-success btn-xs AjaxButton" data-toggle="tooltip" title="解封账号"
data-id="{$item.account.accountid}" data-confirm-title="确认解封"
data-confirm-content='您确定要解封账号 <span class="text-red">{$item.account.account}</span> 吗'
data-url="{:url('user/enable')}">
<i class="fa fa-circle"></i>
</a>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<!-- 数据列表底部 -->
<div class="box-footer">
{$page|raw}
<label class="control-label pull-right" style="margin-right: 10px; font-weight: 100;">
<small>{$total}条记录</small>&nbsp;
<small>每页显示</small>
&nbsp;
<select class="input-sm" onchange="changePerPage(this)">
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
<option value="50" {if $admin.per_page==50}selected{/if}>50</option>
<option value="100" {if $admin.per_page==100}selected{/if}>100</option>
</select>
&nbsp;
<small>条记录</small>
</label>
</div>
</div>
</div>
</div>
</section>
{/block}