From f6a7698e43b0cb3ed93f7f177a47d9cad3a7a9b8 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 4 Aug 2022 09:07:46 -0400 Subject: [PATCH] Add Reports menu option --- web/skins/classic/includes/functions.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 66e1dda62..0a9e4ecb7 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -234,6 +234,7 @@ function getNormalNavBarHTML($running, $user, $bandwidth_options, $view, $skin) echo getMontageHTML($view); echo getMontageReviewHTML($view); echo getSnapshotsHTML($view); + echo getReportsHTML($view); echo getRprtEvntAuditHTML($view); echo getHeaderFlipHTML(); echo ''; @@ -368,6 +369,7 @@ function getCollapsedNavBarHTML($running, $user, $bandwidth_options, $view, $ski echo getMontageHTML($view); echo getMontageReviewHTML($view); echo getSnapshotsHTML($view); + echo getReportsHTML($view); echo getRprtEvntAuditHTML($view); echo ''; } @@ -764,6 +766,17 @@ function getSnapshotsHTML($view) { return $result; } +function getReportsHTML($view) { + $result = ''; + + if (canView('Events')) { + $class = ($view == 'reports' or $view == 'report') ? ' selected' : ''; + $result .= ''.PHP_EOL; + } + + return $result; +} + // Returns the html representing the Audit Events Report menu item function getRprtEvntAuditHTML($view) { $result = '';