Update of /cvsroot/aimmath/moodle/mod/math_assignment
In directory sc8-pr-cvs1:/tmp/cvs-serv3086a
Modified Files:
view.php
Log Message:
Also non-editing teachers are allowed to publish grades.
Grade is printed as grade/maxgrade.
Index: view.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/view.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** view.php 16 Nov 2003 18:38:23 -0000 1.24
--- view.php 11 Jan 2004 13:21:22 -0000 1.25
***************
*** 285,292 ****
if ($hasaim) echo "$strpaper ";
echo "$strgrade :</b> ";
! if ($math_assignment->papersheetsreturned)
! echo "$grade->papergrade / $math_assignment->papergrade";
! else
print_string("notmarked", "math_assignment");
echo "<br />";
}
--- 285,297 ----
if ($hasaim) echo "$strpaper ";
echo "$strgrade :</b> ";
! if ($math_assignment->papersheetsreturned) {
! if ($grade->aimgrade >= 0) {
! echo "$grade->papergrade / $math_assignment->papergrade";
! } else {
! print_string("notattempted", "math_assignment");
! }
! } else {
print_string("notmarked", "math_assignment");
+ }
echo "<br />";
}
***************
*** 420,424 ****
echo "<center>The grades have not yet been finalized</center>";
}
! if (!$math_assignment->papersheetsreturned and (!empty($USER->teacheredit[$course->id]) or isadmin())) {
echo "<table border=\"0\" align=\"center\"><tr><td>";
$options = array("id"=>$cm->id);
--- 425,429 ----
echo "<center>The grades have not yet been finalized</center>";
}
! if (!$math_assignment->papersheetsreturned and (!empty($USER->teacher[$course->id]) or isadmin())) {
echo "<table border=\"0\" align=\"center\"><tr><td>";
$options = array("id"=>$cm->id);
|