Rev 17179 | Rev 17507 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4819 | czzmrn | 1 | !if $wims_superclass=$empty |
4820 | czzmrn | 2 | !let wims_superclass=$wims_class |
4819 | czzmrn | 3 | !endif |
10640 | bpr | 4 | !set wims_realuser=!defof wims_realuser in wimshome/$wims_sesdir/var.stat |
5 | !set user_supervise=!defof user_supervise in wimshome/log/classes/$wims_superclass/.users/$wims_realuser |
||
10651 | bpr | 6 | !set levels=!record 0 of wimshome/log/classes/$wims_class/levels |
7 | !set levelcnt=!linecnt $levels |
||
10640 | bpr | 8 | !set classes=!record 0 of wimshome/log/classes/$wims_class/classes |
9 | !set classcnt=!linecnt $classes |
||
10 | !set progs=!record 0 of wimshome/log/classes/$wims_class/programs |
||
11 | !set progcnt=!linecnt $progs |
||
12 | |||
10651 | bpr | 13 | !!if $classcnt+$progcnt>=1 |
10640 | bpr | 14 | !set courses=!record 0 of wimshome/log/classes/$wims_class/courses |
15 | !set coursecnt=!linecnt $courses |
||
10651 | bpr | 16 | !!endif |
10640 | bpr | 17 | !set icourses=!record 0 of wimshome/log/classes/$wims_class/icourses |
18 | !set icoursecnt=!linecnt $icourses |
||
19 | |||
10651 | bpr | 20 | !let user_supervise=!defof user_supervise in wimshome/log/classes/$wims_superclass/.users/$wims_realuser |
17506 | guerimand | 21 | !if $wims_user=supervisor and ($wims_realuser=supervisor or $wims_realuser=SUPERVISOR) |
10651 | bpr | 22 | !set user_supervise=!column 1 of $levels\ |
23 | $classes\ |
||
24 | $progs\ |
||
10747 | bpr | 25 | $courses\ |
26 | $icourses |
||
27 | !set user_supervise=!nonempty items $user_supervise |
||
10640 | bpr | 28 | !set user_supervise=!makelist $wims_superclass/x for x in $user_supervise |
29 | !endif |
||
30 | |||
4770 | guerimand | 31 | !! ----------- definition des droits de connexion supervisor |
10762 | bpr | 32 | |
33 | !!! as a supervisor |
||
10669 | bpr | 34 | !reset compsup |
4770 | guerimand | 35 | !for cls in $user_supervise |
10703 | bpr | 36 | !if $wims_class isin $cls |
37 | !let tmp=!replace internal / by , in $cls |
||
10747 | bpr | 38 | !if $tmp!=$empty |
39 | !let compsup=!append line $tmp to $compsup |
||
40 | !endif |
||
10703 | bpr | 41 | !endif |
4770 | guerimand | 42 | !next cls |
43 | !let compsup=!sh echo "$compsup" | sort | uniq; |
||
10762 | bpr | 44 | |
10945 | bpr | 45 | !if $user_supervisable=yes and $wims_superclass isitemof $user_supervise and $wims_superclass=$wims_class |
46 | !let don=!defof class_typename,class_description,class_supervisor in wimshome/log/classes/$classrad/.def |
||
47 | <ul class="wims_subclasses"><li><span class="wims_classes_direct_portal"> |
||
12821 | bpr | 48 | !href module=adm/class/classes&type=authsupervisor&class=$wims_superclass&auth_user=supervisor $class_description (supervisor) |
10945 | bpr | 49 | </span></li> |
50 | </ul> |
||
51 | !endif |
||
10762 | bpr | 52 | !let user_participate=!defof user_participate in wimshome/log/classes/$wims_superclass/.users/$wims_realuser |
53 | |||
16684 | guerimand | 54 | !if $compsup!=$empty |
55 | !let sup_details=open |
||
10747 | bpr | 56 | !endif |
16684 | guerimand | 57 | <details $sup_details> |
58 | <summary> |
||
59 | !if $class_type=3 and $class_typename!=level |
||
60 | !!in a class |
||
61 | $U_gotoclass31 |
||
62 | !else |
||
63 | $U_gotoclass3 |
||
64 | !endif |
||
65 | </summary> |
||
66 | !let user_supervise_=$user_supervise |
||
67 | !read adm/class/graphclass supervise\ |
||
10669 | bpr | 68 | $compsup |
16780 | guerimand | 69 | !if $compsup=$empty and $courses_right=$empty |
16684 | guerimand | 70 | $U_nogotoclass |
71 | !endif |
||
72 | </details> |
||
4770 | guerimand | 73 | |
16684 | guerimand | 74 | !if $user_participate=$empty or $wims_class notin $user_participate |
10747 | bpr | 75 | !exit |
10674 | bpr | 76 | !endif |
10762 | bpr | 77 | |
16685 | bpr | 78 | !!! as a student |
17179 | bpr | 79 | <br> |
16684 | guerimand | 80 | !changeto subclasses_user.phtml |
81 | |||
16685 | bpr | 82 | !! no more in use. use directly subclasses_user.phtml file |
16684 | guerimand | 83 | |
10669 | bpr | 84 | !reset compsup |
10762 | bpr | 85 | !if $class_type=3 and $class_typename!=level |
12821 | bpr | 86 | !!in a class |
87 | $U_gotoclass11 |
||
10762 | bpr | 88 | !else |
12821 | bpr | 89 | $U_gotoclass1 |
10762 | bpr | 90 | !endif |
10669 | bpr | 91 | |
92 | !for cls in $user_participate |
||
10703 | bpr | 93 | !if $wims_class isin $cls |
94 | !let tmp=!replace internal / by , in $cls |
||
10747 | bpr | 95 | !if $tmp!=$empty |
96 | !let compsup=!append line $tmp to $compsup |
||
97 | !endif |
||
10703 | bpr | 98 | !endif |
10669 | bpr | 99 | !next cls |
100 | |||
101 | !let compsup=!sh echo "$compsup" | sort | uniq; |
||
10747 | bpr | 102 | !let user_participate_=$user_participate |
103 | !read adm/class/graphclass participate\ |
||
10669 | bpr | 104 | $compsup |