Subversion Repositories wimsdev

Rev

Rev 10927 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10927 Rev 12720
Line 4... Line 4...
4
!!! in supervisor.phtml (should be with the old value).
4
!!! in supervisor.phtml (should be with the old value).
5
!set superclass_orig=$superclass
5
!set superclass_orig=$superclass
6
!read adm/class/initclass $wims_class
6
!read adm/class/initclass $wims_class
7
!reset directlistparticipate directlistsupervisor
7
!reset directlistparticipate directlistsupervisor
8
!if $directcnt>0
8
!if $directcnt>0
9
 !for i_=1 to $directcnt
9
  !for i_=1 to $directcnt
10
  !set cl=!word 1 of $(directlist[$i_])
10
    !set cl=!word 1 of $(directlist[$i_])
11
  !if /0/ notin $(cl)/
11
    !if /0/ notin $(cl)/
12
    !set type_=!defof class_typename in wimshome/log/classes/$cl/.def
12
      !set type_=!defof class_typename in wimshome/log/classes/$cl/.def
13
    !set direct$type_=!append item $(directlist[$i_]) to $(direct$type_)
13
      !set direct$type_=!append item $(directlist[$i_]) to $(direct$type_)
14
  !else
14
    !else
15
    !set directtest=!append item $(directlist[$i_]) to $directtest
15
      !set directtest=!append item $(directlist[$i_]) to $directtest
16
  !endif
16
    !endif
17
  !set tmp=!word 2 of $(directlist[$i_])
17
    !set tmp=!word 2 of $(directlist[$i_])
18
  !if $tmp=supervisor
18
    !if $tmp=supervisor
19
    !set directlistsupervisor=!append item $cl to $directlistsupervisor
19
      !set directlistsupervisor=!append item $cl to $directlistsupervisor
20
  !else
20
    !else
21
    !set directlistparticipate=!append item $cl to $directlistparticipate
21
      !set directlistparticipate=!append item $cl to $directlistparticipate
22
  !endif
22
    !endif
23
 !next
23
  !next
24
 !set user_participate_=!append item $directlistparticipate to $user_participate
24
  !set user_participate_=!append item $directlistparticipate to $user_participate
25
 !set user_participate_=!listuniq $user_participate_
25
  !set user_participate_=!listuniq $user_participate_
26
 !set user_supervise_=!append item $directlistsupervise to $user_supervise
26
  !set user_supervise_=!append item $directlistsupervise to $user_supervise
27
 !set user_supervise_=!listuniq $user_supervise_
27
  !set user_supervise_=!listuniq $user_supervise_
28
!! finally leave the old table ! too much trouble
28
  !! finally leave the old table ! too much trouble
29
!!!for cls in $user_supervise_
29
  !!!for cls in $user_supervise_
30
!!  !if $wims_class isin $cls
30
  !!  !if $wims_class isin $cls
31
!!   !let tmp=!replace internal / by , in $cls
31
  !!   !let tmp=!replace internal / by , in $cls
32
!!    !let compsup=!append line $tmp to $compsup
32
  !!    !let compsup=!append line $tmp to $compsup
33
!!  !endif
33
  !!  !endif
34
!!!next cls
34
  !!!next cls
35
!!!let compsup=!sh echo "$compsup" | sort | uniq;
35
  !!!let compsup=!sh echo "$compsup" | sort | uniq;
36
 
-
 
37
!!!read adm/class/graphclass supervise\
-
 
38
!!$compsup
-
 
39
 !reset compsup
-
 
40
 !if $directcnt=0
-
 
41
  !goto enter
-
 
42
 !endif
-
 
43
 $name_direct:
-
 
44
 
36
 
-
 
37
  !!!read adm/class/graphclass supervise\
-
 
38
  !!$compsup
-
 
39
  !reset compsup
-
 
40
  !if $directcnt=0
-
 
41
    !goto enter
-
 
42
  !endif
-
 
43
  $name_direct:
-
 
44
 
45
!!!if / isin $user_participate_
45
  !!!if / isin $user_participate_
46
!! !for cls in $user_participate_
46
  !! !for cls in $user_participate_
47
!!  !if $wims_class isin $cls
47
  !!  !if $wims_class isin $cls
48
!!    !let tmp=!replace internal / by , in $cls
48
  !!    !let tmp=!replace internal / by , in $cls
49
!!    !let compsup=!append line $tmp to $compsup
49
  !!    !let compsup=!append line $tmp to $compsup
50
!!  !endif
50
  !!  !endif
51
!! !next cls
51
  !! !next cls
52
!! !let compsup=!sh echo "$compsup" | sort | uniq;
52
  !! !let compsup=!sh echo "$compsup" | sort | uniq;
53
!! !read adm/class/graphclass participate\
53
  !! !read adm/class/graphclass participate\
54
!!$compsup
54
  !!$compsup
55
!! !reset compsup
55
  !! !reset compsup
56
!! !goto enter
56
  !! !goto enter
57
!!!endif
57
  !!!endif
58
!read tableold.phtml
58
  !read tableold.phtml
59
:enter
59
  :enter
60
<div>
60
  <div>
61
 !if $wims_user=supervisor
61
  !if $wims_user=supervisor
62
   $name_text3
62
    $name_text3
63
 !else
63
  !else
64
   $name_text1
64
    $name_text1
65
 !endif
65
  !endif
66
!else
66
!else
67
 !if $wims_user=supervisor
67
  !if $wims_user=supervisor
68
  $name_text2
68
    $name_text2
69
 !else
69
  !else
70
  $name_noaccount
70
    $name_noaccount
71
 !endif
71
  !endif
72
!endif directcnt>0
72
!endif directcnt>0
73
</div>
73
</div>