--- loncom/homework/templates/examupload.problem 2009/07/06 17:12:47 1.10
+++ loncom/homework/templates/examupload.problem 2010/05/27 16:56:20 1.13
@@ -12,14 +12,40 @@ $awarded=&EXT('user.resource.resource.0.
if (!defined($awarded)) { $awarded=0; }
$scoreformat=&EXT('resource.0.scoreformat');
if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="0f"; }
+$display='';
+if (&EXT('resource.0.problemstatus')!~/^no/) {
+ if (!defined($awarded)) {
+ $display=$weight.' possible points.';
+ } else {
+ $display='You have '.&format($awarded*$weight,$scoreformat).' out of '.
+ $weight.' possible points.';
+ }
+}
+$comment=&EXT('user.resource.resource.0.comment');
+if (!defined($comment) || $comment!~/\w/) {
+ $comment='';
+} else {
+ $comment='
';
+}
+$gradeinfo=&EXT('user.resource.resource.0.gradeinfo');
+if (!defined($gradeinfo) || $gradeinfo!~/\w/) {
+ $gradeinfo='';
+} else {
+ $gradeinfo='
';
+}
+
+
-You have &format($awarded*$weight,$scoreformat) out of $weight possible points.
+$display
If non-integer points are used (e.g., 3.5), make sure to change the
-display format in "Modify parameter settings for this resource" ("PPRM"/clock symbol), or the result will be displayed in rounded form.
+display format in "Modify parameter settings for this resource" (clock symbol), or the result will be displayed in rounded form.
+You can upload comments and grade information with this resource when uploading CSV files. Feedback on grades can be controlled using the problemstatus parameter.
+$gradeinfo
+$comment