SLA » "); $slas = dbFetchRows("SELECT * FROM `slas` WHERE `device_id` = ? AND `deleted` = 0 ORDER BY `sla_nr`", array($device['device_id'])); // Collect types $sla_types = array('all' => 'All'); foreach ($slas as $sla) { $sla_type = $sla['rtt_type']; if (!in_array($sla_type, $sla_types)) if (isset($config['sla_type_labels'][$sla_type])) { $text = $config['sla_type_labels'][$sla_type]; } else { $text = ucfirst($sla_type); } $sla_types[$sla_type] = $text; } asort($sla_types); $sep = ""; foreach ($sla_types as $sla_type => $text) { if (!$vars['view']) { $vars['view'] = $sla_type; } echo($sep); if ($vars['view'] == $sla_type) { echo("
"); } $sep = " | "; } unset($sep); print_optionbar_end(); echo('');
echo(''.htmlentities($name).''); include("includes/print-graphrow.inc.php"); echo(' |