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