Commit 6b856409 by Phạm Văn Đoan

fix lỗi ko hiển thị ảnh sau khi xử lý cập nhật ảnh bài hát

parent c426e26b
...@@ -36,7 +36,7 @@ class Report_views_daily_model extends CI_Model ...@@ -36,7 +36,7 @@ class Report_views_daily_model extends CI_Model
*/ */
public function cmsGetPagination($record, $start, $name = null) public function cmsGetPagination($record, $start, $name = null)
{ {
$this->db->select($this->_table . '.*, tracks.title AS name_song, tracks.art AS art'); $this->db->select($this->_table . '.*, tracks.title AS name_song, tracks.art AS art, tracks.art_type AS art_type');
$this->db->from($this->_table); $this->db->from($this->_table);
$this->db->join('tracks', 'tracks.id = report_views_daily.track_id', 'left'); $this->db->join('tracks', 'tracks.id = report_views_daily.track_id', 'left');
if ($name != null) { if ($name != null) {
......
...@@ -26,7 +26,7 @@ class Report_views_monthly_model extends CI_Model ...@@ -26,7 +26,7 @@ class Report_views_monthly_model extends CI_Model
{ {
$this->db->select($this->_table . '.*, u1.full_name AS singer_name, $this->db->select($this->_table . '.*, u1.full_name AS singer_name,
track_user.name AS singer_name2, tracks.title AS name_song, track_user.name AS singer_name2, tracks.title AS name_song,
GROUP_CONCAT(track_user.`name` SEPARATOR ",") AS all_name, tracks.art AS art'); GROUP_CONCAT(track_user.`name` SEPARATOR ",") AS all_name, tracks.art AS art, tracks.art_type AS art_type');
$this->db->from($this->_table); $this->db->from($this->_table);
$this->db->join('track_user', 'track_user.track_id = ' . $this->_table . '.track_id', 'left'); $this->db->join('track_user', 'track_user.track_id = ' . $this->_table . '.track_id', 'left');
$this->db->join('tracks', 'tracks.id = ' . $this->_table . '.track_id', 'left'); $this->db->join('tracks', 'tracks.id = ' . $this->_table . '.track_id', 'left');
......
...@@ -30,7 +30,7 @@ class Report_views_weekly_model extends CI_Model ...@@ -30,7 +30,7 @@ class Report_views_weekly_model extends CI_Model
public function cmsGetPagination($record, $start, $name = null) public function cmsGetPagination($record, $start, $name = null)
{ {
$this->db->select($this->_table . '.*, u1.full_name AS singer_name, track_user.name AS singer_name2, $this->db->select($this->_table . '.*, u1.full_name AS singer_name, track_user.name AS singer_name2,
tracks.title AS name_song, GROUP_CONCAT(track_user.`name` SEPARATOR ",") AS all_name, tracks.art AS art'); tracks.title AS name_song, GROUP_CONCAT(track_user.`name` SEPARATOR ",") AS all_name, tracks.art AS art, tracks.art_type AS art_type');
$this->db->from($this->_table); $this->db->from($this->_table);
$this->db->join('track_user', 'track_user.track_id = ' . $this->_table . '.track_id', 'left'); $this->db->join('track_user', 'track_user.track_id = ' . $this->_table . '.track_id', 'left');
$this->db->join('tracks', 'tracks.id = ' . $this->_table . '.track_id', 'left'); $this->db->join('tracks', 'tracks.id = ' . $this->_table . '.track_id', 'left');
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
<td style="text-align: left"> <td style="text-align: left">
<?php echo $data['name_song']; ?> <?php echo $data['name_song']; ?>
<br> <br>
<span style="color: #adadad">ID: <?php echo $data['track_id']; ?></span> <span style="color: #adadad">ID: <?php echo $data['track_id']; ?></span> |
<span style="color: #adadad">ID: <?php echo $data['art_type']; ?></span>
</td> </td>
<td style="text-align: left"><?php echo $data['all_name']; ?></td> <td style="text-align: left"><?php echo $data['all_name']; ?></td>
<td style="text-align: right"><?php echo number_format($data['total_point'], 0, ',', '.'); ?></td> <td style="text-align: right"><?php echo number_format($data['total_point'], 0, ',', '.'); ?></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment