$service_type"; }
elseif ($service[service_status] == '1') { $status = "$service_type"; }
elseif ($service[service_status] == '2') { $status = "$service_type"; }
$message = trim($service['service_message']);
$message = str_replace("\n", "
", $message);
$since = time() - $service['service_changed'];
$since = formatUptime($since);
if ($service['service_checked'])
{
$checked = time() - $service['service_checked'];
$checked = formatUptime($checked);
} else { $checked = "Never"; }
$mini_url = "graph.php?id=".$service['service_id']."&type=service_availability&from=".$config['time']['day']."&to=".$config['time']['now']."&width=80&height=20&bg=efefef";
$popup = "onmouseover=\"return overlib('".$device['hostname']." - ".$service['service_type'];
$popup .= "
";
$popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
echo("
");
if ($device_id)
{
if (!$samehost)
{
echo("" . generate_device_link($device) . " | ");
} else {
echo(" | ");
}
}
echo("
$status
|
 |
$since
|
$message
|
");
$i++;
?>