<!-- adm/class/exam/score.phtml BEGIN -->
!if $job=score
!read adm/class/classname.phtml $wims_classname\
$wims_institutionname
!read adm/title.phtml 1\
$classname\
$title
!if $wims_user=supervisor
<p class="wimscenter">($name_presentation)</p>
!endif
<div>$desc</div>
!endif
!if $error!=$empty
<div class="wims_msg alert">
!read lang/msg.phtml.$moduclass_lang
</div>
<p>
!href module=home $wims_name_back2
. </p>
!endif
!if $exocnt=0
$name_empty
!else
!if $scorereducedbyip=1
<div class="wims_msg info">$name_msg_exam_withip</div>
!endif
$table_header
<caption>$name_scoreexam</caption>
<thead>
$table_tr
<th>$wims_name_Exercise</th>
<th>$wims_name_title</th>
<th>$name_coeff</th>
<th>$name_Score</th>
</tr>
</thead>
<tbody>
!for ii=1 to $exocnt
!set i=!item $ii of $(wims_exrandomlist[1;])
!set ex
=!record
$i of wimshome
/log/classes
/$wims_class/exams
/.exam
$exam
!distribute lines $ex into we,li,ti
$table_tr
<td>$ii</td>
<td>$ti</td>
<td>$we</td>
<td>
!if $(replied$i)>0
$(gotip$i)
!if $(gotip$i)!=$(got$i)
!let realtsco=$(got$i)
<div class="wims_tooltip">*<div class="wims_tooltiptext">$name_real_score</div></div>
!endif
!else
<span class="small">$name_pending</span>
!endif
</td>
</tr>
</tbody>
<tfoot>
$table_tr
<td colspan="4" class="wims_average">
!default score=$sprime
$name_scoreexam2:
<strong>$[$scoreip*$scoremax/10]/$scoremax</strong>
!if $scoreip!=$score
!let realtsco=$[$score*$scoremax/10]/$scoremax
<div class="wims_tooltip">*<div class="wims_tooltiptext">$name_real_score</div></div>
!endif
</td>
</tr>
</tfoot>
$table_end
!endif
!if $wims_exam_remain > 0
<div>$wims_name_examremain <span id="exam_clock"></span></div>
!endif
!if $registered=$empty
$name_begin1.
!href cmd=reply&job=student $name_begin2
!else
!if $wims_exam_remain<=0
<div class="wims_msg warning">
$name_timeleft
</div>
!endif
!if $allowtype=simulation
$name_simulation2
!if $lastscore>0
($name_realscore)
!endif
!else
$name_bestscore
!if $stries!=1
$name_bestscore2
!endif
!endif
!if $wims_exam_remain>0
!set wims_menu_items=!append line backexam,1,cmd=reply&job=student\
to $wims_menu_items
!endif
!set test=!recordcnt wimshome/$wims_sesdir/examscore.$exam
!if $test>=2
!set wims_menu_items=!append line endexam,1,cmd=reply&job=scorereg\
to $wims_menu_items
!endif
!endif
!if $wims_user=supervisor
!set wims_menu_items=!append line itemsep,0,\
backteacher,1,cmd=resume\
to $wims_menu_items
!endif
<!-- adm
/class/exam
/score
.phtml
END -->
!tail