Subversion Repositories wimsdev

Rev

Rev 17885 | Rev 18167 | Go to most recent revision | 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>
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)">&nbsp;</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
           &#x2705;
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)&nbsp; : $t_
1895 bpr 330
  !else
15963 guerimand 331
    !set hat=$wims_name_sequence $(t_[1])$tmp&nbsp; : $(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
356
  !set tmp_sheetstatus2=!getsheetstatus sheet=$n_
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">
17851 bpr 362
    !if $seq_open!=yes or $(listshowseq[$(t_[1])])=1
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]
370
      !if $tmp_sheetstatus > $tmp_sheetstatus2
371
        !increase tmp
372
      !endif
373
      $(wims_name_shstatus[$tmp])</li>
17851 bpr 374
      <li>$(wims_name_thsheet[4]): $A_</li>
375
      !if $wims_user=supervisor
376
        <li>$(wims_name_thsheet[8]):
377
        !lowercase $(f_$n_)
378
        </li>
16280 guerimand 379
      !endif
17851 bpr 380
      !!global note
381
      !if $(min_$n_)<$scoremax
382
           <li>$name_minmax: $(min_$n_)/$(mean_$n_)/$(max_$n_)</li>
383
      !endif
14132 obado 384
      </ul>
17851 bpr 385
      </div>
386
      !reset tmp_ss
387
      <ul class="float_right">
14133 obado 388
      !! score
15844 bpr 389
      <li>$(wims_name_thsheet[9]):
17851 bpr 390
        $p_
17873 czzmrn 391
      / $scoremax
392
      !if $wims_user!=supervisor
393
        !set wims_ref_class=wims_button_help
394
        !href cmd=help&special_parm=$n_ $(wims_name_help)
395
      !endif
396
      </li>
14133 obado 397
      !! quality
14132 obado 398
      !if $wims_user=supervisor or $q!=1
15844 bpr 399
        <li>$(wims_name_thsheet[7]):
17851 bpr 400
          $p2
15763 guerimand 401
        /10</li>
14132 obado 402
      !endif
14133 obado 403
      !! Cumul
14132 obado 404
      !if $wims_user=supervisor or $sw=0
15844 bpr 405
        <li>$(wims_name_thsheet[5]):
15763 guerimand 406
             $p1
407
         %</li>
14132 obado 408
      !endif
14133 obado 409
      !! Best score
14132 obado 410
      !if $wims_user=supervisor or $sw=1
15844 bpr 411
        <li>$(wims_name_thsheet[10]):
15763 guerimand 412
             $p3
413
        %</li>
14132 obado 414
      !endif
14133 obado 415
      !! Acquired
14132 obado 416
      !if $wims_user=supervisor or $sw=2
15844 bpr 417
        <li>$(wims_name_thsheet[13]):
15763 guerimand 418
             $[$p4/10]
419
        /10</li>
14132 obado 420
      !endif
421
    </ul>
12301 bpr 422
  !else
423
    !href module=adm/sheet&sh=$n_ $hat
424
  !endif
425
  </th></tr>
426
  $table_hdtr
12480 guerimand 427
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[1])</th>
428
    <th scope="col">$(wims_name_thsheet[2])</th>
429
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[3])</th>
430
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[4])</th>
14132 obado 431
    !!qualite
12480 guerimand 432
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[7])</th>
14132 obado 433
    !if $wims_user=supervisor or $sw=0
434
      !!I0: percentage work (related to cumul)
435
      <th scope="col" data-sort-method="number">$(wims_name_thsheet[5])</th>
436
    !endif
437
    !if $wims_user=supervisor or $sw=1
438
      !!I1: best percentage
439
      <th scope="col" data-sort-method="number">$(wims_name_thsheet[10])</th>
440
    !endif
441
    !if $wims_user=supervisor or $sw=2
442
      !!I2: level
443
      <th scope="col" data-sort-method="number">$(wims_name_thsheet[13])</th>
