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
5dca49fd
Commit
5dca49fd
authored
Mar 10, 2020
by
Trần Văn Minh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cập nhật thông tin bài hát
parent
57bd233d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
CmsTrack.php
application/controllers/backend/CmsTrack.php
+5
-5
edit_track_view.php
application/views/backend/cms_track/edit_track_view.php
+6
-4
No files found.
application/controllers/backend/CmsTrack.php
View file @
5dca49fd
...
@@ -89,15 +89,15 @@ class CmsTrack extends CI_Controller
...
@@ -89,15 +89,15 @@ class CmsTrack extends CI_Controller
$title
=
$this
->
input
->
post
(
'title'
);
$title
=
$this
->
input
->
post
(
'title'
);
$update_singer
=
$this
->
input
->
post
(
'update_singer'
);
$update_singer
=
$this
->
input
->
post
(
'update_singer'
);
$singer
=
$
contest
[
0
][
'id_singer
'
];
$singer
=
$
track_user
[
0
][
'user_id
'
];
$artist
=
$
contest
[
0
][
'id_artist
'
];
$artist
=
$
track_artists
[
0
][
'user_id
'
];
$update_artist
=
$this
->
input
->
post
(
'update_artist'
);
$update_artist
=
$this
->
input
->
post
(
'update_artist'
);
$id_singer
=
(
$update_singer
>
0
)
?
$update_singer
:
$singer
;
$id_singer
=
(
$update_singer
>
0
)
?
$update_singer
:
$singer
;
$id_artist
=
(
$update_artist
>
0
)
?
$update_artist
:
$artist
;
$id_artist
s
=
(
$update_artist
>
0
)
?
$update_artist
:
$artist
;
(
$singer
||
$id_user
)
?
$active_singer
=
'update'
:
$active_singer
=
'insert'
;
(
$singer
||
$id_user
)
?
$active_singer
=
'update'
:
$active_singer
=
'insert'
;
(
$artist
||
$id_artist
)
?
$active_artist
=
'update'
:
$active_artist
=
'insert'
;
(
$artist
||
$id_artist
)
?
$active_artist
=
'update'
:
$active_artist
=
'insert'
;
// die($
active_artist.$active_singer
);
// die($
id_singer.$id_artists
);
$this
->
track_model
->
update_track_artists
(
$contest_id
,
$id_artist
,
$id_artist
,
$active_artist
);
$this
->
track_model
->
update_track_artists
(
$contest_id
,
$id_artist
s
,
$id_artist
,
$active_artist
);
$this
->
track_model
->
update_track_user
(
$contest_id
,
$id_singer
,
$id_user
,
$active_singer
);
$this
->
track_model
->
update_track_user
(
$contest_id
,
$id_singer
,
$id_user
,
$active_singer
);
$this
->
track_model
->
update
(
$contest_id
,
$title
);
$this
->
track_model
->
update
(
$contest_id
,
$title
);
// Ghi log
// Ghi log
...
...
application/views/backend/cms_track/edit_track_view.php
View file @
5dca49fd
...
@@ -61,7 +61,7 @@ $input_artist = array(
...
@@ -61,7 +61,7 @@ $input_artist = array(
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Tên ca sĩ hiện tại (*)
<
?php
echo
$track_user
[
0
][
'id'
];
?>
<
/label>
<label
class=
"col-lg-3"
>
Tên ca sĩ hiện tại (*)
</label>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<?php
<?php
echo
form_input
(
$input_singer
);
echo
form_input
(
$input_singer
);
...
@@ -69,7 +69,7 @@ $input_artist = array(
...
@@ -69,7 +69,7 @@ $input_artist = array(
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Tên nhạc sĩ hiện tại(*)
<
?php
echo
$track_artists
[
0
][
'id'
];
?>
<
/label>
<label
class=
"col-lg-3"
>
Tên nhạc sĩ hiện tại(*)
</label>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<?php
<?php
echo
form_input
(
$input_artist
);
echo
form_input
(
$input_artist
);
...
@@ -77,7 +77,7 @@ $input_artist = array(
...
@@ -77,7 +77,7 @@ $input_artist = array(
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Cập nhật Tên Ca sĩ
(*)
</label>
<label
class=
"col-lg-3"
>
Cập nhật Tên Ca sĩ
</label>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<select
id=
'form-field-select-3'
name=
"update_singer"
style=
'width: 200px;'
class=
"chosen-select form-control"
<select
id=
'form-field-select-3'
name=
"update_singer"
style=
'width: 200px;'
class=
"chosen-select form-control"
data-placeholder=
"Choose a State..."
>
data-placeholder=
"Choose a State..."
>
...
@@ -91,7 +91,7 @@ $input_artist = array(
...
@@ -91,7 +91,7 @@ $input_artist = array(
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Cập nhập Tên nhạc sĩ
(*)
</label>
<label
class=
"col-lg-3"
>
Cập nhập Tên nhạc sĩ
</label>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
>
<select
id=
'form-field-select-3'
name=
"update_artist"
style=
'width: 200px;'
class=
"chosen-select form-control"
<select
id=
'form-field-select-3'
name=
"update_artist"
style=
'width: 200px;'
class=
"chosen-select form-control"
data-placeholder=
"Choose a State..."
>
data-placeholder=
"Choose a State..."
>
...
@@ -124,7 +124,9 @@ $input_artist = array(
...
@@ -124,7 +124,9 @@ $input_artist = array(
</div>
</div>
</div>
</div>
<?php
echo
form_close
();
?>
<?php
echo
form_close
();
?>
<p
class=
"text-danger"
>
Chú ý: Có thể cập nhật lại ca sĩ hoặc nhạc sĩ.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.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