Update of /cvsroot/aimmath/moodle/mod/math_assignment
In directory sc8-pr-cvs1:/tmp/cvs-serv24998/mod/math_assignment
Modified Files:
mod.html version.php view.php
Log Message:
Added 'email students' button to view.php for markers / lecturers to press once the scripts have been returned.
Index: mod.html
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/mod.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** mod.html 24 Sep 2003 13:22:22 -0000 1.20
--- mod.html 25 Sep 2003 15:02:23 -0000 1.21
***************
*** 26,29 ****
--- 26,32 ----
$form->solutionscompile = true;
}
+ if (!isset($form->papersheetsreturned)) {
+ $form->papersheetsreturned = 0;
+ }
if (!isset($form->aimquiz)) {
$form->aimquiz = "";
***************
*** 105,108 ****
--- 108,112 ----
$upload_max_filesize = get_max_upload_file_size();
echo "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"$upload_max_filesize\" />";
+ echo "<input type=\"hidden\" name=\"papersheetsreturned\" value=\"$form->papersheetsreturned\" />";
?>
<center>
Index: version.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/version.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** version.php 24 Sep 2003 13:22:22 -0000 1.8
--- version.php 25 Sep 2003 15:02:23 -0000 1.9
***************
*** 6,10 ****
/////////////////////////////////////////////////////////////////////////////////
! $module->version = 2003092414; // The (date) version of this module
$module->cron = 0; // How often should cron check this module (seconds)?
--- 6,10 ----
/////////////////////////////////////////////////////////////////////////////////
! $module->version = 2003092516; // The (date) version of this module
$module->cron = 0; // How often should cron check this module (seconds)?
Index: view.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/view.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** view.php 23 Sep 2003 22:49:41 -0000 1.14
--- view.php 25 Sep 2003 15:02:24 -0000 1.15
***************
*** 436,440 ****
echo "</td><td>";
helpbutton ("editpapergrades", "$strpaper $strgrades", "math_assignment");
! echo "</td></tr></table></form>";
}
echo "<table border=\"0\" align=\"center\"><tr><td>";
--- 436,446 ----
echo "</td><td>";
helpbutton ("editpapergrades", "$strpaper $strgrades", "math_assignment");
! echo "</td></tr></table></form>\n";
! if (!$math_assignment->papersheetsreturned) {
! echo "<table border=\"0\" align=\"center\"><tr><td>";
! $options = array("id"=>$cm->id);
! print_single_button("email.php", $options, get_string("emailstudents", "math_assignment"));
! echo "</td></tr></table>\n";
! }
}
echo "<table border=\"0\" align=\"center\"><tr><td>";
|