Rev 16288 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5964 | bpr | 1 | <!-- begin of $wims_theme/supervisor.phtml --> |
21 | reyssat | 2 | !! supervisor page definition. |
3 | !nocache |
||
4 | !if $module!=home |
||
5 | !exit |
||
6 | !endif |
||
5964 | bpr | 7 | !set home_theme=yes |
21 | reyssat | 8 | |
9 | !readproc tabletheme |
||
5964 | bpr | 10 | |
21 | reyssat | 11 | !read classlogo.phtml |
6292 | schaersvoo | 12 | !if $class_logo!=$empty |
17170 | bpr | 13 | <img src="$class_logo" alt="logo" style="border:0px"> |
1433 | bpr | 14 | !endif |
6335 | schaersvoo | 15 | <p style="font-size:1.2em;text-align:center;"> |
6292 | schaersvoo | 16 | $wims_classname, $wims_institutionname |
17170 | bpr | 17 | <br> |
6292 | schaersvoo | 18 | <small>($SU_log)</small> |
19 | </p> |
||
20 | <div class="wimsbody"> |
||
21 | reyssat | 21 | |
22 | !if _tool isin $wims_session |
||
13070 | bpr | 23 | !read ./tools.phtml |
24 | !goto end |
||
21 | reyssat | 25 | !endif |
26 | |||
227 | guerimand | 27 | !if $class_type isin 3 |
13070 | bpr | 28 | $SU_greet. |
29 | !read Subclasses1.phtml |
||
30 | !if $class_typename=level |
||
31 | <div class="wimscenter"> |
||
15331 | obado | 32 | !href module=adm/class/gateway $wims_name_SU_Gateway |
13070 | bpr | 33 | </div> |
34 | !goto end |
||
35 | !else |
||
36 | !goto nocheck |
||
37 | !endif |
||
5990 | bpr | 38 | !endif class_type = 3 |
39 | |||
21 | reyssat | 40 | !if $class_type notin 13 |
13070 | bpr | 41 | $SU_greet |
42 | $SU_exp1 |
||
43 | !set d_=!char 7,8 of $class_expiration |
||
44 | !set m_=!char 5,6 of $class_expiration |
||
45 | !set y_=!char 1 to 4 of $class_expiration |
||
46 | !read adm/date.phtml date,$y_,$m_,$d_ |
||
47 | !href module=adm/class/config $c_date_out |
||
48 | $SU_exp2. |
||
21 | reyssat | 49 | !else |
13070 | bpr | 50 | $SU_greet. |
21 | reyssat | 51 | !endif |
10969 | bpr | 52 | |
5990 | bpr | 53 | !set wims_ref_class=wims_button_help |
11611 | bpr | 54 | !href target=wims_help module=help/main&chapter=3&open=3_sheet#sheet $wims_name_whelp |
10969 | bpr | 55 | |
5426 | guerimand | 56 | !if $wims_numpartconnected>0 |
13070 | bpr | 57 | <p class="wims_connected">$SU_numpartconnected.</p> |
5220 | guerimand | 58 | !else |
13070 | bpr | 59 | <p>$SU_nopartconnected.</p> |
5220 | guerimand | 60 | !endif |
5964 | bpr | 61 | |
21 | reyssat | 62 | !if $quota_free<2 |
14327 | guerimand | 63 | !if $quota_free<=0 |
64 | <div class="wims_msg alert">$wims_name_exceeded</div> |
||
15331 | obado | 65 | <p class="wims_center"> |
66 | !set wims_ref_class=wims_button |
||
14327 | guerimand | 67 | !href cmd=close&module=home&lang=$lang $wims_name_visitor |
13070 | bpr | 68 | </p> |
14327 | guerimand | 69 | </div><!--wimsbody--> |
70 | </div><!--wimspagebox--> |
||
13070 | bpr | 71 | !goto end |
72 | !else |
||
14327 | guerimand | 73 | <div class="wims_msg warning"> |
74 | <b>$wims_name_warning</b>! $wims_name_reaching_limit |
||
13070 | bpr | 75 | </div> |
76 | !endif |
||
21 | reyssat | 77 | !endif |
78 | :nocheck |
||
79 | |||
80 | !if & isin $newmsgcnt or $newmsgcnt>0 |
||
13070 | bpr | 81 | <p class="wims_msg info"> |
82 | !href module=adm/forum/mboard $U_newmsg |
||
83 | </p> |
||
21 | reyssat | 84 | !endif |
85 | !if $class_type=4 |
||
6022 | bpr | 86 | <div class="wimscenter"> |
87 | !href module=adm/class/gateway $wims_name_SU_Gateway |
||
88 | </div> |
||
13070 | bpr | 89 | !goto end |
6615 | bpr | 90 | !endif class_type=4 |
21 | reyssat | 91 | |
227 | guerimand | 92 | !if $class_type=2 |
13070 | bpr | 93 | !if $subclasscnt>0 |
94 | $table_header |
||
95 | $table_hdtr<th>$wims_name_number</th><th>$wims_name_title</th><th>$wims_name_nameteacher</th></tr> |
||
96 | !for i=1 to $subclasscnt |
||
97 | !let f_class=!record $i of wimshome/log/classes/$wims_class/.subclasses |
||
98 | !let f_aff=!item 4 of $f_class |
||
99 | !let f_name=!item 1 of $f_class |
||
100 | $table_tr |
||
101 | <td>$ADD_class $i</td> |
||
102 | <td> |
||
103 | !href module=adm/class/classes&type=authsupervisor&class=$f_name $f_aff |
||
104 | </td> |
||
105 | <td> |
||
106 | !item 9 of $f_class |
||
107 | </td> |
||
108 | </tr> |
||
109 | !next i |
||
110 | $table_end |
||
111 | !endif |
||
112 | <div class="wimscenter"> |
||
113 | !read ./adm/oneitem.phtml addclass,1,module=adm/class/regclass |
||
114 | </div> |
||
115 | !goto end |
||
5990 | bpr | 116 | !endif class_type=2 |
117 | !! classtype != 2,3, 4 |
||
16189 | guerimand | 118 | !let test=!fileexists wimshome/log/manager_msg.phtml.$lang |
119 | !if $test=yes |
||
120 | <div id="wims_class_manager_msg" class="wims_class_manager_msg"> |
||
121 | !read ./wimshome/log/manager_msg.phtml.$lang |
||
122 | </div> |
||
123 | !endif |
||
5964 | bpr | 124 | |
616 | bpr | 125 | !set test=!replace / by , in $wims_class |
9207 | bpr | 126 | !if $(test[-1])=0 |
127 | !set test_up=!replace internal /0- by in $wims_class- |
||
5990 | bpr | 128 | !set wims_ref_class=wims_button |
616 | bpr | 129 | !href module=adm/class/classes&type=authsupervisor&class=$test_up $SU_Bprogram |
130 | !endif |
||
131 | |||
1440 | bpr | 132 | !set docpubliccnt=!recordcnt wimshome/log/classes/$wims_class/doc/.docindex |
5990 | bpr | 133 | |
16288 | guerimand | 134 | !if $sheetcnt+$examcnt+$doccnt+$docpubliccnt+$votecnt+$subclasscnt+$freeworkcnt+$glossarycnt<=0 |
13070 | bpr | 135 | <p>$SU_nosheet</p> |
21 | reyssat | 136 | !else |
13070 | bpr | 137 | !if $seq_open=yes |
138 | !set table_htdr_=$table_hdtr<th>$wims_name_number</th><th>$wims_name_title</th><th>$wims_name_sequence</th><th>$wims_name_Status</th><th>$wims_name_action</th></tr> |
||
139 | !else |
||
140 | !set table_htdr_=$table_hdtr<th>$wims_name_number</th><th>$wims_name_title</th><th>$wims_name_Status</th><th>$wims_name_action</th></tr> |
||
141 | !endif |
||
142 | $table_header |
||
143 | <caption>$SU_shlist [ |
||
144 | !href module=adm/class/sequence $wims_name_reorder |
||
145 | ] </caption> |
||
146 | $table_htdr_ |
||
147 | !read themes/_widgets/supervisorsubclass.phtml |
||
148 | !read themes/_widgets/supervisordoc.phtml |
||
149 | !read themes/_widgets/supervisordocp.phtml |
||
150 | !read themes/default/_widgets/supervisorsheet.phtml |
||
151 | !read themes/default/_widgets/supervisorexam.phtml |
||
152 | !read themes/_widgets/supervisorvote.phtml |
||
153 | !read themes/_widgets/supervisortool.phtml |
||
15298 | schaersvoo | 154 | !read themes/_widgets/supervisorfreework.phtml |
13070 | bpr | 155 | $table_end |
21 | reyssat | 156 | !endif |
157 | $ADD_1 |
||
158 | !href module=adm/doc&job=creat $ADD_doc |
||
159 | !if $wims_supertype!=4 or $class_typename!=class |
||
13070 | bpr | 160 | , |
161 | !href module=adm/class/sheet&sheet=$[$sheetcnt+1] $ADD_sheet |
||
162 | , |
||
163 | !href module=adm/class/exam&exam=$[$examcnt+1] $ADD_exam |
||
164 | , |
||
165 | !href module=adm/createxo $ADD_exo |
||
21 | reyssat | 166 | !endif |
167 | !if $class_type=2 |
||
13070 | bpr | 168 | , |
169 | !href module=adm/class/regclass $ADD_class |
||
21 | reyssat | 170 | !endif |
171 | |||
3960 | bpr | 172 | $wims_name_or |
21 | reyssat | 173 | !href module=adm/vote&job=creat $ADD_vote |
174 | . |
||
175 | |||
176 | !read ./form.phtml |
||
177 | !read ./result.phtml |
||
178 | !if $wims_supertype!=4 or $class_typename!=class |
||
13070 | bpr | 179 | <p> |
180 | !href module=classes/$lang&special_parm=.nocache. $wims_name_classexo |
||
181 | . |
||
182 | !href module=adm/modtool Modtool |
||
183 | . |
||
184 | </p> |
||
21 | reyssat | 185 | !endif |
186 | :end |
||
5843 | bpr | 187 | |
6292 | schaersvoo | 188 | <table style="background-color:$wims_ref_bgcolor;width:100%"> |
189 | <tr><td style="text-align:left"> |
||
1000 | bpr | 190 | !if $class_typename notsametext program |
13070 | bpr | 191 | !href module=adm/class/userscore $wims_name_Score1 |
192 | |
||
193 | !href module=adm/class/usermanage $wims_name_usermanage |
||
1000 | bpr | 194 | !endif |
17170 | bpr | 195 | <br> |
3960 | bpr | 196 | !href module=adm/class/classes&type=supervisor $wims_name_U_oclass |
17170 | bpr | 197 | <br> |
3960 | bpr | 198 | !href cmd=close&module=home&lang=$lang $wims_name_visitor |
6292 | schaersvoo | 199 | </td><td style="text-align:center" > |
3960 | bpr | 200 | !href style=student $wims_name_n_participant |
17170 | bpr | 201 | <br> |
3960 | bpr | 202 | !href module=adm/class/config $wims_name_SE_config |
17170 | bpr | 203 | <br> |
3960 | bpr | 204 | !href module=adm/class/config&job=security $wims_name_SE_secu |
6292 | schaersvoo | 205 | </td><td style="text-align:right"> |
3960 | bpr | 206 | !href target=wims_help module=help/main&chapter=3 $wims_name_help |
17170 | bpr | 207 | <br> |
3960 | bpr | 208 | !href module=adm/forum/mboard $wims_name_forum |
21 | reyssat | 209 | !if $exist_cdt=yes |
17170 | bpr | 210 | <br> |
3960 | bpr | 211 | !href module=adm/class/cdt $wims_name_cdt |
21 | reyssat | 212 | / |
213 | !endif |
||
15298 | schaersvoo | 214 | !href module=adm/class/freework $wims_name_Freeworks |
215 | / |
||
17170 | bpr | 216 | <br> |
3960 | bpr | 217 | !href module=adm/class/motd $wims_name_SE_mod |
17170 | bpr | 218 | <br> |
6292 | schaersvoo | 219 | </td> |
220 | </tr> |
||
221 | </table> |
||
21 | reyssat | 222 | :end |
6335 | schaersvoo | 223 | <p style="text-align:center"> |
6292 | schaersvoo | 224 | <small> |
225 | WIMS-$wims_version@$httpd_HTTP_HOST. $E_manager |
||
226 | !mailurl $wims_site_manager\ |
||
227 | WIMS |
||
228 | . |
||
229 | </small> |
||
230 | </p> |
||
231 | </div> |
||
232 | </body> |
||
5894 | bpr | 233 | </html> |
6615 | bpr | 234 | <!-- end of $wims_theme/supervisor.phtml --> |