Subversion Repositories wimsdev

Rev

Rev 13820 | Rev 13880 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13820 Rev 13876
Line 84... Line 84...
84
    !ifval $replycnt=0 and $choicecnt=1
84
    !ifval $replycnt=0 and $choicecnt=1
85
      rep=!item 1 to 6 of $choicebad1
85
      rep=!item 1 to 6 of $choicebad1
86
      rep=!append item $choicegood1 to $rep
86
      rep=!append item $choicegood1 to $rep
87
      rep=!listuniq $rep
87
      rep=!listuniq $rep
88
      rep=!sort items $rep
88
      rep=!sort items $rep
89
      rep=!replace , by </li><li> in <ul style="list-style-type: square;"><li>$rep</li></ul>
89
      rep=!replace , by </li><li> in <ul style="list-style-type:square;"><li>$rep</li></ul>
90
      chce_$i=$rep
90
      chce_$i=$rep
91
      test_print=1
91
      test_print=1
92
    !else
92
    !else
93
      chce_$i=
93
      chce_$i=
94
    !endif
94
    !endif
Line 124... Line 124...
124
              rg_tmp=!listuniq $rg1_,$rg2_
124
              rg_tmp=!listuniq $rg1_,$rg2_
125
            !endif
125
            !endif
126
            Rg$i=!append line $rg_tmp to $(Rg$i)
126
            Rg$i=!append line $rg_tmp to $(Rg$i)
127
            !goto endRg
127
            !goto endRg
128
          !endif
128
          !endif
129
 
-
 
130
          !if $(replytype$k) iswordof coord
129
          !if $(replytype$k) iswordof coord
131
            rg_=<img src="$(rg_[1;])" />
130
            rg_=<img src="$(rg_[1;])" />
132
            Rg$i=!append line $rg_ to $(Rg$i)
131
            Rg$i=!append line $rg_ to $(Rg$i)
133
            !goto endRg
132
            !goto endRg
134
          !endif
133
          !endif
135
 
-
 
136
          !if $(replytype$k) iswordof atext wlist nocase case
134
          !if $(replytype$k) iswordof atext wlist nocase case
137
            rg_=!translate internal ;| to $\
135
            rg_=!translate internal ;| to $\
138
\
136
\
139
$ in $rg_
137
$ in $rg_
140
            rg_=!line 1 of $rg_
138
            rg_=!line 1 of $rg_
-
 
139
            !goto endRg
141
          !endif
140
          !endif
142
          !if $(replytype$k) iswordof function default equation sigunits numexp or $(replystyle$k) iswordof numeric
141
          !if $(replytype$k) iswordof function default equation sigunits numexp or $(replystyle$k) iswordof numeric
143
            rg_=!item 1 of $rg_
142
            rg_=!item 1 of $rg_
144
            Rg$i=!append line $ $ to $(Rg$i)
143
            Rg$i=!append line $ $ to $(Rg$i)
145
            !goto endRg
144
            !goto endRg
146
          !endif
145
          !endif
147
 
-
 
148
          !if $(replytype$k) iswordof imgcomp textcomp compose reorder
146
          !if $(replytype$k) iswordof imgcomp textcomp compose reorder
149
            rg_=!translate internal | to $\
147
            rg_=!translate internal | to $\
150
$ in $rg_
148
$ in $rg_
151
            rg_=!rows2lines $rg_
149
            rg_=!rows2lines $rg_
152
            rg_tmp=!lines2items $rg_
150
            rg_tmp=!lines2items $rg_
Line 160... Line 158...
160
            !else
158
            !else
161
              rg_cnt_=!itemcnt $rg_tmp
159
              rg_cnt_=!itemcnt $rg_tmp
162
              rg__=!shuffle $rg_cnt_
160
              rg__=!shuffle $rg_cnt_
163
              rg_tmp=!listuniq $(rg_tmp[$rg__])
161
              rg_tmp=!listuniq $(rg_tmp[$rg__])
164
              Rg$i=!append line $rg_tmp to $(Rg$i)
162
              Rg$i=!append line $rg_tmp to $(Rg$i)
165
              !goto endRg
-
 
166
            !endif
163
            !endif
167
            rg_=!translate , to $ $ in $rg_
164
            rg_=!translate , to $ $ in $rg_
-
 
165
            !goto endRg
168
          !endif
166
          !endif
169
 
-
 
170
          !if $(replytype$k) iswordof correspond
167
          !if $(replytype$k) iswordof correspond
171
            !set rg__=!replace internal ; by $\
168
            !set rg__=!rows2lines $rg_
172
$ in $rg_
-
 
173
            !distribute lines $rg__ into rg1__,rg2__
169
            !distribute lines $rg__ into rg1__,rg2__
174
            !set rg__cnt=!itemcnt $rg1__
170
            !set rg__cnt=!itemcnt $rg1__
175
            !set rg_2_=!shuffle $rg__cnt
