version 1.9, 2009/08/17 14:19:56
|
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'); |
|
unless ($numericalscript) { $numericalscript=''; } |
</script> |
</script> |
|
|
<block condition="!$questiontype"> |
<block condition="!$questiontype"> |
Line 142 unless ($numericalformat) { $numericalfo
|
Line 144 unless ($numericalformat) { $numericalfo
|
|
|
<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"> |