Summary display correction
This commit is contained in:
parent
b3beb516b0
commit
60ec66ee2d
@ -14,6 +14,7 @@
|
||||
<tr>
|
||||
<th>{$theme->get_name()}</th>
|
||||
{$sum=0}
|
||||
{$cpt=0}
|
||||
{$themeID=$theme->get_id()}
|
||||
{$solved_exercices=$my_team->get_solved_exercices($themeID)}
|
||||
{foreach from=$theme->get_exercices_ordered() item=exo}
|
||||
@ -30,8 +31,12 @@
|
||||
{else}
|
||||
<td class="danger text-center">{$pts}</td>
|
||||
{/if}
|
||||
{$cpt=$cpt+1}
|
||||
{/foreach}
|
||||
<th class="active text-center">{$sum}</th>
|
||||
{for $i=$cpt to $nbExoMax-1}
|
||||
<th></th>
|
||||
{/for}
|
||||
<th class="active text-center">{$sum}</th>
|
||||
</tr>
|
||||
{$total=$total+$sum}
|
||||
{/foreach}
|
||||
@ -42,4 +47,4 @@
|
||||
<th class="active text-center">{$total}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</table>
|
Loading…
Reference in New Issue
Block a user