Rev 15569 | Rev 16378 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15569 | Rev 16148 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | !reset exam$(i)_$jj |
27 | !reset exam$(i)_$jj |
28 | !endif |
28 | !endif |
29 | !if $(sess_$jj)!=$empty |
29 | !if $(sess_$jj)!=$empty |
30 | !reset sess_$jj |
30 | !reset sess_$jj |
31 | !endif |
31 | !endif |
32 | !next |
32 | !next jj |
33 | !next |
33 | !next i |
34 | 34 | ||
- | 35 | !! -------- reduce file length with only concerned session before wims action |
|
- | 36 | tmp_=$empty |
|
- | 37 | checksessions=!text select char 0123456789AZERTYUIOPMLKJHGFDSQWXCVBN,azertyuiopmlkjhgfdsqwxcvbn in $checksessions |
|
- | 38 | !for k_ in $checksessions |
|
- | 39 | tmp_=!append word a["$k_"]=0; to $tmp_ |
|
- | 40 | !next k_ |
|
- | 41 | !sh awk 'BEGIN{$tmp_} {if ($$6 in a || ($$6=="0" && flag==1)){print $$0; flag=1;} else {flag=0};}' $wims_home/log/classes/$wims_class/score/$uu.exam > $wims_home/sessions/$wims_session/tmpuser.exam; |
|
- | 42 | !! --------------------- |
|
- | 43 | sc=!record 0 of wimshome/sessions/$wims_session/tmpuser.exam |
|
35 |
|
44 | !!sc=!record 0 of wimshome/log/classes/$wims_class/score/$uu.exam |
36 | !if $sc=$empty |
45 | !if $sc=$empty |
37 | !exit |
46 | !exit |
38 | !endif |
47 | !endif |
39 | nsc=!linecnt $sc |
48 | nsc=!linecnt $sc |
40 | 49 | ||
Line 55... | Line 64... | ||
55 | !endif |
64 | !endif |
56 | !if $t__ issametext -1 |
65 | !if $t__ issametext -1 |
57 | duree$(jj)_$(e_)=$[$T_ - $(dur$(jj)_$e_)] |
66 | duree$(jj)_$(e_)=$[$T_ - $(dur$(jj)_$e_)] |
58 | !endif |
67 | !endif |
59 | !endif |
68 | !endif |
60 | !next |
69 | !next i |
61 | !for i in $activexams |
70 | !for i in $activexams |
62 | !if $(Dureeexam_$i)!=$empty |
71 | !if $(Dureeexam_$i)!=$empty |
63 | !reset Dureeexam_$i |
72 | !reset Dureeexam_$i |
64 | !endif |
73 | !endif |
65 | !for e=1 to 64 |
74 | !for e=1 to 64 |
Line 67... | Line 76... | ||
67 | !reset Exam_$(i)_$(e) |
76 | !reset Exam_$(i)_$(e) |
68 | !endif |
77 | !endif |
69 | !if $(exam$(i)_$e)!=$empty |
78 | !if $(exam$(i)_$e)!=$empty |
70 | !reset exam$(i)_$e |
79 | !reset exam$(i)_$e |
71 | !endif |
80 | !endif |
72 | !next |
81 | !next e |
73 | !for ses_ in $checksessions |
82 | !for ses_ in $checksessions |
74 | !set jj=!positionof item $ses_ in $checksessions |
83 | !set jj=!positionof item $ses_ in $checksessions |
75 | !if $(duree$(jj)_$i)!=$empty |
84 | !if $(duree$(jj)_$i)!=$empty |
76 | Dureeexam_$i=!append item $(duree$(jj)_$i) to $(Dureeexam_$i) |
85 | Dureeexam_$i=!append item $(duree$(jj)_$i) to $(Dureeexam_$i) |
77 | !endif |
86 | !endif |
78 | !next |
87 | !next ses_ |
79 | !next |
88 | !next |
80 | 89 | ||
81 | !!details des notes examens par session |
90 | !!details des notes examens par session |
82 | !for ses_ in $checksessions |
91 | !for ses_ in $checksessions |
83 | !set jj=!positionof item $ses_ in $checksessions |
92 | !set jj=!positionof item $ses_ in $checksessions |