Add Reports menu option
parent
ca1ad2e2e4
commit
f6a7698e43
|
@ -234,6 +234,7 @@ function getNormalNavBarHTML($running, $user, $bandwidth_options, $view, $skin)
|
||||||
echo getMontageHTML($view);
|
echo getMontageHTML($view);
|
||||||
echo getMontageReviewHTML($view);
|
echo getMontageReviewHTML($view);
|
||||||
echo getSnapshotsHTML($view);
|
echo getSnapshotsHTML($view);
|
||||||
|
echo getReportsHTML($view);
|
||||||
echo getRprtEvntAuditHTML($view);
|
echo getRprtEvntAuditHTML($view);
|
||||||
echo getHeaderFlipHTML();
|
echo getHeaderFlipHTML();
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
|
@ -368,6 +369,7 @@ function getCollapsedNavBarHTML($running, $user, $bandwidth_options, $view, $ski
|
||||||
echo getMontageHTML($view);
|
echo getMontageHTML($view);
|
||||||
echo getMontageReviewHTML($view);
|
echo getMontageReviewHTML($view);
|
||||||
echo getSnapshotsHTML($view);
|
echo getSnapshotsHTML($view);
|
||||||
|
echo getReportsHTML($view);
|
||||||
echo getRprtEvntAuditHTML($view);
|
echo getRprtEvntAuditHTML($view);
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
}
|
}
|
||||||
|
@ -764,6 +766,17 @@ function getSnapshotsHTML($view) {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getReportsHTML($view) {
|
||||||
|
$result = '';
|
||||||
|
|
||||||
|
if (canView('Events')) {
|
||||||
|
$class = ($view == 'reports' or $view == 'report') ? ' selected' : '';
|
||||||
|
$result .= '<li id="getReportsHTML" class="nav-item dropdown"><a class="nav-link'.$class.'" href="?view=reports">'.translate('Reports').'</a></li>'.PHP_EOL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
// Returns the html representing the Audit Events Report menu item
|
// Returns the html representing the Audit Events Report menu item
|
||||||
function getRprtEvntAuditHTML($view) {
|
function getRprtEvntAuditHTML($view) {
|
||||||
$result = '';
|
$result = '';
|
||||||
|
|
Loading…
Reference in New Issue