Rev 11979 | Rev 12876 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11979 | Rev 12821 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | 2 | ||
3 | !if $wims_supertype!=0 and\ |
3 | !if $wims_supertype!=0 and\ |
4 | ($wims_supertype!=2 or $wims_typename!=class) and\ |
4 | ($wims_supertype!=2 or $wims_typename!=class) and\ |
5 | ($wims_supertype!=4 or $wims_typename notitemof class,course) |
5 | ($wims_supertype!=4 or $wims_typename notitemof class,course) |
6 | !exit |
6 | !exit |
7 | !endif |
7 | !endif |
8 | 8 | ||
9 | !if $wims_user=supervisor |
9 | !if $wims_user=supervisor |
10 | exist_cdt=yes |
10 | exist_cdt=yes |
11 | !exit |
11 | !exit |
12 | !endif |
12 | !endif |
13 | 13 | ||
14 | !if $wims_supertype=0 or ($wims_supertype=4 and $wims_typename=course) |
14 | !if $wims_supertype=0 or ($wims_supertype=4 and $wims_typename=course) |
15 | tmp=!defof cdt_nbdate\ |
15 | tmp=!defof cdt_nbdate\ |
16 | cdt_link\ |
16 | cdt_link\ |
17 | cdt_hide in wimshome/log/classes/$wims_class/cdt/.def |
17 | cdt_hide in wimshome/log/classes/$wims_class/cdt/.def |
18 | !distribute line $tmp into tmp,tmp2,tmp3 |
18 | !distribute line $tmp into tmp,tmp2,tmp3 |
19 | !if $tmp3=yes or $tmp2<=0 |
19 | !if $tmp3=yes or $tmp2<=0 |
20 | !exit |
20 | !exit |
21 | !endif |
21 | !endif |
22 | exist_cdt=yes |
22 | exist_cdt=yes |
23 | !if $tmp!=$empty |
23 | !if $tmp!=$empty |
24 | wims_name_cdt=$tmp |
24 | wims_name_cdt=$tmp |
25 | ADD_cdt=$wims_name_cdt |
25 | ADD_cdt=$wims_name_cdt |
26 | !endif |
26 | !endif |
27 | !endif |
27 | !endif |
28 | 28 | ||
29 | !if $wims_supertype=4 and $wims_typename=class |
29 | !if $wims_supertype=4 and $wims_typename=class |
30 | lt_cdt=!record 0 of wimshome/log/classes/$wims_class/courses |
30 | lt_cdt=!record 0 of wimshome/log/classes/$wims_class/courses |
31 | lt_cdt=!column 1 of $lt_cdt |
31 | lt_cdt=!column 1 of $lt_cdt |
32 | !for k in $lt_cdt |
32 | !for k in $lt_cdt |
33 | tmp=!defof cdt_nbdate,cdt_hide in wimshome/log/classes/$wims_superclass/$k/cdt/.def |
33 | tmp=!defof cdt_nbdate,cdt_hide in wimshome/log/classes/$wims_superclass/$k/cdt/.def |
34 | !if $(tmp[1])>0 and $(tmp[2])!=yes |
34 | !if $(tmp[1])>0 and $(tmp[2])!=yes |
35 | exist_cdt=yes |
35 | exist_cdt=yes |
36 | !exit |
36 | !exit |
37 | !endif |
37 | !endif |
38 | !next k |
38 | !next k |
39 | !endif |
39 | !endif |