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