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
ab73e782
Commit
ab73e782
authored
Mar 09, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cập nhật ảnh nghệ sĩ ở chức năng thống kê BXH
parent
37a01966
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
2 deletions
+24
-2
config.php
application/config/config.php
+3
-0
MyHelper.php
application/libraries/MyHelper.php
+19
-0
list_by_monthly_view.php
...n/views/backend/ajax/cms_ranking/list_by_monthly_view.php
+1
-1
list_by_weekly_view.php
...on/views/backend/ajax/cms_ranking/list_by_weekly_view.php
+1
-1
track.png
images/track.png
+0
-0
No files found.
application/config/config.php
View file @
ab73e782
...
@@ -508,5 +508,7 @@ $config['apiKey'] = 'No9OIh0vOPBRzUYeRYHPuQoclfzx69MX';
...
@@ -508,5 +508,7 @@ $config['apiKey'] = 'No9OIh0vOPBRzUYeRYHPuQoclfzx69MX';
*/
*/
$config
[
'allow_get_array'
]
=
TRUE
;
$config
[
'allow_get_array'
]
=
TRUE
;
$config
[
'vmusicchart_url'
]
=
'http://vmusicchart.vn/'
;
/* End of file config.php */
/* End of file config.php */
/* Location: ./application/config/config.php */
/* Location: ./application/config/config.php */
\ No newline at end of file
application/libraries/MyHelper.php
View file @
ab73e782
...
@@ -760,6 +760,24 @@ class MyHelper
...
@@ -760,6 +760,24 @@ class MyHelper
return
self
::
genKeyCode
(
time
()
.
$user_agent
);
return
self
::
genKeyCode
(
time
()
.
$user_agent
);
}
}
/**
* Tính toán đường dẫn ảnh của bài hát tương ứng với ca sĩ thể hiện bài hát đó
* Nếu không tìm thấy ảnh thì lấy giá trị mặc định
*
* @param $art
*
* @return string
*/
public
static
function
getArtByTrack
(
$art
)
{
$CI
=
&
get_instance
();
$default_image
=
base_url
(
'images/track.png'
);
if
(
$art
)
{
$default_image
=
$CI
->
config
->
item
(
'vmusicchart_url'
)
.
str_replace
(
'%w'
,
200
,
$art
);
}
return
$default_image
;
}
}
}
/* End */
/* End */
\ No newline at end of file
application/views/backend/ajax/cms_ranking/list_by_monthly_view.php
View file @
ab73e782
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<tr>
<tr>
<td
style=
"text-align: center"
>
<?php
echo
(
$key
+
1
+
$offset
);
?>
</td>
<td
style=
"text-align: center"
>
<?php
echo
(
$key
+
1
+
$offset
);
?>
</td>
<td
style=
"text-align: center"
>
#
<?php
echo
$data
[
'id'
];
?>
</td>
<td
style=
"text-align: center"
>
#
<?php
echo
$data
[
'id'
];
?>
</td>
<td
style=
"text-align: center"
><img
s
rc=
"
<?php
echo
base_url
(
$data
[
'art'
]);
?>
"
></td>
<td
style=
"text-align: center"
><img
s
tyle=
"max-width: 50px"
src=
"
<?php
echo
MyHelper
::
getArtByTrack
(
$data
[
'art'
]);
?>
"
></td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'name_song'
];
?>
</td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'name_song'
];
?>
</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>
...
...
application/views/backend/ajax/cms_ranking/list_by_weekly_view.php
View file @
ab73e782
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<tr>
<tr>
<td
style=
"text-align: center"
>
<?php
echo
(
$key
+
1
+
$offset
);
?>
</td>
<td
style=
"text-align: center"
>
<?php
echo
(
$key
+
1
+
$offset
);
?>
</td>
<td
style=
"text-align: center"
>
#
<?php
echo
$data
[
'id'
];
?>
</td>
<td
style=
"text-align: center"
>
#
<?php
echo
$data
[
'id'
];
?>
</td>
<td
style=
"text-align: center"
><img
s
rc=
"
<?php
echo
base_url
(
$data
[
'art'
]);
?>
"
></td>
<td
style=
"text-align: center"
><img
s
tyle=
"max-width: 50px"
src=
"
<?php
echo
MyHelper
::
getArtByTrack
(
$data
[
'art'
]);
?>
"
></td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'name_song'
];
?>
</td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'name_song'
];
?>
</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>
...
...
images/track.png
0 → 100644
View file @
ab73e782
1.24 KB
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