Rev 17180 | Rev 17816 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17180 | Rev 17780 | ||
---|---|---|---|
Line 103... | Line 103... | ||
103 | <td style=$style_note>$mav</td></tr> |
103 | <td style=$style_note>$mav</td></tr> |
104 | </tfood> |
104 | </tfood> |
105 | $table_end |
105 | $table_end |
106 | !read tablesort.phtml |
106 | !read tablesort.phtml |
107 | !else |
107 | !else |
108 | !if $class_hideaverage!=yes |
108 | !if $class_hideaverage!=yes |
109 | <div class="wimscenter"> |
109 | <div class="wimscenter"> |
110 | $name_globalaverage: <b>$per</b> / $scoremax. |
110 | $name_globalaverage: <b>$per</b> / $scoremax. |
111 | !if $min_glob<$scoremax |
111 | !if $min_glob<$scoremax |
112 | <br><span class="small">$name_minmax: |
112 | <br><span class="small">$name_minmax: |
113 | $min_glob/$mean_glob/$max_glob</span> |
113 | $min_glob/$mean_glob/$max_glob</span> |
- | 114 | !endif |
|
- | 115 | </div> |
|
114 | !endif |
116 | !endif |
115 | </div> |
- | |
116 | !endif |
- | |
117 | !endif |
117 | !endif |
118 | 118 | ||
119 | !!readdef wimshome/log/classes/$wims_class/.def |
119 | !!readdef wimshome/log/classes/$wims_class/.def |
120 | !!default class_topscores=0 |
120 | !!default class_topscores=0 |
121 | !if $class_topscores>0 and $class_hideaverage!=yes |
121 | !if $class_topscores>0 and $class_hideaverage!=yes |
Line 133... | Line 133... | ||
133 | !set avg=!item 4 of $L |
133 | !set avg=!item 4 of $L |
134 | $table_tr |
134 | $table_tr |
135 | <td class="small" style="text-align:right;font-weight:bold"> |
135 | <td class="small" style="text-align:right;font-weight:bold"> |
136 | $name </td> |
136 | $name </td> |
137 | <td style="text-align:left" class="small"> $avg</td> |
137 | <td style="text-align:left" class="small"> $avg</td> |
138 | </tr> |
138 | </tr> |
139 | !next i |
139 | !next i |
140 | $table_end |
140 | $table_end |
141 | 141 | ||
142 | !endif |
142 | !endif |
143 | 143 | ||
144 | !! ---------------- display table for each exam session |
144 | !! ---------------- display table for each exam session |
145 | !if $eactivecnt>0 |
145 | !if $eactivecnt>0 |
146 | !set table_id=TABLE_exam |
146 | !set table_id=TABLE_exam |
147 | !set table_class=sortable |
147 | !set table_class=sortable |
Line 164... | Line 164... | ||
164 | !reset hidden_sheet |
164 | !reset hidden_sheet |
165 | !if $wims_user!=supervisor |
165 | !if $wims_user!=supervisor |
166 | !set h_=!line 8 of $l |
166 | !set h_=!line 8 of $l |
167 | !if $h_!=$empty |
167 | !if $h_!=$empty |
168 | !readproc adm/vfilter/ishiddensheet.proc $h_ |
168 | !readproc adm/vfilter/ishiddensheet.proc $h_ |
169 | !endif |
169 | !endif |
170 | !endif |
170 | !endif |
171 | !! -----end test |
171 | !! -----end test |
172 | !if ($st<=2 or $ew>0) and $hidden_sheet!=1 |
172 | !if ($st<=2 or $ew>0) and $hidden_sheet!=1 |
173 | $table_tr |
173 | $table_tr |
174 | <td>$i</td> |
174 | <td>$i</td> |
Line 183... | Line 183... | ||
183 | !endif |
183 | !endif |
184 | !next i |
184 | !next i |
185 | </tbody> |
185 | </tbody> |
186 | $table_end |
186 | $table_end |
187 | !read tablesort.phtml |
187 | !read tablesort.phtml |
- | 188 | !endif |
|
- | 189 | ||
- | 190 | !! ------------------ display table for freeworks |
|
- | 191 | !if $allowed_freework=yes |
|
- | 192 | ||
- | 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 |
|
- | 195 | !! mean opening the freework). Visibility (of student work and of |
|
- | 196 | !! score) is set according to freework status. |
|
- | 197 | !! |
|
- | 198 | !! If scoring is available it is advisable to disable manual scoring |
|
- | 199 | !! interface, otherwise students can see scores befeore due date. |
|
- | 200 | !! |
|
- | 201 | !if $nbfreeworks > 0 |
|
- | 202 | !set table_id=TABLE_freew |
|
- | 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]) |
|
- | 205 | !if $wims_user=supervisor |
|
- | 206 | !set name_fwcols=$name_fwcols,$name_codownload,$name_fwscoring,$name_putiworkco |
|
- | 207 | !endif |
|
- | 208 | $table_header |
|
- | 209 | <thead> |
|
- | 210 | <caption>$wims_name_Freeworks</caption> |
|
- | 211 | $table_hdtr |
|
- | 212 | !for l_ in $name_fwcols |
|
- | 213 | <th scope="col">$l_</th> |
|
- | 214 | !next |
|
- | 215 | </tr> |
|
- | 216 | </thead> |
|
- | 217 | <tbody> |
|
- | 218 | !for fwi_ in $activefreew |
|
- | 219 | !reset loadwork codownload seealltime putiworkco scoring |
|
- | 220 | !readproc adm/freework/mkfwglobvar.proc $fwi_ |
|
- | 221 | !! l'output di questo รจ in "output" (!!!!) |
|
- | 222 | !readproc adm/freework/finduserwork.proc $fwi_,$getuser |
|
- | 223 | $table_tr |
|
- | 224 | <td>$fwi_</td> |
|
- | 225 | <td>$title</td> |
|
- | 226 | !if ($wims_user=supervisor and $loadwork>0) or $wims_user!=supervisor |
|
- | 227 | <td> |
|
- | 228 | !if $fwtype=3 |
|
- | 229 | !href module=adm/class/freework&+job=viewuser3&+freework=$fwi_&+userv=$getuser $output |
|
- | 230 | !else |
|
- | 231 | !href module=adm/class/freework&+job=viewuser&+freework=$fwi_ $output |
|
- | 232 | !endif |
|
- | 233 | </td> |
|
- | 234 | !else |
|
- | 235 | <td style="background-image:url(gifs/bg/crossgrey.gif)">$output</td> |
|
- | 236 | !endif |
|
- | 237 | <td>$deadline $timedeadline</td> |
|
- | 238 | ||
- | 239 | !! for visibility of scores, cfr. freework/student3.phtml |
|
- | 240 | !if $scoring>0 and ($codownload>0 or $wims_user=supervisor or $activetest>=2) |
|
- | 241 | !read adm/class/colors $[10*ceil($(g_$scoring))/$scoremax] |
|
- | 242 | <td style=$style_note>$(g_$scoring)</td> |
|
- | 243 | !else |
|
- | 244 | <td style="background-image:url(gifs/bg/crossgrey.gif)"> </td> |
|
- | 245 | !endif |
|
- | 246 | !if $wims_user=supervisor |
|
- | 247 | <td> |
|
- | 248 | !if $codownload=1 |
|
- | 249 | $wims_name_yes |
|
- | 250 | !else |
|
- | 251 | $wims_name_no |
|
- | 252 | !endif |
|
- | 253 | ||
- | 254 | !set fwseetest=!defof freework_seeco_$getuser in wimshome/log/classes/$wims_class/freeworksdata/$fwi_/.seeco |
|
- | 255 | ||
- | 256 | !if $fwseetest!=$empty |
|
- | 257 | ✅ |
|
- | 258 | !reset fwseetest |
|
- | 259 | !endif |
|
- | 260 | ||
- | 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> |
|
- | 270 | !if $putiworkco=1 |
|
- | 271 | $wims_name_yes |
|
- | 272 | !else |
|
- | 273 | $wims_name_no |
|
- | 274 | !endif |
|
- | 275 | </td> |
|
- | 276 | !endif |
|
- | 277 | </tr> |
|
- | 278 | !next fwi_ |
|
- | 279 | </tbody> |
|
- | 280 | $table_end |
|
- | 281 | !read tablesort.phtml |
|
- | 282 | !endif |
|
188 | !endif |
283 | !endif |
189 | 284 | ||
190 | !! ------------------ display table for each sheet |
285 | !! ------------------ display table for each sheet |
191 | !set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf |
286 | !set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf |
192 | !distribute words $tmp into tmp_w,tmp_s,tmp_ss |
287 | !distribute words $tmp into tmp_w,tmp_s,tmp_ss |