update thống kê
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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']
|
||||
];
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user