'; echo '
'; echo '
'; echo 'Alerts » '; if ($vars['section'] == 'alerts') { echo ''; } echo generate_link('Active alerts', $vars, ['section' => 'alerts']); if ($vars['section'] == 'alerts') { echo ''; } echo ' | '; if ($vars['section'] == 'alert-log') { echo ''; } echo generate_link('Alert history', $vars, ['section' => 'alert-log']); if ($vars['section'] == 'alert-log') { echo ''; } echo '

'; echo '
'; switch ($vars['section']) { case 'alerts': include 'includes/html/modal/alert_details.php'; include 'includes/html/modal/alert_notes.inc.php'; include 'includes/html/modal/alert_ack.inc.php'; include 'includes/html/common/alerts.inc.php'; echo implode('', $common_output); break; case 'alert-log': $vars['fromdevice'] = true; $device_id = (int) $vars['device']; include 'includes/html/modal/alert_details.php'; include 'includes/html/common/alert-log.inc.php'; echo implode('', $common_output); break; default: echo '
'; echo report_this('Unknown section ' . $vars['section']); break; } echo '
';