Rev 10694 | Rev 10750 | 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 |
||
24 | <tr class="$nstyle"><td class="wims_classes_direct_type">$ntype_</td> |
||
25 | <td class="wims_classes_direct_name"> |
||
10747 | bpr | 26 | |
10694 | bpr | 27 | !href cmd=reply&type=auth$t_&class=$c_&auth_user=$u__ $n_ |
28 | </td><td class="tt">$u__</td> |
||
29 | </tr> |
||
30 | :out |
||
31 | !reset c_ u_ t_ |
||
32 | !next cl |
||
33 | !next typ |
||
34 | </table> |