Rev 18167 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11105 | bpr | 1 | !set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf |
12558 | bpr | 2 | !distribute words $tmp into tmp_w,tmp_s,tmp_ss |
1587 | bpr | 3 | !read adm/title.phtml 1\ |
1607 | bpr | 4 | $classname\ |
10277 | bpr | 5 | $name_workdetail $name_studentloc |
23 | reyssat | 6 | |
10277 | bpr | 7 | <div class="center"><span class="wims_emph"> |
14132 | obado | 8 | !if $wims_user=supervisor |
9 | !reset css_connected |
||
10 | !if $getuser isitemof $wims_connectedlogin |
||
11 | !set css_connected=class="wims_connected" |
||
12 | !set wims_ref_title=connected |
||
13 | !endif |
||
14 | <span $css_connected> |
||
15 | !href module=adm/class/usermanage/&job=userprop&getuser=$getuser $name_studentloc |
||
16 | </span> |
||
9602 | bpr | 17 | !endif |
17180 | bpr | 18 | </span><br><span class="small">$wims_name_Login: <span class="tt">$getuser</span> |
14132 | obado | 19 | !if $user_external_auth!=$empty |
20 | (<span class="tt">$user_external_auth</span>) |
||
21 | !endif |
||
22 | !if $user_email!=$empty |
||
17180 | bpr | 23 | <br> |
14132 | obado | 24 | $wims_name_email: <a href="mailto:$user_email">$user_email</a> |
25 | !endif |
||
26 | </span></div> |
||
27 | |||
13220 | bpr | 28 | !let testphoto=!filexists wimshome/sessions/$wims_session/getfile/photoboard/$getuser |
29 | !if $testphoto=yes |
||
30 | <div id="userlogo" class="float_right"> |
||
17180 | bpr | 31 | <img src="$wims_ref_name?session=$wims_session&cmd=getfile&special_parm=photoboard/$getuser" style="position:absolute;top:50px;right:5%;" alt="$name_student2"> |
13220 | bpr | 32 | </div> |
33 | !reset testphoto |
||
34 | !else |
||
35 | !if $user_photourl!= |
||
17180 | bpr | 36 | <img src="$user_photourl" style="width:100px;position:absolute;top:50px;right:5%;" alt="$name_student2"> |
13220 | bpr | 37 | !endif |
12301 | bpr | 38 | !endif |
23 | reyssat | 39 | !if $eremain>0 |
17180 | bpr | 40 | <br class="spacer"> |
12712 | bpr | 41 | $name_activesession: |
42 | !href cmd=reply&job=userexam&getuser=$getuser $esession |
||
43 | !!!else |
||
44 | !! ----- transfere dans usermanage (il s'agit d'un lien de transfert de score pour deplacer des eleves d'une classe a l'autre (dans un portail ou un groupement) |
||
45 | !! !if $wims_user=supervisor and $wims_supertype iswordof 2 4 |
||
46 | !! !readproc adm/gateway/transfer $getuser test |
||
47 | !! !if $transfer_test>0 |
||
48 | !! !href module=adm/class/usermanage&job=transfer&getuser=$getuser $name_transfer |
||
49 | !! !endif |
||
50 | !! !endif |
||
23 | reyssat | 51 | !endif |
8326 | guerimand | 52 | |
17180 | bpr | 53 | <br class="spacer"> |
23 | reyssat | 54 | |
55 | !if $manual>0 and $gcnt>0 and $teacher!=$empty |
||
17851 | bpr | 56 | !if $class_hideaverage!=yes |
57 | $table_header |
||
58 | <caption><span class="small"> |
||
59 | $name_minmax: |
||
60 | $min_glob/$mean_glob/$max_glob</span></caption> |
||
61 | <thead> |
||
62 | $table_hdtr<th>$wims_name_name</th><th>$(wims_name_thsheet[6])</th><th>$(wims_name_thsheet[9])</th></tr> |
||
63 | </thead><tbody> |
||
64 | $table_tr<th>$name_manualscore</th> |
||
65 | <td>$manual%</td> |
||
66 | !read adm/class/colors $[ceil(10*$mav/$scoremax)] |
||
67 | <td style=$style_note>$mav</td></tr> |
||
68 | $table_tr<th>$name_autoscore</th> |
||
69 | <td>$[100-$manual]%</td> |
||
70 | !read adm/class/colors $[ceil(10*$per/$scoremax)] |
||
71 | <td style=$style_note>$per</td></tr> |
||
72 | $table_tr<th>$name_globalaverage / $scoremax</th> |
||
73 | <td>100%</td> |
||
74 | !read adm/class/colors $[ceil(10*$globalav/$scoremax)] |
||
75 | <td style=$style_note>$globalav</td></tr> |
||
76 | </tbody> |
||
77 | $table_end |
||
78 | !endif |
||
14132 | obado | 79 | |
12716 | bpr | 80 | !set table_id=TABLE_manual |
81 | !set table_class=sortable |
||
12301 | bpr | 82 | $table_header |
12716 | bpr | 83 | <thead> |
14132 | obado | 84 | <tr><th colspan="3">$name_manualscore |
85 | !if $wims_user=supervisor |
||
17180 | bpr | 86 | <br> |
14132 | obado | 87 | !href lang=$lang&module=adm/class/grades&method=user&un=$getuser $wims_name_change |
88 | !endif |
||
89 | </th></tr> |
||
90 | $table_hdtr<th>$(wims_name_thsheet[2])</th><th>$(wims_name_thsheet[4])</th><th>$(wims_name_thsheet[9])</th></tr> |
||
12716 | bpr | 91 | </thead> |
12301 | bpr | 92 | !set v_=0 |
12716 | bpr | 93 | <tbody> |
12301 | bpr | 94 | !for i=1 to $gcnt |
95 | $table_tr<td>$(titles[2+$i])</td><td>$(w$i)</td> |
||
96 | !read adm/class/colors $[10*ceil($(g_$i))/$scoremax] |
||
97 | <td style=$style_note>$(g_$i)</td></tr> |
||
98 | !next i |
||
12716 | bpr | 99 | </tbody> |
100 | <tfoot> |
||
14132 | obado | 101 | $table_hdtr<th colspan="2">$name_Average</th> |
102 | !read adm/class/colors $[ceil(10*$mav/$scoremax)] |
||
103 | <td style=$style_note>$mav</td></tr> |
||
12716 | bpr | 104 | </tfood> |
12301 | bpr | 105 | $table_end |
12716 | bpr | 106 | !read tablesort.phtml |
23 | reyssat | 107 | !else |
17780 | czzmrn | 108 | !if $class_hideaverage!=yes |
109 | <div class="wimscenter"> |
||
110 | $name_globalaverage: <b>$per</b> / $scoremax. |
||
111 | !if $min_glob<$scoremax |
||
112 | <br><span class="small">$name_minmax: |
||
113 | $min_glob/$mean_glob/$max_glob</span> |
||
114 | !endif |
||
115 | </div> |
||
12301 | bpr | 116 | !endif |
23 | reyssat | 117 | !endif |
118 | |||
1317 | reyssat | 119 | !!readdef wimshome/log/classes/$wims_class/.def |
120 | !!default class_topscores=0 |
||
16807 | guerimand | 121 | !if $class_topscores>0 and $class_hideaverage!=yes |
3087 | bpr | 122 | |
12301 | bpr | 123 | $table_header$table_hdtr<th colspan="2">$name_topten</td></tr> |
124 | !for i=1 to $class_topscores |
||
125 | !set L=!line $i of $TT |
||
126 | !if $class_anonymtopscores=yes |
||
127 | !set name=$i |
||
128 | !else |
||
129 | !set name=!item 1 of $L |
||
130 | !set firstname=!item 2 of $L |
||
131 | !set name=$name $firstname |
||
132 | !endif |
||
133 | !set avg=!item 4 of $L |
||
14132 | obado | 134 | $table_tr |
135 | <td class="small" style="text-align:right;font-weight:bold"> |
||
136 | $name </td> |
||
137 | <td style="text-align:left" class="small"> $avg</td> |
||
138 | </tr> |
||
12301 | bpr | 139 | !next i |
12716 | bpr | 140 | $table_end |
3087 | bpr | 141 | |
1317 | reyssat | 142 | !endif |
143 | |||
12480 | guerimand | 144 | !! ---------------- display table for each exam session |
23 | reyssat | 145 | !if $eactivecnt>0 |
12716 | bpr | 146 | !set table_id=TABLE_exam |
14132 | obado | 147 | !set table_class=sortable |
12716 | bpr | 148 | $table_header |
149 | <thead> |
||
15970 | guerimand | 150 | <caption>$name_examnote</caption> |
12301 | bpr | 151 | $table_hdtr |
14132 | obado | 152 | <th scope="col">$(wims_name_thsheet[1])</th> |
153 | <th scope="col">$(wims_name_thsheet[2])</th> |
||
154 | <th scope="col">$(wims_name_thsheet[9])/$scoremax</th> |
||
12301 | bpr | 155 | </tr> |
12716 | bpr | 156 | </thead> |
157 | <tbody> |
||
12301 | bpr | 158 | !for i in $activexams |
159 | !set l=!record $i of wimshome/log/classes/$wims_class/exams/.exams |
||
160 | !set t=!line 4 of $l |
||
12791 | bpr | 161 | !set st=!line 1 of $l |
162 | !set ew=!line $i of $examweights |
||
16006 | guerimand | 163 | !! ------test if sheet is hidden for this user |
164 | !reset hidden_sheet |
||
165 | !if $wims_user!=supervisor |
||
166 | !set h_=!line 8 of $l |
||
167 | !if $h_!=$empty |
||
168 | !readproc adm/vfilter/ishiddensheet.proc $h_ |
||
169 | !endif |
||
170 | !endif |
||
171 | !! -----end test |
||
172 | !if ($st<=2 or $ew>0) and $hidden_sheet!=1 |
||
14132 | obado | 173 | $table_tr |
174 | <td>$i</td> |
||
12791 | bpr | 175 | <td>$t</td> |
176 | !if $[rint(10*$(es_$i)*$scoremax)/100]>0 |
||
177 | !read adm/class/colors $[ceil($(es_$i))] |
||
178 | <td style=$style_note>$[rint(10*$(es_$i)*$scoremax)/100]</td> |
||
179 | !else |
||
180 | <td>--</td> |
||
181 | !endif |
||
14132 | obado | 182 | </tr> |
12301 | bpr | 183 | !endif |
184 | !next i |
||
12716 | bpr | 185 | </tbody> |
12301 | bpr | 186 | $table_end |
12716 | bpr | 187 | !read tablesort.phtml |
12301 | bpr | 188 | !endif |
14132 | obado | 189 | |
17780 | czzmrn | 190 | !! ------------------ display table for freeworks |
191 | !if $allowed_freework=yes |
||
17816 | bpr | 192 | |
17780 | czzmrn | 193 | !! In the student score page we list only freeworks for which the |
194 | !! student has been doing some work (for some types this can simply |
||
195 | !! mean opening the freework). Visibility (of student work and of |
||
196 | !! score) is set according to freework status. |
||
197 | !! |
||
198 | !! If scoring is available it is advisable to disable manual scoring |
||
17816 | bpr | 199 | !! interface, otherwise students can see scores befeore due date. |
17780 | czzmrn | 200 | !! |
201 | !if $nbfreeworks > 0 |
||
202 | !set table_id=TABLE_freew |
||
203 | !set table_class=sortable |
||
204 | !set name_fwcols=$(wims_name_thsheet[1]),$(wims_name_thsheet[2]),$name_handedin,$name_deadline,$(wims_name_thsheet[9]) |
||
205 | !if $wims_user=supervisor |
||
206 | !set name_fwcols=$name_fwcols,$name_codownload,$name_fwscoring,$name_putiworkco |
||
207 | !endif |
||
208 | $table_header |
||
209 | <thead> |
||
210 | <caption>$wims_name_Freeworks</caption> |
||
211 | $table_hdtr |
||
17851 | bpr | 212 | !for l_ in $name_fwcols |
213 | <th scope="col">$l_</th> |
||
214 | !next |
||
17780 | czzmrn | 215 | </tr> |
216 | </thead> |
||
217 | <tbody> |
||
218 | !for fwi_ in $activefreew |
||
219 | !reset loadwork codownload seealltime putiworkco scoring |
||
220 | !readproc adm/freework/mkfwglobvar.proc $fwi_ |
||
17885 | bpr | 221 | !! l'output di questo è in "output" (!!!!) |
17780 | czzmrn | 222 | !readproc adm/freework/finduserwork.proc $fwi_,$getuser |
223 | $table_tr |
||
17851 | bpr | 224 | <td>$fwi_</td> |
225 | <td>$title</td> |
||
226 | !if ($wims_user=supervisor and $loadwork>0) or $wims_user!=supervisor |
||
17780 | czzmrn | 227 | <td> |
17851 | bpr | 228 | !if $fwtype=3 |
17780 | czzmrn | 229 | !href module=adm/class/freework&+job=viewuser3&+freework=$fwi_&+userv=$getuser $output |
230 | !else |
||
231 | !href module=adm/class/freework&+job=viewuser&+freework=$fwi_ $output |
||
17851 | bpr | 232 | !endif |
17780 | czzmrn | 233 | </td> |
17851 | bpr | 234 | !else |
235 | <td style="background-image:url(gifs/bg/crossgrey.gif)">$output</td> |
||
236 | !endif |
||
237 | <td>$deadline $timedeadline</td> |
||
17780 | czzmrn | 238 | |
239 | !! for visibility of scores, cfr. freework/student3.phtml |
||
17851 | bpr | 240 | !if $scoring>0 and ($codownload>0 or $wims_user=supervisor or $activetest>=2) |
241 | !read adm/class/colors $[10*ceil($(g_$scoring))/$scoremax] |
||
242 | <td style=$style_note>$(g_$scoring)</td> |
||
243 | !else |
||
244 | <td style="background-image:url(gifs/bg/crossgrey.gif)"> </td> |
||
245 | !endif |
||
246 | !if $wims_user=supervisor |
||
247 | <td> |
||
248 | !if $codownload=1 |
||
249 | $wims_name_yes |
||
250 | !else |
||
251 | $wims_name_no |
||
17780 | czzmrn | 252 | !endif |
17851 | bpr | 253 | !set fwseetest=!defof freework_seeco_$getuser in wimshome/log/classes/$wims_class/freeworksdata/$fwi_/.seeco |
254 | !if $fwseetest!=$empty |
||
255 | ✅ |
||
256 | !reset fwseetest |
||
257 | !endif |
||
258 | </td><td> |
||
259 | !if $scoring=0 or $scoring=no |
||
260 | $wims_name_no |
||
261 | !else |
||
262 | $(titles[2+$scoring]) |
||
263 | !endif |
||
264 | </td><td> |
||
265 | !if $putiworkco=1 |
||
266 | $wims_name_yes |
||
267 | !else |
||
268 | $wims_name_no |
||
269 | !endif |
||
270 | </td> |
||
271 | !endif |
||
17780 | czzmrn | 272 | </tr> |
273 | !next fwi_ |
||
274 | </tbody> |
||
275 | $table_end |
||
276 | !read tablesort.phtml |
||
277 | !endif |
||
278 | !endif |
||
279 | |||
12480 | guerimand | 280 | !! ------------------ display table for each sheet |
12550 | bpr | 281 | !set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf |
12554 | bpr | 282 | !distribute words $tmp into tmp_w,tmp_s,tmp_ss |
12301 | bpr | 283 | !for i=1 to $activecnt |
15763 | guerimand | 284 | !set exonumber=0 |
12301 | bpr | 285 | !set l_=!line $i of $activesheets |
15763 | guerimand | 286 | !distribute items $l_ into n_,e_,indtechvar |
12301 | bpr | 287 | !set L_=!line $n_ of $defaultformula |
288 | !reset A_ B_ C_ |
||
289 | !distribute word $L_ into A_,B_,C_ |
||
12550 | bpr | 290 | !default A_=$tmp_w |
291 | !default B_=$tmp_s |
||
13045 | bpr | 292 | !default C_=$tmp_ss |
15763 | guerimand | 293 | !set t_=!item 4 to -1 of $l_ |
12301 | bpr | 294 | !set t_=!char 1 to $title_limit of $t_ |
295 | !set v_=!getscorerequire sheet=$n_ user=$getuser |
||
296 | !set w_=!wordcnt $v_ |
||
297 | !set S_=0 |
||
298 | !for k=1 to $w_ |
||
299 | !set a_=!word $k of $v_ |
||
300 | !set S_=$[$S_+$a_] |
||
301 | !next k |
||
12791 | bpr | 302 | !if $S_<=0 |
303 | !goto next |
||
304 | !endif |
||
12301 | bpr | 305 | !set sw=!line $[$n_+1] of $shweights |
306 | !set q=!word 2 of $sw |
||
307 | !set sw=!word 3 of $sw |
||
308 | !bound sw between integer 0 and 2 default $tmp_ss |
||
309 | !bound q between integer 0 and 6 default $tmp_s |
||
310 | !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def |
||
15937 | guerimand | 311 | !if $indtechvar!=$empty |
15963 | guerimand | 312 | !let pos_=!positionof item $indtechvar in $tv_listcode |
313 | !let nametechvar=!item $pos_ of $tv_listname |
||
314 | !set pos=!positionof item $nametechvar in $(user_vars[;1]) |
||
315 | !set indtechvarvalue=!item $pos of $(user_vars[;2]) |
||
316 | !set listvalue=!record $n_ of wimshome/log/classes/$wims_class/sheets/.vars |
||
317 | !set listvalue=!word 3 to -1 of $listvalue |
||
318 | !set listvalue=!words2items $listvalue |
||
319 | !bound indtechvarvalue within $empty,$listvalue default $empty |
||
15937 | guerimand | 320 | !if $indtechvarvalue=$empty |
15949 | guerimand | 321 | !reset tmp |
15937 | guerimand | 322 | !else |
15963 | guerimand | 323 | !set tmp= - $nametechvar $indtechvarvalue |
15937 | guerimand | 324 | !endif |
325 | !else |
||
17851 | bpr | 326 | !reset tmp |
15937 | guerimand | 327 | !endif |
12301 | bpr | 328 | !if $seq_open!=yes |
15949 | guerimand | 329 | !set hat=$name_Sheet $n_$(tmp) : $t_ |
1895 | bpr | 330 | !else |
15963 | guerimand | 331 | !set hat=$wims_name_sequence $(t_[1])$tmp : $(t_[2..-1]) |
1895 | bpr | 332 | !endif |
14132 | obado | 333 | |
17180 | bpr | 334 | <br class="spacer"> |
7901 | bpr | 335 | !if $wims_user=supervisor |
336 | !set nb_indic=5 |
||
337 | !else |
||
11108 | bpr | 338 | !set nb_indic=3 |
7901 | bpr | 339 | !endif |
7664 | bpr | 340 | !set P_=!line $n_ of $percents |
12301 | bpr | 341 | !distribute words $P_ into p1,p2,p3,p4 |
7664 | bpr | 342 | !if $p2!=$empty |
12301 | bpr | 343 | !distribute item $[$p1/100],$[$p2/10],$[$p3/100],$[$p4/100] into x0_,y_,x1_,x2_ |
344 | !set ff_$n_=!mathsubst Q=$y_ in $(f_$n_) |
||
345 | !for sev=0 to 2 |
||
346 | !set ff_$n_=!mathsubst I$sev=$(x$(sev)_) in $(ff_$n_) |
||
347 | !next |
||
16198 | bpr | 348 | !! home/sequence.phtml |
349 | !! adm/class/userscore/csv/download.proc |
||
350 | !! themes/_widgets/usersheet.phtml |
||
351 | !set p_=$[rint(100*$scoremax*$(ff_$n_))/100] |
||
7664 | bpr | 352 | !endif |
12480 | guerimand | 353 | !set table_id=TABLE_sheet$i |
354 | !set table_class=sortable |
||
18145 | bpr | 355 | !set tmp_sheetstatus=!getsheetstatus sheet=$n_ user=$getuser |
18167 | bpr | 356 | !set tmp_sheetstatusgen=!getsheetstatus sheet=$n_ user=no |
12480 | guerimand | 357 | $table_header |
14132 | obado | 358 | <thead id="sheet$n_"> |
12714 | bpr | 359 | <tr><th colspan="$[$nb_indic+5]" style="text-align:left"> |
12301 | bpr | 360 | !if $p2!=$empty |
14132 | obado | 361 | <div class="float_left"> |
18188 | czzmrn | 362 | !if ($seq_open!=yes or $(listshowseq[$(t_[1])])=1) and $tmp_sheetstatus < 3 |
17851 | bpr | 363 | !href module=adm/sheet&sh=$n_ $hat |
364 | !else |
||
365 | $hat |
||
366 | !endif |
||
367 | <ul> |
||
18145 | bpr | 368 | <li> |
369 | !set tmp=$[$tmp_sheetstatus+1] |
||
18167 | bpr | 370 | !if $tmp_sheetstatus > $tmp_sheetstatusgen |
371 | !! hidden for this student |
||
18145 | bpr | 372 | !increase tmp |
373 | !endif |
||
374 | $(wims_name_shstatus[$tmp])</li> |
||
17851 | bpr | 375 | <li>$(wims_name_thsheet[4]): $A_</li> |
376 | !if $wims_user=supervisor |
||
377 | <li>$(wims_name_thsheet[8]): |
||
378 | !lowercase $(f_$n_) |
||
379 | </li> |
||
16280 | guerimand | 380 | !endif |
17851 | bpr | 381 | !!global note |
382 | !if $(min_$n_)<$scoremax |
||
383 | <li>$name_minmax: $(min_$n_)/$(mean_$n_)/$(max_$n_)</li> |
||
384 | !endif |
||
14132 | obado | 385 | </ul> |
17851 | bpr | 386 | </div> |
387 | !reset tmp_ss |
||
388 | <ul class="float_right"> |
||
14133 | obado | 389 | !! score |
15844 | bpr | 390 | <li>$(wims_name_thsheet[9]): |
17851 | bpr | 391 | $p_ |
17873 | czzmrn | 392 | / $scoremax |
393 | !if $wims_user!=supervisor |
||
394 | !set wims_ref_class=wims_button_help |
||
395 | !href cmd=help&special_parm=$n_ $(wims_name_help) |
||
396 | !endif |
||
397 | </li> |
||
14133 | obado | 398 | !! quality |
14132 | obado | 399 | !if $wims_user=supervisor or $q!=1 |
15844 | bpr | 400 | <li>$(wims_name_thsheet[7]): |
17851 | bpr | 401 | $p2 |
15763 | guerimand | 402 | /10</li> |
14132 | obado | 403 | !endif |
14133 | obado | 404 | !! Cumul |
14132 | obado | 405 | !if $wims_user=supervisor or $sw=0 |
15844 | bpr | 406 | <li>$(wims_name_thsheet[5]): |
15763 | guerimand | 407 | $p1 |
408 | %</li> |
||
14132 | obado | 409 | !endif |
14133 | obado | 410 | !! Best score |
14132 | obado | 411 | !if $wims_user=supervisor or $sw=1 |
15844 | bpr | 412 | <li>$(wims_name_thsheet[10]): |
15763 | guerimand | 413 | $p3 |
414 | %</li> |
||
14132 | obado | 415 | !endif |
14133 | obado | 416 | !! Acquired |
14132 | obado | 417 | !if $wims_user=supervisor or $sw=2 |
15844 | bpr | 418 | <li>$(wims_name_thsheet[13]): |
15763 | guerimand | 419 | $[$p4/10] |
420 | /10</li> |
||
14132 | obado | 421 | !endif |
422 | </ul> |
||
12301 | bpr | 423 | !else |
424 | !href module=adm/sheet&sh=$n_ $hat |
||
425 | !endif |
||
426 | </th></tr> |
||
427 | $table_hdtr |
||
12480 | guerimand | 428 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[1])</th> |
429 | <th scope="col">$(wims_name_thsheet[2])</th> |
||
430 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[3])</th> |
||
431 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[4])</th> |
||
14132 | obado | 432 | !!qualite |
12480 | guerimand | 433 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[7])</th> |
14132 | obado | 434 | !if $wims_user=supervisor or $sw=0 |
435 | !!I0: percentage work (related to cumul) |
||
436 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[5])</th> |
||
437 | !endif |
||
438 | !if $wims_user=supervisor or $sw=1 |
||
439 | !!I1: best percentage |
||
440 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[10])</th> |
||
441 | !endif |
||
442 | !if $wims_user=supervisor or $sw=2 |
||
443 | !!I2: level |
||
444 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[13])</th> |
||
445 | !endif |
||
12468 | bpr | 446 | !!last |
12480 | guerimand | 447 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[12])</th> |
12468 | bpr | 448 | !!number try |
12992 | bpr | 449 | <th scope="col" data-sort-method="number"> |
14132 | obado | 450 | <div class="wims_tooltip">$(wims_name_thsheet[11]) |
451 | <div class="wims_tooltiptext left" style="width:50em"> |
||
452 | $name_tryhelp |
||
453 | </div> |
||
12992 | bpr | 454 | </div> |
14132 | obado | 455 | </th> |
12480 | guerimand | 456 | </tr> |
457 | </thead> |
||
458 | <tbody> |
||
12301 | bpr | 459 | !for j=1 to $e_ |
460 | !let d=!record $j of wimshome/log/classes/$wims_class/sheets/.sheet$n_ |
||
15820 | guerimand | 461 | !distribute line $d into t,t,t,t,title_,t,t,t,t,t,indiv_ |
15763 | guerimand | 462 | !if $indtechvar=$empty or $(user_techvar_$indtechvar)=$empty or $(user_techvar_$indtechvar) isitemof $indiv_ |
463 | !increase exonumber |
||
464 | $table_tr |
||
465 | <td>$exonumber</td> |
||
466 | <td>$(title_)</td> |
||
15820 | guerimand | 467 | <td> |
468 | !let req_=!getscorerequire user=$getuser sheet=$n_ work=$j |
||
469 | $(req_) |
||
15844 | bpr | 470 | </td><td> |
15820 | guerimand | 471 | !getscoreweight user=$getuser sheet=$n_ work=$j |
472 | </td> |
||
15763 | guerimand | 473 | !set try=!getscoretry user=$getuser sheet=$n_ work=$j |
474 | !set alltry=!getscorealltries user=$getuser sheet=$n_ work=$j |
||
475 | !if $alltry<=0 |
||
476 | !set makelist=!makelist <td>--</td> for j=1 to $nb_indic+1 |
||
477 | !replace , by in $makelist |
||
12301 | bpr | 478 | !else |
15763 | guerimand | 479 | !!!quality in exercise will always appear. |
480 | !set d_=!getscorequality user=$getuser sheet=$n_ work=$j |
||
481 | !default d_=0 |
||
482 | !read adm/class/colors $[ceil($d_)] |
||
483 | <td style=$style_note>$d_</td> |
||
484 | !!cumul |
||
485 | !if $wims_user=supervisor or $sw=0 |
||
486 | !set d_=!getscore user=$getuser sheet=$n_ work=$j |
||
487 | !default d_=0 |
||
488 | !!percentage |
||
489 | !if $(req_)>0 |
||
490 | !read adm/class/colors $[ceil(10*$d_/$(req_))] |
||
491 | <td style=$style_note>$[ceil(100*$d_/$(req_))]%</td> |
||
492 | !else |
||
493 | <td>--</td> |
||
494 | !endif |
||
495 | !endif |
||
496 | !if $wims_user=supervisor or $sw=1 |
||
497 | !!best percentage |
||
498 | !set best=!getscorebest user=$getuser sheet=$n_ work=$j |
||
17851 | bpr | 499 | !if $(req_)>0 |
500 | !read adm/class/colors $[ceil(10*$best/$req_)] |
||
501 | <td style=$style_note>$[ceil($[$best*100/$req_])]%</td> |
||
502 | !else |
||
503 | <td>--</td> |
||
504 | !endif |
||
15763 | guerimand | 505 | !endif |
506 | !if $wims_user=supervisor or $sw=2 |
||
507 | !!level |
||
508 | !set level=!getscorelevel user=$getuser sheet=$n_ work=$j |
||
509 | !read adm/class/colors $[min(ceil($level+0.1),10)] |
||
510 | <td style=$style_note>$level</td> |
||
511 | !endif |
||
512 | !!last |
||
513 | !set last=!getscorelast user=$getuser sheet=$n_ work=$j |
||
514 | !read adm/class/colors $[ceil($last)] |
||
515 | <td style=$style_note>$last</td> |
||
516 | !!try |
||
517 | <td> |
||
518 | !set tmp=!record $j of wimshome/log/classes/$wims_class/sheets/.sheet$n_ |
||
519 | !distribute lines $tmp into di,pa |
||
520 | !read getparm $pa, seedrepeat, exotrymax |
||
521 | !set tmp=!getseedscores user=$getuser sheet=$n_ work=$j |
||
522 | !set tmp=!declosing $tmp |
||
523 | !set tmp=!select $tmp where column 2 > -2 |
||
524 | !set tmp_cnt=!itemcnt $(tmp[;1]) |
||
525 | !if $get_seedrepeat>0 |
||
526 | !set tmp_width=width:$[ceil($tmp_cnt/$get_seedrepeat)+1]em; |
||
527 | !else |
||
528 | !set tmp_width=width:$[$tmp_cnt+1]em; |
||
529 | !endif |
||
530 | <div class="wims_tooltip"> |
||
531 | !if $get_exotrymax=$empty |
||
532 | $try + $[$alltry-$try] |
||
533 | !else |
||
534 | ($try + $[$alltry-$try]) | $get_exotrymax |
||
535 | !endif |
||
536 | <div class="wims_tooltiptext left" style="$tmp_width"> |
||
537 | !read adm/class/seedscore.phtml [$tmp],$get_seedrepeat |
||
538 | </div> |
||
539 | </div> |
||
540 | !reset tmp get_seedrepeat tmp_width |
||
541 | </td> |
||
542 | !endif try |
||
543 | </tr> |
||
544 | !endif |
||
12301 | bpr | 545 | !next j |
12480 | guerimand | 546 | </tbody> |
12301 | bpr | 547 | $table_end |
12638 | obado | 548 | !read tablesort.phtml |
12791 | bpr | 549 | :next |
23 | reyssat | 550 | !next i |
12638 | obado | 551 | |
9809 | bpr | 552 | !read wimshome/public_html/themes/_widgets/topback.phtml |
1607 | bpr | 553 | |
23 | reyssat | 554 | !if $exologs!=$empty |
12301 | bpr | 555 | !set wims_menu_items=!append line itemsep,0,\ |
9809 | bpr | 556 | reg_ex,1,module=adm/class/exolog&cmd=new&job=list&checkuser=$getuser\ |
1791 | bpr | 557 | to $wims_menu_items |
23 | reyssat | 558 | !endif |
14132 | obado | 559 | !set wims_menu_items=!append line rawdata,1,cmd=reply&job=getraw&getraw=$getuser\ |
9351 | bpr | 560 | to $wims_menu_items |
17817 | bpr | 561 | !if $wims_user=supervisor or ($class_examshow!=no and $eactivecnt>0) |
15972 | bpr | 562 | !set wims_name_title_examdetail=$name_exam_expl |
15970 | guerimand | 563 | !set wims_menu_items=!append line examdetail,1,cmd=reply&job=examcheck&checkuser=$getuser\ |
564 | to $wims_menu_items |
||
565 | !endif |
||
1607 | bpr | 566 | |
14132 | obado | 567 | !if $wims_user=supervisor |
568 | !set wims_menu_items=!append line \ |
||
569 | account,1,module=adm/class/usermanage&job=userprop&getuser=$getuser\ |
||
1336 | bpr | 570 | to $wims_menu_items |
14132 | obado | 571 | !if (($wims_supertype<3 and $wims_typename=class) or ($wims_supertype=4 and $wims_typename=course)) and $wims_showlivret!=no |
572 | !set wims_menu_items=!append line livret1,1,module=adm/class/livret&job=user&user=$getuser\ |
||
573 | to $wims_menu_items |
||
574 | !set wims_menu_items=!append line activity1,1,module=adm/class/activity&job=exobyday&user=$getuser\ |
||
575 | to $wims_menu_items |
||
576 | !endif |
||
577 | !set wims_menu_items=!append line itemsep,0, \ |
||
578 | part_list,1,cmd=resume\ |
||
579 | to $wims_menu_items |
||
580 | !read adm/class/getnextuser $wims_class,$getuser,getuser,getuser |
||
581 | !else |
||
12301 | bpr | 582 | !if $wims_showlivret!=no |
583 | !set livret_nbcomp=!recordcnt wimshome/log/classes/$wims_class/livret/.comps |
||
584 | !if $livret_nbcomp >0 |
||
585 | !set wims_menu_items=!append line livret,1,module=adm/class/livret to $wims_menu_items |
||
586 | !endif |
||
3095 | guerimand | 587 | !endif |
23 | reyssat | 588 | !endif |
17180 | bpr | 589 | <br class="spacer"> |
11105 | bpr | 590 | |
12550 | bpr | 591 | !reset tmp tmp_w tmp_s tmp_ss |