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
fa32f81e
Commit
fa32f81e
authored
Dec 25, 2019
by
wangjiangze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云端片库“添加”功能
parent
99016f70
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
274 additions
and
37 deletions
+274
-37
CloudAction.class.php
SooonerHotel/App/Lib/Action/Media/CloudAction.class.php
+52
-7
add.html
SooonerHotel/App/Tpl/Media/zh-cn/Cloud/add.html
+36
-28
details.html
SooonerHotel/App/Tpl/Media/zh-cn/Cloud/details.html
+175
-0
index.html
SooonerHotel/App/Tpl/Media/zh-cn/Cloud/index.html
+11
-2
No files found.
SooonerHotel/App/Lib/Action/Media/CloudAction.class.php
View file @
fa32f81e
...
@@ -35,13 +35,14 @@ class CloudAction extends CommonAction{
...
@@ -35,13 +35,14 @@ class CloudAction extends CommonAction{
$model
=
D
(
"Media"
);
$model
=
D
(
"Media"
);
$hotelModel
=
D
(
"Hotel"
);
$hotelModel
=
D
(
"Hotel"
);
$siteModel
=
D
(
"Site"
);
if
(
$id
){
if
(
$id
){
$info
=
$model
->
where
(
"id =
$id
"
)
->
find
();
$info
=
$model
->
where
(
"id =
$id
"
)
->
find
();
$this
->
info
=
$info
;
$this
->
info
=
$info
;
}
}
$
hotel_lists
=
$hotel
Model
->
where
(
"`status`=0"
)
->
select
();
$
site_lists
=
$site
Model
->
where
(
"`status`=0"
)
->
select
();
$this
->
hotel_lists
=
$hotel
_lists
;
$this
->
site_lists
=
$site
_lists
;
$this
->
display
();
$this
->
display
();
}
}
//添加处理
//添加处理
...
@@ -49,17 +50,44 @@ class CloudAction extends CommonAction{
...
@@ -49,17 +50,44 @@ class CloudAction extends CommonAction{
$model
=
D
(
"Media"
);
$model
=
D
(
"Media"
);
$id
=
I
(
'id'
,
''
,
int
);
$id
=
I
(
'id'
,
''
,
int
);
$data
[
'type'
]
=
I
(
"type"
);
if
(
$_FILES
){
import
(
'ORG.Net.UploadFile'
);
$upload
=
new
UploadFile
();
// 实例化上传类
$upload
->
maxSize
=
1024
*
1024
;
// 设置附件上传大小
// $upload->exts = array('mp4', 'mov');// 设置附件上传类型
$upload
->
savePath
=
'./Public/uploads/'
;
// 设置附件上传(子)目录
// $upload->savePath = '/data/uploads/'; // 设置附件上传(子)目录
// 上传文件
$info
=
$upload
->
upload
();
if
(
!
$info
)
{
// 上传错误提示错误信息
$error
=
$upload
->
getErrorMsg
();
}
else
{
// 上传成功
//$this->success('上传成功!');
$upload_info
=
$upload
->
getUploadFileInfo
();
}
}
if
(
$upload_info
){
$data
[
'url_pic'
]
=
"http://cms.hotel.wasu.tv/Public/uploads/"
.
$upload_info
[
0
][
'savename'
];
}
$data
[
'site_id'
]
=
I
(
"site_id"
);
$data
[
'title'
]
=
I
(
"title"
);
$data
[
'title'
]
=
I
(
"title"
);
$data
[
'englishTitle'
]
=
I
(
"englishTitle"
);
$data
[
'type'
]
=
I
(
"type"
);
$data
[
'programType'
]
=
I
(
"programType"
);
$data
[
'code'
]
=
I
(
"code"
);
$data
[
'code'
]
=
I
(
"code"
);
$data
[
'description'
]
=
I
(
"description"
);
$data
[
'nodeId'
]
=
I
(
"nodeId"
);
$data
[
'url_play'
]
=
I
(
"url_play"
);
$data
[
'nodeName'
]
=
I
(
"nodeNames"
);
$data
[
'url_pic'
]
=
I
(
"url_pic"
);
$data
[
'nodeStruct'
]
=
I
(
"nodeStruct"
);
$data
[
'nodeImg'
]
=
I
(
"nodeImg"
);
$data
[
'year'
]
=
I
(
"year"
);
$data
[
'year'
]
=
I
(
"year"
);
$data
[
'score'
]
=
I
(
"score"
);
$data
[
'score'
]
=
I
(
"score"
);
$data
[
'region'
]
=
I
(
"region"
);
$data
[
'region'
]
=
I
(
"region"
);
$data
[
'actor'
]
=
I
(
"actor"
);
$data
[
'director'
]
=
I
(
"director"
);
$data
[
'director'
]
=
I
(
"director"
);
$data
[
'actor'
]
=
I
(
"actor"
);
$data
[
'url_play'
]
=
I
(
"url_play"
);
$data
[
'description'
]
=
I
(
"description"
);
if
(
$id
){
if
(
$id
){
$data
[
'id'
]
=
$id
;
$data
[
'id'
]
=
$id
;
...
@@ -82,6 +110,23 @@ class CloudAction extends CommonAction{
...
@@ -82,6 +110,23 @@ class CloudAction extends CommonAction{
}
}
}
}
//详情
public
function
details
(){
$userInfo
=
$_SESSION
[
"_USER_INFO"
];
$id
=
I
(
'id'
,
''
,
int
)
?
I
(
'id'
,
''
,
int
)
:
0
;
$model
=
D
(
"Media"
);
$hotelModel
=
D
(
"Hotel"
);
if
(
$id
){
$info
=
$model
->
where
(
"id =
$id
"
)
->
find
();
$this
->
info
=
$info
;
}
$hotel_lists
=
$hotelModel
->
where
(
"`status`=0"
)
->
select
();
$this
->
hotel_lists
=
$hotel_lists
;
$this
->
display
();
}
//删除处理
//删除处理
public
function
deleteHandle
(){
public
function
deleteHandle
(){
if
(
D
(
"Front"
)
->
where
(
"id="
.
I
(
"id"
,
""
,
int
))
->
delete
()){
if
(
D
(
"Front"
)
->
where
(
"id="
.
I
(
"id"
,
""
,
int
))
->
delete
()){
...
...
SooonerHotel/App/Tpl/Media/zh-cn/Cloud/add.html
View file @
fa32f81e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html>
<html>
<head>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
媒资详情
</title>
<title>
云端片库添加/修改
</title>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/bootstrap3.3.7/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/bootstrap3.3.7/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/bootstrap3.3.7/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/bootstrap3.3.7/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery-easyui-1.3.4/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery-easyui-1.3.4/jquery.easyui.min.js"
></script>
...
@@ -16,18 +16,29 @@ body{padding:20px}
...
@@ -16,18 +16,29 @@ body{padding:20px}
</style>
</style>
</head>
</head>
<body>
<body>
<form
class=
"form-horizontal"
role=
"form"
id=
"ff"
action=
"{:U('/Media/Cloud/addHandle')}"
method=
"POST"
>
<form
class=
"form-horizontal"
role=
"form"
id=
"ff"
action=
"{:U('/Media/Cloud/addHandle')}"
method=
"POST"
enctype=
"multipart/form-data"
>
<input
name=
"id"
type=
"hidden"
value=
"{$info.id}"
/>
<input
name=
"id"
type=
"hidden"
value=
"{$info.id}"
/>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
站点
</label>
<div
class=
"col-sm-10"
>
<select
class=
"form-control"
name=
"site_id"
>
<volist
name=
"site_lists"
id=
"item"
>
<option
value=
"{$item.id}"
>
{$item.name}
</option>
</volist>
</select>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
媒资名称
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
媒资名称
</label>
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
value=
"{$info.title}"
name=
"title"
disabled
>
<input
type=
"text"
class=
"form-control"
value=
"{$info.title}"
name=
"title"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
英文名称
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
英文名称
</label>
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
value=
"{$info.englishTitle}"
name=
"englishTitle"
disabled
>
<input
type=
"text"
class=
"form-control"
value=
"{$info.englishTitle}"
name=
"englishTitle"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
@@ -37,37 +48,38 @@ body{padding:20px}
...
@@ -37,37 +48,38 @@ body{padding:20px}
<a
target=
'_blank'
href=
'{$info.newsImage_1}'
title=
'点击查看'
><image
src=
"{$info.newsImage_1}"
width=
'300px'
/></a>
<a
target=
'_blank'
href=
'{$info.newsImage_1}'
title=
'点击查看'
><image
src=
"{$info.newsImage_1}"
width=
'300px'
/></a>
<a
target=
'_blank'
href=
'{$info.newsImage_2}'
title=
'点击查看'
><image
src=
"{$info.newsImage_2}"
width=
'300px'
/></a>
<a
target=
'_blank'
href=
'{$info.newsImage_2}'
title=
'点击查看'
><image
src=
"{$info.newsImage_2}"
width=
'300px'
/></a>
<a
target=
'_blank'
href=
'{$info.newsImage_3}'
title=
'点击查看'
><image
src=
"{$info.newsImage_3}"
width=
'300px'
/></a>
<a
target=
'_blank'
href=
'{$info.newsImage_3}'
title=
'点击查看'
><image
src=
"{$info.newsImage_3}"
width=
'300px'
/></a>
<!--<input type="text" class="form-control" id="inputEmail3" placeholder="请输入海报图片地址" name="url_pic" value="{$info.url_pic}">-->
<input
type=
"file"
name=
"url_pic_file"
/>
<!--<input type="text" class="form-control" placeholder="请输入海报图片地址" name="url_pic" value="{$info.url_pic}">-->
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
分类
</label>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
分类
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
value=
"{$info.type}"
name=
"type"
disabled
>
<input
type=
"text"
class=
"form-control"
value=
"{$info.type}"
name=
"type"
>
</div>
</div>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
类型
</label>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
类型
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
value=
"{$info.programType}"
name=
"programType"
disabled
>
<input
type=
"text"
class=
"form-control"
value=
"{$info.programType}"
name=
"programType"
>
</div>
</div>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
媒资唯一标识
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
媒资唯一标识
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"code"
value=
"{$info.code}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"code"
value=
"{$info.code}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目ID
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目ID
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"nodeId"
value=
"{$info.nodeId}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"nodeId"
value=
"{$info.nodeId}"
>
</div>
</div>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目名称
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目名称
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"nodeName"
value=
"{$info.nodeName}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"nodeNames"
value=
"{$info.nodeName}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目层级
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目层级
</label>
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"url_play"
value=
"{$info.nodeStruct}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"url_play"
value=
"{$info.nodeStruct}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
@@ -79,38 +91,38 @@ body{padding:20px}
...
@@ -79,38 +91,38 @@ body{padding:20px}
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
年份
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
年份
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"year"
value=
"{$info.year}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"year"
value=
"{$info.year}"
>
</div>
</div>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
评分
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
评分
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"score"
value=
"{$info.score}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"score"
value=
"{$info.score}"
>
</div>
</div>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
国家/地区
</label>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
国家/地区
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"region"
value=
"{$info.region}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"region"
value=
"{$info.region}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
导演
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
导演
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"director"
value=
"{$info.director}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"director"
value=
"{$info.director}"
>
</div>
</div>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
演员
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
演员
</label>
<div
class=
"col-sm-2"
>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"actor"
value=
"{$info.actor}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"actor"
value=
"{$info.actor}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
云存储地址
</label>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
云存储地址
</label>
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"url_play"
value=
"{$info.url_play}"
disabled
>
<input
type=
"text"
class=
"form-control"
name=
"url_play"
value=
"{$info.url_play}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputPassword3"
class=
"col-sm-2 control-label"
>
描述
</label>
<label
for=
"inputPassword3"
class=
"col-sm-2 control-label"
>
描述
</label>
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<textarea
class=
"form-control"
rows=
"4"
name=
"description"
disabled
>
{$info.description}
</textarea>
<textarea
class=
"form-control"
rows=
"4"
name=
"description"
>
{$info.description}
</textarea>
</div>
</div>
</div>
</div>
<!-- <div class="form-group">
<!-- <div class="form-group">
...
@@ -124,10 +136,10 @@ body{padding:20px}
...
@@ -124,10 +136,10 @@ body{padding:20px}
</label>
</label>
</div>
</div>
</div>-->
</div>-->
<
!--<div class="btnMedia col-sm-5 control-label">--
>
<
div
class=
"btnMedia col-sm-5 control-label"
>
<
!--<input name="" type="button" class="btn btn-success" value="确定" onclick="submitForm()" {:buttonAuth('Media','Cloud','addhandle')}/> -->
<
input
name=
""
type=
"button"
class=
"btn btn-success"
value=
"确定"
onclick=
"submitForm()"
{
:buttonAuth
('
Media
','
Cloud
','
addhandle
')}
/>
<
!--<input name="" type="reset" class="btn btn-warning" value="取消" onclick="parentDialog.close();"/> -->
<
input
name=
""
type=
"reset"
class=
"btn btn-warning"
value=
"取消"
onclick=
"parentDialog.close();"
/>
<
!--</div> -->
<
/div>
</form>
</form>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
function
submitForm
(){
function
submitForm
(){
...
@@ -163,12 +175,7 @@ function submitForm(){
...
@@ -163,12 +175,7 @@ function submitForm(){
}
}
});
});
}
}
$
().
ready
(
function
(){
//
<
if
condition
=
"$info"
>
// $("select[name='region'] option[value='{$info.region}']").attr("selected",true);
// $("select[name='type'] option[value='{$info.type}']").attr("selected",true);
//
<
/if
>
});
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
SooonerHotel/App/Tpl/Media/zh-cn/Cloud/details.html
0 → 100644
View file @
fa32f81e
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
媒资详情
</title>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/bootstrap3.3.7/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/bootstrap3.3.7/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery-easyui-1.3.4/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery-easyui-1.3.4/plugins/jquery.validatebox.extend.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery-easyui-1.3.4/locale/easyui-lang-{$language}.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__PUBLIC__/js/jquery-easyui-1.3.4/themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__PUBLIC__/js/jquery-easyui-1.3.4/themes/icon.css"
>
<link
rel=
"stylesheet"
href=
"__PUBLIC__/js/bootstrap3.3.7/bootstrap.min.css"
>
<style>
body
{
padding
:
20px
}
</style>
</head>
<body>
<form
class=
"form-horizontal"
role=
"form"
id=
"ff"
action=
"{:U('/Media/Cloud/addHandle')}"
method=
"POST"
>
<input
name=
"id"
type=
"hidden"
value=
"{$info.id}"
/>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
媒资名称
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
value=
"{$info.title}"
name=
"title"
disabled
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
英文名称
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
value=
"{$info.englishTitle}"
name=
"englishTitle"
disabled
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
海报图片地址
</label>
<div
class=
"col-sm-10"
>
<a
target=
'_blank'
href=
'{$info.url_pic}'
title=
'点击查看'
><image
src=
"{$info.url_pic}"
width=
'300px'
/></a>
<a
target=
'_blank'
href=
'{$info.newsImage_1}'
title=
'点击查看'
><image
src=
"{$info.newsImage_1}"
width=
'300px'
/></a>
<a
target=
'_blank'
href=
'{$info.newsImage_2}'
title=
'点击查看'
><image
src=
"{$info.newsImage_2}"
width=
'300px'
/></a>
<a
target=
'_blank'
href=
'{$info.newsImage_3}'
title=
'点击查看'
><image
src=
"{$info.newsImage_3}"
width=
'300px'
/></a>
<!--<input type="text" class="form-control" id="inputEmail3" placeholder="请输入海报图片地址" name="url_pic" value="{$info.url_pic}">-->
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
分类
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
value=
"{$info.type}"
name=
"type"
disabled
>
</div>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
类型
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
value=
"{$info.programType}"
name=
"programType"
disabled
>
</div>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
媒资唯一标识
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"code"
value=
"{$info.code}"
disabled
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目ID
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"nodeId"
value=
"{$info.nodeId}"
disabled
>
</div>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目名称
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"nodeName"
value=
"{$info.nodeName}"
disabled
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目层级
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"url_play"
value=
"{$info.nodeStruct}"
disabled
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
栏目海报
</label>
<div
class=
"col-sm-10"
>
<a
target=
'_blank'
href=
'{$info.nodeImg}'
title=
'点击查看'
><image
src=
"{$info.nodeImg}"
width=
'300px'
/></a>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
年份
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"year"
value=
"{$info.year}"
disabled
>
</div>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
评分
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"score"
value=
"{$info.score}"
disabled
>
</div>
<label
for=
"name"
class=
"col-sm-2 control-label"
>
国家/地区
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"region"
value=
"{$info.region}"
disabled
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
导演
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"director"
value=
"{$info.director}"
disabled
>
</div>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
演员
</label>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"actor"
value=
"{$info.actor}"
disabled
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-2 control-label"
>
云存储地址
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail3"
name=
"url_play"
value=
"{$info.url_play}"
disabled
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"inputPassword3"
class=
"col-sm-2 control-label"
>
描述
</label>
<div
class=
"col-sm-10"
>
<textarea
class=
"form-control"
rows=
"4"
name=
"description"
disabled
>
{$info.description}
</textarea>
</div>
</div>
<!-- <div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">上下线状态</label>
<div class="col-sm-9">
<label class="radio-inline">
<input type="radio" name="_status" id="optionsRadios4" value="1" checked="checked"> 上线
</label>
<label class="radio-inline">
<input type="radio" name="_status" id="optionsRadios4" value="2"> 下线
</label>
</div>
</div>-->
<!--<div class="btnMedia col-sm-5 control-label">-->
<!--<input name="" type="button" class="btn btn-success" value="确定" onclick="submitForm()" {:buttonAuth('Media','Cloud','addhandle')}/> -->
<!--<input name="" type="reset" class="btn btn-warning" value="取消" onclick="parentDialog.close();"/> -->
<!--</div> -->
</form>
<script
type=
"text/javascript"
>
function
submitForm
(){
var
name_v
=
$
(
"input[name='title']"
).
val
();
var
code_v
=
$
(
"input[name='code']"
).
val
();
if
(
!
name_v
){
alert
(
"请输入媒资名称"
);
return
;
}
if
(
!
code_v
){
alert
(
"请输入媒资唯一标识"
);
return
;
}
$
(
'#ff'
).
form
(
'submit'
,
{
url
:
'/Media/Cloud/addHandle/'
,
onSubmit
:
function
(){
var
isValid
=
$
(
this
).
form
(
'validate'
);
//触发form内的所有validatebox验证,并返回true/false
if
(
!
isValid
)
$
(
'#tab'
).
tabs
(
'select'
,
0
);
return
isValid
;
},
success
:
function
(
data
){
if
(
data
==
'true'
){
// $.messager.confirm('友情提示', '操作成功! 是否关闭窗口?', function(r){
// if (r){
// parentDialog.CancelEvent();
// }
// });
parentDialog
.
CancelEvent
();
// $.messager.alert('友情提示','操作成功!','info');
}
else
$
.
messager
.
alert
(
'友情提示'
,
'操作失败!'
,
'info'
);
}
});
}
$
().
ready
(
function
(){
//
<
if
condition
=
"$info"
>
// $("select[name='region'] option[value='{$info.region}']").attr("selected",true);
// $("select[name='type'] option[value='{$info.type}']").attr("selected",true);
//
<
/if
>
});
</script>
</body>
</html>
\ No newline at end of file
SooonerHotel/App/Tpl/Media/zh-cn/Cloud/index.html
View file @
fa32f81e
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
<input
class=
"input"
type=
"text"
placeholder=
"媒资名称/媒资唯一标识"
name=
"searchValue"
>
<input
class=
"input"
type=
"text"
placeholder=
"媒资名称/媒资唯一标识"
name=
"searchValue"
>
</div>
</div>
<input
id=
"submit_search"
name=
""
type=
"button"
value=
"查询"
class=
"btn_go_s btn_orange"
/>
<input
id=
"submit_search"
name=
""
type=
"button"
value=
"查询"
class=
"btn_go_s btn_orange"
/>
<input
onclick=
"add()"
type=
"button"
value=
"+ 新增"
{
:buttonAuth
('
Media
','
Cloud
','
add
')}
class=
"btn_go_s btn_add"
style=
"float:right"
/>
</form>
</form>
</div>
<!--hyperchanne end-->
</div>
<!--hyperchanne end-->
</div>
</div>
...
@@ -89,14 +90,14 @@ onRowContextMenu : onRowContextMenu
...
@@ -89,14 +90,14 @@ onRowContextMenu : onRowContextMenu
</table>
</table>
<div
id=
"mm1"
class=
"easyui-menu"
style=
"width:120px;display: none"
>
<div
id=
"mm1"
class=
"easyui-menu"
style=
"width:120px;display: none"
>
<div
iconCls=
"icon-edit"
id=
"menuEdit"
onclick=
"
edit()"
{
:buttonAuth
('
Media
','
Cloud
','
add
')}
>
查看详情
</div>
<div
iconCls=
"icon-edit"
id=
"menuEdit"
onclick=
"
details()"
{
:buttonAuth
('
Media
','
Cloud
','
details
')}
>
查看详情
</div>
<!--<div iconCls="icon-cancel" id="menuDel" onclick="del()" {:buttonAuth('Media','Cloud','deletehandle')}>删除</div>-->
<!--<div iconCls="icon-cancel" id="menuDel" onclick="del()" {:buttonAuth('Media','Cloud','deletehandle')}>删除</div>-->
<!-- <div class="menu-sep"></div>
<!-- <div class="menu-sep"></div>
<div iconCls="icon-stop" id="menuStop" onclick="enable(1)" {:buttonAuth('Media','Cloud','updateStatusAjaxHandle')}>禁用</div>
<div iconCls="icon-stop" id="menuStop" onclick="enable(1)" {:buttonAuth('Media','Cloud','updateStatusAjaxHandle')}>禁用</div>
<div iconCls="icon-start" id="menuStart" onclick="enable(0)" {:buttonAuth('Media','Cloud','updateStatusAjaxHandle')}>启用</div>-->
<div iconCls="icon-start" id="menuStart" onclick="enable(0)" {:buttonAuth('Media','Cloud','updateStatusAjaxHandle')}>启用</div>-->
</div>
</div>
<div
id=
"mm2"
class=
"easyui-menu"
style=
"width:120px;display: none"
>
<div
id=
"mm2"
class=
"easyui-menu"
style=
"width:120px;display: none"
>
<div
iconCls=
"icon-edit"
id=
"menuEdit"
onclick=
"
edit()"
{
:buttonAuth
('
Media
','
Cloud
','
add
')}
>
查看详情
</div>
<div
iconCls=
"icon-edit"
id=
"menuEdit"
onclick=
"
details()"
{
:buttonAuth
('
Media
','
Cloud
','
details
')}
>
查看详情
</div>
<!--<div iconCls="icon-cancel" id="menuDel" onclick="del()" {:buttonAuth('Media','Cloud','deletehandle')}>删除</div>-->
<!--<div iconCls="icon-cancel" id="menuDel" onclick="del()" {:buttonAuth('Media','Cloud','deletehandle')}>删除</div>-->
<!-- <div class="menu-sep"></div>
<!-- <div class="menu-sep"></div>
<div iconCls="icon-stop" id="menuStop" onclick="enable(1)" {:buttonAuth('Media','Cloud','updateStatusAjaxHandle')}>禁用</div>
<div iconCls="icon-stop" id="menuStop" onclick="enable(1)" {:buttonAuth('Media','Cloud','updateStatusAjaxHandle')}>禁用</div>
...
@@ -172,6 +173,14 @@ function edit(){
...
@@ -172,6 +173,14 @@ function edit(){
$
.
messager
.
alert
(
'提示'
,
'请选择要操作的记录!'
,
'info'
);
$
.
messager
.
alert
(
'提示'
,
'请选择要操作的记录!'
,
'info'
);
}
}
}
}
function
details
(){
var
row
=
$
(
'#dg'
).
datagrid
(
'getSelected'
);
if
(
row
){
pop
(
800
,
700
,
true
,
''
,
'datagrid'
,
'/Media/Cloud/details/id/'
+
row
.
id
);
}
else
{
$
.
messager
.
alert
(
'提示'
,
'请选择要操作的记录!'
,
'info'
);
}
}
function
del
(){
function
del
(){
var
row
=
$
(
'#dg'
).
datagrid
(
'getSelected'
);
var
row
=
$
(
'#dg'
).
datagrid
(
'getSelected'
);
if
(
row
){
if
(
row
){
...
...
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