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
a3efce17
Commit
a3efce17
authored
Mar 11, 2020
by
Trần Văn Minh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cập nhât xem chi tiết thông tin bài hát
parent
d0c642e6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
18 deletions
+29
-18
CmsTrack.php
application/controllers/backend/CmsTrack.php
+12
-0
Track_model.php
application/models/Track_model.php
+1
-1
list_track_view.php
application/views/backend/ajax/cms_track/list_track_view.php
+2
-2
show_track_view.php
application/views/backend/cms_track/show_track_view.php
+14
-15
No files found.
application/controllers/backend/CmsTrack.php
View file @
a3efce17
...
...
@@ -133,5 +133,16 @@ class CmsTrack extends CI_Controller
redirect
(
base_url
()
.
'backend/cmsTrack/listTrack'
);
}
}
public
function
showTrack
(
$track_id
)
{
$this
->
_data
[
'track'
]
=
$this
->
track_model
->
getById
(
$track_id
);
//
$this
->
_data
[
'functionName'
]
=
'Thông tin Bài Hát'
;
$this
->
_data
[
'action'
]
=
'showTrack'
;
$this
->
_data
[
'titlePage'
]
=
'Thông tin Bài Hát'
;
$this
->
_data
[
'loadPage'
]
=
'backend/cms_track/show_track_view'
;
$this
->
load
->
view
(
'backend/admin_template_view'
,
$this
->
_data
);
}
}
\ No newline at end of file
application/models/Track_model.php
View file @
a3efce17
...
...
@@ -64,7 +64,7 @@ class Track_model extends CI_Model
}
}
public
function
getById
(
$id
,
$track_user
,
$track_artist
)
public
function
getById
(
$id
)
{
$this
->
db
->
select
(
$this
->
_table
.
'.*, track_user.name AS name_singer,
track_user.user_id AS id_singer,
...
...
application/views/backend/ajax/cms_track/list_track_view.php
View file @
a3efce17
...
...
@@ -19,8 +19,8 @@
<td
style=
"text-align: center"
>
#
<?php
echo
$data
[
'id'
];
?>
</td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'title'
];
?>
</td>
<td
style=
"text-align: center"
>
<a
href=
"
<?php
echo
base_url
()
.
'backend/cmsTrack/
edit
Track/'
.
$data
[
'id'
];
?>
"
title=
"Xem chi tiết"
>
<i
class=
"ace-icon fa fa-
pencil
bigger-130"
></i>
<a
href=
"
<?php
echo
base_url
()
.
'backend/cmsTrack/
show
Track/'
.
$data
[
'id'
];
?>
"
title=
"Xem chi tiết"
>
<i
class=
"ace-icon fa fa-
eye
bigger-130"
></i>
</a>
</td>
</tr>
...
...
application/views/backend/cms_track/show_track_view.php
View file @
a3efce17
...
...
@@ -20,54 +20,53 @@
</div>
</div>
<?php
endif
;
?>
<?php
if
(
isset
(
$
user
[
0
]))
:
?>
<?php
if
(
isset
(
$
track
[
0
]))
:
?>
<div
class=
"row"
>
<div
class=
"profile-user-info profile-user-info-striped"
>
<div
class=
"profile-info-row"
>
<div
class=
"profile-info-name"
>
ID
</div>
<div
class=
"profile-info-value"
>
<span>
#
<?php
echo
$
user
[
0
][
'id'
]
?>
</span>
<span>
#
<?php
echo
$
track
[
0
][
'id'
]
?>
</span>
</div>
</div>
<div
class=
"profile-info-row"
>
<div
class=
"profile-info-name"
>
Ảnh
đại diện
</div>
<div
class=
"profile-info-name"
>
Ảnh
</div>
<div
class=
"profile-info-value"
>
<span>
<?php
(
$user
[
0
][
'avatar'
]
!=
''
)
?
$avatar_path
=
$user
[
0
][
'avatar'
]
:
$avatar_path
=
'upload/avatar/user.jpg'
?>
<img
src=
"
<?php
echo
base_url
(
$avatar_path
);
?>
"
style=
"width: 100px; height: 100px"
>
<img
src=
"
<?php
echo
MyHelper
::
getArtByTrack
(
$track
[
0
][
'art'
])
?>
"
style=
"width: 100px; height: 100px"
>
</span>
</div>
</div>
<div
class=
"profile-info-row"
>
<div
class=
"profile-info-name"
>
Tên
người chơi
</div>
<div
class=
"profile-info-name"
>
Tên
Bài hát
</div>
<div
class=
"profile-info-value"
>
<span>
<?php
echo
$
user
[
0
][
'fullnam
e'
]
?>
</span>
<span>
<?php
echo
$
track
[
0
][
'titl
e'
]
?>
</span>
</div>
</div>
<div
class=
"profile-info-row"
>
<div
class=
"profile-info-name"
>
Tên tài khoản
</div>
<div
class=
"profile-info-name"
>
Ca sĩ
</div>
<div
class=
"profile-info-value"
>
<
span>
<?php
echo
$user
[
0
][
'username'
]
?>
</span
>
<
!-- <span>
<?php
echo
MyHelper
::
reFormatDate
(
$track
[
0
][
'birthday'
],
'd/m/Y'
)
?>
</span> --
>
</div>
</div>
<div
class=
"profile-info-row"
>
<div
class=
"profile-info-name"
>
N
gày sinh
</div>
<div
class=
"profile-info-name"
>
N
hạc sĩ
</div>
<div
class=
"profile-info-value"
>
<
span>
<?php
echo
MyHelper
::
reFormatDate
(
$user
[
0
][
'birthday'
],
'd/m/Y'
)
?>
</span
>
<
!-- <span>
<?php
echo
$user
[
0
][
'gender'
]
?>
</span> --
>
</div>
</div>
<div
class=
"profile-info-row"
>
<div
class=
"profile-info-name"
>
Giới tính
</div>
<div
class=
"profile-info-name"
>
Mô tả
</div>
<div
class=
"profile-info-value"
>
<span>
<?php
echo
$
user
[
0
][
'gender
'
]
?>
</span>
<span>
<?php
echo
$
track
[
0
][
'description
'
]
?>
</span>
</div>
</div>
<!--
<div class="profile-info-row">
<div class="profile-info-name">Địa chỉ</div>
<div class="profile-info-value">
...
...
@@ -101,7 +100,7 @@
<div class="profile-info-value">
<span>
<?php
echo
MyHelper
::
reFormatDate
(
$user
[
0
][
'created_at'
])
?>
</span>
</div>
</div>
</div>
-->
</div>
</div>
<?php
else
:
?>
...
...
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