Rev 4799 | Rev 4819 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4799 | guerimand | 1 | $U_gotoclass3 |
4770 | guerimand | 2 | !let user_supervise=!defof user_supervise in wimshome/log/classes/$wims_superclass/.users/$wims_user |
3 | !! ----------- definition des droits de connexion supervisor |
||
4799 | guerimand | 4 | <br> |
4770 | guerimand | 5 | !let compsup=$empty |
6 | !for cls in $user_supervise |
||
7 | !let tmp=!replace internal / by , in $cls |
||
8 | !let nb=!itemcnt $tmp |
||
9 | !for l=2 to $nb |
||
10 | !let t=!replace internal , by / in $(tmp[1 to $l]) |
||
11 | !let compsup=!append line $t to $compsup |
||
12 | !next l |
||
13 | !next cls |
||
14 | !let compsup=!sh echo "$compsup" | sort | uniq; |
||
15 | !let compsup=!lines2items $compsup |
||
16 | !let compsup=!nospace $compsup |
||
17 | |||
4799 | guerimand | 18 | !let tab=0 |
4770 | guerimand | 19 | !for cls in $compsup |
20 | !let don=!defof class_typename,class_description,class_supervisor,class_parent in wimshome/log/classes/$cls/.def |
||
21 | !let t=!positionof item $(don[1]) in level,class,program,course |
||
4799 | guerimand | 22 | !if $t=3 |
23 | !let ta=2 |
||
24 | !else |
||
25 | !let ta=$t |
||
26 | !endif |
||
27 | !if $tab!=$ta |
||
28 | !if $tab>$ta |
||
29 | !for k=$ta+1 to $tab |
||
30 | </ul> |
||
31 | !next k |
||
32 | !else |
||
33 | !for k=$tab+1 to $ta |
||
34 | <ul class="wims_subclasses"> |
||
35 | !next k |
||
36 | !endif |
||
37 | !endif |
||
38 | !let tab=$ta |
||
4770 | guerimand | 39 | !if $t=4 |
40 | !let tmp=!defof class_typename in wimshome/log/classes/$(don[4])/.def |
||
41 | !if $tmp=program |
||
42 | !let t=5 |
||
43 | !endif |
||
44 | !endif |
||
4799 | guerimand | 45 | <li>$arr <span class="wims_classes_direct_$(don[1])"> $(CL_Name[$t]) : |
4770 | guerimand | 46 | !if $cls notitemof $user_supervise |
47 | $(don[2]) |
||
48 | !else |
||
4799 | guerimand | 49 | !href module=adm/class/classes&type=authsupervisor&class=$cls&auth_user=supervisor $(don[2]) |
4770 | guerimand | 50 | !endif |
4799 | guerimand | 51 | ($(don[3])) </span> </li> |
4770 | guerimand | 52 | !next cls |
4799 | guerimand | 53 | !for k=1 to $tab |
54 | </ul> |
||
55 | !next k |
||
4770 | guerimand | 56 | |
57 | |||
58 |