Subversion Repositories wimsdev

Rev

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

Rev 7679 Rev 7926
Line 1... Line 1...
1
!!exist_cdt=no
1
!reset exist_cdt
2
!!!if $lang notitemof fr,en,it
-
 
3
!! !exit
-
 
4
!!!endif
-
 
5
 
2
 
6
!if $wims_supertype!=0 and\
3
!if $wims_supertype!=0 and\
7
 ($wims_supertype!=2 or $wims_typename!=class) and\
4
 ($wims_supertype!=2 or $wims_typename!=class) and\
8
 ($wims_supertype!=4 or $wims_typename notitemof class,course)
5
 ($wims_supertype!=4 or $wims_typename notitemof class,course)
9
 !exit
6
 !exit
10
!endif
7
!endif
-
 
8
!if $wims_user=supervisor
11
exist_cdt=yes
9
  exist_cdt=yes
-
 
10
!endif
12
!if $wims_user=supervisor or $wims_supertype=0 or ($wims_supertype=4 and $wims_typename=class)
11
!if $wims_user=supervisor or $wims_supertype=0 or ($wims_supertype=4 and $wims_typename=class)
13
 tmp=!defof cdt_link in wimshome/log/classes/$wims_class/cdt/.def
12
 tmp=!defof cdt_link in wimshome/log/classes/$wims_class/cdt/.def
14
 !if $tmp!=$empty
13
 !if $tmp!=$empty
15
  wims_name_cdt=$tmp
14
  wims_name_cdt=$tmp
16
  ADD_cdt=$wims_name_cdt
15
  ADD_cdt=$wims_name_cdt
Line 27... Line 26...
27
   exist_cdt=yes
26
   exist_cdt=yes
28
   !exit
27
   !exit
29
  !endif
28
  !endif
30
 !next k
29
 !next k
31
 !exit
30
 !exit
32
!endif
31
!!endif
-
 
32
!!never going here
-
 
33
 
33
!if $wims_supertype=0 or
34
!if $wims_supertype=0 or
34
 tmp=!defof cdt_nbdate\
35
 tmp=!defof cdt_nbdate\
35
cdt_link in wimshome/log/classes/$wims_class/cdt/.def
36
cdt_link in wimshome/log/classes/$wims_class/cdt/.def
36
 !distribute line $tmp into tmp1,tmp2
37
 !distribute line $tmp into tmp1,tmp2
37
 !if $tmp1>0
38
 !if $tmp1>0