mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +02:00
changed the options settings to be more compliant with the rest of the
modules. Added help page links for many options. Changed the style of the add multiple interface to match mod.php
This commit is contained in:
parent
3120f6f20b
commit
311b524ac2
2 changed files with 81 additions and 18 deletions
|
@ -29,6 +29,12 @@ if (empty($form->id)) {
|
|||
<!-- <TD align=right><P><B><? print_string("takeroll", "attendance") ?>:</B></P></TD> -->
|
||||
<!-- <TD align=left><? choose_from_menu($options, "roll", $form->roll, "") ?></td> -->
|
||||
<!-- </tr> -->
|
||||
<tr valign=top>
|
||||
<td align=right><p><b><?php print_string("notes", "attendance") ?>:</b></p></td>
|
||||
<td colspan="3">
|
||||
<input type="text" name="notes" size=60 value="<?php p($form->notes)?>">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<TR valign=top>
|
||||
<TD align=right><P><B><?php print_string("dayofroll", "attendance") ?>:</B></P></TD>
|
||||
|
@ -37,40 +43,61 @@ if (empty($form->id)) {
|
|||
<tr valign=top>
|
||||
<TD align="right"><P><B><?php print_string("dynamicsection", "attendance") ?>:</B></P></TD>
|
||||
<TD align="left">
|
||||
<input type="checkbox" name="dynsection" <?php echo !empty($form->dynsection) ? 'checked' : '' ?> >
|
||||
<?php
|
||||
$options = array();
|
||||
$options[0] = get_string("no");
|
||||
$options[1] = get_string("yes");
|
||||
choose_from_menu($options, "dynsection", "$form->dynsection", "");
|
||||
helpbutton("dynsection", get_string("dynamicsection","attendance"), "attendance");
|
||||
?>
|
||||
<!-- <input type="checkbox" name="dynsection" <?php echo !empty($form->dynsection) ? 'checked' : '' ?> > -->
|
||||
</TD>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<TD align="right"><P><B><?php print_string("autoattend", "attendance") ?>:</B></P></TD>
|
||||
<TD align="left">
|
||||
<input type="checkbox" name="autoattend" <?php echo !empty($form->autoattend) ? 'checked' : '' ?> >
|
||||
|
||||
<?php
|
||||
$options = array();
|
||||
$options[0] = get_string("no");
|
||||
$options[1] = get_string("yes");
|
||||
choose_from_menu($options, "autoattend", "$form->autoattend", "");
|
||||
helpbutton("autoattend", get_string("autoattend","attendance"), "attendance");
|
||||
?>
|
||||
|
||||
<!-- <input type="checkbox" name="autoattend" <?php echo !empty($form->autoattend) ? 'checked' : '' ?> > -->
|
||||
</TD>
|
||||
</tr>
|
||||
<?php // starting with 2 to allow for the nothing value in choose_from_menu to be the default of 1
|
||||
for ($i=2;$i<=24;$i++){ $opt[$i] = $i; } ?>
|
||||
<TR valign=top>
|
||||
<TD align=right><P><B><?php print_string("hoursinclass", "attendance") ?>:</B></P></TD>
|
||||
<TD colspan="3" align="left"><?php choose_from_menu($opt, "hours", $form->hours, "1","","1") ?></td>
|
||||
<TD colspan="3" align="left"><?php choose_from_menu($opt, "hours", $form->hours, "1","","1") ?>
|
||||
<?php helpbutton("hours", get_string("hoursinclass","attendance"), "hours"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<TD align="right"><P><B><?php print_string("gradevalue", "attendance") ?>:</B></P></TD>
|
||||
<TD align="left">
|
||||
<input type="checkbox" name="grade" <?php echo !empty($form->grade) ? 'checked' : '' ?> >
|
||||
<?php
|
||||
$options = array();
|
||||
$options[0] = get_string("no");
|
||||
$options[1] = get_string("yes");
|
||||
choose_from_menu($options, "grade", "$form->grade", "");
|
||||
helpbutton("grade", get_string("gradevalue","attendance"), "attendance");
|
||||
?>
|
||||
<!-- <input type="checkbox" name="grade" <?php echo !empty($form->grade) ? 'checked' : '' ?> > -->
|
||||
</TD>
|
||||
</tr>
|
||||
<?php // starting with 2 to allow for the nothing value in choose_from_menu to be the default of 1
|
||||
for ($i=0;$i<=100;$i++){ $opt2[$i] = $i; } ?>
|
||||
<TR valign=top>
|
||||
<TD align=right><P><B><?php print_string("maxgradevalue", "attendance") ?>:</B></P></TD>
|
||||
<TD colspan="3" align="left"><?php choose_from_menu($opt2, "maxgrade", $form->maxgrade, "0","","0") ?></td>
|
||||
<TD colspan="3" align="left"><?php choose_from_menu($opt2, "maxgrade", $form->maxgrade, "0","","0");
|
||||
helpbutton("maxgrade", get_string("maxgradevalue","attendance"), "attendance");
|
||||
?></td>
|
||||
</tr>
|
||||
|
||||
<tr valign=top>
|
||||
<td align=right><p><b><?php print_string("notes", "attendance") ?>:</b></p></td>
|
||||
<td colspan="3">
|
||||
<input type="text" name="notes" size=60 value="<?php p($form->notes)?>">
|
||||
</td>
|
||||
</tr>
|
||||
</TABLE>
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue