added a new setting which is modattempts
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user