added a new setting which is modattempts

This commit is contained in:
michaelpenne
2004-11-01 20:27:28 +00:00
parent 9959aab238
commit d01e2b0ba2
+15
View File
@@ -97,6 +97,10 @@ if ($form->mode == "add") {
if (!isset($form->lessondefault)) {
$form->lessondefault = 0;
}
if (!isset($form->modattempts)) {
$form->modattempts = 0;
}
$form->deleteattempts = "";
@@ -126,6 +130,17 @@ if ($form->mode == "add") {
</td>
</tr>
<tr>
<td align=right><p><b><?php print_string("modattempts", "lesson"); ?>:</b></p></td>
<td>
<?PHP
$options[0] = get_string("no"); $options[1] = get_string("yes");
choose_from_menu($options, "modattempts", $form->modattempts, "");
helpbutton("modattempts", get_string("modattempts", "lesson"), "lesson");
?>
</td>
</tr>
<tr>
<td align=right><p><b><?php print_string("usepassword", "lesson"); ?>:</b></p></td>
<td>