171
            !set rg_2_=!shuffle $rg__cnt
176
            !set rg__=<table class="wimsborder"><tr>
172
            !set rg__=<table class="wimsborder"><tr>
177
            !set rgg_=<table class="wimsborder"><tr>
173
            !set rgg_=<table class="wimsborder"><tr>
178
            !for tmp=1 to $rg__cnt
174
            !for tmp=1 to $rg__cnt
179
              !set rg__=$rg__<td>$(rg1__[$tmp])</td>
175
              !set rg__=$rg__<td>$(rg1__[$tmp])</td>
180
              !set rgg_=$rgg_<td>$(rg_[1;$tmp])</td>
176
              !set rgg_=$rgg_<td>$(rg_[1;$tmp])</td>
181
            !next
177
            !next
182
            !set rg__=$rg__</tr><tr>
178
            !set rg__=$rg__</tr><tr>
183
            !set rgg_=$rgg_</tr><tr>
179
            !set rgg_=$rgg_</tr><tr>
184
            !for tmp =1 to $rg__cnt
180
            !for tmp =1 to $rg__cnt
185
              !set rg__=$rg__<td>$(rg2__[$(rg_2_[$tmp])])</td>
181
              !set rg__=$rg__<td>$(rg2__[$(rg_2_[$tmp])])</td>
186
              !set rgg_=$rgg_<td>$(rg2__[$tmp])</td>
182
              !set rgg_=$rgg_<td>$(rg2__[$tmp])</td>
Line 188... Line 184...
188
            !set rg__=$rg__</tr></table>
184
            !set rg__=$rg__</tr></table>
189
            !set rg_=$rgg_</tr></table>
185
            !set rg_=$rgg_</tr></table>
190
            Rg$i=!append line $(rg__) to $(Rg$i)
186
            Rg$i=!append line $(rg__) to $(Rg$i)
191
            !goto endRg
187
            !goto endRg
192
          !endif
188
          !endif
193
 
-
 
194
          !if $(replytype$k) iswordof draw
189
          !if $(replytype$k) iswordof draw
195
            rg__=$(rg_[2;])
190
            rg__=$(rg_[2;])
196
            tmp=!item 1 of $rg__
191
            tmp=!item 1 of $rg__
197
            !if $tmp=arrows
192
            !if $tmp=arrows
198
              !default arrow_head=10
193
              !default arrow_head=10
Line 211... Line 206...
211
            !readproc oef/canvasdraw.phtml $rg_$	$ $rg__
206
            !readproc oef/canvasdraw.phtml $rg_$	$ $rg__
212
            rg_=!replace internal $\
207
            rg_=!replace internal $\
213
$ by in $canvasdraw_out
208
$ by in $canvasdraw_out
214
            !goto endRg
209
            !goto endRg
215
          !endif
210
          !endif
216
 
-
 
217
          Rg$i=!append line $ $ to $(Rg$i)
211
          Rg$i=!append line $ $ to $(Rg$i)
218
:endRg
212
:endRg
219
          !if $conditioncnt<1
213
          !if $conditioncnt<1
220
            !if noanalyzeprint notwordof $(replyoption$k)
214
            !if noanalyzeprint notwordof $(replyoption$k)
221
              !if $(replyname$k)$rg_ !=
215
              !if $(replyname$k)$rg_ !=
Line 235... Line 229...
235
          Replytype$i=!append item $(replytype$k) to $(Replytype$i)
229
          Replytype$i=!append item $(replytype$k) to $(Replytype$i)
236
          Replystyle$i=!append item $(replystyle$k) to $(Replystyle$i)
230
          Replystyle$i=!append item $(replystyle$k) to $(Replystyle$i)
237
        !endif r$k isitemof $thisstep
231
        !endif r$k isitemof $thisstep
238
        !reset replyoption$k
232
        !reset replyoption$k
239
      !next k
233
      !next k
240
    !endif intro_check
234
    !endif
241
    rep=!imgrename $rep
235
    rep=!imgrename $rep
242
    ans_$i=!trim $rep
236
    ans_$i=!trim $rep
243
    !if $(ans_$i)!=
237
    !if $(ans_$i)!=
244
      test_print=1
238
      test_print=1
245
    !endif
239
    !endif
246
  !endif html
240
  !endif
247
  !reset intro_check
241
  !reset intro_check
248
  !if $latex_exists>=0
242
  !if $latex_exists>=0
249
    !readproc oef/latex.proc exo
243
    !readproc oef/latex.proc exo
250
  !endif
244
  !endif
251
  Rg$i=!imgrename $(Rg$i)
245
  Rg$i=!imgrename $(Rg$i)
252
!next i
246
!next
253
!if $latex_exists>=1
247
!if $latex_exists>=1
254
  !readproc oef/latex.proc end
248
  !readproc oef/latex.proc end
255
!endif
249
!endif