Diff for /loncom/homework/simpleproblem.problem between versions 1.5 and 1.6

version 1.5, 2003/07/10 06:17:41 version 1.6, 2003/11/04 16:44:50
Line 1 Line 1
 <problem>  <problem>
 <simpleeditbutton />  <simpleeditbutton />
 <script type="loncapa/perl">  <script type="loncapa/perl">
 $questiontype=&EXT('resource.0.questiontype');  $questiontype=&EXT('resource.0.hiddenparts');
 unless ($questiontype) { $questiontype='radio'; }  
 $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 21  $stringtype=&EXT('resource.0.stringtype' Line 20  $stringtype=&EXT('resource.0.stringtype'
 unless ($stringtype) { $stringtype='cs'; }  unless ($stringtype) { $stringtype='cs'; }
 </script>  </script>
   
   <block condition="!$questiontype"> 
   
   <startouttext />
   <h1>Simple Problem Placeholder</h1>
   <endouttext />
   </block>
   
   <block condition="$questiontype"> 
   
 <startouttext />&EXT('resource.0.questiontext')<br /><endouttext />  <startouttext />&EXT('resource.0.questiontext')<br /><endouttext />
   
 <block condition="&EXT('resource.0.questiontype') eq 'radio'">   <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 61  unless ($stringtype) { $stringtype='cs'; Line 69  unless ($stringtype) { $stringtype='cs';
 <startouttext />&EXT('resource.0.hinttext')<endouttext />  <startouttext />&EXT('resource.0.hinttext')<endouttext />
 </hintgroup>  </hintgroup>
 </radiobuttonresponse>  </radiobuttonresponse>
 </block>  </part>
   
 <block condition="&EXT('resource.0.questiontype') eq 'option'">   <part id="option"> 
 <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 101  unless ($stringtype) { $stringtype='cs'; Line 109  unless ($stringtype) { $stringtype='cs';
 <startouttext />&EXT('resource.0.hinttext')<endouttext />  <startouttext />&EXT('resource.0.hinttext')<endouttext />
 </hintgroup>  </hintgroup>
 </optionresponse>  </optionresponse>
 </block>  </part>
   
 <block condition="&EXT('resource.0.questiontype') eq 'essay'">   <part id="essay"> 
 <essayresponse id="essaysegment">  <essayresponse id="essaysegment">
 <textfield></textfield>  <textfield></textfield>
 </essayresponse>  </essayresponse>
 </block>  </part>
   
 <block condition="&EXT('resource.0.questiontype') eq 'string'">   <part id="string"> 
 <stringresponse id="stringsegment" answer="$stringanswer" type="$stringtype">  <stringresponse id="stringsegment" answer="$stringanswer" type="$stringtype">
 <textline>  <textline>
 </textline>  </textline>
Line 117  unless ($stringtype) { $stringtype='cs'; Line 125  unless ($stringtype) { $stringtype='cs';
 <startouttext />&EXT('resource.0.hinttext')<endouttext />  <startouttext />&EXT('resource.0.hinttext')<endouttext />
 </hintgroup>  </hintgroup>
 </stringresponse>  </stringresponse>
 </block>  </part>
   
   </block>
   
 </problem>  </problem>

Removed from v.1.5  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>