moodle/mod/attendance/config.html
jungwirr 29bd1e46c5 Added grading support for attendance - including settings and database
fields.

Cleaned up some function names in lib to proper naming conventions.
2003-09-25 22:47:11 +00:00

117 lines
3.5 KiB
HTML

<form method="post" action="module.php" name="form">
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align=right><p>attendance_dynsection:</td>
<td>
<? $optds[0] = "No";$optds[1] = "Yes";
choose_from_menu($optds, "attendance_dynsection", $CFG->attendance_dynsection, ""); ?>
</td>
<td>
<? p(get_string("defaultdynamicsection","attendance")) ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>attendance_default_hours:</td>
<td>
<? for ($i=1;$i<=24;$i++){ $opt[$i] = $i; }
choose_from_menu($opt, "attendance_default_hours", $CFG->attendance_default_hours, ""); ?>
</td>
<td>
<?php p(get_string("defaulthoursinclass","attendance")) ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>attendance_tardies_per_absence:</td>
<td>
<? for ($i=1;$i<=24;$i++){ $opt2[$i] = $i; }
choose_from_menu($opt2, "attendance_tardies_per_absence", $CFG->attendance_tardies_per_absence, "none","","0"); ?>
</td>
<td>
<?php p(get_string("tardiesperabsence","attendance")) ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>attendance_hours_in_full_report:</td>
<td>
<? for ($i=10;$i<=24;$i++){ $opt3[$i] = $i; }
choose_from_menu($opt3, "attendance_hours_in_full_report", $CFG->attendance_tardies_per_absence, ""); ?>
</td>
<td>
<?php p(get_string("hoursinfullreport","attendance")) ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>attendance_default_student_status:</td>
<td>
<?
$A = get_string("absentlong","attendance");
$T = get_string("tardylong","attendance");
$P = get_string("presentlong","attendance");
$r1c=$r2c=$r3c=" ";
if ($CFG->attendance_default_student_status == 1) {$r2c="checked";}
elseif ($CFG->attendance_default_student_status == 2) {$r3c="checked";}
else {$r1c="checked";}
$radio1="<input type=\"radio\" name=\"attendance_default_student_status\" value=\"0\" ".$r1c.">";
$radio2="<input type=\"radio\" name=\"attendance_default_student_status\" value=\"1\" ".$r2c.">";
$radio3="<input type=\"radio\" name=\"attendance_default_student_status\" value=\"2\" ".$r3c.">";
echo "<table><tr><td align=\"left\" nowrap class=\"generaltablecell\">".
$radio1.$P."</td>\n";
echo "<td align=\"left\" nowrap class=\"generaltablecell\">".
$radio2.$T."</td>\n";
echo "<td align=\"left\" nowrap class=\"generaltablecell\">".
$radio3.$A."</td></tr></table>\n";
?>
</td>
<td>
<?php p(get_string("defaultstudentstatus","attendance")) ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>attendance_autoattend:</td>
<td>
<? $optaa[0] = "No";$optaa[1] = "Yes";
choose_from_menu($optaa, "attendance_autoattend", $CFG->attendance_autoattend, ""); ?>
</td>
<td>
<? p(get_string("defaultautoattend","attendance")) ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>attendance_grade:</td>
<td>
<? $optgr[0] = "No";$optgr[1] = "Yes";
choose_from_menu($optgr, "attendance_grade", $CFG->attendance_grade, ""); ?>
</td>
<td>
<? p(get_string("defaultgrade","attendance")) ?>
</td>
</tr>
<tr valign=top>
<td align=right><p>attendance_maxgrade:</td>
<td>
<? for ($i=0;$i<=100;$i++){ $opt4[$i] = $i; }
choose_from_menu($opt4, "attendance_maxgrade", $CFG->attendance_maxgrade, ""); ?>
</td>
<td>
<?php p(get_string("defaultmaxgrade","attendance")) ?>
</td>
</tr>
<tr>
<td colspan=3 align=center>
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
</tr>
</table>
</form>