- Alternate colours on the variable editor categories

This commit is contained in:
dave 2007-12-17 22:25:54 +00:00
parent 63c5f3b2ff
commit c514d7910a

View File

@ -68,9 +68,11 @@
echo "<tr><td width=\"120\" style=\"border-right: 1px solid black;\">";
echo "<table cellspacing=0 cellpadding=3 border=0>";
$trclass = 'odd';
while($r=mysql_fetch_object($q))
{
echo "<tr>";
$trclass = ($trclass == 'odd') ? 'even' : 'odd';
echo "<tr class=\"$trclass\">";
echo "<td align=\"right\">";
if($r->cat==$category)
echo "<b>$r->cat</b>";