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