aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--inc/html.inc.php8
-rw-r--r--layout/style.css8
2 files changed, 15 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']) {
diff --git a/layout/style.css b/layout/style.css
index 83664a4..e478203 100644
--- a/layout/style.css
+++ b/layout/style.css
@@ -48,6 +48,14 @@ table.summary th {
48 text-align: left; 48 text-align: left;
49} 49}
50 50
51table.summary tr.even {
52/* background: #eeeeee; */
53}
54
55table.summary tr.odd {
56/* background: #cccccc; */
57}
58
51table.summary td { 59table.summary td {
52 width: 50px; 60 width: 50px;
53 text-align: right; 61 text-align: right;