PHP-Code:
<?
for($x=1;$x<11;$x++){
if (!isset($users[$x])) $users[$x] = 'n/a';
if (!isset($ref[$x])) $ref[$x] = 0;
$row = ($rp % 2 == 0) ? 0 : 1; ?>
<tr class="tr_row<?=$row;?>">
<td align="right"><?=$rp++;?>. </td>
<td> <?=$users[$x];?></td>
<td align="right"><?=$ref[$x];?> </td>
<td align="right"><?=number_format($ralleydaten['p'.$x], 0).' '.$waehrung;?> </td>
</tr>
<?
} ?>
in:
PHP-Code:
<?
for($x=1;$x<11;$x++){
if (!isset($users[$x])) $users[$x] = 'n/a';
if (!isset($ref[$x])) $ref[$x] = 0;
$style = ($ref[$x] < 15) ? 'color:red;' : '' ;
$row = ($rp % 2 == 0) ? 0 : 1; ?>
<tr class="tr_row<?=$row;?>" style="<?=$style;?>">
<td align="right"><?=$rp++;?>. </td>
<td> <?=$users[$x];?></td>
<td align="right"><?=$ref[$x];?> </td>
<td align="right"><?=number_format($ralleydaten['p'.$x], 0).' '.$waehrung;?> </td>
</tr>
<?
} ?>