Subversion Repositories wimsdev

Rev

Rev 18188 | 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 &nbsp;</td>
137
      <td style="text-align:left" class="small">&nbsp;$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>
18680 bpr 150
  !if $cutexam!=$empty
151
    !set cuttime_hint=$(name_cuttime[1])
152
  !else
153
    !reset cuttime_hint
154
  !endif
155
  <caption>$name_examnote $cuttime_hint</caption>
12301 bpr 156
  $table_hdtr
14132 obado 157
    <th scope="col">$(wims_name_thsheet[1])</th>
158
    <th scope="col">$(wims_name_thsheet[2])</th>
159
    <th scope="col">$(wims_name_thsheet[9])/$scoremax</th>
12301 bpr 160
  </tr>
12716 bpr 161
  </thead>
162
  <tbody>
12301 bpr 163
  !for i in $activexams
164
    !set l=!record $i of wimshome/log/classes/$wims_class/exams/.exams
165
    !set t=!line 4 of $l
12791 bpr 166
    !set st=!line 1 of $l
167
    !set ew=!line $i of $examweights
16006 guerimand 168
    !! ------test if sheet is hidden for this user
169
    !reset hidden_sheet
170
    !if $wims_user!=supervisor
171
      !set h_=!line 8 of $l
172
      !if $h_!=$empty
173
        !readproc adm/vfilter/ishiddensheet.proc $h_
174
      !endif
175
    !endif
176
    !! -----end test
177
    !if ($st<=2 or $ew>0) and $hidden_sheet!=1
14132 obado 178
     $table_tr
179
      <td>$i</td>
12791 bpr 180
      <td>$t</td>
181
      !if $[rint(10*$(es_$i)*$scoremax)/100]>0
182
        !read adm/class/colors $[ceil($(es_$i))]
183
        <td style=$style_note>$[rint(10*$(es_$i)*$scoremax)/100]</td>
184
      !else
185
        <td>--</td>
186
      !endif
14132 obado 187
     </tr>
12301 bpr 188
    !endif
189
  !next i
12716 bpr 190
  </tbody>
12301 bpr 191
  $table_end
12716 bpr 192
  !read tablesort.phtml
12301 bpr 193
!endif
14132 obado 194
 
17780 czzmrn 195
!! ------------------ display table for freeworks
196
!if $allowed_freework=yes
17816 bpr 197
 
17780 czzmrn 198
  !! In the student score page we list only freeworks for which the
199
  !! student has been doing some work (for some types this can simply
200
  !! mean opening the freework). Visibility (of student work and of
201
  !! score) is set according to freework status.
202
  !!
203
  !! If scoring is available it is advisable to disable manual scoring
17816 bpr 204
  !! interface, otherwise students can see scores befeore due date.
17780 czzmrn 205
  !!
206
  !if $nbfreeworks > 0
207
    !set table_id=TABLE_freew
208
    !set table_class=sortable
209
    !set name_fwcols=$(wims_name_thsheet[1]),$(wims_name_thsheet[2]),$name_handedin,$name_deadline,$(wims_name_thsheet[9])
210
    !if $wims_user=supervisor
211
      !set name_fwcols=$name_fwcols,$name_codownload,$name_fwscoring,$name_putiworkco
212
    !endif
213
    $table_header
214
    <thead>
215
    <caption>$wims_name_Freeworks</caption>
216
    $table_hdtr
17851 bpr 217
    !for l_ in $name_fwcols
218
      <th scope="col">$l_</th>
219
    !next
17780 czzmrn 220
    </tr>
221
    </thead>
222
    <tbody>
223
    !for fwi_ in $activefreew
224
      !reset loadwork codownload seealltime putiworkco scoring
225
      !readproc adm/freework/mkfwglobvar.proc $fwi_
17885 bpr 226
      !! l'output di questo è in "output" (!!!!)
17780 czzmrn 227
      !readproc adm/freework/finduserwork.proc $fwi_,$getuser
228
      $table_tr
17851 bpr 229
      <td>$fwi_</td>
230
      <td>$title</td>
231
      !if ($wims_user=supervisor and $loadwork>0) or $wims_user!=supervisor
17780 czzmrn 232
        <td>
17851 bpr 233
        !if $fwtype=3
17780 czzmrn 234
          !href module=adm/class/freework&+job=viewuser3&+freework=$fwi_&+userv=$getuser $output
235
        !else
236
          !href module=adm/class/freework&+job=viewuser&+freework=$fwi_ $output
17851 bpr 237
        !endif
