version 1.10, 2009/08/17 18:18:35
|
version 1.12, 2011/01/18 21:20:15
|
Line 2
|
Line 2
|
<simpleeditbutton /> |
<simpleeditbutton /> |
<script type="loncapa/perl"> |
<script type="loncapa/perl"> |
$questiontype=&EXT('resource.0.hiddenparts'); |
$questiontype=&EXT('resource.0.hiddenparts'); |
|
if ($questiontype eq '!placeholder') { $questiontype=''; } |
$max=&EXT('resource.0.maxfoils'); |
$max=&EXT('resource.0.maxfoils'); |
unless ($max) { $max=10; } |
unless ($max) { $max=10; } |
$randomize=&EXT('resource.0.randomize'); |
$randomize=&EXT('resource.0.randomize'); |
Line 24 $numericaltolerance=&EXT('resource.0.num
|
Line 25 $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'); |
unless ($numericalscript) { $numericalscript=''; } |
unless ($numericalscript) { $numericalscript=''; } |
</script> |
</script> |
|
|
<block condition="!$questiontype"> |
<parameter name="hiddenparts" id="11" type="string" default="!placeholder" description="List of hidden parts" /> |
|
|
|
<block condition="!$questiontype"> |
<startouttext /> |
<startouttext /> |
<h1>Simple Problem Placeholder</h1> |
<h1>Problem Placeholder</h1> |
<endouttext /> |
<endouttext /> |
|
<part id="placeholder"> |
|
<stringresponse id="placeholdersegment"> |
|
</stringresponse> |
|
</part> |
</block> |
</block> |
|
|
<block condition="$questiontype"> |
<block condition="$questiontype"> |
Line 133 unless ($numericalscript) { $numericalsc
|
Line 139 unless ($numericalscript) { $numericalsc
|
|
|
<part id="string"> |
<part id="string"> |
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
<startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext /> |
<stringresponse id="stringsegment" answer="$stringanswer" type="$stringtype"> |
<stringresponse answer="$stringanswer" id="stringsegment" type="$stringtype"> |
<textline> |
<textline> |
</textline> |
</textline> |
<hintgroup> |
<hintgroup> |
Line 144 unless ($numericalscript) { $numericalsc
|
Line 150 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 unit="$numericalunit" format="$numericalformat" answer="$numericalanswer" id="numericalsegment"> |
<responseparam type="tolerance" default="$numericaltolerance" name="tol" description="Numerical Tolerance" /> |
<responseparam name="tol" type="tolerance" default="$numericaltolerance" description="Numerical Tolerance" /> |
<responseparam name="sig" type="int_range,0-16" default="$numericalsigfigs" description="Significant Figures" /> |
<responseparam name="sig" type="int_range,0-16" default="$numericalsigfigs" description="Significant Figures" /> |
<textline> |
<textline> |
</textline> |
</textline> |
Line 159 $numericalscript
|
Line 166 $numericalscript
|
</part> |
</part> |
|
|
</block> |
</block> |
|
|
</problem> |
</problem> |
|
|
|
|