update thống kê

This commit is contained in:
2020-10-16 11:35:29 +07:00
parent 53de75104e
commit 4ba094ab24
16 changed files with 526 additions and 80 deletions

View File

@@ -40,8 +40,8 @@ use yii\widgets\ActiveForm;
Báo cáo
</a>
</li>
<li>
<a href="#">
<li class="<?php if (in_array($this->context->id, ['user'])) echo "active"; ?>">
<a href="<?php echo \yii\helpers\Url::to(['/user']); ?>">
Hệ thống
</a>
</li>

View File

@@ -33,13 +33,18 @@
['label' => 'Cấp quyền truy cập', 'url' => ['/assign'], 'icon' => 'cogs']
];
}
if (in_array($this->context->id, ['user'])) {
$items = [
['label' => 'Người dùng', 'url' => ['/user'], 'icon' => 'users']
];
}
if (in_array($this->context->id, ['logs'])) {
$items = [
['label' => 'Sự kiện hôm nay', 'url' => ['/logs'], 'icon' => 'clock-o'],
['label' => 'Sự kiện 3 ngày gần đây', 'url' => ['/logs/3-days'], 'icon' => 'calendar'],
['label' => 'Sự kiện tuần này', 'url' => ['/logs/this-week'], 'icon' => 'calendar'],
['label' => 'Sự kiện tuần trước', 'url' => ['/logs/last-week'], 'icon' => 'calendar'],
['label' => 'Tất cả', 'url' => ['/logs/all'], 'icon' => 'calendar']
['label' => 'Sự kiện hôm nay', 'url' => ['/logs', 'type' => 'today'], 'icon' => 'clock-o'],
['label' => 'Sự kiện 3 ngày gần đây', 'url' => ['/logs', 'type' => '3days'], 'icon' => 'calendar'],
['label' => 'Sự kiện tuần này', 'url' => ['/logs', 'type' => 'thisWeek'], 'icon' => 'calendar'],
['label' => 'Sự kiện tuần trước', 'url' => ['/logs', 'type' => 'lastWeek'], 'icon' => 'calendar'],
['label' => 'Tất cả', 'url' => ['/logs', 'type' => 'all'], 'icon' => 'calendar']
];
}
?>