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
60b1e305
Commit
60b1e305
authored
4 years ago
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thêm helper định nghĩa tên bảng CSDL
parent
74d4d3e6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
5 deletions
+53
-5
autoload.php
application/config/autoload.php
+1
-1
CmsRanking.php
application/controllers/backend/CmsRanking.php
+9
-1
constant_helper.php
application/helpers/constant_helper.php
+34
-0
overlap_ranking_view.php
...n/views/backend/ajax/cms_setting/overlap_ranking_view.php
+9
-3
No files found.
application/config/autoload.php
View file @
60b1e305
...
...
@@ -113,7 +113,7 @@ $autoload['drivers'] = array('session', 'cache');
| $autoload['helper'] = array('url', 'file');
*/
$autoload
[
'helper'
]
=
array
(
'url'
,
'file'
,
'form'
);
$autoload
[
'helper'
]
=
array
(
'url'
,
'file'
,
'form'
,
'constant'
);
/*
...
...
This diff is collapsed.
Click to expand it.
application/controllers/backend/CmsRanking.php
View file @
60b1e305
...
...
@@ -556,7 +556,15 @@ class CmsRanking extends CI_Controller
}
}
// Cập nhật trạng thái đã xử lý
$this
->
common_model
->
update
(
'report_violations'
,
$id
,
[
'status'
=>
1
]);
$this
->
common_model
->
update
(
'report_violations'
,
$id
,
[
'status'
=>
1
,
'action_by'
=>
$this
->
session
->
userdata
(
'id'
),
'updated_at'
=>
date
(
'Y-m-d H:i:s'
)
]
);
//
$this
->
session
->
set_flashdata
(
'success'
,
'Gỡ bỏ bài hát khỏi BXH '
.
$scope
.
' thành công!'
);
redirect
(
base_url
(
$this
->
overlap_ranking_list
));
...
...
This diff is collapsed.
Click to expand it.
application/helpers/constant_helper.php
0 → 100644
View file @
60b1e305
<?php
/**
* Định nghĩa tên các bảng CSDL
*/
define
(
'TABLE_ACCESS_ACTION'
,
'access_action'
);
define
(
'TABLE_ACCESS_CONTROLLER'
,
'access_controller'
);
define
(
'TABLE_ACTION_LOG'
,
'action_log'
);
define
(
'TABLE_ADMIN'
,
'admin'
);
define
(
'TABLE_ADMIN_ACCESS_ACTION'
,
'admin_access_action'
);
define
(
'TABLE_CRAWLER_LISTEN_BLACKLISTS'
,
'crawler_listen_blacklists'
);
define
(
'TABLE_CRAWLER_LISTEN_HISTORIES'
,
'crawler_listen_histories'
);
define
(
'TABLE_CRAWLER_LISTENS'
,
'crawler_listens'
);
define
(
'TABLE_CRONTJOBS'
,
'crontjobs'
);
define
(
'TABLE_GROUP'
,
'group'
);
define
(
'TABLE_GROUP_ACCESS_CONTROLLER'
,
'group_access_controller'
);
define
(
'TABLE_REPORT_EXPORTING_FILES'
,
'report_exporting_files'
);
define
(
'TABLE_REPORT_SENDING_HISTORIES'
,
'report_sending_histories'
);
define
(
'TABLE_REPORT_VIEWS_DAILY'
,
'report_views_daily'
);
define
(
'TABLE_REPORT_VIEWS_MONTHLY_NEW'
,
'report_views_monthly_new'
);
define
(
'TABLE_REPORT_VIEWS_WEEKLY_NEW'
,
'report_views_weekly_new'
);
define
(
'TABLE_REPORT_VIOLATIONS'
,
'report_violations'
);
define
(
'TABLE_TRACK_ARTISTS'
,
'track_artists'
);
define
(
'TABLE_TRACK_USER'
,
'track_user'
);
define
(
'TABLE_TRACKS'
,
'tracks'
);
define
(
'TABLE_USER_LOG'
,
'user_log'
);
define
(
'TABLE_USERS'
,
'users'
);
define
(
'TABLE_VHEARTBEAT_LIVES'
,
'vheartbeat_lives'
);
This diff is collapsed.
Click to expand it.
application/views/backend/ajax/cms_setting/overlap_ranking_view.php
View file @
60b1e305
...
...
@@ -15,7 +15,7 @@
<?php
if
(
count
(
$listData
)
>
0
)
:
foreach
(
$listData
as
$key
=>
$data
)
:
?>
<tr>
<td
style=
"text-align: center"
>
<?php
echo
(
$key
+
1
+
$offset
);
?>
</td>
<td
style=
"text-align:
center
"
>
<?php
echo
$data
[
'scope'
];
?>
</td>
<td
style=
"text-align:
left
"
>
<?php
echo
$data
[
'scope'
];
?>
</td>
<td
style=
"text-align: center"
>
<?php
echo
(
$data
[
'scope'
]
==
'DAILY'
&&
!
empty
(
$data
[
'date'
]))
?
date
(
'd/m/Y'
,
strtotime
(
$data
[
'date'
]))
:
''
;
?>
<?php
echo
(
$data
[
'scope'
]
==
'WEEKLY'
)
?
$data
[
'week'
]
.
'/'
.
$data
[
'year'
]
:
''
;
?>
...
...
@@ -27,10 +27,16 @@
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'delete_track_title'
];
?>
<br>
<span
style=
"color: #adadad"
>
ID:
<?php
echo
$data
[
'ranking_id'
];
?>
</span>
<span
style=
"color: #adadad"
>
ID:
<?php
echo
$data
[
'ranking_id'
];
?>
| Nhận lúc:
<?php
echo
MyHelper
::
reFormatDate
(
$data
[
'created_at'
]);
?>
</span>
</td>
<td>
<?php
echo
((
$data
[
'status'
]
==
1
)
?
'Đã xử lý'
:
'Chờ xử lý'
)
?>
<?php
if
(
$data
[
'status'
]
==
1
)
:
?>
<span>
Đã xử lý
</span>
<br>
<span
style=
"color: #adadad"
>
Lúc:
<?php
echo
MyHelper
::
reFormatDate
(
$data
[
'updated_at'
]);
?>
</span>
<?php
else
:
?>
<span>
Chờ xử lý
</span>
<?php
endif
;
?>
</td>
<td
style=
"text-align: center"
>
<?php
if
(
$data
[
'status'
]
==
0
)
:
?>
...
...
This diff is collapsed.
Click to expand it.
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