|
|
@ -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;
|
|
|
|