Rev 18319 | 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 |
||
18091 | bpr | 9 | !if $tmp_status_sheet iswordof 1 2 or $wims_user=supervisor |
18057 | bpr | 10 | <div class="wims_tooltip wims_sheet_item"> |
18091 | bpr | 11 | <div class="wims_tooltiptext" style="width:20em"> |
18319 | lemaire | 12 | !if $wims_user!=supervisor and $tmp_status_sheet=1 |
18349 | bpr | 13 | $wims_name_Sheet $tmp_sheet |
14 | !else |
||
18319 | lemaire | 15 | $wims_name_Sheet $tmp_sheet ($(wims_name_shstatus[$tmp_status_sheet+1])) |
16 | !endif |
||
18057 | bpr | 17 | $wims_name_Exercise $tmp_work |
18 | !if $wims_user!= and $wims_user!=supervisor |
||
19 | !if $require!=0 and $require!=$empty |
||
20 | <ul class="wims_nopuce"> |
||
21 | <li>$(wims_name_thsheet[3]): $require</li> |
||
22 | !if $wims_user!=$empty and $wims_user!=supervisor |
||
23 | !set mean=!getscoremean sheet=$tmp_sheet work=$tmp_work |
||
24 | <li>$(wims_name_thsheet[7]): $[$mean]/10</li> |
||
25 | !if $severity_ss=0 |
||
26 | !set got=!getscore sheet=$tmp_sheet work=$tmp_work |
||
27 | <li>$(wims_name_thsheet[5]): $[round(100*$got/$require)]%</li> |
||
28 | !endif |
||
29 | !if $severity_ss=1 |
||
30 | !set best=!getscorebest sheet=$tmp_sheet work=$tmp_work |
||
31 | <li>$(wims_name_thsheet[10]): $[round(100*$best/$require)]%</li> |
||
32 | !endif |
||
33 | !if $severity_ss=2 |
||
34 | !set level=!getscorelevel sheet=$tmp_sheet work=$tmp_work |
||
35 | <li>$(wims_name_thsheet[13]): $[$level]/10</li> |
||
36 | !endif |
||
37 | !endif |
||
38 | </ul> |
||
18029 | bpr | 39 | !endif |
18014 | bpr | 40 | !endif |
18057 | bpr | 41 | </div></div> |
18014 | bpr | 42 | !endif |
43 | !endif |