Rev 10747 | Rev 10793 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10694 | bpr | 1 | <table class="wims_classes_direct"> |
2 | !for typ in portal,group,level,class,course,program,test |
||
3 | !set nstyle=wims_classes_direct_$typ |
||
4 | !set ntype_=$typ |
||
5 | !set ntype_ = !replace internal program by $(CL_Name[3]) in $ntype_ |
||
6 | !set ntype_ = !replace internal level by $(CL_Name[1]) in $ntype_ |
||
7 | !set ntype_ = !replace internal class by $(CL_Name[2]) in $ntype_ |
||
8 | !set ntype_ = !replace internal course by $(CL_Name[4]) in $ntype_ |
||
9 | !set ntype_ = !replace internal portal by $(CL_Name[6]) in $ntype_ |
||
10 | !set ntype_ = !replace internal group by $(CL_Name[6]) in $ntype_ |
||
11 | !set ntype_ = !replace internal test by $(CL_Name[7]) in $ntype_ |
||
12 | !for cl in $(direct$typ) |
||
13 | !distribute words $cl into c_,u_ |
||
14 | !set n_=!defof class_institution, class_description in\ |
||
15 | wimshome/log/classes/$c_/.def |
||
16 | !if $u_=supervisor |
||
17 | !set t_=supervisor |
||
18 | !if $c_ notwordof $wims_supervise and $wims_realuser!=$wims_user |
||
19 | !goto out |
||
20 | !endif |
||
21 | !else |
||
22 | !set t_=$type |
||
23 | !endif |
||
10750 | bpr | 24 | |
10694 | bpr | 25 | <tr class="$nstyle"><td class="wims_classes_direct_type">$ntype_</td> |
26 | <td class="wims_classes_direct_name"> |
||
10750 | bpr | 27 | !set u__=$u_ |
28 | !if $auth_method isitemof $auth_method_list |
||
29 | !if $u_ != supervisor |
||
30 | !readproc adm/class/userdef classes,$c_,$u_ |
||
31 | !set u__=!defof user_external_auth in $userdef |
||
32 | !endif |
||
33 | !endif |
||
10694 | bpr | 34 | !href cmd=reply&type=auth$t_&class=$c_&auth_user=$u__ $n_ |
35 | </td><td class="tt">$u__</td> |
||
36 | </tr> |
||
37 | :out |
||
38 | !reset c_ u_ t_ |
||
39 | !next cl |
||
40 | !next typ |
||
41 | </table> |