Rev 18051 | Rev 18091 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
18014 | bpr | 1 | !distribute items $wims_read_parm into tmp_work,tmp_severity |
2 | !set tmp_work=!replace internal / by , in $tmp_work |
||
3 | !distribute items $tmp_work into tmp_sheet,tmp_work |
||
18057 | bpr | 4 | !set tmp_status_sheet=!getsheetstatus sheet=$tmp_sheet |
18014 | bpr | 5 | !if $tmp_work!=$empty and $tmp_sheet!=$empty |
18057 | bpr | 6 | !set status=!getscorestatus sheet=$tmp_sheet |
18014 | bpr | 7 | !set require=!getscorerequire sheet=$tmp_sheet work=$tmp_work |
8 | !distribute words $tmp_severity into severity_w,severity_s,severity_ss |
||
18057 | bpr | 9 | !if $tmp_status_sheet iswordof 1 2 or ($wims_user=supervisor and $tmp_status_sheet=0) |
10 | <div class="wims_tooltip wims_sheet_item"> |
||
11 | <div class="wims_tooltiptext" style="width:15em"> |
||
12 | $wims_name_Sheet $tmp_sheet |
||
13 | !if $tmp_status_sheet=2 or ($wims_user!=supervisor and $tmp_status_sheet=0) |
||
14 | ($(wims_name_shstatus[$tmp_status_sheet+1])) |
||
15 | !endif |
||
16 | $wims_name_Exercise $tmp_work |
||
17 | !if $wims_user!= and $wims_user!=supervisor |
||
18 | !if $require!=0 and $require!=$empty |
||
19 | <ul class="wims_nopuce"> |
||
20 | <li>$(wims_name_thsheet[3]): $require</li> |
||
21 | !if $wims_user!=$empty and $wims_user!=supervisor |
||
22 | !set mean=!getscoremean sheet=$tmp_sheet work=$tmp_work |
||
23 | <li>$(wims_name_thsheet[7]): $[$mean]/10</li> |
||
24 | !if $severity_ss=0 |
||
25 | !set got=!getscore sheet=$tmp_sheet work=$tmp_work |
||
26 | <li>$(wims_name_thsheet[5]): $[round(100*$got/$require)]%</li> |
||
27 | !endif |
||
28 | !if $severity_ss=1 |
||
29 | !set best=!getscorebest sheet=$tmp_sheet work=$tmp_work |
||
30 | <li>$(wims_name_thsheet[10]): $[round(100*$best/$require)]%</li> |
||
31 | !endif |
||
32 | !if $severity_ss=2 |
||
33 | !set level=!getscorelevel sheet=$tmp_sheet work=$tmp_work |
||
34 | <li>$(wims_name_thsheet[13]): $[$level]/10</li> |
||
35 | !endif |
||
36 | !endif |
||
37 | </ul> |
||
18029 | bpr | 38 | !endif |
18014 | bpr | 39 | !endif |
18057 | bpr | 40 | </div></div> |
18014 | bpr | 41 | !endif |
42 | !endif |