From 039a3aa1d5cf65a5895f1f9401deb37da033e236 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 21 Jan 2007 03:55:38 +0000 Subject: [PATCH] - Alternate colours on each line in the config editor. Makes it easier to see which config lines go with which options. --- config_editor.inc.php | 6 +++++- sfiab.css | 10 +++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config_editor.inc.php b/config_editor.inc.php index b665b3b..8d34de5 100644 --- a/config_editor.inc.php +++ b/config_editor.inc.php @@ -123,8 +123,12 @@ function config_editor($category, $year, $array_name, $self) else $size=$biggest+1; + $line = 1; foreach($varkeys as $k) { - print(""); + $trclass = ($line % 2 == 0) ? "even" : "odd"; + $line++; + + print(""); print("{$var[$k]['desc']}"); print(""); diff --git a/sfiab.css b/sfiab.css index 5839bc4..9487bdf 100644 --- a/sfiab.css +++ b/sfiab.css @@ -28,8 +28,16 @@ select td { vertical-align: top; - } + +table tr.even { + background: #EEEEFF; +} + +table tr.odd { + background: #E0E0F8; +} + #header { height: 50px; text-align: center;