Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
xiaozhan
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
冷斌
xiaozhan
Commits
902e79af
Commit
902e79af
authored
Feb 19, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
dcb06f0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
admin/themes/simplebootx/User/edit.html
+16
-5
application/User/Controller/IndexadminController.class.php
+1
-11
No files found.
admin/themes/simplebootx/User/edit.html
View file @
902e79af
...
...
@@ -29,7 +29,7 @@
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
经验值
</label>
<div
class=
"controls"
>
...
...
@@ -38,6 +38,18 @@
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
经验值
</label>
<div
class=
"controls"
>
<select
name=
"type"
>
<option
value=
""
>
请选择
</option>
<volist
name=
"labels"
id=
"vo"
>
<option
value=
"{$vo['id']}"
<
if
condition=
"$userinfo['label_id'] eq $vo['id']"
>
selected
</if>
>{$vo['name']}
</option>
</volist>
</select>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
头像/封面
</label>
<div
class=
"controls"
>
<div
>
...
...
@@ -60,8 +72,8 @@
<label
class=
"radio inline"
for=
"sex_1"
><input
type=
"radio"
name=
"sex"
value=
"1"
id=
"sex_1"
<
if
condition=
"$userinfo['sex'] eq '1'"
>
checked
</if>
/>男
</label>
<label
class=
"radio inline"
for=
"sex_2"
><input
type=
"radio"
name=
"sex"
value=
"2"
id=
"sex_2"
<
if
condition=
"$userinfo['sex'] eq '2'"
>
checked
</if>
>女
</label>
</div>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
个性签名
</label>
<div
class=
"controls"
>
...
...
@@ -85,4 +97,4 @@
<script
src=
"__PUBLIC__/js/common.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/content_addtop.js"
></script>
</body>
</html>
\ No newline at end of file
</html>
application/User/Controller/IndexadminController.class.php
View file @
902e79af
...
...
@@ -567,16 +567,6 @@ class IndexadminController extends AdminbaseController {
return
$list
;
}
public
function
getLabel
()
{
$data
=
[];
$labels
=
$this
->
getImpressionLabel
();
foreach
(
$labels
as
$label
)
{
$data
[
$label
[
'id'
]]
=
$label
[
'name'
];
}
return
$data
;
}
function
edit
(){
$id
=
intval
(
$_GET
[
'id'
]);
if
(
$id
){
...
...
@@ -585,7 +575,7 @@ class IndexadminController extends AdminbaseController {
}
else
{
$this
->
error
(
'数据传入失败!'
);
}
$this
->
assign
(
'labels'
,
$this
->
getLabel
());
$this
->
assign
(
'labels'
,
$this
->
get
Impression
Label
());
$this
->
display
(
":edit"
);
}
...
...
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