version 1.7, 2005/02/28 20:39:05
|
version 1.10, 2009/08/17 18:18:35
|
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=''; } |
|
$numericalscript=&EXT('resource.0.numericalscript'); |
|
unless ($numericalscript) { $numericalscript=''; } |
</script> |
</script> |
|
|
<block condition="!$questiontype"> |
<block condition="!$questiontype"> |
Line 29 unless ($stringtype) { $stringtype='cs';
|
Line 41 unless ($stringtype) { $stringtype='cs';
|
|
|
<block condition="$questiontype"> |
<block condition="$questiontype"> |
|
|
|
<part id="radio"> |
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
|
|
<part id="radio"> |
|
<radiobuttonresponse max="$max" id="radiosegment" randomize="$randomize"> |
<radiobuttonresponse max="$max" id="radiosegment" randomize="$randomize"> |
<foilgroup> |
<foilgroup> |
<foil location="$position[1]" value="$value[1]" name="radiofoil1"> |
<foil location="$position[1]" value="$value[1]" name="radiofoil1"> |
Line 72 unless ($stringtype) { $stringtype='cs';
|
Line 84 unless ($stringtype) { $stringtype='cs';
|
</part> |
</part> |
|
|
<part id="option"> |
<part id="option"> |
|
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
<optionresponse max="$max" id="optionsegment" randomize="$randomize"> |
<optionresponse max="$max" id="optionsegment" randomize="$randomize"> |
<foilgroup options="$options"> |
<foilgroup options="$options"> |
<foil location="$position[1]" value="$value[1]" name="optionfoil1"> |
<foil location="$position[1]" value="$value[1]" name="optionfoil1"> |
Line 112 unless ($stringtype) { $stringtype='cs';
|
Line 125 unless ($stringtype) { $stringtype='cs';
|
</part> |
</part> |
|
|
<part id="essay"> |
<part id="essay"> |
|
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
<essayresponse id="essaysegment"> |
<essayresponse id="essaysegment"> |
<textfield></textfield> |
<textfield></textfield> |
</essayresponse> |
</essayresponse> |
</part> |
</part> |
|
|
<part id="string"> |
<part id="string"> |
|
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
<stringresponse id="stringsegment" answer="$stringanswer" type="$stringtype"> |
<stringresponse id="stringsegment" answer="$stringanswer" type="$stringtype"> |
<textline> |
<textline> |
</textline> |
</textline> |
Line 127 unless ($stringtype) { $stringtype='cs';
|
Line 142 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> |