Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10651 | bpr | 1 | !set statut=!item 1 of $wims_read_parm |
2 | !set compsup=!item 2 to -1 of $wims_read_parm |
||
3 | !set compsup=!nospace $compsup |
||
4799 | guerimand | 4 | !let tab=0 |
4770 | guerimand | 5 | !for cls in $compsup |
10651 | bpr | 6 | !if $wims_class/ notin $cls |
7 | !goto encls |
||
8 | !endif |
||
4770 | guerimand | 9 | !let don=!defof class_typename,class_description,class_supervisor,class_parent in wimshome/log/classes/$cls/.def |
10 | !let t=!positionof item $(don[1]) in level,class,program,course |
||
10651 | bpr | 11 | !if $t=0 or $t=$empty |
12 | !goto encls |
||
13 | !endif |
||
4799 | guerimand | 14 | !if $t=3 |
15 | !let ta=2 |
||
16 | !else |
||
17 | !let ta=$t |
||
18 | !endif |
||
19 | !if $tab!=$ta |
||
20 | !if $tab>$ta |
||
21 | !for k=$ta+1 to $tab |
||
22 | </ul> |
||
23 | !next k |
||
24 | !else |
||
25 | !for k=$tab+1 to $ta |
||
26 | <ul class="wims_subclasses"> |
||
27 | !next k |
||
28 | !endif |
||
29 | !endif |
||
30 | !let tab=$ta |
||
4770 | guerimand | 31 | !if $t=4 |
32 | !let tmp=!defof class_typename in wimshome/log/classes/$(don[4])/.def |
||
33 | !if $tmp=program |
||
34 | !let t=5 |
||
35 | !endif |
||
36 | !endif |
||
7679 | bpr | 37 | <li>$arr <span class="wims_classes_direct_$(don[1])"> $(CL_Name[$t]) : |
10651 | bpr | 38 | !if $cls notitemof $(user_$statut) |
4770 | guerimand | 39 | $(don[2]) |
40 | !else |
||
10651 | bpr | 41 | !if $statut=supervise |
42 | !href module=adm/class/classes&type=authsupervisor&class=$cls&auth_user=supervisor $(don[2]) |
||
43 | !else |
||
44 | !href module=adm/class/classes&type=authparticipant&class=$cls&auth_user=$u_ $(don[2]) |
||
45 | !endif |
||
4770 | guerimand | 46 | !endif |
4799 | guerimand | 47 | ($(don[3])) </span> </li> |
10651 | bpr | 48 | :encls |
4770 | guerimand | 49 | !next cls |
4799 | guerimand | 50 | !for k=1 to $tab |
51 | </ul> |
||
52 | !next k |
||
10651 | bpr | 53 | !reset compsup |