Subversion Repositories wimsdev

Compare Revisions

Ignore whitespace Rev 12438 → Rev 12439

/trunk/wims/public_html/modules/adm/class/userscore/showsheet.phtml
71,7 → 71,8
<span class="wims_button disabled"> $(name_affi[5])</span>
!endif
</div>
 
!set table_id=TABLE_showsheet
!set table_class=sortable
$table_header
!bound job_affi within points,quality, best, level default points
!if $job_affi=points
107,21 → 108,25
!set sign1=100
<caption>$name_percentagedone</caption>
!endif
$table_hdtr<th>$wims_name_lastname, $wims_name_firstname</th>
<th>$name_Average</th>
!let tot_0=0
!let nonzero_0=0
!for j=1 to $nbexo
!set e=!record $j of wimshome/log/classes/$wims_class/sheets/.sheet$(numshowsheet)
!distribute line $e into m_,n_,bidon,bidon,t_
<th class="small">
!set wims_ref_title=$t_
!href target=wims_internal cmd=new&module=$m_&$n_ $name_Exercise $j
</th>
!let tot_$j=0
!let nonzero_$j=0
!next j
<thead>
$table_hdtr
<th>$wims_name_lastname, $wims_name_firstname</th>
<th data-sort-method="number">$name_Average</th>
!let tot_0=0
!let nonzero_0=0
!for j=1 to $nbexo
!set e=!record $j of wimshome/log/classes/$wims_class/sheets/.sheet$(numshowsheet)
!distribute line $e into m_,n_,bidon,bidon,t_
<th class="small" data-sort-method="number">
!set wims_ref_title=$t_
!href target=wims_internal cmd=new&module=$m_&$n_ $name_Exercise $j
</th>
!let tot_$j=0
!let nonzero_$j=0
!next j
</tr>
</thead>
<tbody>
!set trueusercnt=0
!for m=1 to $usercnt
!set uu=!record $m of wimshome/log/classes/$wims_class/.userlist
195,6 → 200,8
</tr>
:enduser
!next m
</tbody>
<tfoot>
$table_hdtr<th>$name_classAverage</th>
!read adm/class/colors $[ceil($tot_0/$trueusercnt*10)/$sign1/$sign2]
<td style=$style_note>$[rint($tot_0/$trueusercnt*10)/10/$sign2]$sign</td>
224,7 → 231,11
!next j
</tr>
!endif
</tfoot>
$table_end
<script>
new Tablesort(document.getElementById('TABLE_showsheet'));
</script>
 
!set wims_menu_items=!append line part_list,1,cmd=reply&job_affi=notes\
refresh,1,cmd=reply&job=showsheet&numshowsheet=$numshowsheet\