Rev 17780 | Rev 17817 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17780 | Rev 17816 | ||
---|---|---|---|
Line 187... | Line 187... | ||
187 | !read tablesort.phtml |
187 | !read tablesort.phtml |
188 | !endif |
188 | !endif |
189 | 189 | ||
190 | !! ------------------ display table for freeworks |
190 | !! ------------------ display table for freeworks |
191 | !if $allowed_freework=yes |
191 | !if $allowed_freework=yes |
192 | 192 | ||
193 | !! In the student score page we list only freeworks for which the |
193 | !! In the student score page we list only freeworks for which the |
194 | !! student has been doing some work (for some types this can simply |
194 | !! student has been doing some work (for some types this can simply |
195 | !! mean opening the freework). Visibility (of student work and of |
195 | !! mean opening the freework). Visibility (of student work and of |
196 | !! score) is set according to freework status. |
196 | !! score) is set according to freework status. |
197 | !! |
197 | !! |
198 | !! If scoring is available it is advisable to disable manual scoring |
198 | !! If scoring is available it is advisable to disable manual scoring |
199 | !! interface, otherwise students can see scores befeore due date. |
199 | !! interface, otherwise students can see scores befeore due date. |
200 | !! |
200 | !! |
201 | !if $nbfreeworks > 0 |
201 | !if $nbfreeworks > 0 |
202 | !set table_id=TABLE_freew |
202 | !set table_id=TABLE_freew |
203 | !set table_class=sortable |
203 | !set table_class=sortable |
204 | !set name_fwcols=$(wims_name_thsheet[1]),$(wims_name_thsheet[2]),$name_handedin,$name_deadline,$(wims_name_thsheet[9]) |
204 | !set name_fwcols=$(wims_name_thsheet[1]),$(wims_name_thsheet[2]),$name_handedin,$name_deadline,$(wims_name_thsheet[9]) |
205 | !if $wims_user=supervisor |
205 | !if $wims_user=supervisor |
206 | !set name_fwcols=$name_fwcols,$name_codownload,$name_fwscoring,$name_putiworkco |
206 | !set name_fwcols=$name_fwcols,$name_codownload,$name_fwscoring,$name_putiworkco |
207 | !endif |
207 | !endif |
208 | $table_header |
208 | $table_header |
209 | <thead> |
209 | <thead> |
210 | <caption>$wims_name_Freeworks</caption> |
210 | <caption>$wims_name_Freeworks</caption> |
211 | $table_hdtr |
211 | $table_hdtr |
212 | !for l_ in $name_fwcols |
212 | !for l_ in $name_fwcols |
213 | <th scope="col">$l_</th> |
213 | <th scope="col">$l_</th> |
214 | !next |
214 | !next |
215 | </tr> |
215 | </tr> |
216 | </thead> |
216 | </thead> |
217 | <tbody> |
217 | <tbody> |
218 | !for fwi_ in $activefreew |
218 | !for fwi_ in $activefreew |
219 | !reset loadwork codownload seealltime putiworkco scoring |
219 | !reset loadwork codownload seealltime putiworkco scoring |
220 | !readproc adm/freework/mkfwglobvar.proc $fwi_ |
220 | !readproc adm/freework/mkfwglobvar.proc $fwi_ |
221 | !! l'output di questo è in "output" (!!!!) |
221 | !! l'output di questo è in "output" (!!!!) |
222 | !readproc adm/freework/finduserwork.proc $fwi_,$getuser |
222 | !readproc adm/freework/finduserwork.proc $fwi_,$getuser |
223 | $table_tr |
223 | $table_tr |
224 | <td>$fwi_</td> |
224 | <td>$fwi_</td> |
225 |
|
225 | <td>$title</td> |
226 | !if ($wims_user=supervisor and $loadwork>0) or $wims_user!=supervisor |
226 | !if ($wims_user=supervisor and $loadwork>0) or $wims_user!=supervisor |
227 | <td> |
227 | <td> |
228 |
|
228 | !if $fwtype=3 |
229 | !href module=adm/class/freework&+job=viewuser3&+freework=$fwi_&+userv=$getuser $output |
229 | !href module=adm/class/freework&+job=viewuser3&+freework=$fwi_&+userv=$getuser $output |
230 | !else |
230 | !else |
231 | !href module=adm/class/freework&+job=viewuser&+freework=$fwi_ $output |
231 | !href module=adm/class/freework&+job=viewuser&+freework=$fwi_ $output |
232 |
|
232 | !endif |
233 | </td> |
233 | </td> |
234 | !else |
234 | !else |
235 |
|
235 | <td style="background-image:url(gifs/bg/crossgrey.gif)">$output</td> |
236 | !endif |
236 | !endif |
237 | <td>$deadline $timedeadline</td> |
237 | <td>$deadline $timedeadline</td> |
238 | 238 | ||
239 | !! for visibility of scores, cfr. freework/student3.phtml |
239 | !! for visibility of scores, cfr. freework/student3.phtml |
240 | !if $scoring>0 and ($codownload>0 or $wims_user=supervisor or $activetest>=2) |
240 | !if $scoring>0 and ($codownload>0 or $wims_user=supervisor or $activetest>=2) |
241 | !read adm/class/colors $[10*ceil($(g_$scoring))/$scoremax] |
241 | !read adm/class/colors $[10*ceil($(g_$scoring))/$scoremax] |
242 | <td style=$style_note>$(g_$scoring)</td> |
242 | <td style=$style_note>$(g_$scoring)</td> |
243 |
|
243 | !else |
244 |
|
244 | <td style="background-image:url(gifs/bg/crossgrey.gif)"> </td> |
245 |
|
245 | !endif |
246 | !if $wims_user=supervisor |
246 | !if $wims_user=supervisor |
247 | <td> |
247 | <td> |
248 |
|
248 | !if $codownload=1 |
249 |
|
249 | $wims_name_yes |
250 |
|
250 | !else |
251 |
|
251 | $wims_name_no |
252 |
|
252 | !endif |
253 | 253 | ||
254 | !set fwseetest=!defof freework_seeco_$getuser in wimshome/log/classes/$wims_class/freeworksdata/$fwi_/.seeco |
254 | !set fwseetest=!defof freework_seeco_$getuser in wimshome/log/classes/$wims_class/freeworksdata/$fwi_/.seeco |
255 | 255 | ||
256 | !if $fwseetest!=$empty |
256 | !if $fwseetest!=$empty |
257 | ✅ |
257 | ✅ |
258 | !reset fwseetest |
258 | !reset fwseetest |
259 | !endif |
259 | !endif |
260 | 260 | ||
261 |
|
261 | </td> |
262 | <td> |
- | |
263 | !if $scoring=0 or $scoring=no |
- | |
264 | $wims_name_no |
- | |
265 | !else |
- | |
266 | $(titles[2+$scoring]) |
- | |
267 | !endif |
- | |
268 | </td> |
- | |
269 | <td> |
262 | <td> |
- | 263 | !if $scoring=0 or $scoring=no |
|
- | 264 | $wims_name_no |
|
- | 265 | !else |
|
- | 266 | $(titles[2+$scoring]) |
|
- | 267 | !endif |
|
- | 268 | </td> |
|
- | 269 | <td> |
|
270 |
|
270 | !if $putiworkco=1 |
271 |
|
271 | $wims_name_yes |
272 |
|
272 | !else |
273 |
|
273 | $wims_name_no |
274 |
|
274 | !endif |
275 |
|
275 | </td> |
276 | !endif |
276 | !endif |
277 | </tr> |
277 | </tr> |
278 | !next fwi_ |
278 | !next fwi_ |
279 | </tbody> |
279 | </tbody> |
280 | $table_end |
280 | $table_end |
Line 414... | Line 414... | ||
414 | !endif |
414 | !endif |
415 | </ul> |
415 | </ul> |
416 | !else |
416 | !else |
417 | !href module=adm/sheet&sh=$n_ $hat |
417 | !href module=adm/sheet&sh=$n_ $hat |
418 | !endif |
418 | !endif |
419 | </div> |
- | |
420 | </th></tr> |
419 | </th></tr> |
421 | $table_hdtr |
420 | $table_hdtr |
422 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[1])</th> |
421 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[1])</th> |
423 | <th scope="col">$(wims_name_thsheet[2])</th> |
422 | <th scope="col">$(wims_name_thsheet[2])</th> |
424 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[3])</th> |
423 | <th scope="col" data-sort-method="number">$(wims_name_thsheet[3])</th> |