-
'.$service["service_type"].'
-
'.$serviceState.'
-
'.$deviceIcon.'
-
'.shorthost(ip_to_sysname($service, $service['hostname'])).'
+
+
+ ' . $service["service_type"] . '
+ ' . $serviceState . '
+ ' . $deviceIcon . '
+ ' . shorthost(ip_to_sysname($service, $service['hostname'])) . '
';
} else {
$temp_output[] = '
-
- '.$service['service_type'].' - '.$serviceState.'
+
+ ' . $service['service_type'] . ' - ' . $serviceState . '
';
}
} else {
- $temp_output[] = '
';
+ $temp_output[] = '
';
}
}
} else {
@@ -230,7 +201,7 @@ if (defined('SHOW_SETTINGS')) {
} else {
$selected = '';
}
- $temp_header[] = '
';
+ $temp_header[] = '
';
}
}
@@ -252,7 +223,7 @@ if (defined('SHOW_SETTINGS')) {
$temp_header[] = '
Device group
';
}
@@ -276,21 +247,21 @@ if (defined('SHOW_SETTINGS')) {
if ($mode == 0 || $mode == 2) {
$temp_header[] = '
-
+
Total hosts
- up: '.$host_up_count.'
- warn: '.$host_warn_count.'
- down: '.$host_down_count.'
+ up: ' . $host_up_count . '
+ warn: ' . $host_warn_count . '
+ down: ' . $host_down_count . '
';
}
if (($mode == 1 || $mode == 2) && ($config['show_services'] != 0)) {
$temp_header[] = '
-
+
Total services
- up: '.$service_up_count.'
- warn: '.$service_warn_count.'
- down: '.$service_down_count.'
+ up: ' . $service_up_count . '
+ warn: ' . $service_warn_count . '
+ down: ' . $service_down_count . '
';
}
diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index 18dae548f6..1bb1567a59 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -1219,6 +1219,11 @@ function generate_dynamic_config_panel($title, $config_groups, $items = array(),
';
+ } elseif ($item['type'] == 'numeric') {
+ $output .= '
+
+
+ ';
} elseif ($item['type'] == 'select') {
$output .= '