17780 czzmrn 238
        </td>
17851 bpr 239
      !else
240
        <td style="background-image:url(gifs/bg/crossgrey.gif)">$output</td>
241
      !endif
242
      <td>$deadline $timedeadline</td>
17780 czzmrn 243
 
244
!! for visibility of scores, cfr. freework/student3.phtml
17851 bpr 245
      !if $scoring>0 and ($codownload>0 or $wims_user=supervisor or $activetest>=2)
246
        !read adm/class/colors $[10*ceil($(g_$scoring))/$scoremax]
247
        <td style=$style_note>$(g_$scoring)</td>
248
      !else
249
        <td style="background-image:url(gifs/bg/crossgrey.gif)">&nbsp;</td>
250
      !endif
251
      !if $wims_user=supervisor
252
        <td>
253
        !if $codownload=1
254
          $wims_name_yes
255
        !else
256
          $wims_name_no
17780 czzmrn 257
        !endif
17851 bpr 258
        !set fwseetest=!defof freework_seeco_$getuser in wimshome/log/classes/$wims_class/freeworksdata/$fwi_/.seeco
259
        !if $fwseetest!=$empty
260
           &#x2705;
261
          !reset fwseetest
262
        !endif
263
        </td><td>
264
        !if $scoring=0 or $scoring=no
265
          $wims_name_no
266
        !else
267
          $(titles[2+$scoring])
268
        !endif
269
        </td><td>
270
        !if $putiworkco=1
271
          $wims_name_yes
272
        !else
273
          $wims_name_no
274
        !endif
275
        </td>
276
      !endif
17780 czzmrn 277
      </tr>
278
    !next fwi_
279
    </tbody>
280
    $table_end
281
    !read tablesort.phtml
282
  !endif
283
!endif
284
 
12480 guerimand 285
!! ------------------ display table for each sheet
12550 bpr 286
!set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf
12554 bpr 287
!distribute words $tmp into tmp_w,tmp_s,tmp_ss
12301 bpr 288
!for i=1 to $activecnt
15763 guerimand 289
  !set exonumber=0
12301 bpr 290
  !set l_=!line $i of $activesheets
15763 guerimand 291
  !distribute items $l_ into n_,e_,indtechvar
12301 bpr 292
  !set L_=!line $n_ of $defaultformula
293
  !reset A_ B_ C_
294
  !distribute word $L_ into A_,B_,C_
12550 bpr 295
  !default A_=$tmp_w
296
  !default B_=$tmp_s
13045 bpr 297
  !default C_=$tmp_ss
15763 guerimand 298
  !set t_=!item 4 to -1 of $l_
12301 bpr 299
  !set t_=!char 1 to $title_limit of $t_
300
  !set v_=!getscorerequire sheet=$n_ user=$getuser
301
  !set w_=!wordcnt $v_
302
  !set S_=0
303
  !for k=1 to $w_
304
    !set a_=!word $k of $v_
305
    !set S_=$[$S_+$a_]
306
  !next k
12791 bpr 307
  !if $S_<=0
308
    !goto next
309
  !endif
12301 bpr 310
  !set sw=!line $[$n_+1] of $shweights
311
  !set q=!word 2 of $sw
312
  !set sw=!word 3 of $sw
313
  !bound sw between integer 0 and 2 default $tmp_ss
314
  !bound q between integer 0 and 6 default $tmp_s
315
  !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def
15937 guerimand 316
  !if $indtechvar!=$empty
15963 guerimand 317
    !let pos_=!positionof item $indtechvar in $tv_listcode
318
    !let nametechvar=!item $pos_ of $tv_listname
319
    !set pos=!positionof item $nametechvar in $(user_vars[;1])
320
    !set indtechvarvalue=!item $pos of $(user_vars[;2])
321
    !set listvalue=!record $n_ of wimshome/log/classes/$wims_class/sheets/.vars
322
    !set listvalue=!word 3 to -1 of $listvalue
323
    !set listvalue=!words2items $listvalue
324
    !bound indtechvarvalue within $empty,$listvalue default $empty
15937 guerimand 325
    !if $indtechvarvalue=$empty
15949 guerimand 326
        !reset tmp
15937 guerimand 327
    !else
15963 guerimand 328
        !set tmp= - $nametechvar $indtechvarvalue
15937 guerimand 329
    !endif
330
  !else
17851 bpr 331
    !reset tmp
15937 guerimand 332
  !endif
12301 bpr 333
  !if $seq_open!=yes
