Subversion Repositories wimsdev

Rev

Rev 2131 | Rev 2361 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2131 bpr 1
!reset lang_exists
2
!read lang/names.$lang
3
!if $lang_exists!=yes
4
 !read lang/names.en
5
!else
6
  module_language=$lang
7
!endif
8
 
1319 guerimand 9
maxcomp=20
10
maxpalier=5
1845 guerimand 11
!if $wims_user=supervisor
12
 livret_supervise=yes
13
!else 
14
 livret_supervise=no
15
!endif
16
livret_dir=wimshome/log/classes/$wims_class/livret
1951 guerimand 17
Livret_dir=$wims_home/log/classes/$wims_class/livret
1319 guerimand 18
 
1845 guerimand 19
!readdef $livret_dir/.def
20
 
21
!if $livret_defined!=yes
1951 guerimand 22
 !sh mkdir -p $Livret_dir;
1845 guerimand 23
 !filewrite $livret_dir/.def !set livret_title=$wims_name_livret\
1319 guerimand 24
!set livret_description=$empty\
1951 guerimand 25
!set livret_defined=yes\
26
!set livret_scoreview=-1\
27
!set livret_scoreoption=class
1845 guerimand 28
 !readdef $livret_dir/.def
29
!endif
1319 guerimand 30
 
1845 guerimand 31
!if $livret_supervise=yes
32
 sh=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets
33
 !for i=1 to $sh
34
  l=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets
35
  l=!word 1 of $l
36
  !if $l>0
37
   asheets=!append item $i to $asheets
38
  !endif
39
  nbs=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$i
40
  sheet$i=$empty
41
  !for k=1 to $nbs
42
   d=!record $k of wimshome/log/classes/$wims_class/sheets/.sheet$i
43
   !distribute line $d into bla,bla,bla,bla,r5,r6
44
   sheet$i=!append line <b>$r5</b> <small>$r6</small> to $(sheet$i)
45
  !next k
46
 !next i
1319 guerimand 47
!endif
48
 
1951 guerimand 49
!distribute line $livret_scorecolor\
50
$livret_scoreview into wims_scorecolor,wims_scoreview
51
!default wims_scorecolor=,red,red,red,orange,orange,orange,yellow,yellow,green,green
52
!default wims_scoreview=-1
53
!if class isin $livret_scoreoption
54
 wims_scorecolor=!defof class_scorecolor in wimshome/log/classes/$wims_class/.def
55
!endif