1: <problem>
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" />
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 />
17: <displaytitle />
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
22: submissions, change the "uploadedfiletypes" parameter in
23: PPRM.</font></instructorcomment>
24: <essayresponse id="upload">
25: </essayresponse>
26: </problem>
27:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>