Rev 2935 | Rev 4344 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1319 | guerimand | 1 | maxcomp=20 |
2 | maxpalier=5 |
||
1845 | guerimand | 3 | !if $wims_user=supervisor |
4 | livret_supervise=yes |
||
5 | !else |
||
6 | livret_supervise=no |
||
7 | !endif |
||
8 | livret_dir=wimshome/log/classes/$wims_class/livret |
||
1951 | guerimand | 9 | Livret_dir=$wims_home/log/classes/$wims_class/livret |
1319 | guerimand | 10 | |
1845 | guerimand | 11 | !readdef $livret_dir/.def |
12 | |||
13 | !if $livret_defined!=yes |
||
1951 | guerimand | 14 | !sh mkdir -p $Livret_dir; |
1845 | guerimand | 15 | !filewrite $livret_dir/.def !set livret_title=$wims_name_livret\ |
1319 | guerimand | 16 | !set livret_description=$empty\ |
1951 | guerimand | 17 | !set livret_defined=yes\ |
18 | !set livret_scoreview=-1\ |
||
19 | !set livret_scoreoption=class |
||
1845 | guerimand | 20 | !readdef $livret_dir/.def |
21 | !endif |
||
1319 | guerimand | 22 | |
1951 | guerimand | 23 | !distribute line $livret_scorecolor\ |
24 | $livret_scoreview into wims_scorecolor,wims_scoreview |
||
25 | !default wims_scorecolor=,red,red,red,orange,orange,orange,yellow,yellow,green,green |
||
26 | !default wims_scoreview=-1 |
||
27 | !if class isin $livret_scoreoption |
||
28 | wims_scorecolor=!defof class_scorecolor in wimshome/log/classes/$wims_class/.def |
||
29 | !endif |
||
2935 | guerimand | 30 | |
3040 | guerimand | 31 | shcnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets |
32 | !for i=1 to $shcnt |
||
33 | l=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets |
||
34 | l=!word 1 of $l |
||
35 | !if $l>0 |
||
36 | asheets=!append item $i to $asheets |
||
37 | !endif |
||
38 | nbs=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$i |
||
39 | sheet$i=$empty |
||
40 | !for k=1 to $nbs |
||
41 | d=!record $k of wimshome/log/classes/$wims_class/sheets/.sheet$i |
||
42 | !distribute line $d into bla,bla,bla,bla,r5,r6 |
||
43 | sheet$i=!append line <b>$r5</b> <small>$r6</small> to $(sheet$i) |
||
44 | !next k |
||
45 | !next i |
||
46 | |||
2935 | guerimand | 47 | convert_table=$empty |
48 | tmp=!record 0 of wimshome/log/classes/$wims_class/sheets/.weight |
||
49 | ntmp=!linecnt $tmp |
||
50 | cpt=1 |
||
51 | !for k=1 to $ntmp |
||
52 | t=!line $k of $tmp |
||
53 | !if $t!=$empty |
||
54 | t=$cpt |
||
55 | !increase cpt |
||
56 | !else |
||
57 | t=$empty |
||
58 | !endif |
||
3040 | guerimand | 59 | convert_table=$convert_table,$t |
2935 | guerimand | 60 | !next k |
3040 | guerimand | 61 | convert_table=!item 2 to -1 of $convert_table |
62 | convert_table=!nospace $convert_table |
||
63 | |||
64 | v=!values v for v=1 to $shcnt |
||
65 | nasheets=!listcomplement $asheets in $v |