Rev 7679 | Rev 11979 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7926 | bpr | 1 | !reset exist_cdt |
33 | reyssat | 2 | |
3 | !if $wims_supertype!=0 and\ |
||
4 | ($wims_supertype!=2 or $wims_typename!=class) and\ |
||
5 | ($wims_supertype!=4 or $wims_typename notitemof class,course) |
||
6 | !exit |
||
7 | !endif |
||
7926 | bpr | 8 | !if $wims_user=supervisor |
9 | exist_cdt=yes |
||
10 | !endif |
||
33 | reyssat | 11 | !if $wims_user=supervisor or $wims_supertype=0 or ($wims_supertype=4 and $wims_typename=class) |
12 | tmp=!defof cdt_link in wimshome/log/classes/$wims_class/cdt/.def |
||
13 | !if $tmp!=$empty |
||
7679 | bpr | 14 | wims_name_cdt=$tmp |
3960 | bpr | 15 | ADD_cdt=$wims_name_cdt |
33 | reyssat | 16 | !endif |
17 | !endif |
||
18 | !exit |
||
19 | |||
20 | !!if ($wims_supertype=4 and $wims_typename=class) |
||
21 | !! lt_cdt=!record 0 of wimshome/log/classes/$wims_class/courses |
||
22 | !! lt_cdt=!column 1 of $lt_cdt |
||
23 | !for k in $lt_cdt |
||
24 | tmp=!defof cdt_nbdate in wimshome/log/classes/$wims_superclass/$k/cdt/.def |
||
25 | !if $tmp>0 |
||
26 | exist_cdt=yes |
||
27 | !exit |
||
28 | !endif |
||
29 | !next k |
||
7679 | bpr | 30 | !exit |
7926 | bpr | 31 | !!endif |
32 | !!never going here |
||
33 | |||
7679 | bpr | 34 | !if $wims_supertype=0 or |
33 | reyssat | 35 | tmp=!defof cdt_nbdate\ |
36 | cdt_link in wimshome/log/classes/$wims_class/cdt/.def |
||
37 | !distribute line $tmp into tmp1,tmp2 |
||
38 | !if $tmp1>0 |
||
39 | exist_cdt=yes |
||
40 | !endif |
||
41 | !if $tmp2!=$empty |
||
3960 | bpr | 42 | wims_name_cdt=$tmp2 |
43 | ADD_cdt=$wims_name_cdt |
||
33 | reyssat | 44 | !endif |
45 | !endif |