Commit 60b1e305 by Phạm Văn Đoan

thêm helper định nghĩa tên bảng CSDL

parent 74d4d3e6
......@@ -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');
/*
......
......@@ -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));
......
<?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');
......@@ -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): ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment