Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
2670 bpr 1
!!exist_cdt=no
2
!!!if $lang notitemof fr,en,it
3
!! !exit
4
!!!endif
33 reyssat 5
 
6
!if $wims_supertype!=0 and\
7
 ($wims_supertype!=2 or $wims_typename!=class) and\
8
 ($wims_supertype!=4 or $wims_typename notitemof class,course)
9
 !exit
10
!endif
11
exist_cdt=yes
12
!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
14
 !if $tmp!=$empty
7679 bpr 15
  wims_name_cdt=$tmp
3960 bpr 16
  ADD_cdt=$wims_name_cdt
33 reyssat 17
 !endif
18
!endif
19
!exit
20
 
21
!!if ($wims_supertype=4 and $wims_typename=class)
22
!! lt_cdt=!record 0 of wimshome/log/classes/$wims_class/courses
23
!! lt_cdt=!column 1 of $lt_cdt
24
 !for k in $lt_cdt
25
  tmp=!defof cdt_nbdate in wimshome/log/classes/$wims_superclass/$k/cdt/.def
26
  !if $tmp>0
27
   exist_cdt=yes
28
   !exit
29
  !endif
30
 !next k
7679 bpr 31
 !exit
33 reyssat 32
!endif
7679 bpr 33
!if $wims_supertype=0 or
33 reyssat 34
 tmp=!defof cdt_nbdate\
35
cdt_link in wimshome/log/classes/$wims_class/cdt/.def
36
 !distribute line $tmp into tmp1,tmp2
37
 !if $tmp1>0
38
  exist_cdt=yes
39
 !endif
40
 !if $tmp2!=$empty
3960 bpr 41
  wims_name_cdt=$tmp2
42
  ADD_cdt=$wims_name_cdt
33 reyssat 43
 !endif
44
!endif