Rev 12719 | Rev 12721 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5619 | bpr | 1 | <div class="wims_content"> |
23 | reyssat | 2 | |
3 | !read search.phtml |
||
4 | !if $clcnt+$sccnt<1 and $keyword!=$empty |
||
12720 | bpr | 5 | <p class="notfound"> |
6 | $name_nofound |
||
7 | </p> |
||
23 | reyssat | 8 | !endif |
9 | !if $wims_user!=$empty |
||
12720 | bpr | 10 | !read direct.phtml |
11 | !if $wims_user!=supervisor and $supervisable!=yes |
||
12 | !exit |
||
13 | !endif |
||
23 | reyssat | 14 | !else |
2238 | bpr | 15 | !read lang/supervisor.phtml.$modu_lang |
23 | reyssat | 16 | !endif |
17 | |||
18 | !if $overflow=yes |
||
12720 | bpr | 19 | !exit |
23 | reyssat | 20 | !endif |
21 | |||
22 | !if $clcnt+$sccnt>0 |
||
12720 | bpr | 23 | !if $wims_user=$empty |
24 | $name_supervisor_text |
||
25 | !endif |
||
2238 | bpr | 26 | |
12720 | bpr | 27 | !if $sccnt>0 |
28 | !set table_id=TABLE_portal |
||
29 | !set table_class=sortable |
||
30 | $table_header |
||
31 | <caption>$name_portalandgroup</caption> |
||
32 | <thead> |
||
33 | <tr> |
||
12534 | guerimand | 34 | <th></th> |
35 | <th>$wims_name_teacher</th> |
||
36 | <th colspan="2">$wims_name_nameteacher/$wims_name_Supervisor</th> |
||
12720 | bpr | 37 | </tr> |
38 | $table_hdtr |
||
12534 | guerimand | 39 | <th scope="col">$wims_name_name</th> |
40 | <th scope="col" data-sort-method="none">$wims_name_action</th> |
||
41 | <th scope="col">$wims_name_name</th> |
||
42 | <th scope="col" data-sort-method="none">$wims_name_action</th> |
||
12720 | bpr | 43 | </tr> |
44 | </thead> |
||
45 | <tbody> |
||
46 | !for i=1 to $sccnt |
||
47 | !set l=!line $i of $sclasses |
||
48 | !distribute items $l into code,expire,in,cl,la,ty,lv,pswd |
||
49 | !set supv=!item 9 of $l |
||
50 | !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def |
||
10164 | bpr | 51 | |
12720 | bpr | 52 | $table_tr |
53 | <td> |
||
54 | $in<br />$cl |
||
55 | </td> |
||
56 | !reset class_auth |
||
57 | !defread wimshome/log/classes/$code/.def |
||
58 | !read adm/class/initclass $code,auth |
||
59 | !if $class_auth isitemof $auth_method_list and $(class_$(class_auth)_auth)!=$empty |
||
60 | !read supervisor2.phtml |
||
61 | !else |
||
62 | <td> |
||
63 | !set wims_ref_class=wims_button |
||
64 | !href module=$module&type=authparticipant&class=$code $wims_name_Enter |
||
65 | </td> |
||
66 | !endif |
||
67 | <td>$supv</td> |
||
68 | <td> |
||
69 | !set wims_ref_class=wims_button |
||
70 | !href module=$module&type=authsupervisor&class=$code $wims_name_Enter |
||
71 | </td></tr> |
||
72 | !next i |
||
73 | </tbody> |
||
74 | $table_end |
||
75 | !read tablesort.phtml |
||
76 | !endif |
||
77 | !if $clcnt>0 and $s_prog!=1 |
||
78 | !set table_id=TABLE_cls |
||
79 | !set table_class=sortable |
||
80 | $table_header |
||
81 | <thead> |
||
82 | !if $superclass_orig=$empty |
||
83 | <caption>$name_independantclass</caption> |
||
84 | $table_hdtr |
||
85 | <th scope="col">$wims_name_name</th> |
||
86 | <th scope="col">$wims_name_nameteacher / $wims_name_Supervisor</th> |
||
87 | <th scope="col">$wims_name_action</th> |
||
88 | </tr> |
||
89 | !else |
||
90 | !if $splevel>1 |
||
91 | !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def |
||
92 | !else |
||
93 | !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def |
||
94 | !endif |
||
95 | !default Name_level=$(CL_Name[2]) |
||
96 | <caption>$Name_level / $inst |
||
97 | !if $class_type>2 |
||
98 | $ |
||
99 | !set wims_ref_class=wims_button_help |
||
100 | !href cmd=help&special_parm=$module_language/structure $wims_name_help |
||
101 | !endif |
||
102 | !if $splevel>1 |
||
103 | !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up |
||
104 | !endif |
||
105 | </caption> |
||
106 | $table_hdtr |
||
107 | <th scope="col">$Name_level</th> |
||
108 | <th scope="col">$wims_name_nameteacher</th> |
||
12534 | guerimand | 109 | !if $superclass_orig!=$empty and $stype=4 |
110 | <th scope="col">+</th> |
||
111 | !if $ty!=1 and $splevel =1 |
||
112 | <th scope="col">+</th> |
||
113 | !endif |
||
114 | !endif |
||
12720 | bpr | 115 | </tr> |
116 | !endif |
||
117 | </thead> |
||
118 | <tbody> |
||
119 | !for i=1 to $clcnt |
||
120 | !set l=!line $i of $classes |
||
121 | !distribute items $l into code,expire,in,cl,la,ty,lv,pswd |
||
122 | !set supv=!item 9 of $l |
||
123 | !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def |
||
10164 | bpr | 124 | |
12720 | bpr | 125 | $table_tr |
126 | !if $superclass_orig=$empty |
||
127 | <td>$in<br />$cl</td> |
||
411 | bpr | 128 | !else |
12720 | bpr | 129 | <td> |
130 | !href module=$module&type=authsupervisor&class=$code $cl |
||
131 | </td> |
||
411 | bpr | 132 | !endif |
12720 | bpr | 133 | <td>$supv</td> |
134 | !if $superclass_orig!=$empty and $stype=4 |
||
135 | <td> |
||
136 | !if $ty!=1 |
||
137 | !set wims_ref_class=wims_button |
||
138 | !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses |
||
139 | !else |
||
140 | - |
||
141 | !endif |
||
142 | </td> |
||
143 | !if $ty!=1 and $splevel =1 |
||
144 | <td> |
||
145 | !set wims_ref_class=wims_button |
||
146 | !href cmd=reply&type=$type&superclass2=$code&s_prog=1 $name_program |
||
147 | </td> |
||
148 | !endif |
||
411 | bpr | 149 | !endif |
12720 | bpr | 150 | !if $superclass_orig=$empty |
151 | <td> |
||
152 | !set wims_ref_class=wims_button |
||
153 | !href module=$module&type=authsupervisor&class=$code $wims_name_Enter |
||
154 | </td> |
||
155 | !endif |
||
156 | </tr> |
||
411 | bpr | 157 | !next i |
12720 | bpr | 158 | </tbody> |
159 | $table_end |
||
160 | !read tablesort.phtml |
||
491 | bpr | 161 | !else |
12720 | bpr | 162 | !!#####################program |
163 | !if $clcnt_pr>0 |
||
164 | !if $splevel>1 |
||
165 | !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def |
||
166 | !else |
||
167 | !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def |
||
168 | !endif |
||
169 | !set table_id=TABLE_program |
||
170 | !set table_class=sortable |
||
171 | $table_header |
||
12534 | guerimand | 172 | <thead> |
1741 | bpr | 173 | <caption>$Name_program ($inst) |
411 | bpr | 174 | !if $splevel>1 |
12720 | bpr | 175 | !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up |
23 | reyssat | 176 | !endif |
411 | bpr | 177 | </caption> |
12534 | guerimand | 178 | $table_hdtr |
179 | <th scope="col">$wims_name_level</th> |
||
180 | <th scope="col">$wims_name_nameteacher</th> |
||
181 | <th scope="col">+</th> |
||
182 | </tr> |
||
183 | </thead> |
||
184 | <tbody> |
||
411 | bpr | 185 | !for i=1 to $clcnt_pr |
12720 | bpr | 186 | !set l=!line $i of $classes_pr |
187 | !distribute items $l into code,expire,in,cl,la,ty,lv,pswd |
||
188 | !set supv=!item 9 of $l |
||
189 | !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def |
||
190 | $table_tr |
||
5894 | bpr | 191 | <td> |
12720 | bpr | 192 | !href module=$module&type=authsupervisor&class=$code $cl |
193 | </td> |
||
194 | <td>$supv</td> |
||
195 | !if $superclass_orig!=$empty and $stype=4 |
||
196 | <td> |
||
197 | !if $ty!=1 |
||
198 | !set wims_ref_class=wims_button |
||
199 | !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses |
||
200 | !else |
||
201 | - |
||
202 | !endif |
||
203 | </td> |
||
411 | bpr | 204 | !endif |
12720 | bpr | 205 | </td></tr> |
411 | bpr | 206 | !next i |
12534 | guerimand | 207 | </tbody> |
411 | bpr | 208 | $table_end |
12638 | obado | 209 | !read tablesort.phtml |
491 | bpr | 210 | !endif |
12720 | bpr | 211 | !endif |
12534 | guerimand | 212 | |
23 | reyssat | 213 | !else |
12720 | bpr | 214 | !if $class_type=$empty and $superclass_orig=$empty and $keyword=$empty |
215 | ($name_language2) |
||
216 | !else |
||
217 | !if $clcnt=0 and $keyword=$empty |
||
218 | ($name_noavailable) |
||
219 | !endif |
||
220 | !endif |
||
23 | reyssat | 221 | !endif |
5601 | obado | 222 | |
223 | </div> |