15949 guerimand 334
    !set hat=$name_Sheet $n_$(tmp)&nbsp; : $t_
1895 bpr 335
  !else
15963 guerimand 336
    !set hat=$wims_name_sequence $(t_[1])$tmp&nbsp; : $(t_[2..-1])
1895 bpr 337
  !endif
14132 obado 338
 
17180 bpr 339
  <br class="spacer">
7901 bpr 340
  !if $wims_user=supervisor
341
    !set nb_indic=5
342
  !else
11108 bpr 343
    !set nb_indic=3
7901 bpr 344
  !endif
7664 bpr 345
  !set P_=!line $n_ of $percents
12301 bpr 346
  !distribute words $P_ into p1,p2,p3,p4
7664 bpr 347
  !if $p2!=$empty
12301 bpr 348
    !distribute item $[$p1/100],$[$p2/10],$[$p3/100],$[$p4/100] into x0_,y_,x1_,x2_
349
    !set ff_$n_=!mathsubst Q=$y_ in $(f_$n_)
350
    !for sev=0 to 2
351
      !set ff_$n_=!mathsubst I$sev=$(x$(sev)_) in $(ff_$n_)
352
    !next
16198 bpr 353
    !! home/sequence.phtml
354
    !! adm/class/userscore/csv/download.proc
355
    !! themes/_widgets/usersheet.phtml
356
    !set p_=$[rint(100*$scoremax*$(ff_$n_))/100]
7664 bpr 357
  !endif
12480 guerimand 358
  !set table_id=TABLE_sheet$i
359
  !set table_class=sortable
18145 bpr 360
  !set tmp_sheetstatus=!getsheetstatus sheet=$n_ user=$getuser
18167 bpr 361
  !set tmp_sheetstatusgen=!getsheetstatus sheet=$n_ user=no
12480 guerimand 362
  $table_header
14132 obado 363
  <thead id="sheet$n_">
12714 bpr 364
  <tr><th colspan="$[$nb_indic+5]" style="text-align:left">
12301 bpr 365
  !if $p2!=$empty
14132 obado 366
    <div class="float_left">
18188 czzmrn 367
    !if ($seq_open!=yes or $(listshowseq[$(t_[1])])=1) and $tmp_sheetstatus < 3
17851 bpr 368
      !href module=adm/sheet&sh=$n_ $hat
369
    !else
370
      $hat
371
    !endif
372
    <ul>
18145 bpr 373
      <li>
374
      !set tmp=$[$tmp_sheetstatus+1]
18167 bpr 375
      !if $tmp_sheetstatus > $tmp_sheetstatusgen
376
!! hidden for this student
18145 bpr 377
        !increase tmp
378
      !endif
379
      $(wims_name_shstatus[$tmp])</li>
17851 bpr 380
      <li>$(wims_name_thsheet[4]): $A_</li>
381
      !if $wims_user=supervisor
382
        <li>$(wims_name_thsheet[8]):
383
        !lowercase $(f_$n_)
384
        </li>
16280 guerimand 385
      !endif
17851 bpr 386
      !!global note
387
      !if $(min_$n_)<$scoremax
388
           <li>$name_minmax: $(min_$n_)/$(mean_$n_)/$(max_$n_)</li>
389
      !endif
14132 obado 390
      </ul>
17851 bpr 391
      </div>
392
      !reset tmp_ss
393
      <ul class="float_right">
14133 obado 394
      !! score
15844 bpr 395
      <li>$(wims_name_thsheet[9]):
17851 bpr 396
        $p_
17873 czzmrn 397
      / $scoremax
398
      !if $wims_user!=supervisor
399
        !set wims_ref_class=wims_button_help
400
        !href cmd=help&special_parm=$n_ $(wims_name_help)
401
      !endif
402
      </li>
14133 obado 403
      !! quality
14132 obado 404
      !if $wims_user=supervisor or $q!=1
15844 bpr 405
        <li>$(wims_name_thsheet[7]):
17851 bpr 406
          $p2
15763 guerimand 407
        /10</li>
14132 obado 408
      !endif
14133 obado 409
      !! Cumul
14132 obado 410
      !if $wims_user=supervisor or $sw=0
15844 bpr 411
        <li>$(wims_name_thsheet[5]):
15763 guerimand 412
             $p1
413
         %</li>
14132 obado 414
      !endif
14133 obado 415
      !! Best score
14132 obado 416
      !if $wims_user=supervisor or $sw=1
15844 bpr 417
        <li>$(wims_name_thsheet[10]):
15763 guerimand 418
             $p3
