|
{for $i=1 to $nbExoMax}
Exercice {$i} |
{/for}
Points |
{$total=0}
{foreach from=$themes item=theme}
{$theme->get_name()} |
{$sum=0}
{$themeID=$theme->get_id()}
{$solvedExercices=$my_team->get_solvedExercices($themeID)} {*TODO: This line give a Warning*}
{foreach from=$theme->get_exercicesOrdered() item=exo}
{$pts=0}
{for $i=0 to $nbExoMax}
{if !empty($solvedExercices.$i)}
{if $solvedExercices.$i->get_id() == $exo->get_id()}
{$pts=$solvedExercices.$i->points}{$sum=$sum + $pts}
{/if}
{/if}
{/for}
{$pts} |
{/foreach}
{$sum} |
{$total=$total+$sum}
{/foreach}
Total : |
{$total} |