作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

XIAOPAN

... ... @@ -27,8 +27,13 @@ use cmf\controller\AdminBaseController;
class AdminUsersController extends AdminBaseController{
public function index(){
$param=$this->request->param();
$where=[];
if (!empty($param['keyword'])){
$where['mobile']=['like','%'.$param['keyword'].'%'];
}
$users=new UsersModel();
$data=$users->order('create_time','desc')->paginate(10);
$data=$users->where('')->order('create_time','desc')->paginate(10);
$this->assign('data',$data);
return $this->fetch();
}
... ...
... ... @@ -6,12 +6,7 @@
<li class="active"><a href="javascript:;">用户列表</a></li>
<!--<li><a href="{:url('AdminArticle/add')}">添加文章</a></li>-->
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('AdminArticle/index')}">
分类:
<select class="form-control" name="category" style="width: 140px;">
<option value='0'>全部</option>
{$category_tree|default=''}
</select> &nbsp;&nbsp;
<form class="well form-inline margin-top-20" method="post" action="{:url('AdminUsers/index')}">
时间:
<input type="text" class="form-control js-bootstrap-datetime" name="start_time"
value="{$start_time|default=''}"
... ... @@ -21,9 +16,9 @@
style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
关键字:
<input type="text" class="form-control" name="keyword" style="width: 200px;"
value="{$keyword|default=''}" placeholder="请输入关键字...">
value="{$keyword|default=''}" placeholder="手机号">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('AdminArticle/index')}">清空</a>
<a class="btn btn-danger" href="{:url('AdminUsers/index')}">清空</a>
</form>
<form class="js-ajax-form" action="" method="post">
<table class="table table-hover table-bordered table-list">
... ...