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
708d281c
Commit
708d281c
authored
Apr 21, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cập nhật thêm chú thích từ ngày đến ngày trong BXH tháng
parent
89d3602e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
14 deletions
+22
-14
CmsRanking.php
application/controllers/backend/CmsRanking.php
+17
-4
list_by_monthly_view.php
...cation/views/backend/cms_ranking/list_by_monthly_view.php
+5
-10
No files found.
application/controllers/backend/CmsRanking.php
View file @
708d281c
...
...
@@ -80,9 +80,9 @@ class CmsRanking extends CI_Controller
}
$this
->
_data
[
'week_list'
]
=
$week_list
;
$this
->
_data
[
'functionName'
]
=
'BXH
t
heo tuần'
;
$this
->
_data
[
'functionName'
]
=
'BXH
T
heo tuần'
;
$this
->
_data
[
'action'
]
=
'listByDaily'
;
$this
->
_data
[
'titlePage'
]
=
'BXH
t
heo tuần'
;
$this
->
_data
[
'titlePage'
]
=
'BXH
T
heo tuần'
;
$this
->
_data
[
'loadPage'
]
=
'backend/cms_ranking/list_by_weekly_view'
;
$this
->
load
->
view
(
'backend/admin_template_view'
,
$this
->
_data
);
}
...
...
@@ -114,9 +114,22 @@ class CmsRanking extends CI_Controller
// Ghi log
$this
->
actionlog_model
->
add
(
'RANKING'
,
'BXH Tháng.'
,
'Report_views_monthly_model'
,
'report_views_monthly'
,
null
);
$this
->
_data
[
'functionName'
]
=
'BXH theo tháng'
;
$month_list_db
=
$this
->
report_views_monthly_model
->
selectSearch
();
$month_list
=
[];
foreach
(
$month_list_db
as
$key
=>
$val
)
{
$prefix
=
'Tháng '
.
$val
[
'month'
]
.
'/'
.
$val
[
'year'
];
$suffixe
=
'(21/'
.
(
$val
[
'month'
]
-
1
)
.
'-'
.
'20/'
.
$val
[
'month'
]
.
')'
;
if
(
$val
[
'month'
]
==
4
&&
$val
[
'year'
]
==
2020
)
{
$suffixe
=
'(30/'
.
(
$val
[
'month'
]
-
1
)
.
'-'
.
'20/'
.
$val
[
'month'
]
.
')'
;
}
$month_list
[
$val
[
'month'
]
.
'-'
.
$val
[
'year'
]]
=
$prefix
.
' '
.
$suffixe
;
}
$this
->
_data
[
'month_list'
]
=
$month_list
;
$this
->
_data
[
'functionName'
]
=
'BXH Theo tháng'
;
$this
->
_data
[
'action'
]
=
'listByDaily'
;
$this
->
_data
[
'titlePage'
]
=
'BXH
t
heo tháng'
;
$this
->
_data
[
'titlePage'
]
=
'BXH
T
heo tháng'
;
$this
->
_data
[
'loadPage'
]
=
'backend/cms_ranking/list_by_monthly_view'
;
$this
->
load
->
view
(
'backend/admin_template_view'
,
$this
->
_data
);
}
...
...
application/views/backend/cms_ranking/list_by_monthly_view.php
View file @
708d281c
...
...
@@ -22,16 +22,11 @@
<?php
endif
;
?>
<div
class=
"row"
>
<div
class=
"col-lg-
3
"
>
<div
class=
"col-lg-
4
"
>
<select
class=
"form-control"
name=
"input-name"
id=
"input-name"
>
<?php
$listSearch
=
$this
->
report_views_monthly_model
->
selectSearch
();
foreach
(
$listSearch
as
$data
)
:
?>
<option
value =
"
<?php
echo
$data
[
'month'
]
.
'-'
.
$data
[
'year'
];
?>
"
>
Tháng
<?php
echo
$data
[
'month'
];
?>
/
<?php
echo
$data
[
'year'
];
?>
</option>
<?php
endforeach
;
?>
<?php
foreach
(
$month_list
as
$key
=>
$val
)
:
?>
<option
value =
"
<?php
echo
$key
;
?>
"
>
<?php
echo
$val
;
?>
</option>
<?php
endforeach
;
?>
</select>
</div>
<div
class=
"col-lg-1"
>
...
...
@@ -47,7 +42,7 @@
<i
class=
"fa fa-refresh fa-spin bigger-200"
></i>
Đang tải dữ liệu...
</div>
<div
class=
"col-md-12"
>
<span
style=
"color: red"
><i>
Lưu ý: BXH từ tháng 04/2020 sử dụng dữ liệu mới
</i></span>
<span
style=
"color: red"
><i>
Lưu ý: BXH từ tháng 04/2020 sử dụng dữ liệu mới
(Dữ liệu mới có từ ngày 30/3/2020)
</i></span>
</div>
<div
class=
"col-lg-12"
>
<div
id=
"div-response"
></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