add missing globals
parent
e90efa7a7e
commit
e3b339e72e
|
@ -479,18 +479,25 @@ function getDevicesHTML() {
|
|||
|
||||
// Returns the html representing the Groups menu item
|
||||
function getGroupsHTML() {
|
||||
global $view;
|
||||
$class = $view == 'groups' ? 'selected' : '';
|
||||
echo '<li><a href="?view=groups" class="' .$class. '">'. translate('Groups') .'</a></li>';
|
||||
}
|
||||
|
||||
// Returns the html representing the Filter menu item
|
||||
function getFilterHTML() {
|
||||
global $view;
|
||||
global $filterQuery;
|
||||
global $sortQuery;
|
||||
global $limitQuery;
|
||||
|
||||
$class = $view == 'filter' ? 'selected' : '';
|
||||
echo '<li><a href="?view=filter'.$filterQuery.$sortQuery.$limitQuery.'" class="'.$class.'">'.translate('Filters').'</a></li>';
|
||||
}
|
||||
|
||||
// Returns the html representing the Cycle menu item
|
||||
function getCycleHTML() {
|
||||
global $view;
|
||||
if ( canView('Stream') ) {
|
||||
$class = $view == 'cycle' ? 'selected' : '';
|
||||
echo '<li><a href="?view=cycle" class="' .$class. '">' .translate('Cycle'). '</a></li>';
|
||||
|
@ -499,6 +506,7 @@ function getCycleHTML() {
|
|||
|
||||
// Returns the html representing the Montage menu item
|
||||
function getMontageHTML() {
|
||||
global $view;
|
||||
if ( canView('Stream') ) {
|
||||
$class = $view == 'cycle' ? 'selected' : '';
|
||||
echo '<li><a href="?view=montage" class="' .$class. '">' .translate('Montage'). '</a></li>';
|
||||
|
@ -507,6 +515,7 @@ function getMontageHTML() {
|
|||
|
||||
// Returns the html representing the MontageReview menu item
|
||||
function getMontageReviewHTML() {
|
||||
global $view;
|
||||
if ( canView('Events') ) {
|
||||
if ( isset($_REQUEST['filter']['Query']['terms']['attr']) ) {
|
||||
$terms = $_REQUEST['filter']['Query']['terms'];
|
||||
|
@ -530,6 +539,7 @@ function getMontageReviewHTML() {
|
|||
|
||||
// Returns the html representing the Audit Events Report menu item
|
||||
function getRprtEvntAuditHTML() {
|
||||
global $view;
|
||||
if ( canView('Events') ) {
|
||||
$class = $view == 'report_event_audit' ? 'selected' : '';
|
||||
echo '<li><a href="?view=report_event_audit class="' .$class. '">' .translate('ReportEventAudit'). '</a></li>';
|
||||
|
|
Loading…
Reference in New Issue