Rev 13476 | Rev 13716 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13476 | Rev 13489 | ||
---|---|---|---|
Line 70... | Line 70... | ||
70 | maximum 40 cases à remplir |
70 | maximum 40 cases à remplir |
71 | 71 | ||
72 | \integer{w=\size[1]+10} |
72 | \integer{w=\size[1]+10} |
73 | 73 | ||
74 | \css{<style type="text/css"> |
74 | \css{<style type="text/css"> |
75 | .question { |
75 | .question {margin: 2% 2%;padding: 1%;} |
76 | table.tableau {border:solid 1px;margin-left:auto;margin-right:auto; |
- | |
77 | border-collapse:collapse;} |
- | |
78 |
|
76 | .wimstable td, th {text-align:center;min-width:50px;} |
79 | ol li {list-style: upper-alpha; } |
- | |
80 | table.tableau th { background-color:#CCCFFF;} |
- | |
81 |
|
77 | </style>} |
- | 78 | ||
82 | \if{\file notsametext}{ |
79 | \if{\file notsametext}{ |
83 | \text{file=randitem(\file)} |
80 | \text{file=randitem(\file)} |
84 | \text{attribut=wims(record 0 of \file)} |
81 | \text{attribut=wims(record 0 of \file)} |
85 | \integer{datacnt=wims(recordcnt \file)} |
82 | \integer{datacnt=wims(recordcnt \file)} |
86 | \integer{N=min(\N,\datacnt)} |
83 | \integer{N=min(\N,\datacnt)} |
Line 98... | Line 95... | ||
98 | \integer{N=min(\N,\objet_cnt)} |
95 | \integer{N=min(\N,\objet_cnt)} |
99 | \text{bat=shuffle(\objet_cnt)} |
96 | \text{bat=shuffle(\objet_cnt)} |
100 | \text{bat=\bat[1..\N]} |
97 | \text{bat=\bat[1..\N]} |
101 | \matrix{data=\data} |
98 | \matrix{data=\data} |
102 | \matrix{data=\data[\bat;]} |
99 | \matrix{data=\data[\bat;]} |
103 | } |
100 | } |
104 | \integer{attribut_cnt=items(\attribut)} |
101 | \integer{attribut_cnt=items(\attribut)} |
105 | \integer{ch_cnt=items(\nonoui)} |
102 | \integer{ch_cnt=items(\nonoui)} |
106 | \text{Data=} |
103 | \text{Data=} |
107 | \text{STEP=} |
104 | \text{STEP=} |
108 | \for{u=1 to \N}{ |
105 | \for{u=1 to \N}{ |
Line 115... | Line 112... | ||
115 | } |
112 | } |
116 | \matrix{STEP=\STEP} |
113 | \matrix{STEP=\STEP} |
117 | \text{STEP1=wims(replace internal ; by , in \STEP)} |
114 | \text{STEP1=wims(replace internal ; by , in \STEP)} |
118 | \text{STEP1=wims(nonempty items \STEP1)} |
115 | \text{STEP1=wims(nonempty items \STEP1)} |
119 | \steps{\STEP1} |
116 | \steps{\STEP1} |
120 | \statement{<div class="question">\instruction |
- | |
121 | 117 | ||
- | 118 | \statement{ |
|
- | 119 | <div class="instruction">\instruction</div> |
|
122 |
|
120 | <table class="wimstable"> |
- | 121 | <tr> |
|
- | 122 | <th></th> |
|
123 | \for{k=1 to \attribut_cnt}{<th>\attribut[\k]</th>} |
123 | \for{k=1 to \attribut_cnt}{<th>\attribut[\k]</th>} |
124 | </tr> |
124 | </tr> |
125 | \for{j=1 to \N}{ |
125 | \for{j=1 to \N}{ |
- | 126 | <tr> |
|
126 |
|
127 | <th>\data[\j;1]</th> |
127 | \for{k=1 to \attribut_cnt}{ |
128 | \for{k=1 to \attribut_cnt}{ |
128 | <td>\embed{\STEP[\j;\k], \size[1] x \size[2]}</td> |
129 | <td>\embed{\STEP[\j;\k], \size[1] x \size[2]}</td> |
- | 130 | } |
|
- | 131 | </tr> |
|
129 | } |
132 | } |
130 | </ |
133 | </table> |
131 | } |
134 | } |
132 | </table> |
- | |
133 | 135 | ||
134 | </div> |
- | |
135 | } |
- | |
136 | \answer{}{\Data[1]}{type=clickfill} |
136 | \answer{}{\Data[1]}{type=clickfill} |
137 | \answer{}{\Data[2]}{type=clickfill} |
137 | \answer{}{\Data[2]}{type=clickfill} |
138 | \answer{}{\Data[3]}{type=clickfill} |
138 | \answer{}{\Data[3]}{type=clickfill} |
139 | \answer{}{\Data[4]}{type=clickfill} |
139 | \answer{}{\Data[4]}{type=clickfill} |
140 | \answer{}{\Data[5]}{type=clickfill} |
140 | \answer{}{\Data[5]}{type=clickfill} |