version 1.8, 2006/02/06 23:55:03
|
version 1.9, 2009/08/17 14:19:56
|
Line 18 $stringanswer=&EXT('resource.0.stringans
|
Line 18 $stringanswer=&EXT('resource.0.stringans
|
unless ($stringanswer) { $stringanswer=''; } |
unless ($stringanswer) { $stringanswer=''; } |
$stringtype=&EXT('resource.0.stringtype'); |
$stringtype=&EXT('resource.0.stringtype'); |
unless ($stringtype) { $stringtype='cs'; } |
unless ($stringtype) { $stringtype='cs'; } |
|
$numericalanswer=&EXT('resource.0.numericalanswer'); |
|
unless ($numericalanswer) { $numericalanswer=''; } |
|
$numericaltolerance=&EXT('resource.0.numericaltolerance'); |
|
unless ($numericaltolerance) { $numericaltolerance='5%'; } |
|
$numericalsigfigs=&EXT('resource.0.numericalsigfigs'); |
|
unless ($numericalsigfigs) { $numericalsigfigs='1,15'; } |
|
$numericalunits=&EXT('resource.0.numericalunits'); |
|
unless ($numericalunits) { $numericalunits=''; } |
|
$numericalformat=&EXT('resource.0.numericalformat'); |
|
unless ($numericalformat) { $numericalformat=''; } |
</script> |
</script> |
|
|
<block condition="!$questiontype"> |
<block condition="!$questiontype"> |
Line 130 unless ($stringtype) { $stringtype='cs';
|
Line 140 unless ($stringtype) { $stringtype='cs';
|
</stringresponse> |
</stringresponse> |
</part> |
</part> |
|
|
|
<part id="numerical"> |
|
<script type="loncapa/perl"> |
|
$numericalscript |
|
</script> |
|
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
|
<numericalresponse id="numericalsegment" answer="$numericalanswer" unit="$numericalunit" format="$numericalformat"> |
|
<responseparam type="tolerance" default="$numericaltolerance" name="tol" description="Numerical Tolerance" /> |
|
<responseparam name="sig" type="int_range,0-16" default="$numericalsigfigs" description="Significant Figures" /> |
|
<textline> |
|
</textline> |
|
<hintgroup> |
|
<startouttext /><parse>&EXT('resource.0.hinttext')</parse><endouttext /> |
|
</hintgroup> |
|
</numericalresponse> |
|
</part> |
|
|
</block> |
</block> |
|
|
</problem> |
</problem> |