Subversion Repositories wimsdev

Rev

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

Rev 13716 Rev 15071
Line 66... Line 66...
66
 
66
 
67
\text{size=50,50}
67
\text{size=50,50}
68
\integer{w=\size[1]+10}
68
\integer{w=\size[1]+10}
69
\css{<style>
69
\css{<style>
70
  .big_check{text-align: center}
70
  .big_check{text-align: center}
-
 
71
  .cross{color:black; font-size:20pt;}
71
  @supports (zoom:2){
72
  @supports (zoom:2){
72
    .big_check>input{zoom: 1.4;}
73
    .big_check>input{zoom: 1.4;}
73
  }
74
  }
74
  @supports not (zoom:2){
75
  @supports not (zoom:2){
75
    .big_check>input{transform: scale(1.4);}
76
    .big_check>input{transform: scale(1.4);}
Line 110... Line 111...
110
}
111
}
111
\text{C=wims(makelist x for x=1 to \N*\attribut_cnt)}
112
\text{C=wims(makelist x for x=1 to \N*\attribut_cnt)}
112
\text{C1=wims(makelist x for x=1 to \N*\attribut_cnt)}
113
\text{C1=wims(makelist x for x=1 to \N*\attribut_cnt)}
113
\text{nstep=r1}
114
\text{nstep=r1}
114
\nextstep{\nstep}
115
\nextstep{\nstep}
-
 
116
\text{tab=wims(makelist c for x=1 to \attribut_cnt+1)}
-
 
117
\text{tab=wims(replace internal , by | in |\tab|)}
-
 
118
\text{latexsrc=\begin{tabular}{\tab}\hline}
-
 
119
\for{lk=1 to \attribut_cnt}{
-
 
120
  \text{latexsrc=\latexsrc&\attribut[\lk]}
-
 
121
}
-
 
122
\text{latexsrc=\latexsrc \\\hline}
-
 
123
\text{latexsol=\latexsrc}
-
 
124
\for{jl=1 to \N}{
-
 
125
  \text{latexsrc=\latexsrc
-
 
126
  \data[\jl;1]}
-
 
127
  \text{latexsol=\latexsol
-
 
128
  \data[\jl;1]}
-
 
129
  \for{kl=1 to \attribut_cnt}{
-
 
130
    \integer{lkk=(\jl-1)*\attribut_cnt + \kl}
-
 
131
    \text{latexsrc=\latexsrc &}
-
 
132
    \text{latexsol=\latexsol &}
-
 
133
    \if{\lkk isitemof  \Data}{\text{latexsol=\latexsol \(\times\) }}
-
 
134
  }
-
 
135
  \text{latexsrc=\latexsrc \\\hline}
-
 
136
  \text{latexsol=\latexsol \\\hline}
-
 
137
}
-
 
138
\text{latexsrc=\latexsrc
-
 
139
\end{tabular}}
-
 
140
\text{latexsol=\latexsol
115
\text{col=1}
141
\end{tabular}}
-
 
142
 
-
 
143
\text{givegood=slib(oef/env givegood)}
-
 
144
\text{givegood=\givegood issametext ? 1}
116
 
145
 
117
\statement{
146
\statement{
118
  <div class="instruction">\instruction</div>
147
  <div class="instruction">\instruction</div>
119
  <table class="wimstable">
148
  <table class="wimstable">
-
 
149
    <thead>
120
    <tr>
150
    <tr>
121
      <th></th>
151
      <td></td>
122
      \for{k=1 to \attribut_cnt}{<th colspan="\col">\attribut[\k]</th>}
152
      \for{k=1 to \attribut_cnt}{<th scope="col">\attribut[\k]</th>}
123
    </tr>
153
    </tr>
-
 
154
    </thead>
-
 
155
    <tbody>
124
    \for{j=1 to \N}{
156
    \for{j=1 to \N}{
125
      <tr>
157
      <tr>
126
        <th>\data[\j;1]</th>
158
        <th scope="row">\data[\j;1]</th>
127
        \for{k=1 to \attribut_cnt}{
159
        \for{k=1 to \attribut_cnt}{
128
          \if{\step=1}{
160
          \if{\step=1}{
129
            <td class="big_check">\embed{r1,\C[(\attribut_cnt)*(\j-1)+\k]}</td>
161
            <td class="big_check">\embed{r1,\C[(\attribut_cnt)*(\j-1)+\k]}</td>
130
          }{
162
          }{
131
            <td>\C[(\attribut_cnt)*(\j-1)+\k]</td>
163
            <td class="big_check">\C[(\attribut_cnt)*(\j-1)+\k]</td>
132
          }
164
          }
133
        }
165
        }
134
      </tr>
166
      </tr>
135
    }
167
    }
-
 
168
    </tbody>
136
  </table>
169
  </table>
137
}
170
}
138
 
171
 
139
\answer{}{\Data;\C1}{type=checkbox}{option=split noanalyzeprint nonstop}
172
\answer{}{\Data;\C1}{type=checkbox}{option=split noanalyzeprint nonstop}
140
\text{nstep=}
173
\text{nstep=}
141
\text{C=}
174
\text{C=}
-
 
175
\if{\givegood=0}{
142
\text{col=2}
176
  \text{feedbackbon=}
-
 
177
  \text{feedbackfaux=}
-
 
178
}
-
 
179
{
-
 
180
  \text{feedbackbon=<span class="oef_indgood">\nonoui[1]</span>}
143
\text{croix=<span style="color:black; font-size:20pt;font-style:bold;">X</span></td>}
181
  \text{feedbackfaux=<span class="oef_indbad">\nonoui[2]</span>}
-
 
182
}
144
\text{nocroix=<span style="color:black; font-size:20pt;font-style:bold;">&nbsp;&nbsp;</span></td>}
183
\text{croix=<span class="cross">&#9745;</span>}
145
\text{croix=X}
184
\text{nocroix=<span class="cross">&#9744;</span>}
146
\text{nocroix=}
185
\text{lignef=}
147
\for{u=1 to \N}{
186
\for{u=1 to \N}{
148
  \for{v=2 to \attribut_cnt+1}{
187
  \for{v=2 to \attribut_cnt+1}{
149
    \integer{uu=(\u-1)*\attribut_cnt + \v -1}
188
    \integer{uu=(\u-1)*\attribut_cnt + \v -1}
150
    \text{C=\uu isitemof \reply1 and \uu isitemof \Data ? wims(append item  \croix <td>\nonoui[1]  to \C)}
189
    \text{C=\uu isitemof \reply1 and \uu isitemof \Data ? wims(append item  \croix \feedbackbon  to \C)}
151
    \text{C=\uu isitemof \reply1 and \uu notitemof \Data ? wims(append item \croix <td>\nonoui[2]  to \C)}
190
    \if{\uu isitemof \reply1 and \uu notitemof \Data}{
-
 
191
      \text{C= wims(append item \croix \feedbackfaux  to \C)}
-
 
192
      \text{lignef=wims(append item \u to \lignef)}
-
 
193
      }
152
    \text{C=\uu notitemof \reply1 and \uu isitemof \Data ? wims(append item \nocroix <td>\nonoui[2] to \C)}
194
      {\if{\uu notitemof \reply1 and \uu isitemof \Data}{
-
 
195
         \text{C= wims(append item \croix \feedbackfaux  to \C)}
-
 
196
         \text{lignef=wims(append item \u to \lignef)}
-
 
197
         }
-
 
198
      }
153
    \text{C=\uu notitemof \reply1 and \uu notitemof \Data ? wims(append item \nocroix <td>\nonoui[1] to \C)}
199
    \text{C=\uu notitemof \reply1 and \uu notitemof \Data ? wims(append item \nocroix \feedbackbon to \C)}
154
  }
200
  }
155
}
201
}
156
 
202
 
157
\feedback{1=1}{\nonoui[1] : bonne réponse, \nonoui[2] : mauvaise réponse
203
\feedback{\givegood>0}{\nonoui[1] : votre réponse est correcte, \nonoui[2] : votre réponse n'est pas correcte.
-
 
204
}
-
 
205
\integer{nblignef=items(\lignef)}
-
 
206
\feedback{\givegood=0 and \nblignef>0}{<div class="feedback oef_indbad">\if{\nblignef=1}{
-
 
207
La ligne \lignef du tableau n'est pas remplie}{Les lignes \lignef[1..-2] et \lignef[-1] du tableau ne sont pas remplies} correctement.</div>}
-
 
208
 
158
 
209
 
-
 
210
\latex{
-
 
211
\begin{statement}
-
 
212
\instruction
-
 
213
\newline
-
 
214
\latexsrc
-
 
215
\end{statement}
-
 
216
\begin{solution}\
-
 
217
\begin{center}
-
 
218
\latexsol
-
 
219
\end{center}
-
 
220
\end{solution}
159
}
221
}