--- loncom/homework/templates/DropBox.problem 2009/07/06 17:12:47 1.13
+++ loncom/homework/templates/DropBox.problem 2011/05/01 17:17:09 1.17
@@ -9,24 +9,45 @@ $weight=&EXT('resource.0.weight');
if ((!defined($weight)) || ($weight eq '')) { $weight=1; }
$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 '.
+if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="2f"; }
+$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='
';
+}
+
$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:"
+- You can modify the rounding of the score display using the "scoreformat" setting.
+- 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