Annotation of loncom/homework/templates/DropBox.problem, revision 1.6
1.1 www 1: <problem>
1.6 ! www 2: <parameter name="uploadedfiletypes" id="11" default="doc,xls,ppt,png,jpg,jpeg,gif,txt,pdf,htm,html" type="string_fileext" description="Allowed File Extensions for Uploaded Files" />
1.5 www 3: <script type="loncapa/perl">
4: $weight=&EXT('resource.0.weight');
5: if ((!defined($weight)) || ($weight eq '')) { $weight=1; }
6: $awarded=&EXT('user.resource.resource.0.awarded');
7: $scoreformat=&EXT('resource.0.scoreformat');
8: if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="0f"; }
9: if (!defined($awarded)) {
10: $display='$weight possible points.';
11: } else {
12: $display='You have '.&format($awarded*$weight,$scoreformat).' out of '.
13: $weight.' possible points.';
14: }
15: </script>
16: <startouttext />
1.2 www 17: <displaytitle />
1.5 www 18: $display
19: <instructorcomment><font color="red">If non-integer points are used (e.g., 3.5), make sure to change the
20: display format in PPRM, or the result will be displayed in rounded form.
21: To change the allowed file types for
1.4 albertel 22: submissions, change the "uploadedfiletypes" parameter in
1.3 www 23: PPRM.</font></instructorcomment>
1.1 www 24: <essayresponse id="upload">
25: </essayresponse>
26: </problem>
1.6 ! www 27:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>