Subversion Repositories wimsdev

Rev

Rev 12885 | Rev 15267 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12885 Rev 13713
Line 1... Line 1...
1
!reset exist_cdt
1
!reset exist_cdt
2
 
2
 
-
 
3
!! test situation for displaying cdt (other level have no access to cdt)
3
!if $wims_supertype!=0 and\
4
!if $wims_supertype!=0 and\
4
    ($wims_supertype!=2 or $wims_typename!=class) and\
5
    ($wims_supertype!=2 or $wims_typename!=class) and\
5
    ($wims_supertype!=4 or $wims_typename notitemof class,course)
6
    ($wims_supertype!=4 or $wims_typename notitemof class,course)
6
  !exit
7
  !exit
7
!endif
8
!endif
8
 
9
 
-
 
10
!! link cdt display in any case for supervisor
9
!if $wims_user=supervisor
11
!if $wims_user=supervisor
10
  exist_cdt=yes
12
  exist_cdt=yes
11
  !exit
13
  !exit
12
!endif
14
!endif
13
 
15
 
-
 
16
!! ------- display cdt for class (alone) ; class (in groupement) ; course (in portal) for class in  portal see next test
14
!if $wims_supertype=0 or ($wims_supertype=4 and $wims_typename=course)
17
!if $wims_supertype=0 or ($wims_supertype=4 and $wims_typename=course) or ($wims_supertype=2 and $wims_typename=class)
15
  tmp=!defof cdt_nbdate\
18
  tmp=!defof cdt_nbdate\
16
cdt_link\
19
cdt_link\
17
cdt_hide in wimshome/log/classes/$wims_class/cdt/.def
20
cdt_hide in wimshome/log/classes/$wims_class/cdt/.def
18
  !distribute line $tmp into tmp2,tmp,tmp3
21
  !distribute line $tmp into tmp2,tmp,tmp3
19
  !if $tmp3=yes or $tmp2<=0
22
  !if $tmp3=yes or $tmp2<=0
Line 24... Line 27...
24
    wims_name_cdt=$tmp
27
    wims_name_cdt=$tmp
25
    ADD_cdt=$wims_name_cdt
28
    ADD_cdt=$wims_name_cdt
26
  !endif
29
  !endif
27
!endif
30
!endif
28
 
31
 
-
 
32
 
-
 
33
!!--------- in a portal cdt display in a class if there is one open  cdt in one of the course of the class (in the class cdt will be summary of all cdt course)
29
!if $wims_supertype=4 and $wims_typename=class
34
!if $wims_supertype=4 and $wims_typename=class
30
  lt_cdt=!record 0 of wimshome/log/classes/$wims_class/courses
35
  lt_cdt=!record 0 of wimshome/log/classes/$wims_class/courses
31
  lt_cdt=!column 1 of $lt_cdt
36
  lt_cdt=!column 1 of $lt_cdt
32
  !for k in $lt_cdt
37
  !for k in $lt_cdt
33
    tmp=!defof cdt_nbdate,cdt_hide in wimshome/log/classes/$wims_superclass/$k/cdt/.def
38
    tmp=!defof cdt_nbdate,cdt_hide in wimshome/log/classes/$wims_superclass/$k/cdt/.def
Line 35... Line 40...
35
      exist_cdt=yes
40
      exist_cdt=yes
36
      !exit
41
      !exit
37
    !endif
42
    !endif
38
  !next k
43
  !next k
39
!endif
44
!endif
-
 
45