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

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

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