Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
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
冷斌
eduline
Commits
9297d326
Commit
9297d326
authored
May 15, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台修改
parent
064a1000
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
apps/mall/Lib/Action/AdminGoodsAction.class.php
+9
-10
No files found.
apps/mall/Lib/Action/AdminGoodsAction.class.php
View file @
9297d326
...
...
@@ -174,10 +174,10 @@ class AdminGoodsAction extends AdministratorAction
$this
->
opt
[
'status'
]
=
array
(
'0'
=>
'删除'
,
'1'
=>
'正常'
,
'2'
=>
'禁用'
);
$this
->
opt
[
'is_best'
]
=
array
(
'0'
=>
'否'
,
'1'
=>
'是'
);
ob_start
();
echo
W
(
'CategoryLevel'
,
array
(
'table'
=>
'goods_category'
,
'id'
=>
'goods_level'
));
$output
=
ob_get_contents
();
ob_end_clean
();
//
ob_start();
//
echo W('CategoryLevel', array('table' => 'goods_category', 'id' => 'goods_level'));
//
$output = ob_get_contents();
//
ob_end_clean();
$this
->
savePostUrl
=
U
(
'mall/AdminGoods/addGoods'
);
$this
->
displayConfig
(
array
(
'goods_cate'
=>
$output
));
}
...
...
@@ -332,12 +332,12 @@ class AdminGoodsAction extends AdministratorAction
$sta_arr
=
array
([
'red'
,
'删除'
],
[
'green'
,
'正常'
],
[
'#9c9c9c'
,
'禁用'
]);
$sta
=
$val
[
'status'
];
$val
[
'status'
]
=
"<span style='color: "
.
$sta_arr
[
$sta
][
0
]
.
";'>"
.
$sta_arr
[
$sta
][
1
]
.
"</span>"
;
if
(
$val
[
'is_best'
]
==
0
)
{
$val
[
'is_best'
]
=
"<span style='color: red;'>否</span>"
;
}
else
if
(
$val
[
'is_best'
]
==
1
)
{
$val
[
'is_best'
]
=
"<span style='color: green;'>是</span>"
;
}
}
switch
(
strtolower
(
$type
))
{
case
'index'
:
if
(
$sta
!=
2
&&
$sta
!=
0
)
{
...
...
@@ -392,7 +392,7 @@ class AdminGoodsAction extends AdministratorAction
$name
=
getUsername
(
$this
->
mid
);
$title
=
'商品'
;
LogRecord
(
'admin_delete'
,
'deleteData'
,
array
(
'uname'
=>
$name
,
'title'
=>
$title
,
'id'
=>
$ids
),
true
);
$msg
[
'data'
]
=
'操作成功'
;
$msg
[
'status'
]
=
1
;
echo
json_encode
(
$msg
);
...
...
@@ -418,7 +418,7 @@ class AdminGoodsAction extends AdministratorAction
$name
=
getUsername
(
$this
->
mid
);
$title
=
'商品'
;
LogRecord
(
'admin_delete'
,
'deleteData'
,
array
(
'uname'
=>
$name
,
'title'
=>
$title
,
'id'
=>
$id
),
true
);
$this
->
ajaxReturn
(
null
,
"彻底删除成功"
,
1
);
}
else
{
$this
->
ajaxReturn
(
null
,
"彻底删除失败"
,
0
);
...
...
@@ -478,4 +478,4 @@ class AdminGoodsAction extends AdministratorAction
$this
->
ajaxReturn
(
null
,
"禁用失败"
,
0
);
}
}
}
\ No newline at end of file
}
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