version 1.13, 2009/07/06 17:12:47
|
version 1.14, 2010/02/10 21:27:18
|
Line 11 $awarded=&EXT('user.resource.resource.0.
|
Line 11 $awarded=&EXT('user.resource.resource.0.
|
$scoreformat=&EXT('resource.0.scoreformat'); |
$scoreformat=&EXT('resource.0.scoreformat'); |
if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="0f"; } |
if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="0f"; } |
if (!defined($awarded)) { |
if (!defined($awarded)) { |
$display='$weight possible points.'; |
$display=$weight.' possible points.'; |
} else { |
} else { |
$display='You have '.&format($awarded*$weight,$scoreformat).' out of '. |
$display='You have '.&format($awarded*$weight,$scoreformat).' out of '. |
$weight.' possible points.'; |
$weight.' possible points.'; |