Rev 12429 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1319 | guerimand | 1 | maxcomp=20 |
12053 | bpr | 2 | maxpalier=8 |
12359 | guerimand | 3 | !if $wims_class=$empty |
4 | !exit |
||
5 | !endif |
||
1845 | guerimand | 6 | !if $wims_user=supervisor |
12429 | bpr | 7 | livret_supervise=yes |
12053 | bpr | 8 | !else |
12429 | bpr | 9 | livret_supervise=no |
1845 | guerimand | 10 | !endif |
11 | livret_dir=wimshome/log/classes/$wims_class/livret |
||
1951 | guerimand | 12 | Livret_dir=$wims_home/log/classes/$wims_class/livret |
1319 | guerimand | 13 | |
1845 | guerimand | 14 | !readdef $livret_dir/.def |
15 | |||
12359 | guerimand | 16 | !if $livret_defined!=yes |
12429 | bpr | 17 | !sh mkdir -p $Livret_dir; |
18 | !filewrite $livret_dir/.def !set livret_title=$wims_name_livret\ |
||
1319 | guerimand | 19 | !set livret_description=$empty\ |
1951 | guerimand | 20 | !set livret_defined=yes\ |
21 | !set livret_scoreview=-1\ |
||
22 | !set livret_scoreoption=class |
||
12429 | bpr | 23 | !readdef $livret_dir/.def |
1845 | guerimand | 24 | !endif |
1319 | guerimand | 25 | |
1951 | guerimand | 26 | !distribute line $livret_scorecolor\ |
27 | $livret_scoreview into wims_scorecolor,wims_scoreview |
||
9563 | guerimand | 28 | !default wims_scorecolor=#9C9C9C,red,red,red,orange,orange,orange,yellow,yellow,green,green |
1951 | guerimand | 29 | !default wims_scoreview=-1 |
30 | !if class isin $livret_scoreoption |
||
12429 | bpr | 31 | wims_scorecolor=!defof class_scorecolor in wimshome/log/classes/$wims_class/.def |
1951 | guerimand | 32 | !endif |
2935 | guerimand | 33 | |
3040 | guerimand | 34 | shcnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets |
4344 | guerimand | 35 | asheets=$empty |
36 | nssheets=$empty |
||
3040 | guerimand | 37 | !for i=1 to $shcnt |
12429 | bpr | 38 | l=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets |
39 | l=!word 1 of $l |
||
40 | !if $l>0 |
||
41 | asheets=!append item $i to $asheets |
||
42 | !if $l>=2 |
||
43 | nssheets=!append item $i to $nssheets |
||
44 | !endif |
||
4344 | guerimand | 45 | !endif |
12429 | bpr | 46 | nbs=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$i |
47 | sheet$i=$empty |
||
48 | !for k=1 to $nbs |
||
49 | d=!record $k of wimshome/log/classes/$wims_class/sheets/.sheet$i |
||
50 | !distribute line $d into bla,bla,bla,bla,r5,r6 |
||
51 | sheet$i=!append line <span class="bold">$r5</span> <span class="small">$r6</span> to $(sheet$i) |
||
52 | !next k |
||
3040 | guerimand | 53 | !next i |
54 | |||
2935 | guerimand | 55 | convert_table=$empty |
15821 | guerimand | 56 | !! TODO : indiv maybe an error can appear with individualisation of sheet with technical variable |
57 | !! the convert_table should not be global but user dependant. |
||
58 | tmp=!getscoreweight |
||
2935 | guerimand | 59 | ntmp=!linecnt $tmp |
60 | cpt=1 |
||
61 | !for k=1 to $ntmp |
||
12429 | bpr | 62 | t=!line $k of $tmp |
63 | !if $t!=$empty |
||
64 | t=$cpt |
||
65 | !increase cpt |
||
66 | !else |
||
67 | t=$empty |
||
68 | !endif |
||
69 | convert_table=$convert_table,$t |
||
2935 | guerimand | 70 | !next k |
3040 | guerimand | 71 | convert_table=!item 2 to -1 of $convert_table |
72 | convert_table=!nospace $convert_table |
||
73 | |||
74 | v=!values v for v=1 to $shcnt |
||
12053 | bpr | 75 | nasheets=!listcomplement $asheets in $v |