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
07d19512
Commit
07d19512
authored
Feb 22, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
a20c3f70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
98 additions
and
0 deletions
+98
-0
admin/themes/simplebootx/Admin/Userauth/edit3.html
+63
-0
application/Admin/Controller/UserauthController.class.php
+35
-0
No files found.
admin/themes/simplebootx/Admin/Userauth/edit3.html
0 → 100755
View file @
07d19512
<admintpl
file=
"header"
/>
</head>
<body>
<div
class=
"wrap"
>
<ul
class=
"nav nav-tabs"
>
<li
><a
href=
"{:U('Userauth/index3')}"
>
收款码审核
</a></li>
<li
class=
"active"
><a
>
编辑
</a></li>
</ul>
<form
method=
"post"
class=
"form-horizontal js-ajax-form"
action=
"{:U('Userauth/edit_post3')}"
>
<input
type=
"hidden"
name=
"uid"
value=
"{$auth['uid']}"
>
<fieldset>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
会员
</label>
<div
class=
"controls"
>
<input
type=
"text"
name=
""
value=
"{$auth['userinfo']['user_nicename']} ( {$auth['uid']} )"
readonly
>
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
支付宝
</label>
<div
class=
"controls"
>
<input
type=
"hidden"
name=
"alipay_pay"
value=
"{$auth['alipay_pay']}"
readonly
>
<img
src=
"{$auth['alipay_pay']}"
width=
"135"
style=
"cursor: hand"
>
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
微信
</label>
<div
class=
"controls"
>
<input
type=
"hidden"
name=
"wx_pay"
value=
"{$auth['wx_pay']}"
readonly
>
<img
src=
"{$auth['wx_pay']}"
width=
"135"
style=
"cursor: hand"
>
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
审核状态
</label>
<div
class=
"controls"
>
<label
class=
"radio inline"
for=
"status_2"
><input
type=
"radio"
name=
"status"
value=
"2"
id=
"status_2"
<
if
condition=
"$auth['status'] eq '2'"
>
checked
</if>
>失败
</label>
<label
class=
"radio inline"
for=
"status_0"
><input
type=
"radio"
name=
"status"
value=
"0"
id=
"status_0"
<
if
condition=
"$auth['status'] eq '0'"
>
checked
</if>
>处理中
</label>
<label
class=
"radio inline"
for=
"status_1"
><input
type=
"radio"
name=
"status"
value=
"1"
id=
"status_1"
<
if
condition=
"$auth['status'] eq '1'"
>
checked
</if>
>成功
</label>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
失败原因
</label>
<div
class=
"controls"
>
<textarea
name=
"reason"
rows=
"2"
cols=
"20"
id=
"reason"
class=
"inputtext"
style=
"height: 100px; width: 500px;"
>
{$auth['reason']}
</textarea>
<span
class=
"form-required"
>
*
</span>
</div>
</div>
</fieldset>
<div
class=
"form-actions"
>
<button
type=
"submit"
class=
"btn btn-primary js-ajax-submit"
>
{:L('EDIT')}
</button>
<a
class=
"btn"
href=
"{:U('Userauth/index3')}"
>
{:L('BACK')}
</a>
</div>
</form>
</div>
<script
src=
"__PUBLIC__/js/common.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/content_addtop.js"
></script>
</body>
</html>
application/Admin/Controller/UserauthController.class.php
View file @
07d19512
...
...
@@ -299,4 +299,39 @@ class UserauthController extends AdminbaseController
$this
->
display
();
}
function
edit3
()
{
$id
=
intval
(
$_GET
[
'id'
]);
if
(
$id
)
{
$auth
=
M
(
"users_auth_pay"
)
->
where
(
"uid='
{
$id
}
'"
)
->
find
();
$auth
[
'userinfo'
]
=
M
(
"users"
)
->
field
(
"user_nicename"
)
->
where
(
"id='
$auth[uid]
'"
)
->
find
();
$this
->
assign
(
'auth'
,
$auth
);
}
else
{
$this
->
error
(
'数据传入失败!'
);
}
$this
->
display
();
}
function
edit_post3
()
{
if
(
IS_POST
)
{
$auth
=
M
(
"users_auth_pay"
);
$result
=
$auth
->
where
(
"uid='
{
$_POST
[
'uid'
]
}
'"
)
->
save
([
'status'
=>
$_POST
[
'status'
],
'reason'
=>
$_POST
[
'reason'
],
]);
var_dump
(
$result
);
die
;
if
(
$result
)
{
M
(
"users"
)
->
where
(
"uid='
{
$_POST
[
'uid'
]
}
'"
)
->
save
([
'status'
=>
$_POST
[
'status'
],
'reason'
=>
$_POST
[
'reason'
],
]);
$this
->
success
(
'修改成功'
,
U
(
'Userauth/index2'
));
}
else
{
$this
->
error
(
'修改失败'
);
}
}
}
}
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