get logs from device
This commit is contained in:
@@ -35,8 +35,8 @@ use yii\widgets\ActiveForm;
|
||||
Kiểm soát truy cập
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<li class="<?php if (in_array($this->context->id, ['logs'])) echo "active"; ?>">
|
||||
<a href="<?php echo \yii\helpers\Url::to(['/logs']); ?>">
|
||||
Báo cáo
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -33,6 +33,15 @@
|
||||
['label' => 'Cấp quyền truy cập', 'url' => ['/assign'], 'icon' => 'cogs']
|
||||
];
|
||||
}
|
||||
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']
|
||||
];
|
||||
}
|
||||
?>
|
||||
<?=
|
||||
dmstr\widgets\Menu::widget(
|
||||
|
||||
Reference in New Issue
Block a user