84 lines
3.7 KiB
PHP
Executable File
84 lines
3.7 KiB
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* @Author: fm453
|
|
* @Date: 2021-09-08 12:10:51
|
|
* @Last Modified by: fm453
|
|
* @Last Modified time: 2021-09-11 09:13:09
|
|
* @Email: fm453@lukegzs.com
|
|
*/
|
|
/* @var $this yii\web\View */
|
|
use yii\helpers\Html;
|
|
use yii\bootstrap\ActiveForm;
|
|
use yii\helpers\Url;
|
|
use yii\widgets\LinkPager;
|
|
|
|
$this->title = '粉丝清单';
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
|
|
?>
|
|
<div class="wrapper wrapper-content">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="ibox float-e-margins">
|
|
<div class="ibox-content">
|
|
<h1><?= Html::encode($this->title) ?> 【共计 <kbd><code> <?= $count?> </code></kbd>人】</h1>
|
|
<div class="row">
|
|
<form action="<?=Url::toRoute('list')?>" method="post">
|
|
<input type="hidden" name="_csrf-backend" value="<?= Yii::$app->getRequest()->getCsrfToken();?>" />
|
|
<div class="col-sm-3 pull-right">
|
|
<div class="input-group">
|
|
<input type="text" placeholder="搜用户名" name="search[username]" class="input-sm form-control" value="<?= isset($search['username'])?$search['username']:''; ?>">
|
|
<span class="input-group-btn">
|
|
<button type="submit" class="btn btn-sm btn-primary"> 搜索</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3 pull-right">
|
|
<input type="text" placeholder="搜邮箱" name="search[email]" class="input-sm form-control" value="<?= isset($search['email'])?$search['email']:''; ?>">
|
|
</div>
|
|
</form>
|
|
<hr>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>序号</th>
|
|
<th>名称</th>
|
|
<th>邮箱</th>
|
|
<th>状态</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php foreach($fans as $vo):?>
|
|
<tr>
|
|
<td><?=$vo['id']?></td>
|
|
<td><?=$vo['mobile']?></td>
|
|
<td><?=$vo['email']?></td>
|
|
<td><?=$status[$vo['status']]?></td>
|
|
<td>
|
|
<a class="btn btn-primary btn-xs" href="<?=Url::toRoute(['update','id'=>$vo['id']])?>"><i class="fa fa-edit"></i>编辑</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<!--分页-->
|
|
<div class="f-r">
|
|
<?= LinkPager::widget([
|
|
'pagination'=>$pages,
|
|
'firstPageLabel' => '首页',
|
|
'nextPageLabel' => '下一页',
|
|
'prevPageLabel' => '上一页',
|
|
'lastPageLabel' => '末页',
|
|
]) ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|