bug 827: color the emphasized rows
authorMichael Tänzer <neo@nhng.de>
Wed, 28 Sep 2011 03:05:36 +0000 (05:05 +0200)
committerMichael Tänzer <neo@nhng.de>
Wed, 28 Sep 2011 03:05:36 +0000 (05:05 +0200)
Patch supplied by Uli60

Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/wot.inc.php

index 3cbafcb..9cc100d 100644 (file)
        function output_assurances_row($assuranceid,$date,$name,$awarded,$points,$location,$method,$experience)
        {
 
+       $tdstyle="";
        $emopen="";
        $emclose="";
 
        {
                if ($awarded == "0")
                {
+                       $tdstyle="style='background-color: #ffff80'";
                        $emopen="<em>";
                        $emclose="</em>";
                }
 
 ?>
     <tr>
-       <td class="DataTD"><?=$emopen?><?=$assuranceid?><?=$emclose?></td>
-       <td class="DataTD"><?=$emopen?><?=$date?><?=$emclose?></td>
-       <td class="DataTD"><?=$emopen?><?=$name?><?=$emclose?></td>
-       <td class="DataTD"><?=$emopen?><?=$awarded?><?=$emclose?></td>
-       <td class="DataTD"><?=$emopen?><?=$location?><?=$emclose?></td>
-       <td class="DataTD"><?=$emopen?><?=$method?><?=$emclose?></td>
-       <td class="DataTD"><?=$emopen?><?=$experience?><?=$emclose?></td>
+       <td class="DataTD" <?=$tdstyle?>><?=$emopen?><?=$assuranceid?><?=$emclose?></td>
+       <td class="DataTD" <?=$tdstyle?>><?=$emopen?><?=$date?><?=$emclose?></td>
+       <td class="DataTD" <?=$tdstyle?>><?=$emopen?><?=$name?><?=$emclose?></td>
+       <td class="DataTD" <?=$tdstyle?>><?=$emopen?><?=$awarded?><?=$emclose?></td>
+       <td class="DataTD" <?=$tdstyle?>><?=$emopen?><?=$location?><?=$emclose?></td>
+       <td class="DataTD" <?=$tdstyle?>><?=$emopen?><?=$method?><?=$emclose?></td>
+       <td class="DataTD" <?=$tdstyle?>><?=$emopen?><?=$experience?><?=$emclose?></td>
     </tr>
 <?
        }