--- loncom/homework/templates/DropBox.problem 2010/02/10 21:27:18 1.14 +++ loncom/homework/templates/DropBox.problem 2010/05/27 16:56:20 1.16 @@ -10,23 +10,44 @@ if ((!defined($weight)) || ($weight eq ' $awarded=&EXT('user.resource.resource.0.awarded'); $scoreformat=&EXT('resource.0.scoreformat'); if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="0f"; } -if (!defined($awarded)) { - $display=$weight.' possible points.'; -} else { - $display='You have '.&format($awarded*$weight,$scoreformat).' out of '. +$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='
'.$comment.'
'; } +$gradeinfo=&EXT('user.resource.resource.0.gradeinfo'); +if (!defined($gradeinfo) || $gradeinfo!~/\w/) { + $gradeinfo=''; +} else { + $gradeinfo='
'.$gradeinfo.'
'; +} + $display - -
  • If non-integer points are used (e.g., 3.5), make sure to change the display format in PPRM, or the result will be displayed in rounded form.
  • -
  • To change the allowed file types for submissions, change the "uploadedfiletypes" parameter in PPRM.
  • -
  • To change the maximum cumulative size for submitted files for this item, modify the "maxfilesize" parameter in PPRM (The default is 10 MB).
  • -
-
+
+You should adjust this resource in "Modify parameter settings for this resource:" +
  • If non-integer points are used (e.g., 3.5), make sure to change the display format, or the result will be displayed in rounded form.
  • +
  • To change the allowed file types for submissions, change the "uploadedfiletypes"
  • +
  • To change the maximum cumulative size for submitted files for this item, modify the "maxfilesize" parameter (The default is 10 MB).
  • +
  • Feedback on grades can be controlled using the "problemstatus" parameter.
  • +
+You can upload comments and grade information with this resource when uploading CSV files. +
+$gradeinfo +$comment