Rev 15923 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
15569 | bpr | 1 | !if $wims_user=supervisor |
2 | !exit |
||
3 | !endif |
||
4 | !distribute items 9,9 into bar_scoreexo_limit, exo_bar_quallimit |
||
5 | !if $wims_theme=default |
||
6 | !set float= |
||
7 | !else |
||
8 | !set float=float_right |
||
9 | !endif |
||
10 | !if $wims_read_parm!=$empty |
||
11 | !set se=$wims_read_parm |
||
12 | !endif |
||
15586 | bpr | 13 | !if $scoremax= |
14 | !set tmp=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity |
||
15 | !set scoremax=!line 1 of $tmp |
||
16 | !reset tmp |
||
17 | !endif |
||
18 | !default scoremax=10 |
||
15569 | bpr | 19 | |
20 | !set logdir=$wims_home/log/classes/$wims_class/examlog/$wims_user |
||
21 | !set checksessions=!sh if [ -d $logdir ]; then cd $logdir; ls -tr; fi |
||
22 | !set checksessions=!words2items $checksessions |
||
23 | !readproc adm/class/userscore1 $wims_user |
||
24 | !set sess_$se=!listuniq $(sess_$se) |
||
25 | !set tmp=!listuniq $(sess_$se) |
||
26 | <div class="wims_score_bar $float"> |
||
27 | <ol> |
||
28 | !for j in $tmp |
||
29 | !ifval $[$(score$(j)_$se)] > $bar_scoreexo_limit |
||
30 | !set exo_class=wims_exo_done wims_congratulation, $wims_name_exo_congratulation |
||
31 | !else |
||
32 | !set exo_class=wims_exo_done |
||
33 | !endif |
||
16378 | guerimand | 34 | !if $class_examscore_withoutip!=yes |
35 | !let tmpsco=$(scoreip$(j)_$se) |
||
36 | !else |
||
37 | !let tmpsco=$(score$(j)_$se) |
||
38 | !endif |
||
39 | !readproc adm/class/colors $[$tmpsco] |
||
15569 | bpr | 40 | <li class="$(exo_class[1])" style=$style_note> |
41 | <a |
||
16378 | guerimand | 42 | title="$(exo_class[2]) $(wims_name_thsheet[9]):$[rint($tmpsco*10*$scoremax)/100]/$scoremax"> |
15569 | bpr | 43 | $[$(score$(j)_$se)] |
44 | </a> |
||
45 | </li> |
||
46 | !next |
||
47 | </ol> |
||
48 | </div> |
||
49 | !!## bar end |