From d9a0d20113711a83a1a12845e81fe0144f22d330 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Wed, 8 Jan 2014 09:31:39 +0100 Subject: [PATCH] fifteen-theme: made wirelessclient.cgi table themeable --- html/cgi-bin/wirelessclient.cgi | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/html/cgi-bin/wirelessclient.cgi b/html/cgi-bin/wirelessclient.cgi index 3c5280330..a2d0273df 100644 --- a/html/cgi-bin/wirelessclient.cgi +++ b/html/cgi-bin/wirelessclient.cgi @@ -258,11 +258,14 @@ sub showMainBox() {


- +
+ + + END @@ -271,6 +274,7 @@ END # my $key = 0; + my $col=""; foreach my $line (@configs) { # Skip commented lines. my $firstchar = substr($line, 0, 1); @@ -292,9 +296,11 @@ END # Colorize each line if ($key % 2) { - print ""; + print ""; + $col="bgcolor='$color{'color20'}'"; } else { - print ""; + print ""; + $col="bgcolor='$color{'color22'}'"; } my $encryption_mode = $Lang::tr{'unknown'}; @@ -332,24 +338,24 @@ END } print <$config[5] - - - + + + - -
$Lang::tr{'wlan client ssid'} $Lang::tr{'wlan client encryption'} $Lang::tr{'priority'}
$encryption_mode$config[7] + $config[5]$encryption_mode$config[7]
+
+
-- 2.39.2