diff --git a/mod/attendance/add.php b/mod/attendance/add.php index d26774944c5..fef20737984 100644 --- a/mod/attendance/add.php +++ b/mod/attendance/add.php @@ -142,6 +142,12 @@ if (isset($_POST["course"])) { unset($SESSION->modform); // Clear any old ones that may be hanging around. + + $icon = "modpixpath/$module->name/icon.gif\"> "; + + print_heading_with_help($pageheading, "mods", $module->name, $icon); + print_simple_box_start("center", "", "$THEME->cellheading"); + /// Print the main part of the page @@ -190,39 +196,68 @@ $form->hours = isset($CFG->attendance_default_hours)?$CFG->attendance_default_ho +

:

- dynsection) ? 'checked' : '' ?> > - + + +

:

- autoattend) ? 'checked' : '' ?> > + + + +

:

- hours, "1","","1") ?> + hours, "1","","1") ?> + +

:

- grade) ? 'checked' : '' ?> > + + +

:

- maxgrade, "0","","0") ?> + maxgrade, "0","","0"); + helpbutton("maxgrade", get_string("maxgradevalue","attendance"), "attendance"); +?> @@ -243,8 +278,9 @@ for ($i=0;$i<=100;$i++){ $opt2[$i] = $i; } ?> \ No newline at end of file +?> diff --git a/mod/attendance/mod.html b/mod/attendance/mod.html index e9b36771d4c..7eae8f3b941 100755 --- a/mod/attendance/mod.html +++ b/mod/attendance/mod.html @@ -29,6 +29,12 @@ if (empty($form->id)) { + +

:

+ + + +

:

@@ -37,40 +43,61 @@ if (empty($form->id)) {

:

- dynsection) ? 'checked' : '' ?> > +dynsection", ""); + helpbutton("dynsection", get_string("dynamicsection","attendance"), "attendance"); +?> +

:

- autoattend) ? 'checked' : '' ?> > + +autoattend", ""); + helpbutton("autoattend", get_string("autoattend","attendance"), "attendance"); +?> + +

:

- hours, "1","","1") ?> + hours, "1","","1") ?> + +

:

- grade) ? 'checked' : '' ?> > +grade", ""); + helpbutton("grade", get_string("gradevalue","attendance"), "attendance"); +?> +

:

- maxgrade, "0","","0") ?> + maxgrade, "0","","0"); + helpbutton("maxgrade", get_string("maxgradevalue","attendance"), "attendance"); +?> - -

:

- - - -