Annotation of loncom/homework/simpleproblem.problem, revision 1.8

1.1       www         1: <problem>
1.2       www         2: <simpleeditbutton />
1.1       www         3: <script type="loncapa/perl">
1.6       www         4: $questiontype=&EXT('resource.0.hiddenparts');
1.1       www         5: $max=&EXT('resource.0.maxfoils');
                      6: unless ($max) { $max=10; }
                      7: $randomize=&EXT('resource.0.randomize');
                      8: unless ($randomize) { $randomize='yes'; }
                      9: $options=&EXT('resource.0.options');
                     10: unless ($options) { $options='("true","false")'; }
                     11: for ($i=1;$i<=10;$i++) {
                     12:     $value[$i]=&EXT('resource.0.value'.$i);
                     13:     unless ($value[$i]) { $value[$i]='unused'; }
                     14:     $position[$i]=&EXT('resource.0.position'.$i);
                     15:     unless ($position[$i]) { $position[$i]='random'; }
                     16: }
1.4       www        17: $stringanswer=&EXT('resource.0.stringanswer');
                     18: unless ($stringanswer) { $stringanswer=''; }
                     19: $stringtype=&EXT('resource.0.stringtype');
                     20: unless ($stringtype) { $stringtype='cs'; }
1.1       www        21: </script>
                     22: 
1.6       www        23: <block condition="!$questiontype"> 
                     24: 
                     25: <startouttext />
                     26: <h1>Simple Problem Placeholder</h1>
                     27: <endouttext />
                     28: </block>
                     29: 
                     30: <block condition="$questiontype"> 
                     31: 
1.8     ! albertel   32: <part id="radio">
1.7       albertel   33: <startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext />
1.1       www        34: 
                     35: <radiobuttonresponse max="$max" id="radiosegment" randomize="$randomize">
                     36: <foilgroup>
                     37: <foil location="$position[1]" value="$value[1]" name="radiofoil1">
1.7       albertel   38: <startouttext /><parse>&EXT('resource.0.text1')</parse><endouttext />
1.1       www        39: </foil>
                     40: <foil location="$position[2]" value="$value[2]" name="radiofoil2">
1.7       albertel   41: <startouttext /><parse>&EXT('resource.0.text2')</parse><endouttext />
1.1       www        42: </foil>
                     43: <foil location="$position[3]" value="$value[3]" name="radiofoil3">
1.7       albertel   44: <startouttext /><parse>&EXT('resource.0.text3')</parse><endouttext />
1.1       www        45: </foil>
                     46: <foil location="$position[4]" value="$value[4]" name="radiofoil4">
1.7       albertel   47: <startouttext /><parse>&EXT('resource.0.text4')</parse><endouttext />
1.1       www        48: </foil>
                     49: <foil location="$position[5]" value="$value[5]" name="radiofoil5">
1.7       albertel   50: <startouttext /><parse>&EXT('resource.0.text5')</parse><endouttext />
1.1       www        51: </foil>
                     52: <foil location="$position[6]" value="$value[6]" name="radiofoil6">
1.7       albertel   53: <startouttext /><parse>&EXT('resource.0.text6')</parse><endouttext />
1.1       www        54: </foil>
                     55: <foil location="$position[7]" value="$value[7]" name="radiofoil7">
1.7       albertel   56: <startouttext /><parse>&EXT('resource.0.text7')</parse><endouttext />
1.1       www        57: </foil>
                     58: <foil location="$position[8]" value="$value[8]" name="radiofoil8">
1.7       albertel   59: <startouttext /><parse>&EXT('resource.0.text8')</parse><endouttext />
1.1       www        60: </foil>
                     61: <foil location="$position[9]" value="$value[9]" name="radiofoil9">
1.7       albertel   62: <startouttext /><parse>&EXT('resource.0.text9')</parse><endouttext />
1.1       www        63: </foil>
                     64: <foil location="$position[10]" value="$value[10]" name="radiofoil10">
