Subversion Repositories wimsdev

Rev

Rev 10760 | Rev 13147 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10760 Rev 10762
Line 1... Line -...
1
 
-
 
2
!if $wims_superclass=$empty
1
!if $wims_superclass=$empty
3
  !let wims_superclass=$wims_class
2
  !let wims_superclass=$wims_class
4
!endif
3
!endif
5
!set wims_realuser=!defof wims_realuser in wimshome/$wims_sesdir/var.stat
4
!set wims_realuser=!defof wims_realuser in wimshome/$wims_sesdir/var.stat
6
!set user_participate=!defof user_participate in wimshome/log/classes/$wims_superclass/.users/$wims_realuser
5
!set user_participate=!defof user_participate in wimshome/log/classes/$wims_superclass/.users/$wims_realuser
Line 20... Line 19...
20
!!endif
19
!!endif
21
!set icourses=!record 0 of wimshome/log/classes/$wims_class/icourses
20
!set icourses=!record 0 of wimshome/log/classes/$wims_class/icourses
22
!set icoursecnt=!linecnt $icourses
21
!set icoursecnt=!linecnt $icourses
23
 
22
 
24
!!add the compulsory courses
23
!!add the compulsory courses
25
 
24
 
26
!for cls in $user_participate
25
!for cls in $user_participate
27
  !set sub_=!record 0 of wimshome/log/classes/$cls/courses
26
  !set sub_=!record 0 of wimshome/log/classes/$cls/courses
28
  !set sub_cnt=!linecnt $sub_
27
  !set sub_cnt=!linecnt $sub_
29
  !if $sub_cnt>0
28
  !if $sub_cnt>0
30
     !for k_=1 to $sub_cnt
29
     !for k_=1 to $sub_cnt
31
       !set parent_c=!defof class_parent in wimshome/log/classes/$wims_superclass/$(sub_[$k_;1])/.def
30
       !set parent_c=!defof class_parent in wimshome/log/classes/$wims_superclass/$(sub_[$k_;1])/.def
Line 48... Line 47...
48
    !let compsup=!append line $tmp to $compsup
47
    !let compsup=!append line $tmp to $compsup
49
  !endif
48
  !endif
50
!next cls
49
!next cls
51
!set user_participate_=$user_participate
50
!set user_participate_=$user_participate
52
!let compsup=!sh echo "$compsup" | sort | uniq;
51
!let compsup=!sh echo "$compsup" | sort | uniq;
-
 
52
 
-
 
53
 
53
!!let compsup=!lines2items $compsup
54
!if $class_type=3 and $class_typename!=level
54
!!let compsup=!nospace $compsup
55
   $U_gotoclass01
-
 
56
!else
55
  U_gotoclass
57
   $U_gotoclass0
-
 
58
!endif
56
 
59
 
57
!read adm/class/graphclass participate\
60
!read adm/class/graphclass participate\
58
$compsup
61
$compsup