--- loncom/homework/simpleproblem.problem 2003/07/09 06:23:20 1.3 +++ loncom/homework/simpleproblem.problem 2003/07/09 10:05:15 1.4 @@ -15,6 +15,10 @@ for ($i=1;$i<=10;$i++) { $position[$i]=&EXT('resource.0.position'.$i); unless ($position[$i]) { $position[$i]='random'; } } +$stringanswer=&EXT('resource.0.stringanswer'); +unless ($stringanswer) { $stringanswer=''; } +$stringtype=&EXT('resource.0.stringtype'); +unless ($stringtype) { $stringtype='cs'; } </script> <startouttext />&EXT('resource.0.questiontext')<endouttext /> @@ -99,4 +103,21 @@ for ($i=1;$i<=10;$i++) { </optionresponse> </block> +<block condition="&EXT('resource.0.questiontype') eq 'essay'"> +<essayresponse id="essaysegment"> +<textfield></textfield> +</essayresponse> +</block> + +<block condition="&EXT('resource.0.questiontype') eq 'string'"> +<stringresponse id="stringsegment" answer="$stringanswer" type="$stringtype"> +<textline> +</textline> +<hintgroup> +<startouttext />&EXT('resource.0.hinttext')<endouttext /> +</hintgroup> +</stringresponse> +</block> + + </problem>