1.7       albertel   65: <startouttext /><parse>&EXT('resource.0.text10')</parse><endouttext />
1.1       www        66: </foil>
1.3       www        67: </foilgroup>
1.1       www        68: <hintgroup>
1.7       albertel   69: <startouttext /><parse>&EXT('resource.0.hinttext')</parse><endouttext />
1.1       www        70: </hintgroup>
                     71: </radiobuttonresponse>
1.6       www        72: </part>
1.1       www        73: 
1.6       www        74: <part id="option"> 
1.8     ! albertel   75: <startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext />
1.3       www        76: <optionresponse max="$max" id="optionsegment" randomize="$randomize">
1.1       www        77: <foilgroup options="$options">
                     78: <foil location="$position[1]" value="$value[1]" name="optionfoil1">
1.7       albertel   79: <startouttext /><parse>&EXT('resource.0.text1')</parse><endouttext />
1.1       www        80: </foil>
                     81: <foil location="$position[2]" value="$value[2]" name="optionfoil2">
1.7       albertel   82: <startouttext /><parse>&EXT('resource.0.text2')</parse><endouttext />
1.1       www        83: </foil>
                     84: <foil location="$position[3]" value="$value[3]" name="optionfoil3">
1.7       albertel   85: <startouttext /><parse>&EXT('resource.0.text3')</parse><endouttext />
1.1       www        86: </foil>
                     87: <foil location="$position[4]" value="$value[4]" name="optionfoil4">
1.7       albertel   88: <startouttext /><parse>&EXT('resource.0.text4')</parse><endouttext />
1.1       www        89: </foil>
                     90: <foil location="$position[5]" value="$value[5]" name="optionfoil5">
1.7       albertel   91: <startouttext /><parse>&EXT('resource.0.text5')</parse><endouttext />
1.1       www        92: </foil>
                     93: <foil location="$position[6]" value="$value[6]" name="optionfoil6">
1.7       albertel   94: <startouttext /><parse>&EXT('resource.0.text6')</parse><endouttext />
1.1       www        95: </foil>
                     96: <foil location="$position[7]" value="$value[7]" name="optionfoil7">
1.7       albertel   97: <startouttext /><parse>&EXT('resource.0.text7')</parse><endouttext />
1.1       www        98: </foil>
                     99: <foil location="$position[8]" value="$value[8]" name="optionfoil8">
1.7       albertel  100: <startouttext /><parse>&EXT('resource.0.text8')</parse><endouttext />
1.1       www       101: </foil>
                    102: <foil location="$position[9]" value="$value[9]" name="optionfoil9">
1.7       albertel  103: <startouttext /><parse>&EXT('resource.0.text9')</parse><endouttext />
1.1       www       104: </foil>
                    105: <foil location="$position[10]" value="$value[10]" name="optionfoil10">
1.7       albertel  106: <startouttext /><parse>&EXT('resource.0.text10')</parse><endouttext />
1.1       www       107: </foil>
1.3       www       108: </foilgroup>
1.1       www       109: <hintgroup>
1.7       albertel  110: <startouttext /><parse>&EXT('resource.0.hinttext')</parse><endouttext />
1.1       www       111: </hintgroup>
                    112: </optionresponse>
1.6       www       113: </part>
1.4       www       114: 
1.6       www       115: <part id="essay"> 
1.8     ! albertel  116: <startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext />
1.4       www       117: <essayresponse id="essaysegment">
                    118: <textfield></textfield>
                    119: </essayresponse>
1.6       www       120: </part>
1.4       www       121: 
1.6       www       122: <part id="string"> 
1.8     ! albertel  123: <startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext />
1.4       www       124: <stringresponse id="stringsegment" answer="$stringanswer" type="$stringtype">
                    125: <textline>
                    126: </textline>
                    127: <hintgroup>
1.7       albertel  128: <startouttext /><parse>&EXT('resource.0.hinttext')</parse><endouttext />
1.4       www       129: </hintgroup>
                    130: </stringresponse>
1.6       www       131: </part>
                    132: 
1.4       www       133: </block>
1.1       www       134: 
                    135: </problem>

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