Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vmusicchart-cms
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Phạm Văn Đoan
vmusicchart-cms
Commits
e7081d9e
Commit
e7081d9e
authored
Apr 13, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tạm khóa chức năng thêm bài hát
parent
a1416318
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
95 additions
and
106 deletions
+95
-106
add_track_view.php
application/views/backend/cms_track/add_track_view.php
+92
-103
list_track_view.php
application/views/backend/cms_track/list_track_view.php
+3
-3
No files found.
application/views/backend/cms_track/add_track_view.php
View file @
e7081d9e
...
@@ -6,56 +6,60 @@ $input_title = array(
...
@@ -6,56 +6,60 @@ $input_title = array(
'placeholder'
=>
'Tên bài hát'
,
'placeholder'
=>
'Tên bài hát'
,
'checked'
=>
true
,
'checked'
=>
true
,
'class'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
'style'
=>
'width: 100%'
'min'
=>
1
,
'max'
=>
50
);
);
$input_link
=
array
(
$input_link
=
array
(
'name'
=>
'link'
,
'name'
=>
'link'
,
'type'
=>
'text'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$link
)
?
$link
:
''
,
'value'
=>
isset
(
$link
)
?
$link
:
''
,
'placeholder'
=>
'
Nhập link bài hát
'
,
'placeholder'
=>
''
,
'class'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
'style'
=>
'width: 100%'
'min'
=>
1
,
'max'
=>
50
);
);
$input_link_nct
=
array
(
$input_nct_id
=
array
(
'name'
=>
'link_nct'
,
'name'
=>
'nct_id'
,
'type'
=>
'text'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$
nct_id
)
?
$nct_id
:
''
,
'value'
=>
isset
(
$
link_nct
)
?
$link_nct
:
''
,
'placeholder'
=>
'
Id bài hát trên NCT
'
,
'placeholder'
=>
''
,
'class'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
'style'
=>
'width: 100%'
'min'
=>
1
,
);
'max'
=>
50
$input_link_keeng
=
array
(
'name'
=>
'link_keeng'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$link_keeng
)
?
$link_keeng
:
''
,
'placeholder'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
);
);
$input_zing
=
array
(
$input_
id_
zing
=
array
(
'name'
=>
'
source
'
,
'name'
=>
'
id_zing
'
,
'
id'
=>
'zing
'
,
'
type'
=>
'text
'
,
'
type'
=>
'radio
'
,
'
value'
=>
isset
(
$id_zing
)
?
$id_zing
:
'
'
,
'
value'
=>
'zing
'
,
'
placeholder'
=>
'
'
,
'
min'
=>
1
,
'
class'
=>
''
,
'
max'
=>
50
'
style'
=>
'width: 100%'
);
);
$input_
nct
=
array
(
$input_
id_keeng
=
array
(
'name'
=>
'
source
'
,
'name'
=>
'
id_keeng
'
,
'type'
=>
'
radio
'
,
'type'
=>
'
text
'
,
'
id'
=>
'nct
'
,
'
value'
=>
isset
(
$id_keeng
)
?
$id_keeng
:
'
'
,
'
value'
=>
'nct
'
,
'
placeholder'
=>
'
'
,
'
min'
=>
1
,
'
class'
=>
''
,
'
max'
=>
50
'
style'
=>
'width: 100%'
);
);
$input_keeng
=
array
(
$input_id_nct_str
=
array
(
'name'
=>
'source'
,
'name'
=>
'id_nct_str'
,
'type'
=>
'radio'
,
'type'
=>
'text'
,
'id'
=>
'keeng'
,
'value'
=>
isset
(
$id_nct_str
)
?
$id_nct_str
:
''
,
'value'
=>
'keeng'
,
'placeholder'
=>
''
,
'max'
=>
50
'class'
=>
''
,
'style'
=>
'width: 100%'
);
);
$input_username
=
array
(
$input_username
=
array
(
'name'
=>
'username'
,
'name'
=>
'username'
,
'type'
=>
'text'
,
'type'
=>
'text'
,
...
@@ -83,30 +87,8 @@ $input_full_name = array(
...
@@ -83,30 +87,8 @@ $input_full_name = array(
'class'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
'style'
=>
'width: 100%'
,
);
);
$input_link_zing
=
array
(
'name'
=>
'link_zing'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$link_zing
)
?
$link_zing
:
''
,
'placeholder'
=>
'Nhập Link Zingmp3'
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
);
$input_link_nct
=
array
(
'name'
=>
'link_nct'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$link_nct
)
?
$link_nct
:
''
,
'placeholder'
=>
'Nhập link NCT'
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
);
$input_link_keeng
=
array
(
'name'
=>
'link_keeng'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$link_keeng
)
?
$link_keeng
:
''
,
'placeholder'
=>
'Nhập link Keeng'
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
);
$check
=
"checked => 1"
;
$check
=
"checked => 1"
;
(
isset
(
$source
)
&&
$source
==
'zing'
)
?
array_push
(
$input_zing
,
$check
)
:
''
;
(
isset
(
$source
)
&&
$source
==
'zing'
)
?
array_push
(
$input_zing
,
$check
)
:
''
;
?>
?>
...
@@ -140,7 +122,7 @@ $check = "checked => 1";
...
@@ -140,7 +122,7 @@ $check = "checked => 1";
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Tên
C
a sĩ (*)
</label>
<label
class=
"col-lg-3"
>
Tên
c
a sĩ (*)
</label>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<select
id=
'form-field-select-3'
name=
"singer"
style=
'width: 200px;'
<select
id=
'form-field-select-3'
name=
"singer"
style=
'width: 200px;'
class=
"chosen-select form-control"
data-placeholder=
"Choose a State..."
>
class=
"chosen-select form-control"
data-placeholder=
"Choose a State..."
>
...
@@ -160,7 +142,7 @@ $check = "checked => 1";
...
@@ -160,7 +142,7 @@ $check = "checked => 1";
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Tên
N
gười sáng tác (*)
</label>
<label
class=
"col-lg-3"
>
Tên
n
gười sáng tác (*)
</label>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<select
id=
'form-field-select-3'
name=
"artist"
style=
'width: 200px;'
<select
id=
'form-field-select-3'
name=
"artist"
style=
'width: 200px;'
class=
"chosen-select form-control"
data-placeholder=
"Choose a State..."
>
class=
"chosen-select form-control"
data-placeholder=
"Choose a State..."
>
...
@@ -180,62 +162,69 @@ $check = "checked => 1";
...
@@ -180,62 +162,69 @@ $check = "checked => 1";
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Ảnh
B
ài hát
</label>
<label
class=
"col-lg-3"
>
Ảnh
b
ài hát
</label>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<input
type=
"file"
name=
"avatar"
size=
"20"
/>
<input
type=
"file"
name=
"avatar"
size=
"20"
/>
</div>
</div>
</div>
</div>
<!-- Nguồn từ Zing -->
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Nguồn nhạc
<?php
isset
(
$src_option
)
?
$src_option
:
''
;
?>
</label>
<label
class=
"col-lg-3"
>
Nguồn nhạc Zing (nếu có)
</label>
<div
class=
"col-lg-3"
id=
"source"
>
<div
class=
"col-lg-3"
>
<div
class=
"row"
>
<p>
ID bài hát ở Zing:
</p><input
type=
"text"
id=
"id_zing"
name=
"id_zing"
class=
"form-control"
>
<div
class=
"col-lg-4"
>
<label
class=
"src-option"
>
<input
name=
"source"
id=
"zing"
value=
"zing"
type=
"radio"
<?php
if
(
$source
==
'zing'
||
$source
!=
'nct'
||
$source
!=
'keeng'
)
echo
'checked'
;
?>
>
Zing
</label>
</div>
<div
class=
"col-lg-4"
>
<label
class=
"src-option"
>
<input
name=
"source"
id=
"nct"
value=
"nct"
type=
"radio"
<?php
if
(
$source
==
'nct'
)
echo
'checked'
;
?>
>
NCT
</label>
</div>
<div
class=
"col-lg-4"
>
<label
class=
"src-option"
>
<input
name=
"source"
id=
"keeng"
value=
"keeng"
type=
"radio"
<?php
if
(
$source
==
'keeng'
)
echo
'checked'
;
?>
>
Keeng
</label>
</div>
</div>
<?php
if
(
validation_errors
()){
echo
form_error
(
'nct_id'
,
'<div class="error">'
,
'</div>'
);}
?>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Link nhạc
</label>
<label
class=
"col-lg-3"
></label>
<div
class=
"col-lg-9"
>
<p>
Link bài hát ở Zing:
</p>
<?php
echo
form_input
(
$input_link
);
?>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
></label>
<div
class=
"col-lg-9"
>
<p>
Link ảnh bài hát ở Zing:
</p>
<?php
echo
form_input
(
$input_link
);
?>
</div>
</div>
<!-- Nguồn từ NCT -->
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Nguồn nhạc NCT (nếu có)
</label>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<?php
<p>
ID bài hát ở NCT:
</p><input
type=
"text"
id=
"id_zing"
name=
"id_zing"
class=
"form-control"
>
echo
form_input
(
$input_link
);
?>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
id=
"nct_id"
style=
"display: none;"
>
<label
class=
"col-lg-3"
></label>
<label
class=
"col-lg-3"
>
ID Nhạc của tui
</label>
<div
class=
"col-lg-9"
>
<p>
Link bài hát ở NCT:
</p>
<?php
echo
form_input
(
$input_link
);
?>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
></label>
<div
class=
"col-lg-9"
>
<p>
Link ảnh bài hát ở NCT:
</p>
<?php
echo
form_input
(
$input_link
);
?>
</div>
</div>
<!-- Nguồn từ Keeng -->
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Nguồn nhạc Keeng (nếu có)
</label>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<?php
<p>
ID bài hát ở Keeng:
</p><input
type=
"text"
id=
"id_zing"
name=
"id_zing"
class=
"form-control"
>
echo
form_input
(
$input_nct_id
);
?>
</div>
</div>
<input
type=
"hidden"
name=
"src_option"
value=
"
<?php
echo
isset
(
$src_option
)
?
$src_option
:
'zing'
;
?>
"
id=
"src_option"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
></label>
<div
class=
"col-lg-9"
>
<p>
Link bài hát ở Keeng:
</p>
<?php
echo
form_input
(
$input_link
);
?>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
></label>
<div
class=
"col-lg-9"
>
<p>
Link ảnh bài hát ở Keeng:
</p>
<?php
echo
form_input
(
$input_link
);
?>
</div>
</div>
<!-- Nút nhấn xử lý -->
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<a
href=
"
<?php
echo
base_url
(
'backend/cmsTrack/listTrack'
);
?>
"
<a
href=
"
<?php
echo
base_url
(
'backend/cmsTrack/listTrack'
);
?>
"
...
...
application/views/backend/cms_track/list_track_view.php
View file @
e7081d9e
...
@@ -56,10 +56,10 @@
...
@@ -56,10 +56,10 @@
<button
class=
"btn btn-sm btn-default"
id=
"delete-filter"
>
Xóa bộ lọc
</button>
<button
class=
"btn btn-sm btn-default"
id=
"delete-filter"
>
Xóa bộ lọc
</button>
</div>
</div>
<!-- Thêm mới bài hát -->
<!-- Thêm mới bài hát -->
<div
class=
"col-lg-1"
style=
"float:right;"
>
<
!--<
div class="col-lg-1" style="float:right;">
<a
class=
"btn btn-sm btn-success"
href=
"
<?php
echo
base_url
(
'backend/cmsTrack/addTrack'
);
?>
"
>
<a class="btn btn-sm btn-success" href="
<?php
/*echo base_url('backend/cmsTrack/addTrack');*/
?>
">
<i class="glyphicon-plus"></i> Thêm</a>
<i class="glyphicon-plus"></i> Thêm</a>
</div>
</div>
-->
</div>
</div>
<!-- /.row -->
<!-- /.row -->
<div
class=
"space-6"
></div>
<div
class=
"space-6"
></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