Diff for /loncom/homework/templates/examupload.problem between versions 1.3 and 1.4

version 1.3, 2003/07/21 17:51:24 version 1.4, 2004/01/27 20:45:11
Line 1 Line 1
 <problem>  <problem>
 <displaytitle />  <displaytitle />
   <parameter name="scoreformat" description="Format for display of score" default="0f" type="string" />
 <script type="loncapa/perl">  <script type="loncapa/perl">
 $weight=&EXT('resource.0.weight');  $weight=&EXT('resource.0.weight');
 if ((!defined($weight)) || ($weight eq '')) { $weight=1; }  if ((!defined($weight)) || ($weight eq '')) { $weight=1; }
 $awarded=&EXT('user.resource.resource.0.awarded');  $awarded=&EXT('user.resource.resource.0.awarded');
 if (!defined($awarded)) { $awarded=0; }  if (!defined($awarded)) { $awarded=0; }
   $scoreformat=&EXT('resource.0.scoreformat');
   if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="2f"; }
 </script>  </script>
 <startouttext />  <startouttext />
 You have <display>$awarded*$weight</display> out of $weight possible points.  You have <display>&format($awarded*$weight,$scoreformat)</display> out of $weight possible points.
 <endouttext />  <endouttext />
 <notsolved><numericalresponse id='score' /></notsolved>  <notsolved><numericalresponse id='score' /></notsolved>
 </problem>  </problem>

Removed from v.1.3  
changed lines
  Added in v.1.4


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