version 1.11, 2009/08/17 19:46:49
|
version 1.13, 2012/11/08 22:04:43
|
Line 1
|
Line 1
|
<problem> |
<problem> |
<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 32 $numericalscript=&EXT('resource.0.numeri
|
Line 32 $numericalscript=&EXT('resource.0.numeri
|
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 138 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 148 $tag='script';
|
Line 153 $tag='script';
|
&xmlparse("<$tag type='loncapa/perl'>$numericalscript</$tag>"); |
&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 160 $tag='script';
|
Line 165 $tag='script';
|
</part> |
</part> |
|
|
</block> |
</block> |
|
|
</problem> |
</problem> |
|
|
|
|