Annotation of loncom/homework/templates/examupload.problem, revision 1.5
1.1 www 1: <problem>
2: <displaytitle />
1.4 albertel 3: <parameter name="scoreformat" description="Format for display of score" default="0f" type="string" />
1.1 www 4: <script type="loncapa/perl">
5: $weight=&EXT('resource.0.weight');
1.3 albertel 6: if ((!defined($weight)) || ($weight eq '')) { $weight=1; }
1.1 www 7: $awarded=&EXT('user.resource.resource.0.awarded');
8: if (!defined($awarded)) { $awarded=0; }
1.4 albertel 9: $scoreformat=&EXT('resource.0.scoreformat');
10: if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="2f"; }
1.1 www 11: </script>
12: <startouttext />
1.4 albertel 13: You have <display>&format($awarded*$weight,$scoreformat)</display> out of $weight possible points.
1.1 www 14: <endouttext />
1.5 ! albertel 15: <block condition="0"><numericalresponse id='score' /></block>
1.1 www 16: </problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>