444
    !endif
12468 bpr 445
    !!last
12480 guerimand 446
    <th scope="col" data-sort-method="number">$(wims_name_thsheet[12])</th>
12468 bpr 447
    !!number try
12992 bpr 448
    <th scope="col" data-sort-method="number">
14132 obado 449
      <div class="wims_tooltip">$(wims_name_thsheet[11])
450
        <div class="wims_tooltiptext left" style="width:50em">
451
          $name_tryhelp
452
        </div>
12992 bpr 453
      </div>
14132 obado 454
    </th>
12480 guerimand 455
  </tr>
456
  </thead>
457
  <tbody>
12301 bpr 458
  !for j=1 to $e_
459
    !let d=!record $j of wimshome/log/classes/$wims_class/sheets/.sheet$n_
15820 guerimand 460
    !distribute line $d into t,t,t,t,title_,t,t,t,t,t,indiv_
15763 guerimand 461
    !if $indtechvar=$empty or $(user_techvar_$indtechvar)=$empty or $(user_techvar_$indtechvar) isitemof $indiv_
462
      !increase exonumber
463
      $table_tr
464
        <td>$exonumber</td>
465
        <td>$(title_)</td>
15820 guerimand 466
        <td>
467
          !let req_=!getscorerequire user=$getuser sheet=$n_ work=$j
468
          $(req_)
15844 bpr 469
        </td><td>
15820 guerimand 470
          !getscoreweight user=$getuser sheet=$n_ work=$j
471
        </td>
15763 guerimand 472
        !set try=!getscoretry user=$getuser sheet=$n_ work=$j
473
        !set alltry=!getscorealltries user=$getuser sheet=$n_ work=$j
474
        !if $alltry<=0
475
          !set makelist=!makelist <td>--</td> for j=1 to $nb_indic+1
476
          !replace , by in $makelist
12301 bpr 477
        !else
15763 guerimand 478
          !!!quality in exercise will always appear.
479
          !set d_=!getscorequality user=$getuser sheet=$n_ work=$j
480
          !default d_=0
481
          !read adm/class/colors $[ceil($d_)]
482
          <td style=$style_note>$d_</td>
483
          !!cumul
484
          !if $wims_user=supervisor or $sw=0
485
            !set d_=!getscore user=$getuser sheet=$n_ work=$j
486
            !default d_=0
487
            !!percentage
488
            !if $(req_)>0
489
              !read adm/class/colors $[ceil(10*$d_/$(req_))]
490
              <td style=$style_note>$[ceil(100*$d_/$(req_))]%</td>
491
            !else
492
              <td>--</td>
493
            !endif
494
          !endif
495
          !if $wims_user=supervisor or $sw=1
496
            !!best percentage
497
            !set best=!getscorebest user=$getuser sheet=$n_ work=$j
17851 bpr 498
            !if $(req_)>0
499
              !read adm/class/colors $[ceil(10*$best/$req_)]
500
              <td style=$style_note>$[ceil($[$best*100/$req_])]%</td>
501
            !else
502
              <td>--</td>
503
            !endif
15763 guerimand 504
          !endif
505
          !if $wims_user=supervisor or $sw=2
506
            !!level
507
            !set level=!getscorelevel user=$getuser sheet=$n_ work=$j
508
            !read adm/class/colors $[min(ceil($level+0.1),10)]
509
            <td style=$style_note>$level</td>
510
          !endif
511
          !!last
512
          !set last=!getscorelast user=$getuser sheet=$n_ work=$j
513
          !read adm/class/colors $[ceil($last)]
514
          <td style=$style_note>$last</td>
515
          !!try
516
          <td>
517
            !set tmp=!record $j of wimshome/log/classes/$wims_class/sheets/.sheet$n_
518
            !distribute lines $tmp into di,pa
519
            !read getparm $pa, seedrepeat, exotrymax
