Code cleaned
This commit is contained in:
parent
f7f277d46b
commit
2d77512cdc
13 changed files with 58 additions and 63 deletions
|
|
@ -15,13 +15,13 @@
|
|||
<th>{$theme->get_name()}</th>
|
||||
{$sum=0}
|
||||
{$themeID=$theme->get_id()}
|
||||
{$solvedExercices=$my_team->get_solvedExercices($themeID)}
|
||||
{foreach from=$theme->get_exercicesOrdered() item=exo}
|
||||
{$solved_exercices=$my_team->get_solved_exercices($themeID)}
|
||||
{foreach from=$theme->get_exercices_ordered() 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 !empty($solved_exercices.$i)}
|
||||
{if $solved_exercices.$i->get_id() == $exo->get_id()}
|
||||
{$pts=$solved_exercices.$i->points}{$sum=$sum + $pts}
|
||||
{/if}
|
||||
{/if}
|
||||
{/for}
|
||||
|
|
|
|||
Reference in a new issue