mirror of
https://github.com/CAcertOrg/cats.git
synced 2024-11-03 12:44:03 +00:00
bug 500: Added button to request certificate in learnprogress page if there are passed tests.
This commit is contained in:
parent
a53d97b7cb
commit
e19037d598
1 changed files with 8 additions and 2 deletions
|
@ -87,11 +87,17 @@ class Progress
|
||||||
echo $this->progress[$i]['lp_id']."&t_id=$this->topic'><img src='images/details.png' class='linkimage' alt='' /></a></td>";
|
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-1;
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td class='td' colspan='6' align='center'>".Statistic_04.' '.$this->totalresult['passed'].'/'.$this->totalresult['count']."</td>";
|
echo "<td class='td' colspan='6' align='center'>".Statistic_04.' '.$this->totalresult['passed'].'/'.$this->totalresult['count']."</td>";
|
||||||
echo "</tr>";
|
echo "</tr>\n";
|
||||||
echo"</table>";
|
echo"</table>";
|
||||||
|
if ($this->totalresult['passed'] > 0) {
|
||||||
|
echo "<form class='info' action='index.php?site=start_test&action=requestCert' method='post'>";
|
||||||
|
echo "<input type='hidden' name='t_id' value='$this->topic' />";
|
||||||
|
echo "<input name='submit' class='Button_middle' type='submit' value='".Class_Quiz_11_RequestCert."' />";
|
||||||
|
echo "</form>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue