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 |
10927 | 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 |
||
10927 | bpr | 39 | !reset compsup |
40 | !if $directcnt=0 |
||
10793 | bpr | 41 | !goto enter |
10927 | bpr | 42 | !endif |
43 | $name_direct: |
||
10651 | bpr | 44 | |
10768 | bpr | 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 |
||
10750 | bpr | 58 | !read tableold.phtml |
59 | :enter |
||
10768 | bpr | 60 | <div> |
23 | reyssat | 61 | !if $wims_user=supervisor |
9506 | bpr | 62 | $name_text3 |
63 | !else |
||
64 | $name_text1 |
||
23 | reyssat | 65 | !endif |
66 | !else |
||
67 | !if $wims_user=supervisor |
||
9506 | bpr | 68 | $name_text2 |
23 | reyssat | 69 | !else |
9506 | bpr | 70 | $name_noaccount |
23 | reyssat | 71 | !endif |
10793 | bpr | 72 | !endif directcnt>0 |
10768 | bpr | 73 | </div> |