Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
haishi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
haishi
Commits
e6428d1d
Commit
e6428d1d
authored
Feb 22, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
e36d7549
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
130 additions
and
0 deletions
+130
-0
admin/themes/simplebootx/Admin/Userauth/index3.html
+84
-0
application/Admin/Controller/UserauthController.class.php
+46
-0
No files found.
admin/themes/simplebootx/Admin/Userauth/index3.html
0 → 100755
View file @
e6428d1d
<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"
>
关键字:
<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>
application/Admin/Controller/UserauthController.class.php
View file @
e6428d1d
...
@@ -254,4 +254,50 @@ class UserauthController extends AdminbaseController
...
@@ -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
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment