added italics line for awarded=points=0
authordirk <beliebige_email_adresse@fidocon.de>
Tue, 27 Sep 2011 21:35:30 +0000 (23:35 +0200)
committerdirk <beliebige_email_adresse@fidocon.de>
Tue, 27 Sep 2011 21:35:30 +0000 (23:35 +0200)
includes/wot.inc.php

index dc75899..89dee8c 100644 (file)
 <?
        }
 
-       function output_assurances_row($assuranceid,$date,$name,$points,$location,$method,$experience)
+       function output_assurances_row($assuranceid,$date,$name,$awarded,$points,$location,$method,$experience)
        {
+
+       $emopen="";
+       $emclose="";
+
+       if ($awarded == $points)
+       {
+               $emopen="<em>";
+               $emclose="</em>";
+       }
+
 ?>
     <tr>
-       <td class="DataTD"><?=$assuranceid?></td>
-       <td class="DataTD"><?=$date?></td>
-       <td class="DataTD"><?=$name?></td>
-       <td class="DataTD"><?=$points?></td>
-       <td class="DataTD"><?=$location?></td>
-       <td class="DataTD"><?=$method?></td>
-       <td class="DataTD"><?=$experience?></td>
+       <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>
     </tr>
 <?
        }
                        $fromuser = get_user (intval($row['to'])); 
                        calc_experience ($row,$points,$experience,$sum_experience);
                        $name = show_user_link ($fromuser['fname']." ".$fromuser['lname'],intval($row['to']));
-                       output_assurances_row (intval($row['id']),$row['date'],$name,intval($row['awarded']),$row['location'],$row['method']==""?"":_(sprintf("%s", $row['method'])),$experience);
+                       output_assurances_row (intval($row['id']),$row['date'],$name,intval($row['awarded']),intval($row['points']),$row['location'],$row['method']==""?"":_(sprintf("%s", $row['method'])),$experience);
                }
        }
 
                        $fromuser = get_user (intval($row['from']));
                        calc_assurances ($row,$points,$experience,$sum_experience,$awarded);
                        $name = show_user_link ($fromuser['fname']." ".$fromuser['lname'],intval($row['from']));
-                       output_assurances_row (intval($row['id']),$row['date'],$name,$awarded,$row['location'],$row['method']==""?"":_(sprintf("%s", $row['method'])),$experience);
+                       output_assurances_row (intval($row['id']),$row['date'],$name,$awarded,intval($row['points']),$row['location'],$row['method']==""?"":_(sprintf("%s", $row['method'])),$experience);
                }
        }