Subversion Repositories wimsdev

Rev

Rev 10768 | Rev 10793 | Go to most recent revision | 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
10351 bpr 9
 !for i_=1 to $directcnt
1304 bpr 10
  !set cl=!word 1 of $(directlist[$i_])
10351 bpr 11
  !if /0/ notin $(cl)/
1421 bpr 12
    !set type_=!defof class_typename in wimshome/log/classes/$cl/.def
13
    !set direct$type_=!append item $(directlist[$i_]) to $(direct$type_)
1304 bpr 14
  !else
10747 bpr 15
    !set directtest=!append item $(directlist[$i_]) to $directtest
1304 bpr 16
  !endif
10747 bpr 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
10351 bpr 23
 !next
10747 bpr 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_
10768 bpr 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;
10747 bpr 36
 
10768 bpr 37
!!!read adm/class/graphclass supervise\
38
!!$compsup
10747 bpr 39
!reset compsup
40
 
1741 bpr 41
$name_direct:
10651 bpr 42
 
10768 bpr 43
!!!if / isin $user_participate_
44
!! !for cls in $user_participate_
45
!!  !if $wims_class isin $cls
46
!!    !let tmp=!replace internal / by , in $cls
47
!!    !let compsup=!append line $tmp to $compsup
48
!!  !endif
49
!! !next cls
50
!! !let compsup=!sh echo "$compsup" | sort | uniq;
51
!! !read adm/class/graphclass participate\
52
!!$compsup
53
!! !reset compsup
54
!! !goto enter
55
!!!endif
10750 bpr 56
!read tableold.phtml
57
:enter
10768 bpr 58
<div>
23 reyssat 59
 !if $wims_user=supervisor
9506 bpr 60
   $name_text3
61
 !else
62
   $name_text1
23 reyssat 63
 !endif
64
!else
65
 !if $wims_user=supervisor
9506 bpr 66
  $name_text2
23 reyssat 67
 !else
9506 bpr 68
  $name_noaccount
23 reyssat 69
 !endif
70
!endif
10768 bpr 71
</div>