83 lines
5.1 KiB
PHP
83 lines
5.1 KiB
PHP
<!-- 禁用用户列表-->
|
|
<?php
|
|
use common\utils\CommUtil;
|
|
use yii\helpers\Url;
|
|
use yii\widgets\LinkPager;
|
|
|
|
?>
|
|
|
|
<section class="content-header">
|
|
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<h3 class="box-title">禁用用户列表</h3>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body">
|
|
<div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
|
|
<div class="row">
|
|
<div class="col-sm-6"></div>
|
|
<div class="col-sm-6"></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
|
|
<thead>
|
|
<tr role="row">
|
|
<th class="sorting_asc" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-sort="ascending"
|
|
aria-label="Rendering engine: activate to sort column descending">ID
|
|
</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">电话</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending">昵称</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending">真实姓名</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">金币</th>
|
|
<!-- <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">钻石</th>-->
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">等级</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">推荐码</th>
|
|
<!-- <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">推荐人ID</th>-->
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">创建日期</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php foreach ($list as $item): ?>
|
|
<tr role="row">
|
|
<td><?= $item['id'] ?></td>
|
|
<td><?= $item['phone'] ?></td>
|
|
<td><?= $item['nickname'] ?></td>
|
|
<td><?= $item['realname'] ?></td>
|
|
<td><?= $item['gold'] ?></td>
|
|
<!-- <td>--><?//= $item['gem'] ?><!--</td>-->
|
|
<td><?= $item['level'] ?></td>
|
|
<td><?= $item['introduce_code'] ?></td>
|
|
<!-- <td>--><?//= $item['introduce_user_id'] ?><!--</td>-->
|
|
<td><?= CommUtil::formatDate($item['created_at']) ?></td>
|
|
<td>
|
|
<a href="javascript:delConfirm('你确定要恢复吗?', '<?= Url::to(['user/user-recover','id'=>$item['phone']])?>')"><i class="fa fa-reply"></i></a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-5">
|
|
<div class="dataTables_info" id="example2_info" role="status" aria-live="polite"><?= sprintf('总共%d条数据',$totalCount); ?></div>
|
|
</div>
|
|
<div class="col-sm-7">
|
|
<div class="dataTables_paginate paging_simple_numbers" id="example2_paginate">
|
|
<?= LinkPager::widget(['pagination' => $pages]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
</section>
|