aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/html.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--inc/html.inc.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php
index a05aab6..ada8d99 100644
--- a/inc/html.inc.php
+++ b/inc/html.inc.php
@@ -66,8 +66,14 @@ function host_summary($hosts) {
66 66
67 echo "<table class=\"summary\">\n"; 67 echo "<table class=\"summary\">\n";
68 68
69 $row_style = array(0 => "even", 1 => "odd");
70 $host_counter = 0;
71
69 foreach($hosts as $host) { 72 foreach($hosts as $host) {
70 printf('<tr><th><a href="%s/host.php?h=%s">%s</a></th>', 73 $host_counter++;
74
75 printf('<tr class="%s">', $row_style[$host_counter % 2]);
76 printf('<th><a href="%s/host.php?h=%s">%s</a></th>',
71 $CONFIG['weburl'],$host, $host); 77 $CONFIG['weburl'],$host, $host);
72 78
73 if ($CONFIG['showload']) { 79 if ($CONFIG['showload']) {