Subversion Repositories wimsdev

Rev

Rev 10759 | Rev 10762 | 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
10674 bpr 7
!if $user_participate=$empty
8
  !exit
9
!endif
10651 bpr 10
!set levels=!record 0 of wimshome/log/classes/$wims_class/levels
11
!set levelcnt=!linecnt $levels
10640 bpr 12
!set classes=!record 0 of wimshome/log/classes/$wims_class/classes
13
!set classcnt=!linecnt $classes
14
!set progs=!record 0 of wimshome/log/classes/$wims_class/programs
15
!set progcnt=!linecnt $progs
16
 
10651 bpr 17
!!if $classcnt+$progcnt>=1
10640 bpr 18
 !set courses=!record 0 of wimshome/log/classes/$wims_class/courses
19
 !set coursecnt=!linecnt $courses
10651 bpr 20
!!endif
10640 bpr 21
!set icourses=!record 0 of wimshome/log/classes/$wims_class/icourses
22
!set icoursecnt=!linecnt $icourses
23
 
10651 bpr 24
!!add the compulsory courses
10640 bpr 25
 
10651 bpr 26
!for cls in $user_participate
27
  !set sub_=!record 0 of wimshome/log/classes/$cls/courses
28
  !set sub_cnt=!linecnt $sub_
29
  !if $sub_cnt>0
30
     !for k_=1 to $sub_cnt
31
       !set parent_c=!defof class_parent in wimshome/log/classes/$wims_superclass/$(sub_[$k_;1])/.def
32
       !set split=!replace internal / by , in $(sub_[$k_;1])
33
       !set progstyle=!defof class_progstyle in wimshome/log/classes/$wims_superclass/$(split[1])/$(split[3])/.def
34
       !if optional iswordof $progstyle
35
          !set inscrit=!defof user_class in wimshome/log/classes/$wims_superclass/$(sub_[$k_;1])/.users/$wims_user
36
       !endif
37
       !if mandatory iswordof $progstyle or $(split[1])/$(split[2]) iswordof $inscrit
38
          !set user_participate=!append item $wims_superclass/$(sub_[$k_;1]) to $user_participate
39
       !endif
40
     !next
41
  !endif
42
!next
43
 
4770 guerimand 44
!let compsup=$empty
10651 bpr 45
!for cls in $user_participate
10703 bpr 46
  !if $wims_class isin $cls
47
    !let tmp=!replace internal / by , in $cls
48
    !let compsup=!append line $tmp to $compsup
49
  !endif
4770 guerimand 50
!next cls
10747 bpr 51
!set user_participate_=$user_participate
4770 guerimand 52
!let compsup=!sh echo "$compsup" | sort | uniq;
10669 bpr 53
!!let compsup=!lines2items $compsup
54
!!let compsup=!nospace $compsup
10760 czzmrn 55
  U_gotoclass
10747 bpr 56
 
57
!read adm/class/graphclass participate\
10669 bpr 58
$compsup