Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴贤德
SooonerHotel
Commits
d70db98a
Commit
d70db98a
authored
Aug 14, 2019
by
wangjiangze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
播单删除操作调整(物理删除)
parent
b1c16fff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
PlaylistAction.class.php
SooonerHotel/App/Lib/Action/Media/PlaylistAction.class.php
+15
-9
index.html
SooonerHotel/App/Tpl/Media/zh-cn/Playlist/index.html
+2
-2
No files found.
SooonerHotel/App/Lib/Action/Media/PlaylistAction.class.php
View file @
d70db98a
...
...
@@ -99,15 +99,21 @@ class PlaylistAction extends CommonAction{
//删除处理
public
function
deleteHandle
(){
$model
=
D
(
"SpPlaylist"
);
$data
=
$_POST
;
$data
[
'status'
]
=
2
;
$data
[
'updatetime'
]
=
date
(
'Y-m-d H:i:s'
);
if
(
$model
->
save
(
$data
)){
echo
'true'
;
}
else
{
echo
'false'
;
}
// $model = D("SpPlaylist");
// $data = $_POST;
// $data['status'] = 2;
// $data['updatetime'] = date('Y-m-d H:i:s');
// if($model->save($data)){
// echo 'true';
// }else{
// echo 'false';
// }
//
if
(
D
(
"SpPlaylist"
)
->
where
(
"id="
.
I
(
"id"
,
""
,
int
))
->
delete
()
&&
D
(
"SpPlaylistMediaMap"
)
->
where
(
"playlist_id="
.
I
(
"id"
,
""
,
int
))
->
delete
()){
echo
'true'
;
}
else
{
echo
'false'
;
}
}
//ajax修改状态
...
...
SooonerHotel/App/Tpl/Media/zh-cn/Playlist/index.html
View file @
d70db98a
...
...
@@ -77,7 +77,7 @@ onRowContextMenu : onRowContextMenu
<div
id=
"mm1"
class=
"easyui-menu"
style=
"width:120px;display: none"
>
<div
iconCls=
"icon-edit"
id=
"menuEdit"
onclick=
"edit()"
{
:buttonAuth
('
Media
','
Playlist
','
add
')}
>
编辑
</div>
<div
iconCls=
"icon-cancel"
id=
"menuDel"
onclick=
"
enable(2
)"
{
:buttonAuth
('
Media
','
Playlist
','
deletehandle
')}
>
删除
</div>
<div
iconCls=
"icon-cancel"
id=
"menuDel"
onclick=
"
del(
)"
{
:buttonAuth
('
Media
','
Playlist
','
deletehandle
')}
>
删除
</div>
<div
class=
"menu-sep"
></div>
<div
iconCls=
"icon-stop"
id=
"menuStop"
onclick=
"enable(1)"
{
:buttonAuth
('
Media
','
Playlist
','
updateStatusAjaxHandle
')}
>
禁用
</div>
<div
iconCls=
"icon-start"
id=
"menuStart"
onclick=
"enable(0)"
{
:buttonAuth
('
Media
','
Playlist
','
updateStatusAjaxHandle
')}
>
启用
</div>
...
...
@@ -86,7 +86,7 @@ onRowContextMenu : onRowContextMenu
</div>
<div
id=
"mm2"
class=
"easyui-menu"
style=
"width:120px;display: none"
>
<div
iconCls=
"icon-edit"
id=
"menuEdit"
onclick=
"edit()"
{
:buttonAuth
('
Media
','
Playlist
','
add
')}
>
编辑
</div>
<div
iconCls=
"icon-cancel"
id=
"menuDel"
onclick=
"
enable(2
)"
{
:buttonAuth
('
Media
','
Playlist
','
deletehandle
')}
>
删除
</div>
<div
iconCls=
"icon-cancel"
id=
"menuDel"
onclick=
"
del(
)"
{
:buttonAuth
('
Media
','
Playlist
','
deletehandle
')}
>
删除
</div>
<div
class=
"menu-sep"
></div>
<div
iconCls=
"icon-stop"
id=
"menuStop"
onclick=
"enable(1)"
{
:buttonAuth
('
Media
','
Playlist
','
updateStatusAjaxHandle
')}
>
禁用
</div>
<div
iconCls=
"icon-start"
id=
"menuStart"
onclick=
"enable(0)"
{
:buttonAuth
('
Media
','
Playlist
','
updateStatusAjaxHandle
')}
>
启用
</div>
...
...
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