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
ffedb950
Commit
ffedb950
authored
Apr 14, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cập nhật thông tin từ ngày đến ngày khi chọn tuần
parent
f50902f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
CmsRanking.php
application/controllers/backend/CmsRanking.php
+12
-0
list_by_weekly_view.php
...ication/views/backend/cms_ranking/list_by_weekly_view.php
+4
-11
No files found.
application/controllers/backend/CmsRanking.php
View file @
ffedb950
...
@@ -68,6 +68,18 @@ class CmsRanking extends CI_Controller
...
@@ -68,6 +68,18 @@ class CmsRanking extends CI_Controller
// Ghi log
// Ghi log
$this
->
actionlog_model
->
add
(
'RANKING'
,
'BXH Tuần.'
,
'Report_views_weekly_model'
,
'report_views_weekly'
,
null
);
$this
->
actionlog_model
->
add
(
'RANKING'
,
'BXH Tuần.'
,
'Report_views_weekly_model'
,
'report_views_weekly'
,
null
);
$week_list_db
=
$this
->
report_views_weekly_model
->
selectSearch
();
$week_list
=
[];
foreach
(
$week_list_db
as
$val
)
{
$array_w
=
MyHelper
::
getWeekDateRange
(
$val
[
'week'
],
$val
[
'year'
],
'd/m'
);
if
(
isset
(
$array_w
[
'start_week'
])
&&
isset
(
$array_w
[
'end_week'
]))
{
$prefix
=
'Tuần '
.
$val
[
'week'
]
.
'/'
.
$val
[
'year'
];
$suffixe
=
'('
.
$array_w
[
'start_week'
]
.
'-'
.
$array_w
[
'end_week'
]
.
')'
;
$week_list
[
$val
[
'week'
]
.
'-'
.
$val
[
'year'
]]
=
$prefix
.
' '
.
$suffixe
;
}
}
$this
->
_data
[
'week_list'
]
=
$week_list
;
$this
->
_data
[
'functionName'
]
=
'BXH theo tuần'
;
$this
->
_data
[
'functionName'
]
=
'BXH theo tuần'
;
$this
->
_data
[
'action'
]
=
'listByDaily'
;
$this
->
_data
[
'action'
]
=
'listByDaily'
;
$this
->
_data
[
'titlePage'
]
=
'BXH theo tuần'
;
$this
->
_data
[
'titlePage'
]
=
'BXH theo tuần'
;
...
...
application/views/backend/cms_ranking/list_by_weekly_view.php
View file @
ffedb950
...
@@ -22,17 +22,11 @@
...
@@ -22,17 +22,11 @@
<?php
endif
;
?>
<?php
endif
;
?>
<div
class=
"row"
>
<div
class=
"row"
>
<?php
/*echo form_open(base_url().'backend/cmsRanking/listByWeeklyAjax'); */
?>
<div
class=
"col-lg-4"
>
<div
class=
"col-lg-3"
>
<select
class=
"form-control"
name=
"input-name"
id=
"input-name"
>
<select
class=
"form-control"
name=
"input-name"
id=
"input-name"
>
<?php
<?php
foreach
(
$week_list
as
$key
=>
$week
)
:
?>
$listSearch
=
$this
->
report_views_weekly_model
->
selectSearch
();
<option
value =
"
<?php
echo
$key
;
?>
"
>
<?php
echo
$week
;
?>
)
</option>
foreach
(
$listSearch
as
$data
)
:
<?php
endforeach
;
?>
?>
<option
value =
"
<?php
echo
$data
[
'week'
]
.
'-'
.
$data
[
'year'
];
?>
"
>
Tuần
<?php
echo
$data
[
'week'
];
?>
(Năm
<?php
echo
$data
[
'year'
];
?>
)
</option>
<?php
endforeach
;
?>
</select>
</select>
</div>
</div>
<div
class=
"col-lg-1"
>
<div
class=
"col-lg-1"
>
...
@@ -40,7 +34,6 @@
...
@@ -40,7 +34,6 @@
<button
class=
"btn btn-sm btn-warning"
><i
class=
"fa fa-download"
></i>
Export ra Excel
</button>
<button
class=
"btn btn-sm btn-warning"
><i
class=
"fa fa-download"
></i>
Export ra Excel
</button>
</a>
</a>
</div>
</div>
<?php
/*echo form_close(); */
?>
</div>
</div>
<!-- /.row -->
<!-- /.row -->
<div
class=
"space-6"
></div>
<div
class=
"space-6"
></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