Rev 16288 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10616 | obado | 1 | <!-- begin of Nikaia/supervisor.phtml --> |
5677 | obado | 2 | !! supervisor page definition. |
3 | !nocache |
||
4 | !if $module!=home |
||
13068 | obado | 5 | !exit |
5677 | obado | 6 | !endif |
7 | !set home_theme=yes |
||
8 | |||
9 | !readproc tabletheme |
||
10 | |||
11 | !read classlogo.phtml |
||
12 | !if $class_logo!= |
||
10625 | bpr | 13 | <div id="classlogo" class="float_$class_logoside"> |
17178 | bpr | 14 | <img src="$class_logo" alt="class logo"> |
10625 | bpr | 15 | </div> |
5677 | obado | 16 | !endif |
7074 | obado | 17 | |
5677 | obado | 18 | !read ./adm/title.phtml 2\ |
19 | $wims_classname, $wims_institutionname\ |
||
20 | ($SU_log - $(wims_name_$class_typename)) |
||
10794 | obado | 21 | |
7074 | obado | 22 | <div class="wims_content"> |
5677 | obado | 23 | |
24 | !if _tool isin $wims_session |
||
25 | !read ./tools.phtml |
||
12848 | obado | 26 | </div><!--/wims_content --> |
27 | </div><!--/wimsbody --> |
||
28 | </div><!--/wimspagebox --> |
||
5677 | obado | 29 | !goto end |
30 | !endif |
||
6046 | bpr | 31 | !!definition for menumodubox |
32 | !distribute items div,div into div0,div1 |
||
5989 | bpr | 33 | |
10794 | obado | 34 | !if $class_type=3 |
13068 | obado | 35 | $SU_greet. |
36 | !read ./subclasses.phtml |
||
37 | !read ./Subclasses1.phtml |
||
38 | !if $class_typename=level |
||
39 | </div><!--wimscontent --> |
||
40 | </div><!--wimsbody --> |
||
41 | </div><!--wimspagebox --> |
||
42 | !read themes/_procs/menumodubox3.proc |
||
43 | !read themes/_widgets/menumodubox.phtml |
||
44 | !goto end |
||
45 | !else |
||
46 | !goto nocheck |
||
47 | !endif |
||
10794 | obado | 48 | !endif class_type=3 |
6046 | bpr | 49 | |
10794 | obado | 50 | !if $class_type=4 |
51 | !if $wims_user=supervisor |
||
52 | !read ./subclasses.phtml |
||
53 | !read ./Subclasses1.phtml |
||
54 | !endif |
||
12848 | obado | 55 | </div><!--/wims_content --> |
56 | </div><!--/wimsbody --> |
||
57 | </div><!--/wimspagebox --> |
||
10794 | obado | 58 | !read themes/_procs/menumodubox3.proc |
59 | !read themes/_widgets/menumodubox.phtml |
||
60 | !goto end |
||
61 | !endif class_type=4 |
||
62 | |||
63 | |||
9610 | obado | 64 | <p class="wims_greetings"> |
13068 | obado | 65 | !if $class_type notin 13 |
66 | $SU_greet |
||
67 | $SU_exp1 |
||
68 | !set d_=!char 7,8 of $class_expiration |
||
69 | !set m_=!char 5,6 of $class_expiration |
||
70 | !set y_=!char 1 to 4 of $class_expiration |
||
71 | !read adm/date.phtml date,$y_,$m_,$d_ |
||
72 | !href module=adm/class/config $c_date_out |
||
73 | $SU_exp2. |
||
74 | !else |
||
75 | $SU_greet. |
||
76 | !endif |
||
16176 | obado | 77 | |
13068 | obado | 78 | !set wims_ref_class=wims_button_help |
79 | !if $class_type=2 |
||
80 | !set wims_helper=chapter=3&open=3_group#group |
||
11623 | bpr | 81 | !else |
13068 | obado | 82 | !if $class_type=4 |
83 | !set wims_helper=chapter=3&open=3_institution#institution |
||
84 | !else |
||
85 | !set wims_helper=chapter=3&open=3_sheet#sheet |
||
86 | !endif |
||
11623 | bpr | 87 | !endif |
13068 | obado | 88 | !href target=wims_help module=help/main&$wims_helper $wims_name_whelp |
9610 | obado | 89 | </p> |
90 | |||
16131 | guerimand | 91 | !! ------- list of program of the class |
92 | !if $class_type=1 and $class_typename=course |
||
93 | !read adm/class/graphclsprog $wims_class |
||
94 | !endif |
||
16176 | obado | 95 | !! ------- |
16131 | guerimand | 96 | |
5677 | obado | 97 | !if $wims_numpartconnected>0 |
13068 | obado | 98 | <p class="wims_connected">$SU_numpartconnected.</p> |
5677 | obado | 99 | !else |
13068 | obado | 100 | <div class="wims_msg info">$SU_nopartconnected.</div> |
5677 | obado | 101 | !endif |
102 | |||
103 | !if $quota_free<2 |
||
14327 | guerimand | 104 | !if $quota_free<=0 |
105 | <div class="wims_msg alert">$wims_name_exceeded</div> |
||
16176 | obado | 106 | <p class="wims_center"> |
107 | !set wims_ref_class=wims_button |
||
14327 | guerimand | 108 | !href cmd=close&module=home&lang=$lang $wims_name_visitor |
109 | </p> |
||
16176 | obado | 110 | </div><!--/wims_content --> |
111 | </div><!--/wimsbody--> |
||
112 | </div><!--/wimspagebox--> |
||
13068 | obado | 113 | !goto end |
114 | !else |
||
14327 | guerimand | 115 | <div class="wims_msg warning"> |
116 | <b>$wims_name_warning</b>! $wims_name_reaching_limit |
||
13068 | obado | 117 | </div> |
118 | !endif |
||
5677 | obado | 119 | !endif |
120 | :nocheck |
||
121 | |||
122 | !if & isin $newmsgcnt or $newmsgcnt>0 |
||
13068 | obado | 123 | <p class="wims_msg info"> |
124 | !href module=adm/forum/mboard $U_newmsg |
||
125 | </p> |
||
5677 | obado | 126 | !endif |
127 | !if $class_type=4 |
||
13068 | obado | 128 | <div class="wimscenter"> |
129 | !href module=adm/class/gateway $wims_name_SU_Gateway |
||
130 | </div> |
||
131 | </div><!--/wims_content --> |
||
132 | </div><!--/wimsbody --> |
||
133 | </div><!--/wimspagebox --> |
||
5677 | obado | 134 | |
13068 | obado | 135 | !read themes/_procs/menumodubox3.proc |
136 | !read themes/_widgets/menumodubox.phtml |
||
137 | !goto end |
||
6046 | bpr | 138 | !endif class_type=4 |
5677 | obado | 139 | |
140 | !if $class_type=2 |
||
13068 | obado | 141 | !if $subclasscnt>0 |
142 | $table_header |
||
143 | <thead> |
||
144 | $table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th><th scope="col">$wims_name_nameteacher</th></tr> |
||
145 | </thead> |
||
146 | <tbody> |
||
147 | !for i=1 to $subclasscnt |
||
148 | !let f_class=!record $i of wimshome/log/classes/$wims_class/.subclasses |
||
149 | !let f_aff=!item 4 of $f_class |
||
150 | !let f_name=!item 1 of $f_class |
||
151 | $table_tr |
||
152 | <td>$ADD_class $i</td> |
||
153 | <td> |
||
154 | !href module=adm/class/classes&type=authsupervisor&class=$f_name $f_aff |
||
155 | </td> |
||
156 | <td> |
||
157 | !item 9 of $f_class |
||
158 | </td> |
||
159 | </tr> |
||
160 | !next i |
||
161 | </tbody> |
||
162 | $table_end |
||
163 | !endif subclasscnt |
||
164 | </div><!--/wims_content --> |
||
165 | </div><!--/wimsbody --> |
||
166 | </div><!--/wimspagebox --> |
||
7671 | bpr | 167 | |
13068 | obado | 168 | !read themes/_procs/menumodubox2.proc |
169 | !read themes/_widgets/menumodubox.phtml |
||
170 | !goto end |
||
6046 | bpr | 171 | !endif class_type=2 |
9768 | bpr | 172 | !! classtype=0 or 1 |
16189 | guerimand | 173 | !let test=!fileexists wimshome/log/manager_msg.phtml.$lang |
174 | !if $test=yes |
||
175 | <div id="wims_class_manager_msg" class="wims_class_manager_msg"> |
||
176 | !read ./wimshome/log/manager_msg.phtml.$lang |
||
177 | </div> |
||
178 | !endif |
||
5677 | obado | 179 | |
180 | !set test=!replace / by , in $wims_class |
||
7671 | bpr | 181 | !if $(test[-1])=0 |
182 | !set test_up=!replace internal /0- by in $wims_class- |
||
5677 | obado | 183 | !set wims_ref_class=wims_button |
184 | !href module=adm/class/classes&type=authsupervisor&class=$test_up $SU_Bprogram |
||
185 | !endif |
||
186 | |||
187 | !set docpubliccnt=!recordcnt wimshome/log/classes/$wims_class/doc/.docindex |
||
5992 | bpr | 188 | |
10794 | obado | 189 | !set table_htdr_1=$table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th> |
190 | !set table_htdr_2=<th scope="col">$wims_name_Status</th><th scope="col">$wims_name_action</th></tr> |
||
191 | !set table_exocnt=<th>$wims_name_cnt_exo</th> |
||
11999 | obado | 192 | !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def |
10794 | obado | 193 | !if $seq_open=yes |
194 | !set table_htdr_seq=<th scope="col">$wims_name_sequence</th> |
||
5677 | obado | 195 | !else |
10794 | obado | 196 | !reset table_htdr_seq |
197 | !endif |
||
198 | |||
12355 | obado | 199 | !set toolcnt=!recordcnt wimshome/log/classes/$wims_class/tool/.toolindex |
12831 | bpr | 200 | !set glossarycnt=!recordcnt wimshome/log/classes/$wims_class/tool/.glossaryindex |
16288 | guerimand | 201 | !if $sheetcnt+$examcnt+$doccnt+$docpubliccnt+$votecnt+$subclasscnt+$toolcnt+$glossarycnt+$freeworkcnt<=0 |
13068 | obado | 202 | <p class="wims_msg info">$SU_nosheet</p> |
10795 | obado | 203 | !else |
204 | !if $class_type notin 24 |
||
205 | !if $seq_open=yes |
||
13068 | obado | 206 | $CR_sequence |
10795 | obado | 207 | !endif |
208 | <div class="wimscenter"> |
||
12355 | obado | 209 | !set wims_ref_class=wims_button |
210 | !href module=adm/class/sequence $wims_name_reorder |
||
10795 | obado | 211 | </div> |
10794 | obado | 212 | !endif |
5677 | obado | 213 | |
10795 | obado | 214 | <div id="widget_supervisor_list"> |
215 | <ul id="wims_supervisor_summary"> |
||
216 | !if $subclasscnt>0 |
||
217 | <li><a href="#wims_supervisor_subclass">$wims_name_classlist</a></li> |
||
218 | !endif |
||
219 | !if $[$sheetcnt+$examcnt]>0 |
||
220 | <li><a href="#wims_supervisor_shlist">$C_A</a></li> |
||
221 | !endif |
||
222 | !if $[$docpubliccnt+$doccnt]>0 |
||
223 | <li><a href="#wims_supervisor_doc">$wims_name_Docs</a></li> |
||
224 | !endif |
||
225 | !if $votecnt>0 |
||
226 | <li><a href="#wims_supervisor_vote">$wims_name_Votes</a></li> |
||
227 | !endif |
||
12831 | bpr | 228 | !if $toolcnt+$glossarycnt>0 |
12355 | obado | 229 | <li><a href="#wims_supervisor_tool" class="wims_tool_item">$wims_name_tools</a></li> |
230 | !endif |
||
14297 | guerimand | 231 | !if $freeworkcnt>0 |
232 | <li><a class="wims_freework_item" href="#wims_supervisor_freework">$wims_name_Freeworks</a></li> |
||
233 | !endif |
||
10795 | obado | 234 | </ul> |
235 | |||
236 | !! Jquery tabs |
||
237 | !read adm/tabscript supervisor_list |
||
238 | |||
10794 | obado | 239 | !if $subclasscnt>0 |
10795 | obado | 240 | <div id="wims_supervisor_subclass"> |
241 | !distribute item 1,no into wims_incremental,table_spacer |
||
242 | $table_header |
||
243 | $table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th><th scope="col">$wims_name_nameteacher</th></tr> |
||
244 | !read themes/_widgets/supervisorsubclass.phtml |
||
245 | $table_end |
||
246 | </div> |
||
10794 | obado | 247 | !endif |
248 | |||
13172 | obado | 249 | !set table_class=sortable |
10795 | obado | 250 | !if $sheetcnt+$examcnt>0 |
251 | <div id="wims_supervisor_shlist"> |
||
13172 | obado | 252 | !set table_id=TABLE_supervisor_shlist |
253 | !set table_htdr_=<thead>$table_htdr_1$table_exocnt$table_htdr_seq$table_htdr_2</thead> |
||
10794 | obado | 254 | $table_header |
12004 | obado | 255 | <caption>$C_A</caption> |
256 | $table_htdr_ |
||
257 | !read themes/_widgets/supervisorsheet.phtml |
||
258 | !read themes/_widgets/supervisorexam.phtml |
||
10794 | obado | 259 | $table_end |
13172 | obado | 260 | !read tablesort.phtml |
10795 | obado | 261 | </div> |
10794 | obado | 262 | !endif |
263 | |||
10795 | obado | 264 | !if $[$doccnt+$docpubliccnt]>0 |
13172 | obado | 265 | !set table_id=TABLE_supervisor_doc |
266 | !set table_htdr_=<thead>$table_htdr_1$table_htdr_seq$table_htdr_2</thead> |
||
10795 | obado | 267 | <div id="wims_supervisor_doc"> |
268 | $table_header |
||
12848 | obado | 269 | <caption>$wims_name_Docs</caption> |
270 | $table_htdr_ |
||
271 | !read themes/_widgets/supervisordoc.phtml |
||
272 | !read themes/_widgets/supervisordocp.phtml |
||
10795 | obado | 273 | $table_end |
13172 | obado | 274 | !read tablesort.phtml |
10795 | obado | 275 | </div> |
276 | !endif |
||
277 | |||
278 | !if $votecnt>0 |
||
13172 | obado | 279 | !set table_id=TABLE_supervisor_vote |
280 | !set table_htdr_=<thead>$table_htdr_1$table_htdr_seq$table_htdr_2</thead> |
||
10795 | obado | 281 | <div id="wims_supervisor_vote"> |
282 | $table_header |
||
12848 | obado | 283 | <caption>$wims_name_Votes</caption> |
284 | $table_htdr_ |
||
285 | !read themes/_widgets/supervisorvote.phtml |
||
10795 | obado | 286 | $table_end |
13172 | obado | 287 | !read tablesort.phtml |
10795 | obado | 288 | </div> |
12355 | obado | 289 | !endif |
290 | |||
12831 | bpr | 291 | !if $toolcnt+$glossarycnt>0 |
13172 | obado | 292 | !set table_id=TABLE_supervisor_tool |
293 | !set table_htdr_=<thead>$table_htdr_1$table_htdr_seq$table_htdr_2</thead> |
||
12355 | obado | 294 | <div id="wims_supervisor_tool"> |
12848 | obado | 295 | !distribute item 1,no into wims_incremental,table_id,table_spacer |
296 | $table_header |
||
13172 | obado | 297 | <caption>$wims_name_tools</caption> |
12848 | obado | 298 | $table_htdr_ |
299 | !read themes/_widgets/supervisortool.phtml |
||
300 | $table_end |
||
13172 | obado | 301 | !read tablesort.phtml |
12848 | obado | 302 | </div> |
12355 | obado | 303 | !endif |
14297 | guerimand | 304 | !if $freeworkcnt>0 |
305 | !set table_id=TABLE_supervisor_freework |
||
306 | !set table_htdr_=<thead>$table_htdr_1$table_htdr_2</thead> |
||
307 | <div id="wims_supervisor_freework"> |
||
308 | !distribute item 1,no into wims_incremental,table_spacer |
||
309 | $table_header |
||
16176 | obado | 310 | <caption>$wims_name_Freeworks</caption> |
14297 | guerimand | 311 | $table_htdr_ |
312 | !read themes/_widgets/supervisorfreework.phtml |
||
313 | $table_end |
||
314 | !read tablesort.phtml |
||
315 | </div> |
||
316 | !endif |
||
10795 | obado | 317 | </div> |
318 | !endif |
||
10794 | obado | 319 | |
5677 | obado | 320 | !read ./form.phtml |
321 | !read ./result.phtml |
||
12848 | obado | 322 | </div><!--/wims_content --> |
323 | </div><!--/wimsbody --> |
||
324 | </div><!--/wimspagebox --> |
||
5677 | obado | 325 | |
7589 | obado | 326 | !read themes/_procs/menumodubox0.proc |
327 | !read themes/_widgets/menumodubox.phtml |
||
5677 | obado | 328 | |
329 | :end |
||
6046 | bpr | 330 | !reset div0 div1 |
5677 | obado | 331 | |
6046 | bpr | 332 | !distribute items div, span into div0,div1 |
7600 | obado | 333 | !read themes/_procs/supervisormenubox.proc |
334 | !read themes/_widgets/menubox.phtml |
||
6046 | bpr | 335 | !reset div0,div1 |
5677 | obado | 336 | |
5989 | bpr | 337 | </div><!--wimsbodybox--> |
338 | |||
5992 | bpr | 339 | !read themes/_widgets/visitorcredits.phtml |
13400 | obado | 340 | !read themes/_widgets/session_warn.phtml |
13840 | obado | 341 | !read themes/_widgets/footer_foundation.phtml |
5677 | obado | 342 | </body> |
343 | </html> |
||
10616 | obado | 344 | <!-- end of Nikaia/supervisor.phtml --> |