mirror of
https://github.com/CAcertOrg/cats.git
synced 2024-11-08 07:04:03 +00:00
BugFix in function call
This commit is contained in:
parent
528f9b31a3
commit
a53d97b7cb
1 changed files with 4 additions and 3 deletions
|
@ -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&action=showIncorrectAnswers&lp_id=".$this->progress[$i]['lp_id']."&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&action=showIncorrectAnswers&lp_id=";
|
||||||
|
echo $this->progress[$i]['lp_id']."&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;
|
||||||
|
|
Loading…
Reference in a new issue