520
            !set tmp=!getseedscores user=$getuser sheet=$n_ work=$j
521
            !set tmp=!declosing $tmp
522
            !set tmp=!select $tmp where column 2 > -2
523
            !set tmp_cnt=!itemcnt $(tmp[;1])
524
            !if $get_seedrepeat>0
525
              !set tmp_width=width:$[ceil($tmp_cnt/$get_seedrepeat)+1]em;
526
            !else
527
              !set tmp_width=width:$[$tmp_cnt+1]em;
528
            !endif
529
            <div class="wims_tooltip">
530
              !if $get_exotrymax=$empty
531
                $try + $[$alltry-$try]
532
              !else
533
                ($try + $[$alltry-$try]) | $get_exotrymax
534
              !endif
535
              <div class="wims_tooltiptext left" style="$tmp_width">
536
                !read adm/class/seedscore.phtml [$tmp],$get_seedrepeat
537
              </div>
538
            </div>
539
            !reset tmp get_seedrepeat tmp_width
540
          </td>
541
        !endif try
542
      </tr>
543
    !endif
12301 bpr 544
  !next j
12480 guerimand 545
  </tbody>
12301 bpr 546
  $table_end
12638 obado 547
  !read tablesort.phtml
12791 bpr 548
  :next
23 reyssat 549
!next i
12638 obado 550
 
9809 bpr 551
!read wimshome/public_html/themes/_widgets/topback.phtml
1607 bpr 552
 
23 reyssat 553
!if $exologs!=$empty
12301 bpr 554
  !set wims_menu_items=!append line itemsep,0,\
9809 bpr 555
 reg_ex,1,module=adm/class/exolog&cmd=new&job=list&checkuser=$getuser\
1791 bpr 556
 to $wims_menu_items
23 reyssat 557
!endif
14132 obado 558
!set wims_menu_items=!append line rawdata,1,cmd=reply&job=getraw&getraw=$getuser\
9351 bpr 559
to $wims_menu_items
17817 bpr 560
!if $wims_user=supervisor or ($class_examshow!=no and $eactivecnt>0)
15972 bpr 561
  !set wims_name_title_examdetail=$name_exam_expl
15970 guerimand 562
  !set wims_menu_items=!append line examdetail,1,cmd=reply&job=examcheck&checkuser=$getuser\
563
to $wims_menu_items
564
!endif
1607 bpr 565
 
14132 obado 566
!if $wims_user=supervisor
567
  !set wims_menu_items=!append line \
568
account,1,module=adm/class/usermanage&job=userprop&getuser=$getuser\
1336 bpr 569
to $wims_menu_items
14132 obado 570
  !if (($wims_supertype<3 and $wims_typename=class) or ($wims_supertype=4 and $wims_typename=course)) and $wims_showlivret!=no
571
    !set wims_menu_items=!append line livret1,1,module=adm/class/livret&job=user&user=$getuser\
572
to $wims_menu_items
573
    !set wims_menu_items=!append line activity1,1,module=adm/class/activity&job=exobyday&user=$getuser\
574
to $wims_menu_items
575
  !endif
576
  !set wims_menu_items=!append line itemsep,0, \
577
part_list,1,cmd=resume\
578
to $wims_menu_items
579
  !read adm/class/getnextuser $wims_class,$getuser,getuser,getuser
580
!else
12301 bpr 581
  !if $wims_showlivret!=no
582
    !set livret_nbcomp=!recordcnt wimshome/log/classes/$wims_class/livret/.comps
583
    !if $livret_nbcomp >0
584
      !set wims_menu_items=!append line livret,1,module=adm/class/livret to $wims_menu_items
585
    !endif
3095 guerimand 586
  !endif
23 reyssat 587
!endif
17180 bpr 588
<br class="spacer">
11105 bpr 589
 
12550 bpr 590
!reset tmp tmp_w tmp_s tmp_ss