From: Alexander Marx Date: Tue, 7 Jan 2014 09:38:05 +0000 (+0100) Subject: fifteen-theme: made hosts.cgi tables themeable X-Git-Tag: v2.15-beta1~19^2~15^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cff7f5a19ad66d3bdb9ee22df5b0ba3eb4639cc7;p=ipfire-2.x.git fifteen-theme: made hosts.cgi tables themeable --- diff --git a/html/cgi-bin/hosts.cgi b/html/cgi-bin/hosts.cgi index 94a48d3264..4eeeaf652e 100644 --- a/html/cgi-bin/hosts.cgi +++ b/html/cgi-bin/hosts.cgi @@ -283,12 +283,12 @@ END # &Header::openbox('100%', 'left', $Lang::tr{'current hosts'}); print < + - - - - + + + + END ; @@ -296,7 +296,7 @@ END # # Print each line of @current list # - +my $col=""; my $key = 0; foreach my $line (@current) { chomp($line); # remove newline @@ -318,15 +318,17 @@ foreach my $line (@current) { if ($settings{'KEY1'} eq $key) { print ""; } elsif ($key % 2) { - print ""; + print ""; + $col="bgcolor='$color{'color20'}'"; } else { - print ""; + print ""; + $col="bgcolor='$color{'color22'}'"; } print <$temp[1] - - - + + + - -
$Lang::tr{'host ip'}$Lang::tr{'hostname'}$Lang::tr{'domain name'}$Lang::tr{'action'}$Lang::tr{'host ip'}$Lang::tr{'hostname'}$Lang::tr{'domain name'}$Lang::tr{'action'}
$temp[2]$temp[3] +$temp[1]$temp[2]$temp[3]
@@ -334,7 +336,7 @@ foreach my $line (@current) {
+
@@ -342,7 +344,7 @@ foreach my $line (@current) {
+