Commit e6428d1d by 冷斌

fix bug

parent e36d7549
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a >认证申请</a></li>
</ul>
<form class="well form-search" method="post" action="{:U('Userauth/index2')}">
审核状态:
<select class="select_2" name="status">
<option value="">全部</option>
<option value="0" <if condition="$formget.status eq '0'">selected</if> >处理中</option>
<option value="1" <if condition="$formget.status eq '1'">selected</if> >审核成功</option>
<option value="2" <if condition="$formget.status eq '2'">selected</if> >审核失败</option>
</select>
提交时间:
<input type="text" name="start_time" class="js-date date" value="{$formget.start_time}" style="width: 80px;" autocomplete="off">-
<input type="text" class="js-date date" name="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;
关键字:
<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入会员ID、支付宝账号">
<input type="submit" class="btn btn-primary" value="搜索">
</form>
<form method="post" class="js-ajax-form" >
<table class="table table-hover table-bordered">
<thead>
<tr>
<th align="center">会员ID</th>
<th>会员</th>
<th>支付宝账号</th>
<th>实名认证姓名</th>
<th>开户姓名</th>
<th>开户行</th>
<th>银行卡号</th>
<th>省份</th>
<th>城市</th>
<th>审核状态</th>
<th>提交时间</th>
<th>处理时间</th>
<th align="center">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<php>$status=array("0"=>"处理中","1"=>"审核成功", "2"=>"审核失败");</php>
<foreach name="lists" item="vo">
<tr>
<td align="center">{$vo.uid}</td>
<td>{$vo['userinfo']['user_nicename']} </td>
<td>{$vo['account']}</td>
<td>{$vo['username']}</td>
<td>{$vo['name']}</td>
<td>{$vo['bank_name']}</td>
<td>{$vo['bank_card']}</td>
<td>{$vo['bank_province']}</td>
<td>{$vo['bank_city']}</td>
<td>{$status[$vo['status']]}</td>
<td>{$vo.addtime|date="Y-m-d H:i:s",###}</td>
<td>
<if condition="$vo['status'] eq '0'" >
处理中
<else/>
{$vo.uptime|date="Y-m-d H:i:s",###}
</if>
</td>
<td align="center">
<a href="{:U('Userauth/edit2',array('id'=>$vo['uid']))}" >编辑</a>
<!-- <a href="{:U('Cash/del',array('id'=>$vo['uid']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除吗?">删除</a> -->
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
......@@ -254,4 +254,50 @@ class UserauthController extends AdminbaseController
}
}
function index3()
{
if ($_REQUEST['status'] != '') {
$map['status'] = $_REQUEST['status'];
$_GET['status'] = $_REQUEST['status'];
}
if ($_REQUEST['start_time'] != '') {
$map['addtime'] = ["gt", strtotime($_REQUEST['start_time'])];
$_GET['start_time'] = $_REQUEST['start_time'];
}
if ($_REQUEST['end_time'] != '') {
$map['addtime'] = ["lt", strtotime($_REQUEST['end_time'])];
$_GET['end_time'] = $_REQUEST['end_time'];
}
if ($_REQUEST['start_time'] != '' && $_REQUEST['end_time'] != '') {
$map['addtime'] = ["between", [strtotime($_REQUEST['start_time']), strtotime($_REQUEST['end_time'])]];
$_GET['start_time'] = $_REQUEST['start_time'];
$_GET['end_time'] = $_REQUEST['end_time'];
}
if ($_REQUEST['keyword'] != '') {
$map['uid|account|name'] = ["like", "%" . $_REQUEST['keyword'] . "%"];
$_GET['keyword'] = $_REQUEST['keyword'];
}
$auth = M("users_info_auth");
$count = $auth->where($map)->count();
$page = $this->page($count, 20);
$lists = $auth->where($map)->order("addtime DESC")->limit($page->firstRow . ',' . $page->listRows)->select();
foreach ($lists as $k => $v) {
$userinfo = M("users")->field("user_nicename")->where("id='$v[uid]'")->find();
$lists[$k]['userinfo'] = $userinfo;
}
$this->assign('lists', $lists);
$this->assign('formget', $_GET);
$this->assign("page", $page->show('Admin'));
$this->display();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment