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