- Alternate colours on each line in the config editor. Makes it easier to see

which config lines go with which options.
This commit is contained in:
dave 2007-01-21 03:55:38 +00:00
parent 5ca11ae362
commit 039a3aa1d5
2 changed files with 14 additions and 2 deletions

View File

@ -123,8 +123,12 @@ function config_editor($category, $year, $array_name, $self)
else $size=$biggest+1;
$line = 1;
foreach($varkeys as $k) {
print("<tr>");
$trclass = ($line % 2 == 0) ? "even" : "odd";
$line++;
print("<tr class=\"$trclass\">");
print("<td>{$var[$k]['desc']}</td>");
print("<td>");

View File

@ -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;