version 1.10, 2009/08/17 18:18:35
|
version 1.11, 2009/08/17 19:46:49
|
Line 24 $numericaltolerance=&EXT('resource.0.num
|
Line 24 $numericaltolerance=&EXT('resource.0.num
|
unless ($numericaltolerance) { $numericaltolerance='5%'; } |
unless ($numericaltolerance) { $numericaltolerance='5%'; } |
$numericalsigfigs=&EXT('resource.0.numericalsigfigs'); |
$numericalsigfigs=&EXT('resource.0.numericalsigfigs'); |
unless ($numericalsigfigs) { $numericalsigfigs='1,15'; } |
unless ($numericalsigfigs) { $numericalsigfigs='1,15'; } |
$numericalunits=&EXT('resource.0.numericalunits'); |
$numericalunit=&EXT('resource.0.numericalunit'); |
unless ($numericalunits) { $numericalunits=''; } |
unless ($numericalunit) { $numericalunit=''; } |
$numericalformat=&EXT('resource.0.numericalformat'); |
$numericalformat=&EXT('resource.0.numericalformat'); |
unless ($numericalformat) { $numericalformat=''; } |
unless ($numericalformat) { $numericalformat=''; } |
$numericalscript=&EXT('resource.0.numericalscript'); |
$numericalscript=&EXT('resource.0.numericalscript'); |
Line 144 unless ($numericalscript) { $numericalsc
|
Line 144 unless ($numericalscript) { $numericalsc
|
|
|
<part id="numerical"> |
<part id="numerical"> |
<script type="loncapa/perl"> |
<script type="loncapa/perl"> |
$numericalscript |
$tag='script'; |
|
&xmlparse("<$tag type='loncapa/perl'>$numericalscript</$tag>"); |
</script> |
</script> |
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
<numericalresponse id="numericalsegment" answer="$numericalanswer" unit="$numericalunit" format="$numericalformat"> |
<numericalresponse id="numericalsegment" answer="$numericalanswer" unit="$numericalunit" format="$numericalformat"> |