Rev 10640 | Rev 10669 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10651 | bpr | 1 | |
4819 | czzmrn | 2 | !if $wims_superclass=$empty |
4820 | czzmrn | 3 | !let wims_superclass=$wims_class |
4819 | czzmrn | 4 | !endif |
10640 | bpr | 5 | !set wims_realuser=!defof wims_realuser in wimshome/$wims_sesdir/var.stat |
10651 | bpr | 6 | !set user_participate=!defof user_participate in wimshome/log/classes/$wims_superclass/.users/$wims_realuser |
7 | !set levels=!record 0 of wimshome/log/classes/$wims_class/levels |
||
8 | !set levelcnt=!linecnt $levels |
||
10640 | bpr | 9 | !set classes=!record 0 of wimshome/log/classes/$wims_class/classes |
10 | !set classcnt=!linecnt $classes |
||
11 | !set progs=!record 0 of wimshome/log/classes/$wims_class/programs |
||
12 | !set progcnt=!linecnt $progs |
||
13 | |||
10651 | bpr | 14 | !!if $classcnt+$progcnt>=1 |
10640 | bpr | 15 | !set courses=!record 0 of wimshome/log/classes/$wims_class/courses |
16 | !set coursecnt=!linecnt $courses |
||
10651 | bpr | 17 | !!endif |
10640 | bpr | 18 | !set icourses=!record 0 of wimshome/log/classes/$wims_class/icourses |
19 | !set icoursecnt=!linecnt $icourses |
||
20 | |||
10651 | bpr | 21 | !!add the compulsory courses |
10640 | bpr | 22 | |
10651 | bpr | 23 | !for cls in $user_participate |
24 | !set sub_=!record 0 of wimshome/log/classes/$cls/courses |
||
25 | !set sub_cnt=!linecnt $sub_ |
||
26 | !if $sub_cnt>0 |
||
27 | !for k_=1 to $sub_cnt |
||
28 | !set parent_c=!defof class_parent in wimshome/log/classes/$wims_superclass/$(sub_[$k_;1])/.def |
||
29 | !set split=!replace internal / by , in $(sub_[$k_;1]) |
||
30 | !set progstyle=!defof class_progstyle in wimshome/log/classes/$wims_superclass/$(split[1])/$(split[3])/.def |
||
31 | !if optional iswordof $progstyle |
||
32 | !set inscrit=!defof user_class in wimshome/log/classes/$wims_superclass/$(sub_[$k_;1])/.users/$wims_user |
||
33 | !endif |
||
34 | !if mandatory iswordof $progstyle or $(split[1])/$(split[2]) iswordof $inscrit |
||
35 | !set user_participate=!append item $wims_superclass/$(sub_[$k_;1]) to $user_participate |
||
36 | !endif |
||
37 | !next |
||
38 | !endif |
||
39 | !next |
||
40 | |||
4770 | guerimand | 41 | !let compsup=$empty |
10651 | bpr | 42 | !for cls in $user_participate |
4770 | guerimand | 43 | !let tmp=!replace internal / by , in $cls |
44 | !let nb=!itemcnt $tmp |
||
45 | !for l=2 to $nb |
||
46 | !let t=!replace internal , by / in $(tmp[1 to $l]) |
||
47 | !let compsup=!append line $t to $compsup |
||
48 | !next l |
||
49 | !next cls |
||
50 | !let compsup=!sh echo "$compsup" | sort | uniq; |
||
51 | !let compsup=!lines2items $compsup |
||
52 | !let compsup=!nospace $compsup |
||
53 | |||
10651 | bpr | 54 | !read classgraph.phtml participate,$compsup |