Rev 6248 | Rev 10351 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5020 | bpr | 1 | !read adm/class/initclass $wims_class |
1421 | bpr | 2 | |
1467 | bpr | 3 | !if $directcnt>0 |
1304 | bpr | 4 | !for i_=1 to $directcnt |
5 | !set cl=!word 1 of $(directlist[$i_]) |
||
6 | !if /0/ notin $(cl)/ |
||
1421 | bpr | 7 | !set type_=!defof class_typename in wimshome/log/classes/$cl/.def |
8 | !set direct$type_=!append item $(directlist[$i_]) to $(direct$type_) |
||
1304 | bpr | 9 | !else |
10 | !set directtest=!append item $(directlist[$i_]) to $directtest |
||
11 | !endif |
||
12 | !next |
||
5036 | bpr | 13 | |
1741 | bpr | 14 | $name_direct: |
411 | bpr | 15 | <table class="wims_classes_direct"> |
5063 | bpr | 16 | !for typ in portal,group,level,class,course,program,test |
17 | !set nstyle=wims_classes_direct_$typ |
||
18 | !set ntype_=$typ |
||
1304 | bpr | 19 | !set ntype_ = !replace internal program by $(CL_Name[3]) in $ntype_ |
20 | !set ntype_ = !replace internal level by $(CL_Name[1]) in $ntype_ |
||
21 | !set ntype_ = !replace internal class by $(CL_Name[2]) in $ntype_ |
||
22 | !set ntype_ = !replace internal course by $(CL_Name[4]) in $ntype_ |
||
23 | !set ntype_ = !replace internal portal by $(CL_Name[6]) in $ntype_ |
||
24 | !set ntype_ = !replace internal group by $(CL_Name[6]) in $ntype_ |
||
25 | !set ntype_ = !replace internal test by $(CL_Name[7]) in $ntype_ |
||
5063 | bpr | 26 | !for cl in $(direct$typ) |
27 | !distribute words $cl into c_,u_ |
||
28 | !set n_=!defof class_institution, class_description in\ |
||
9506 | bpr | 29 | wimshome/log/classes/$c_/.def |
5063 | bpr | 30 | !if $u_=supervisor |
4152 | bpr | 31 | !set t_=supervisor |
5063 | bpr | 32 | !if $c_ notwordof $wims_supervise and $wims_realuser!=$wims_user |
33 | !goto out |
||
34 | !endif |
||
35 | !else |
||
36 | !set t_=$type |
||
4109 | bpr | 37 | !endif |
38 | <tr class="$nstyle"><td class="wims_classes_direct_type">$ntype_</td> |
||
5037 | bpr | 39 | <td class="wims_classes_direct_name"> |
5107 | bpr | 40 | !set u__=$u_ |
5063 | bpr | 41 | !if $auth_method isitemof $auth_method_list |
5035 | bpr | 42 | !if $u_ != supervisor |
43 | !readproc adm/class/userdef classes,$c_,$u_ |
||
44 | !set u__=!defof user_external_auth in $userdef |
||
45 | !endif |
||
5063 | bpr | 46 | !endif |
47 | !href cmd=reply&type=auth$t_&class=$c_&auth_user=$u__ $n_ |
||
6248 | bpr | 48 | </td><td class="tt">$u__</td> |
5063 | bpr | 49 | </tr> |
4109 | bpr | 50 | :out |
5063 | bpr | 51 | !reset c_ u_ t_ |
52 | !next cl |
||
53 | !next typ |
||
411 | bpr | 54 | </table> |
23 | reyssat | 55 | !if $wims_user=supervisor |
9506 | bpr | 56 | $name_text3 |
57 | !else |
||
58 | $name_text1 |
||
23 | reyssat | 59 | !endif |
60 | !else |
||
61 | !if $wims_user=supervisor |
||
9506 | bpr | 62 | $name_text2 |
23 | reyssat | 63 | !else |
9506 | bpr | 64 | $name_noaccount |
23 | reyssat | 65 | !endif |
66 | !endif |
||
67 |