Annotation of loncom/homework/templates/examupload.problem, revision 1.9

1.1       www         1: <problem>
                      2: <displaytitle />
1.8       albertel    3: <parameter name="scoreformat" description="Format for display of score" type="string" />
1.7       albertel    4: <parameter name="handgrade" description="Hand Grade" default="yes" type="string_yesno" />
1.1       www         5: <script type="loncapa/perl">
                      6: $weight=&EXT('resource.0.weight');
1.3       albertel    7: if ((!defined($weight)) || ($weight eq '')) { $weight=1; }
1.1       www         8: $awarded=&EXT('user.resource.resource.0.awarded');
                      9: if (!defined($awarded)) { $awarded=0; }
1.4       albertel   10: $scoreformat=&EXT('resource.0.scoreformat');
1.8       albertel   11: if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="0f"; }
1.1       www        12: </script>
                     13: <startouttext />
1.4       albertel   14: You have <display>&format($awarded*$weight,$scoreformat)</display> out of $weight possible points.
1.6       www        15: <instructorcomment>
                     16: <font color="red">
                     17: <br />If non-integer points are used (e.g., 3.5), make sure to change the
1.9     ! www        18: display format in "Modify parameter settings for this resource" ("PPRM"/clock symbol), or the result will be displayed in rounded form.
1.6       www        19: </font>
                     20: </instructorcomment>
1.1       www        21: <endouttext />
1.5       albertel   22: <block condition="0"><numericalresponse id='score' /></block>
1.1       www        23: </problem>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>