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
224809cd
Commit
224809cd
authored
Apr 13, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cập nhật ghi log hành động của admin
parent
f6124c8d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
CmsRanking.php
application/controllers/backend/CmsRanking.php
+16
-0
log_action_view.php
...ion/views/backend/cms_setting/log_cms/log_action_view.php
+2
-0
No files found.
application/controllers/backend/CmsRanking.php
View file @
224809cd
...
@@ -22,6 +22,7 @@ class CmsRanking extends CI_Controller
...
@@ -22,6 +22,7 @@ class CmsRanking extends CI_Controller
$this
->
load
->
model
(
'report_views_weekly_model'
);
$this
->
load
->
model
(
'report_views_weekly_model'
);
$this
->
load
->
model
(
'report_views_monthly_model'
);
$this
->
load
->
model
(
'report_views_monthly_model'
);
$this
->
load
->
model
(
'crawler_listen_history_model'
);
$this
->
load
->
model
(
'crawler_listen_history_model'
);
$this
->
load
->
model
(
'actionlog_model'
);
}
}
/**
/**
...
@@ -29,6 +30,9 @@ class CmsRanking extends CI_Controller
...
@@ -29,6 +30,9 @@ class CmsRanking extends CI_Controller
*/
*/
public
function
listByDaily
()
public
function
listByDaily
()
{
{
// Ghi log
$this
->
actionlog_model
->
add
(
'RANKING'
,
'BXH Ngày.'
,
'Report_views_daily_model'
,
'report_views_daily'
,
null
);
$this
->
_data
[
'functionName'
]
=
'BXH Theo ngày'
;
$this
->
_data
[
'functionName'
]
=
'BXH Theo ngày'
;
$this
->
_data
[
'action'
]
=
'listByDaily'
;
$this
->
_data
[
'action'
]
=
'listByDaily'
;
$this
->
_data
[
'titlePage'
]
=
'BXH Theo ngày'
;
$this
->
_data
[
'titlePage'
]
=
'BXH Theo ngày'
;
...
@@ -61,6 +65,9 @@ class CmsRanking extends CI_Controller
...
@@ -61,6 +65,9 @@ class CmsRanking extends CI_Controller
*/
*/
public
function
listByWeekly
()
public
function
listByWeekly
()
{
{
// Ghi log
$this
->
actionlog_model
->
add
(
'RANKING'
,
'BXH Tuần.'
,
'Report_views_weekly_model'
,
'report_views_weekly'
,
null
);
$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'
;
...
@@ -92,6 +99,9 @@ class CmsRanking extends CI_Controller
...
@@ -92,6 +99,9 @@ class CmsRanking extends CI_Controller
*/
*/
public
function
listByMonthly
()
public
function
listByMonthly
()
{
{
// 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'
;
$this
->
_data
[
'functionName'
]
=
'BXH theo tháng'
;
$this
->
_data
[
'action'
]
=
'listByDaily'
;
$this
->
_data
[
'action'
]
=
'listByDaily'
;
$this
->
_data
[
'titlePage'
]
=
'BXH theo tháng'
;
$this
->
_data
[
'titlePage'
]
=
'BXH theo tháng'
;
...
@@ -125,6 +135,9 @@ class CmsRanking extends CI_Controller
...
@@ -125,6 +135,9 @@ class CmsRanking extends CI_Controller
*/
*/
public
function
exportReport
(
$type
,
$time
)
public
function
exportReport
(
$type
,
$time
)
{
{
// Ghi log
$this
->
actionlog_model
->
add
(
'EXPORTED'
,
'Export BXH: '
.
$type
,
null
,
null
,
null
);
if
(
$type
&&
$time
)
{
if
(
$type
&&
$time
)
{
$array_time
=
explode
(
'-'
,
$time
);
$array_time
=
explode
(
'-'
,
$time
);
...
@@ -304,6 +317,9 @@ class CmsRanking extends CI_Controller
...
@@ -304,6 +317,9 @@ class CmsRanking extends CI_Controller
$track_id
=
$this
->
input
->
post
(
'track_id'
);
$track_id
=
$this
->
input
->
post
(
'track_id'
);
$track_title
=
$this
->
input
->
post
(
'track_title'
);
$track_title
=
$this
->
input
->
post
(
'track_title'
);
// Ghi log
$this
->
actionlog_model
->
add
(
'SHOW_HISTORY'
,
'Xem lịch sử lượt nghe'
,
null
,
null
,
$track_id
);
$histories
=
$this
->
crawler_listen_history_model
->
getByTrackId
(
$track_id
);
$histories
=
$this
->
crawler_listen_history_model
->
getByTrackId
(
$track_id
);
$data
=
[];
$data
=
[];
...
...
application/views/backend/cms_setting/log_cms/log_action_view.php
View file @
224809cd
...
@@ -45,6 +45,8 @@
...
@@ -45,6 +45,8 @@
<div
class=
"col-lg-2"
>
<div
class=
"col-lg-2"
>
<select
class=
"form-control"
id=
"select-action-type"
name=
"select-action-type"
>
<select
class=
"form-control"
id=
"select-action-type"
name=
"select-action-type"
>
<option
value=
""
>
-- Tất cả mã action --
</option>
<option
value=
""
>
-- Tất cả mã action --
</option>
<option
value=
"RANKING"
>
Xem BXH
</option>
<option
value=
"SHOW_HISTORY"
>
Xem lịch sử lượt nghe
</option>
<option
value=
"ADDED"
>
Thêm mới
</option>
<option
value=
"ADDED"
>
Thêm mới
</option>
<option
value=
"UPDATED"
>
Cập nhật
</option>
<option
value=
"UPDATED"
>
Cập nhật
</option>
<option
value=
"DELETED"
>
Xóa
</option>
<option
value=
"DELETED"
>
Xóa
</option>
...
...
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