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
0ac05566
Commit
0ac05566
authored
Aug 23, 2019
by
wangjiangze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云端片库搜索更新
parent
e74ab0cd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
3 deletions
+49
-3
PlaylistAction.class.php
SooonerHotel/App/Lib/Action/Media/PlaylistAction.class.php
+1
-1
NodeAction.class.php
SooonerHotel/App/Lib/Action/System/NodeAction.class.php
+1
-0
MediaModel.class.php
SooonerHotel/App/Lib/Model/MediaModel.class.php
+13
-1
index.html
SooonerHotel/App/Tpl/Media/zh-cn/Cloud/index.html
+34
-1
No files found.
SooonerHotel/App/Lib/Action/Media/PlaylistAction.class.php
View file @
0ac05566
...
...
@@ -64,7 +64,7 @@ class PlaylistAction extends CommonAction{
$data
[
'sp_id'
]
=
I
(
"sp_id"
);
$data
[
'name'
]
=
I
(
"name"
);
$data
[
'remark'
]
=
I
(
"remark"
);
$data
[
'status'
]
=
I
(
"status"
);
//
$data['status'] = I("status");
$media_lists
=
I
(
"post.media_lists"
);
...
...
SooonerHotel/App/Lib/Action/System/NodeAction.class.php
View file @
0ac05566
...
...
@@ -38,6 +38,7 @@ class NodeAction extends CommonAction{
if
(
$_POST
[
'id'
]){
$b
=
$NodeModel
->
save
(
$_POST
);
}
else
{
unset
(
$_POST
[
'id'
]);
$b
=
$NodeModel
->
add
(
$_POST
);
}
if
(
$b
){
...
...
SooonerHotel/App/Lib/Model/MediaModel.class.php
View file @
0ac05566
...
...
@@ -13,9 +13,21 @@ class MediaModel extends RelationModel{
$searchField
=
$inputs
[
"searchField"
]
?
$inputs
[
"searchField"
]
:
'title'
;
$searchValue
=
$inputs
[
"searchValue"
]
?
$inputs
[
"searchValue"
]
:
''
;
$searchSp
=
$inputs
[
"searchSp"
]
?
$inputs
[
"searchSp"
]
:
0
;
$searchClass
=
$inputs
[
"searchClass"
]
?
$inputs
[
"searchClass"
]
:
0
;
$searchType
=
$inputs
[
"searchType"
]
?
$inputs
[
"searchType"
]
:
0
;
if
(
$searchSp
)
if
(
$searchSp
)
{
$where
=
" and mw.sp_id=
$searchSp
"
;
}
if
(
$searchClass
==
2
){
$where
.=
" and mw.`type`='movie' "
;
}
else
if
(
$searchClass
==
1
){
$where
.=
" and (mw.`type`='news' or mw.`type`='column') "
;
}
if
(
$searchType
){
$where
.=
" and mw.programType='
$searchType
' "
;
}
if
(
$searchValue
){
$where
.=
" and (mw.`title` like '"
.
$searchValue
.
"%' or mw.`code` = '"
.
$searchValue
.
"') "
;
...
...
SooonerHotel/App/Tpl/Media/zh-cn/Cloud/index.html
View file @
0ac05566
...
...
@@ -30,6 +30,33 @@
<option
value=
"{$item.id}"
<
if
condition=
"$key eq 0"
>
selected="selected"
</if>
>{$item.name}
</option>
</volist>
</select>
<select
class=
"select"
name=
"searchClass"
>
<option
value=
"0"
>
请选择分类
</option>
<option
value=
"1"
>
电竞
</option>
<option
value=
"2"
>
电影
</option>
</select>
<select
class=
"select"
name=
"searchType"
>
<option
value=
"0"
>
请选择类型
</option>
<option
value=
"绝地求生"
pid=
"1"
style=
"display: none"
>
绝地求生
</option>
<option
value=
"我的世界"
pid=
"1"
style=
"display: none"
>
我的世界
</option>
<option
value=
"英雄联盟"
pid=
"1"
style=
"display: none"
>
英雄联盟
</option>
<option
value=
"王者荣耀"
pid=
"1"
style=
"display: none"
>
王者荣耀
</option>
<option
value=
"火爆节目"
pid=
"1"
style=
"display: none"
>
火爆节目
</option>
<option
value=
"游戏专区"
pid=
"1"
style=
"display: none"
>
游戏专区
</option>
<option
value=
"明星主播"
pid=
"1"
style=
"display: none"
>
明星主播
</option>
<option
value=
"电竞赛事"
pid=
"1"
style=
"display: none"
>
电竞赛事
</option>
<option
value=
"游戏改编"
pid=
"1"
style=
"display: none"
>
游戏改编
</option>
<option
value=
"网络电影"
pid=
"2"
style=
"display: none"
>
网络电影
</option>
<option
value=
"免费大片"
pid=
"2"
style=
"display: none"
>
免费大片
</option>
<option
value=
"亲子之旅"
pid=
"2"
style=
"display: none"
>
亲子之旅
</option>
<option
value=
"文艺情感"
pid=
"2"
style=
"display: none"
>
文艺情感
</option>
<option
value=
"警匪动作"
pid=
"2"
style=
"display: none"
>
警匪动作
</option>
<option
value=
"恐怖悬疑"
pid=
"2"
style=
"display: none"
>
恐怖悬疑
</option>
<option
value=
"新片预告"
pid=
"2"
style=
"display: none"
>
新片预告
</option>
<option
value=
"科幻灾难"
pid=
"2"
style=
"display: none"
>
科幻灾难
</option>
<option
value=
"战争史诗"
pid=
"2"
style=
"display: none"
>
战争史诗
</option>
</select>
<input
class=
"input"
type=
"text"
placeholder=
"媒资名称/媒资唯一标识"
name=
"searchValue"
>
</div>
<input
id=
"submit_search"
name=
""
type=
"button"
value=
"查询"
class=
"btn_go_s btn_orange"
/>
...
...
@@ -175,7 +202,13 @@ function del(){
$
.
messager
.
alert
(
'提示'
,
'请选择要操作的记录!'
,
'info'
);
}
}
$
(
"select[name='searchClass']"
).
bind
(
"change"
,
function
(){
var
class_val
=
$
(
this
).
val
();
$
(
"select[name='searchType']"
).
val
(
''
);
$
(
"select[name='searchType'] option"
).
hide
();
$
(
"select[name='searchType'] option:eq(0)"
).
show
();
$
(
"select[name='searchType'] option[pid='"
+
class_val
+
"']"
).
show
();
});
$
(
"#submit_search"
).
click
(
function
()
{
$
(
'#dg'
).
datagrid
({
queryParams
:
form2Json
(
"searchform"
)
});
//点击搜索
});
...
...
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