Subversion Repositories wimsdev

Rev

Rev 10927 | Details | Compare with Previous | Last modification | View Log | RSS feed

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