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