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(
'placeholder'
=>
'Tên bài hát'
,
'checked'
=>
true
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
'min'
=>
1
,
'max'
=>
50
'style'
=>
'width: 100%'
);
$input_link
=
array
(
'name'
=>
'link'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$link
)
?
$link
:
''
,
'placeholder'
=>
'
Nhập link bài hát
'
,
'placeholder'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
'min'
=>
1
,
'max'
=>
50
'style'
=>
'width: 100%'
);
$input_nct_id
=
array
(
'name'
=>
'nct_id'
,
$input_link_nct
=
array
(
'name'
=>
'link_nct'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$
nct_id
)
?
$nct_id
:
''
,
'placeholder'
=>
'
Id bài hát trên NCT
'
,
'value'
=>
isset
(
$
link_nct
)
?
$link_nct
:
''
,
'placeholder'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
'min'
=>
1
,
'max'
=>
50
'style'
=>
'width: 100%'
);
$input_link_keeng
=
array
(
'name'
=>
'link_keeng'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$link_keeng
)
?
$link_keeng
:
''
,
'placeholder'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
);
$input_zing
=
array
(
'name'
=>
'
source
'
,
'
id'
=>
'zing
'
,
'
type'
=>
'radio
'
,
'
value'
=>
'zing
'
,
'
min'
=>
1
,
'
max'
=>
50
$input_
id_
zing
=
array
(
'name'
=>
'
id_zing
'
,
'
type'
=>
'text
'
,
'
value'
=>
isset
(
$id_zing
)
?
$id_zing
:
'
'
,
'
placeholder'
=>
'
'
,
'
class'
=>
''
,
'
style'
=>
'width: 100%'
);
$input_
nct
=
array
(
'name'
=>
'
source
'
,
'type'
=>
'
radio
'
,
'
id'
=>
'nct
'
,
'
value'
=>
'nct
'
,
'
min'
=>
1
,
'
max'
=>
50
$input_
id_keeng
=
array
(
'name'
=>
'
id_keeng
'
,
'type'
=>
'
text
'
,
'
value'
=>
isset
(
$id_keeng
)
?
$id_keeng
:
'
'
,
'
placeholder'
=>
'
'
,
'
class'
=>
''
,
'
style'
=>
'width: 100%'
);
$input_keeng
=
array
(
'name'
=>
'source'
,
'type'
=>
'radio'
,
'id'
=>
'keeng'
,
'value'
=>
'keeng'
,
'max'
=>
50
$input_id_nct_str
=
array
(
'name'
=>
'id_nct_str'
,
'type'
=>
'text'
,
'value'
=>
isset
(
$id_nct_str
)
?
$id_nct_str
:
''
,
'placeholder'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
);
$input_username
=
array
(
'name'
=>
'username'
,
'type'
=>
'text'
,
...
...
@@ -83,30 +87,8 @@ $input_full_name = array(
'class'
=>
''
,
'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"
;
(
isset
(
$source
)
&&
$source
==
'zing'
)
?
array_push
(
$input_zing
,
$check
)
:
''
;
?>
...
...
@@ -140,7 +122,7 @@ $check = "checked => 1";
</div>
</div>
<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"
>
<select
id=
'form-field-select-3'
name=
"singer"
style=
'width: 200px;'
class=
"chosen-select form-control"
data-placeholder=
"Choose a State..."
>
...
...
@@ -160,7 +142,7 @@ $check = "checked => 1";
</div>
<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"
>
<select
id=
'form-field-select-3'
name=
"artist"
style=
'width: 200px;'
class=
"chosen-select form-control"
data-placeholder=
"Choose a State..."
>
...
...
@@ -180,62 +162,69 @@ $check = "checked => 1";
</div>
<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"
>
<input
type=
"file"
name=
"avatar"
size=
"20"
/>
</div>
</div>
<!-- Nguồn từ Zing -->
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Nguồn nhạc
<?php
isset
(
$src_option
)
?
$src_option
:
''
;
?>
</label>
<div
class=
"col-lg-3"
id=
"source"
>
<div
class=
"row"
>
<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>'
);}
?>
<label
class=
"col-lg-3"
>
Nguồn nhạc Zing (nếu có)
</label>
<div
class=
"col-lg-3"
>
<p>
ID bài hát ở Zing:
</p><input
type=
"text"
id=
"id_zing"
name=
"id_zing"
class=
"form-control"
>
</div>
</div>
<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"
>
<?php
echo
form_input
(
$input_link
);
?>
<p>
ID bài hát ở NCT:
</p><input
type=
"text"
id=
"id_zing"
name=
"id_zing"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-group"
id=
"nct_id"
style=
"display: none;"
>
<label
class=
"col-lg-3"
>
ID Nhạc của tui
</label>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
></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"
>
<?php
echo
form_input
(
$input_nct_id
);
?>
<p>
ID bài hát ở Keeng:
</p><input
type=
"text"
id=
"id_zing"
name=
"id_zing"
class=
"form-control"
>
</div>
<input
type=
"hidden"
name=
"src_option"
value=
"
<?php
echo
isset
(
$src_option
)
?
$src_option
:
'zing'
;
?>
"
id=
"src_option"
>
</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=
"col-lg-3"
>
<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 @@
<button
class=
"btn btn-sm btn-default"
id=
"delete-filter"
>
Xóa bộ lọc
</button>
</div>
<!-- Thêm mới bài hát -->
<div
class=
"col-lg-1"
style=
"float:right;"
>
<a
class=
"btn btn-sm btn-success"
href=
"
<?php
echo
base_url
(
'backend/cmsTrack/addTrack'
);
?>
"
>
<
!--<
div class="col-lg-1" style="float:right;">
<a class="btn btn-sm btn-success" href="
<?php
/*echo base_url('backend/cmsTrack/addTrack');*/
?>
">
<i class="glyphicon-plus"></i> Thêm</a>
</div>
</div>
-->
</div>
<!-- /.row -->
<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