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
ac5d27ba
Commit
ac5d27ba
authored
Apr 26, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
4f41eec6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
53 deletions
+52
-53
admin/themes/simplebootx/Admin/Level/experlevel_index.html
+4
-4
admin/themes/simplebootx/Admin/Levelanchor/add.html
+3
-3
admin/themes/simplebootx/Admin/Levelanchor/edit.html
+2
-2
admin/themes/simplebootx/Admin/Levelanchor/index.html
+5
-6
application/Admin/Controller/LevelController.class.php
+2
-2
application/Admin/Controller/LevelanchorController.class.php
+36
-36
No files found.
admin/themes/simplebootx/Admin/Level/experlevel_index.html
View file @
ac5d27ba
...
...
@@ -13,8 +13,8 @@
<th>
等级
</th>
<th>
等级名称
</th>
<th>
等级经验上限
</th>
<!-- <th>昵称颜色</th>
-->
<th>
图标
</th>
<!-- <th>昵称颜色</th>
<th>图标</th>
-->
<th>
头像角标
</th>
<th>
发布时间
</th>
...
...
@@ -27,8 +27,8 @@
<td>
{$vo['levelid']}
</td>
<td>
{$vo['levelname']}
</td>
<td>
{$vo['level_up']}
</td>
<!-- <td><input style="width:50px;height:20px;background:#{$vo['colour']};" disabled/></td>
-->
<td><img
src=
"{$vo['thumb']}"
style=
"height:24px"
></td>
<!-- <td><input style="width:50px;height:20px;background:#{$vo['colour']};" disabled/></td>
<td><img src="{$vo['thumb']}" style="height:24px"></td>
-->
<td><img
src=
"{$vo['thumb_mark']}"
style=
"height:24px"
></td>
<td>
{$vo.addtime|date="Y-m-d H:i:s",###}
</td>
...
...
admin/themes/simplebootx/Admin/Levelanchor/add.html
View file @
ac5d27ba
...
...
@@ -30,6 +30,7 @@
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<!--
<div class="control-group">
<label class="control-label">图标</label>
<div class="controls">
...
...
@@ -41,7 +42,7 @@
<span class="form-required">*</span>
</div>
</div>
-->
<div
class=
"control-group"
>
<label
class=
"control-label"
>
头像角标
</label>
<div
class=
"controls"
>
...
...
@@ -64,4 +65,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>
admin/themes/simplebootx/Admin/Levelanchor/edit.html
View file @
ac5d27ba
...
...
@@ -30,7 +30,7 @@
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<!--
<div class="control-group">
<label class="control-label">图标</label>
<div class="controls">
...
...
@@ -46,7 +46,7 @@
<span class="form-required">*</span>
</div>
</div>
-->
<div
class=
"control-group"
>
<label
class=
"control-label"
>
头像角标
</label>
<div
class=
"controls"
>
...
...
admin/themes/simplebootx/Admin/Levelanchor/index.html
View file @
ac5d27ba
...
...
@@ -13,7 +13,7 @@
<th>
等级
</th>
<th>
等级名称
</th>
<th>
等级经验上限
</th>
<
th>
图标
</th
>
<
!-- <th>图标</th> --
>
<th>
头像角标
</th>
<th>
发布时间
</th>
...
...
@@ -26,11 +26,11 @@
<td>
{$vo['levelid']}
</td>
<td>
{$vo['levelname']}
</td>
<td>
{$vo['level_up']}
</td>
<
td><img
src=
"{$vo['thumb']}"
style=
"height:24px"
></td
>
<
!-- <td><img src="{$vo['thumb']}" style="height:24px"></td> --
>
<td><img
src=
"{$vo['thumb_mark']}"
style=
"height:24px"
></td>
<td>
{$vo.addtime|date="Y-m-d H:i:s",###}
</td>
<td
align=
"center"
>
<td
align=
"center"
>
<a
href=
"{:U('Levelanchor/edit',array('id'=>$vo['id']))}"
>
编辑
</a>
|
<a
href=
"{:U('Levelanchor/del',array('id'=>$vo['id']))}"
class=
"js-ajax-dialog-btn"
data-msg=
"您确定要删除吗?"
>
删除
</a>
</td>
...
...
@@ -44,4 +44,4 @@
</div>
<script
src=
"__PUBLIC__/js/common.js"
></script>
</body>
</html>
\ No newline at end of file
</html>
application/Admin/Controller/LevelController.class.php
View file @
ac5d27ba
...
...
@@ -105,7 +105,7 @@ class LevelController extends AdminbaseController {
$level_up
=
I
(
'level_up'
);
$colour
=
I
(
'colour'
);
$thumb
=
I
(
'thumb'
);
$thumb_mark
=
I
(
'thumb_mark'
);
$thumb
=
$thumb
_mark
=
I
(
'thumb_mark'
);
if
(
$level_up
==
''
){
$this
->
error
(
'请填写等级经验上限'
);
}
...
...
@@ -163,7 +163,7 @@ class LevelController extends AdminbaseController {
$level_up
=
I
(
'level_up'
);
$colour
=
I
(
'colour'
);
$thumb
=
I
(
'thumb'
);
$thumb_mark
=
I
(
'thumb_mark'
);
$thumb
=
$thumb
_mark
=
I
(
'thumb_mark'
);
if
(
$level_up
==
''
){
$this
->
error
(
'请填写等级经验上限'
);
}
...
...
application/Admin/Controller/LevelanchorController.class.php
View file @
ac5d27ba
...
...
@@ -6,9 +6,9 @@
namespace
Admin\Controller
;
use
Common\Controller\AdminbaseController
;
class
LevelanchorController
extends
AdminbaseController
{
function
index
(){
function
index
(){
$experlevel
=
M
(
"experlevel_anchor"
);
$count
=
$experlevel
->
count
();
$page
=
$this
->
page
(
$count
,
20
);
...
...
@@ -19,17 +19,17 @@ class LevelanchorController extends AdminbaseController {
foreach
(
$lists
as
$k
=>
$v
){
$lists
[
$k
][
'thumb'
]
=
get_upload_path
(
$v
[
'thumb'
]);
}
$this
->
assign
(
'lists'
,
$lists
);
$this
->
assign
(
"page"
,
$page
->
show
(
'Admin'
));
$this
->
display
();
}
function
del
(){
$id
=
intval
(
$_GET
[
'id'
]);
if
(
$id
){
$result
=
M
(
"experlevel_anchor"
)
->
where
(
"id='
{
$id
}
'"
)
->
delete
();
$result
=
M
(
"experlevel_anchor"
)
->
where
(
"id='
{
$id
}
'"
)
->
delete
();
if
(
$result
!==
false
){
$action
=
"删除主播等级:
{
$id
}
"
;
setAdminLog
(
$action
);
...
...
@@ -37,18 +37,18 @@ class LevelanchorController extends AdminbaseController {
$this
->
success
(
'删除成功'
);
}
else
{
$this
->
error
(
'删除失败'
);
}
}
else
{
}
}
else
{
$this
->
error
(
'数据传入失败!'
);
}
$this
->
display
();
}
}
$this
->
display
();
}
function
add
(){
$this
->
display
();
}
$this
->
display
();
}
function
add_post
(){
if
(
IS_POST
){
if
(
$_POST
[
'levelid'
]
==
''
){
...
...
@@ -58,11 +58,11 @@ class LevelanchorController extends AdminbaseController {
if
(
$check
){
$this
->
error
(
'等级不能重复'
);
}
}
}
$level_up
=
I
(
'level_up'
);
$thumb
=
I
(
'thumb'
);
$thumb_mark
=
I
(
'thumb_mark'
);
$thumb
=
$thumb
_mark
=
I
(
'thumb_mark'
);
if
(
$level_up
==
''
){
$this
->
error
(
'请填写等级经验上限'
);
}
...
...
@@ -72,11 +72,11 @@ class LevelanchorController extends AdminbaseController {
if
(
$thumb_mark
==
''
){
$this
->
error
(
'请上传头像角标'
);
}
$experlevel
=
M
(
"experlevel_anchor"
);
if
(
$experlevel
->
create
()){
$experlevel
->
addtime
=
time
();
$result
=
$experlevel
->
add
();
$result
=
$experlevel
->
add
();
if
(
$result
!==
false
){
$action
=
"添加主播等级:
{
$result
}
"
;
setAdminLog
(
$action
);
...
...
@@ -84,27 +84,27 @@ class LevelanchorController extends AdminbaseController {
$this
->
success
(
'添加成功'
);
}
else
{
$this
->
error
(
'添加失败'
);
}
}
}
else
{
}
}
}
}
}
function
edit
(){
$id
=
intval
(
$_GET
[
'id'
]);
if
(
$id
){
$experlevel
=
M
(
"experlevel_anchor"
)
->
where
(
"id='
{
$id
}
'"
)
->
find
();
$this
->
assign
(
'experlevel'
,
$experlevel
);
}
else
{
$this
->
assign
(
'experlevel'
,
$experlevel
);
}
else
{
$this
->
error
(
'数据传入失败!'
);
}
$this
->
display
();
}
$this
->
display
();
}
function
edit_post
(){
if
(
IS_POST
){
if
(
$_POST
[
'levelid'
]
==
''
){
$this
->
error
(
'等级不能为空'
);
}
else
{
...
...
@@ -113,10 +113,10 @@ class LevelanchorController extends AdminbaseController {
$this
->
error
(
'等级不能重复'
);
}
}
$level_up
=
I
(
'level_up'
);
$thumb
=
I
(
'thumb'
);
$thumb_mark
=
I
(
'thumb_mark'
);
$thumb
=
$thumb
_mark
=
I
(
'thumb_mark'
);
if
(
$level_up
==
''
){
$this
->
error
(
'请填写等级经验上限'
);
}
...
...
@@ -129,8 +129,8 @@ class LevelanchorController extends AdminbaseController {
$experlevel
=
M
(
"experlevel_anchor"
);
$experlevel
->
create
();
$result
=
$experlevel
->
save
();
$result
=
$experlevel
->
save
();
if
(
$result
!==
false
){
$action
=
"编辑主播等级:
{
$_POST
[
'id'
]
}
"
;
setAdminLog
(
$action
);
...
...
@@ -138,8 +138,8 @@ class LevelanchorController extends AdminbaseController {
$this
->
success
(
'修改成功'
);
}
else
{
$this
->
error
(
'修改失败'
);
}
}
}
}
}
function
resetcache
(){
...
...
@@ -152,8 +152,8 @@ class LevelanchorController extends AdminbaseController {
$level
[
$k
]
=
$v
;
}
setcaches
(
$key
,
$level
);
setcaches
(
$key
,
$level
);
return
1
;
}
}
}
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