BugFix in function call

This commit is contained in:
Bernhard Fröhlich 2013-04-10 23:30:42 +02:00
parent 528f9b31a3
commit a53d97b7cb

View file

@ -75,15 +75,16 @@ class Progress
echo"<td class='td'>$i</td>"; echo"<td class='td'>$i</td>";
echo"<td class='td'>".$this->progress[$i]['date']."</td>"; echo"<td class='td'>".$this->progress[$i]['date']."</td>";
echo"<td class='td'>".$this->progress[$i]['number']."</td>"; echo"<td class='td'>".$this->progress[$i]['number']."</td>";
echo"<td class='td'>".getPassedImage($this->progress[$i]['passed'])."</td>";
if ($this->progress[$i]['number'] > 0) { if ($this->progress[$i]['number'] > 0) {
$percent=($this->progress[$i]['correct']/$this->progress[$i]['number'])*100; $percent=($this->progress[$i]['correct']/$this->progress[$i]['number'])*100;
} else { } else {
$percent = 0; $percent = 0;
} }
$percent=round ($percent,2); $percent=round ($percent,2);
echo"<td class='td'>$percent %</td>"; echo "<td class='td'>$percent %</td>";
echo"<td class='td'> <a href='?site=progress&amp;action=showIncorrectAnswers&amp;lp_id=".$this->progress[$i]['lp_id']."&amp;t_id=$this->topic'><img src='images/details.png' class='linkimage' alt='' /></a></td>"; echo "<td class='td'>".$this->getPassedImage($this->progress[$i]['passed'])."</td>";
echo "<td class='td'> <a href='?site=progress&amp;action=showIncorrectAnswers&amp;lp_id=";
echo $this->progress[$i]['lp_id']."&amp;t_id=$this->topic'><img src='images/details.png' class='linkimage' alt='' /></a></td>";
echo "</tr>"; echo "</tr>";
} }
$this->totalresult['count']=$i; $this->totalresult['count']=$i;