419
        %</li>
14132 obado 420
      !endif
14133 obado 421
      !! Acquired
14132 obado 422
      !if $wims_user=supervisor or $sw=2
15844 bpr 423
        <li>$(wims_name_thsheet[13]):
15763 guerimand 424
             $[$p4/10]
425
        /10</li>
14132 obado 426
      !endif
427
    </ul>
12301 bpr 428
  !else
429
    !href module=adm/sheet&sh=$n_ $hat
430
  !endif
431
  </th></tr>
432
  $table_hdtr
12480 guerimand 433
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[1])</th>
434
    <th scope="col">$(wims_name_thsheet[2])</th>
435
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[3])</th>
436
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[4])</th>
14132 obado 437
    !!qualite
12480 guerimand 438
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[7])</th>
14132 obado 439
    !if $wims_user=supervisor or $sw=0
440
      !!I0: percentage work (related to cumul)
441
      <th scope="col" data-sort-method="number">$(wims_name_thsheet[5])</th>
442
    !endif
443
    !if $wims_user=supervisor or $sw=1
444
      !!I1: best percentage
445
      <th scope="col" data-sort-method="number">$(wims_name_thsheet[10])</th>
446
    !endif
447
    !if $wims_user=supervisor or $sw=2
448
      !!I2: level
449
      <th scope="col" data-sort-method="number">$(wims_name_thsheet[13])</th>
450
    !endif
12468 bpr 451
    !!last
12480 guerimand 452
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[12])</th>
12468 bpr 453
    !!number try
12992 bpr 454
    <th scope="col" data-sort-method="number">
14132 obado 455
      <div class="wims_tooltip">$(wims_name_thsheet[11])
456
        <div class="wims_tooltiptext left" style="width:50em">
457
          $name_tryhelp
458
        </div>
12992 bpr 459
      </div>
14132 obado 460
    </th>
12480 guerimand 461
  </tr>
462
  </thead>
463
  <tbody>
12301 bpr 464
  !for j=1 to $e_
465
    !let d=!record $j of wimshome/log/classes/$wims_class/sheets/.sheet$n_
15820 guerimand 466
    !distribute line $d into t,t,t,t,title_,t,t,t,t,t,indiv_
15763 guerimand 467
    !if $indtechvar=$empty or $(user_techvar_$indtechvar)=$empty or $(user_techvar_$indtechvar) isitemof $indiv_
468
      !increase exonumber
469
      $table_tr
470
        <td>$exonumber</td>
471
        <td>$(title_)</td>
15820 guerimand 472
        <td>
473
          !let req_=!getscorerequire user=$getuser sheet=$n_ work=$j
474
          $(req_)
15844 bpr 475
        </td><td>
15820 guerimand 476
          !getscoreweight user=$getuser sheet=$n_ work=$j
477
        </td>
15763 guerimand 478
        !set try=!getscoretry user=$getuser sheet=$n_ work=$j
479
        !set alltry=!getscorealltries user=$getuser sheet=$n_ work=$j
480
        !if $alltry<=0
481
          !set makelist=!makelist <td>--</td> for j=1 to $nb_indic+1
482
          !replace , by in $makelist
12301 bpr 483
        !else
15763 guerimand 484
          !!!quality in exercise will always appear.
485
          !set d_=!getscorequality user=$getuser sheet=$n_ work=$j
486
          !default d_=0
487
          !read adm/class/colors $[ceil($d_)]
488
          <td style=$style_note>$d_</td>
489
          !!cumul
490
          !if $wims_user=supervisor or $sw=0
491
            !set d_=!getscore user=$getuser sheet=$n_ work=$j
492
            !default d_=0
493
            !!percentage
494
            !if $(req_)>0
495
              !read adm/class/colors $[ceil(10*$d_/$(req_))]
496
              <td style=$style_note>$[ceil(100*$d_/$(req_))]%</td>
497
            !else
498
              <td>--</td>
499
            !endif
500
          !endif
501
          !if $wims_user=supervisor or $sw=1
502
            !!best percentage
503
            !set best=!getscorebest user=$getuser sheet=$n_ work=$j
17851 bpr 504
            !if $(req_)>0
505
              !read adm/class/colors $[ceil(10*$best/$req_)]
506
              <td style=$style_note>$[ceil($[$best*100/$req_])]%</td>
507
            !else
508
              <td>--</td>
509
            !endif
15763 guerimand 510
          !endif
511
          !if $wims_user=supervisor or $sw=2
512
            !!level
