forked from science-ation/science-ation
- Alternate colours on the variable editor categories
This commit is contained in:
parent
63c5f3b2ff
commit
c514d7910a
@ -68,9 +68,11 @@
|
|||||||
|
|
||||||
echo "<tr><td width=\"120\" style=\"border-right: 1px solid black;\">";
|
echo "<tr><td width=\"120\" style=\"border-right: 1px solid black;\">";
|
||||||
echo "<table cellspacing=0 cellpadding=3 border=0>";
|
echo "<table cellspacing=0 cellpadding=3 border=0>";
|
||||||
|
$trclass = 'odd';
|
||||||
while($r=mysql_fetch_object($q))
|
while($r=mysql_fetch_object($q))
|
||||||
{
|
{
|
||||||
echo "<tr>";
|
$trclass = ($trclass == 'odd') ? 'even' : 'odd';
|
||||||
|
echo "<tr class=\"$trclass\">";
|
||||||
echo "<td align=\"right\">";
|
echo "<td align=\"right\">";
|
||||||
if($r->cat==$category)
|
if($r->cat==$category)
|
||||||
echo "<b>$r->cat</b>";
|
echo "<b>$r->cat</b>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user