Rev 10674 | Rev 10747 | 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 |
10640 | bpr | 21 | !if $wims_user=supervisor and $wims_realuser=supervisor |
10651 | bpr | 22 | !set user_supervise=!column 1 of $levels\ |
23 | $classes\ |
||
24 | $progs\ |
||
25 | $courses |
||
10640 | bpr | 26 | !set user_supervise=!makelist $wims_superclass/x for x in $user_supervise |
27 | !endif |
||
28 | |||
4770 | guerimand | 29 | !! ----------- definition des droits de connexion supervisor |
10651 | bpr | 30 | |
10669 | bpr | 31 | !reset compsup |
4770 | guerimand | 32 | !for cls in $user_supervise |
10703 | bpr | 33 | !if $wims_class isin $cls |
34 | !let tmp=!replace internal / by , in $cls |
||
35 | !let compsup=!append line $tmp to $compsup |
||
36 | !endif |
||
4770 | guerimand | 37 | !next cls |
38 | !let compsup=!sh echo "$compsup" | sort | uniq; |
||
10669 | bpr | 39 | $U_gotoclass3 |
10703 | bpr | 40 | |
10669 | bpr | 41 | !read classgraph.phtml supervise\ |
42 | $compsup |
||
4770 | guerimand | 43 | |
10674 | bpr | 44 | !let user_participate=!defof user_participate in wimshome/log/classes/$wims_superclass/.users/$wims_realuser |
45 | !if $user_participate=$empty |
||
46 | !exit |
||
47 | !endif |
||
10669 | bpr | 48 | !reset compsup |
49 | $U_gotoclass1 |
||
50 | |||
51 | !for cls in $user_participate |
||
10703 | bpr | 52 | !if $wims_class isin $cls |
53 | !let tmp=!replace internal / by , in $cls |
||
54 | !let compsup=!append line $tmp to $compsup |
||
55 | !endif |
||
10669 | bpr | 56 | !next cls |
57 | |||
58 | !let compsup=!sh echo "$compsup" | sort | uniq; |
||
59 | |||
60 | !read classgraph.phtml participate\ |
||
61 | $compsup |
||
62 |