513
            !set level=!getscorelevel user=$getuser sheet=$n_ work=$j
514
            !read adm/class/colors $[min(ceil($level+0.1),10)]
515
            <td style=$style_note>$level</td>
516
          !endif
517
          !!last
518
          !set last=!getscorelast user=$getuser sheet=$n_ work=$j
519
          !read adm/class/colors $[ceil($last)]
520
          <td style=$style_note>$last</td>
521
          !!try
522
          <td>
523
            !set tmp=!record $j of wimshome/log/classes/$wims_class/sheets/.sheet$n_
524
            !distribute lines $tmp into di,pa
525
            !read getparm $pa, seedrepeat, exotrymax
526
            !set tmp=!getseedscores user=$getuser sheet=$n_ work=$j
527
            !set tmp=!declosing $tmp
528
            !set tmp=!select $tmp where column 2 > -2
529
            !set tmp_cnt=!itemcnt $(tmp[;1])
530
            !if $get_seedrepeat>0
531
              !set tmp_width=width:$[ceil($tmp_cnt/$get_seedrepeat)+1]em;
532
            !else
533
              !set tmp_width=width:$[$tmp_cnt+1]em;
534
            !endif
535
            <div class="wims_tooltip">
536
              !if $get_exotrymax=$empty
537
                $try + $[$alltry-$try]
538
              !else
539
                ($try + $[$alltry-$try]) | $get_exotrymax
540
              !endif
541
              <div class="wims_tooltiptext left" style="$tmp_width">
542
                !read adm/class/seedscore.phtml [$tmp],$get_seedrepeat
543
              </div>
544
            </div>
545
            !reset tmp get_seedrepeat tmp_width
546
          </td>
547
        !endif try
548
      </tr>
549
    !endif
12301 bpr 550
  !next j
12480 guerimand 551
  </tbody>
12301 bpr 552
  $table_end
12638 obado 553
  !read tablesort.phtml
12791 bpr 554
  :next
23 reyssat 555
!next i
12638 obado 556
 
9809 bpr 557
!read wimshome/public_html/themes/_widgets/topback.phtml
1607 bpr 558
 
23 reyssat 559
!if $exologs!=$empty
12301 bpr 560
  !set wims_menu_items=!append line itemsep,0,\
9809 bpr 561
 reg_ex,1,module=adm/class/exolog&cmd=new&job=list&checkuser=$getuser\
1791 bpr 562
 to $wims_menu_items
23 reyssat 563
!endif
14132 obado 564
!set wims_menu_items=!append line rawdata,1,cmd=reply&job=getraw&getraw=$getuser\
9351 bpr 565
to $wims_menu_items
17817 bpr 566
!if $wims_user=supervisor or ($class_examshow!=no and $eactivecnt>0)
15972 bpr 567
  !set wims_name_title_examdetail=$name_exam_expl
15970 guerimand 568
  !set wims_menu_items=!append line examdetail,1,cmd=reply&job=examcheck&checkuser=$getuser\
569
to $wims_menu_items
570
!endif
1607 bpr 571
 
14132 obado 572
!if $wims_user=supervisor
573
  !set wims_menu_items=!append line \
574
account,1,module=adm/class/usermanage&job=userprop&getuser=$getuser\
1336 bpr 575
to $wims_menu_items
14132 obado 576
  !if (($wims_supertype<3 and $wims_typename=class) or ($wims_supertype=4 and $wims_typename=course)) and $wims_showlivret!=no
577
    !set wims_menu_items=!append line livret1,1,module=adm/class/livret&job=user&user=$getuser\
578
to $wims_menu_items
579
    !set wims_menu_items=!append line activity1,1,module=adm/class/activity&job=exobyday&user=$getuser\
580
to $wims_menu_items
581
  !endif
582
  !set wims_menu_items=!append line itemsep,0, \
583
part_list,1,cmd=resume\
584
to $wims_menu_items
585
  !read adm/class/getnextuser $wims_class,$getuser,getuser,getuser
586
!else
12301 bpr 587
  !if $wims_showlivret!=no
588
    !set livret_nbcomp=!recordcnt wimshome/log/classes/$wims_class/livret/.comps
589
    !if $livret_nbcomp >0
590
      !set wims_menu_items=!append line livret,1,module=adm/class/livret to $wims_menu_items
591
    !endif
3095 guerimand 592
  !endif
23 reyssat 593
!endif
17180 bpr 594
<br class="spacer">
11105 bpr 595
 
12550 bpr 596
!reset tmp tmp_w tmp_s tmp_ss