From 311b524ac232ce4e9f61a230e6ffcd382132c10e Mon Sep 17 00:00:00 2001 From: jungwirr Date: Wed, 5 May 2004 17:06:56 +0000 Subject: [PATCH] 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 --- mod/attendance/add.php | 50 +++++++++++++++++++++++++++++++++++------ mod/attendance/mod.html | 49 +++++++++++++++++++++++++++++++--------- 2 files changed, 81 insertions(+), 18 deletions(-) diff --git a/mod/attendance/add.php b/mod/attendance/add.php index d26774944c..fef2073798 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 e9b36771d4..7eae8f3b94 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"); +?> - -

:

- - - - -- 2.39.5