Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
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
冷斌
quxiu
Commits
cc13e6a1
Commit
cc13e6a1
authored
Mar 28, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
踢人
parent
b55cfec1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
0 deletions
+76
-0
admin/themes/simplebootx/Admin/Liveing/editImage.html
+62
-0
application/Admin/Controller/LiveingController.class.php
+14
-0
No files found.
admin/themes/simplebootx/Admin/Liveing/editImage.html
0 → 100644
View file @
cc13e6a1
<admintpl
file=
"header"
/>
</head>
<body>
<div
class=
"wrap"
>
<ul
class=
"nav nav-tabs"
>
<li
><a
href=
"{:U('Liveing/image')}"
>
审核列表
</a></li>
<li
class=
"active"
><a
>
编辑
</a></li>
</ul>
<form
method=
"post"
class=
"form-horizontal js-ajax-form"
action=
"{:U('Liveing/edit_image_post')}"
>
<fieldset>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
会员
</label>
<div
class=
"controls"
>
<input
type=
"text"
name=
""
value=
"{$userinfo['user_nicename']} ( {$userinfo['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=
"handset_view"
value=
"{$image['thumb']}"
readonly
>
<img
src=
"{$image['thumb']}"
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>
</fieldset>
<div
class=
"form-actions"
>
<button
type=
"submit"
class=
"btn btn-primary js-ajax-submit"
>
{:L('SAVE')}
</button>
<a
class=
"btn"
href=
"{:U('Liveing/index')}"
>
{:L('BACK')}
</a>
</div>
</form>
</div>
<script
src=
"__PUBLIC__/js/common.js"
></script>
<script>
(
function
(){
$
(
"#cdn label.radio"
).
on
(
'click'
,
function
(){
var
v
=
$
(
"input"
,
this
).
val
();
var
b
=
$
(
"#cdn_switch_1"
);
if
(
v
==
0
){
b
.
hide
();
$
(
"#type_val"
).
val
(
''
);
}
else
{
b
.
show
();
}
})
})()
</script>
</body>
</html>
application/Admin/Controller/LiveingController.class.php
View file @
cc13e6a1
...
@@ -256,4 +256,18 @@ class LiveingController extends AdminbaseController {
...
@@ -256,4 +256,18 @@ class LiveingController extends AdminbaseController {
$this
->
display
();
$this
->
display
();
}
}
function
editImage
(){
$uid
=
intval
(
$_GET
[
'uid'
]);
if
(
$uid
){
$image
=
M
(
"users_live_image"
)
->
where
(
"uid=
{
$uid
}
"
)
->
find
();
$this
->
assign
(
'image'
,
$image
);
$userinfo
=
getUserInfo
(
$uid
);
$this
->
assign
(
'userinfo'
,
$userinfo
);
}
else
{
$this
->
error
(
'数据传入失败!'
);
}
$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