Subversion Repositories wimsdev

Rev

Rev 2861 | Rev 3040 | 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
 
1845 guerimand 23
!if $livret_supervise=yes
24
 sh=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets
25
 !for i=1 to $sh
26
  l=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets
27
  l=!word 1 of $l
28
  !if $l>0
29
   asheets=!append item $i to $asheets
30
  !endif
31
  nbs=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$i
32
  sheet$i=$empty
33
  !for k=1 to $nbs
34
   d=!record $k of wimshome/log/classes/$wims_class/sheets/.sheet$i
35
   !distribute line $d into bla,bla,bla,bla,r5,r6
36
   sheet$i=!append line <b>$r5</b> <small>$r6</small> to $(sheet$i)
37
  !next k
38
 !next i
1319 guerimand 39
!endif
40
 
1951 guerimand 41
!distribute line $livret_scorecolor\
42
$livret_scoreview into wims_scorecolor,wims_scoreview
43
!default wims_scorecolor=,red,red,red,orange,orange,orange,yellow,yellow,green,green
44
!default wims_scoreview=-1
45
!if class isin $livret_scoreoption
46
 wims_scorecolor=!defof class_scorecolor in wimshome/log/classes/$wims_class/.def
47
!endif
2935 guerimand 48
 
49
convert_table=$empty
50
tmp=!record 0 of wimshome/log/classes/$wims_class/sheets/.weight
51
ntmp=!linecnt $tmp
52
cpt=1
53
!for k=1 to $ntmp
54
 t=!line $k of $tmp
55
 !if $t!=$empty
56
  t=$cpt
57
  !increase cpt
58
 !else
59
  t=$empty
60
 !endif
61
 convert_table=!append item $t to $convert_table
62
!next k