39 lines
804 B
Smarty
39 lines
804 B
Smarty
{extends file="public/layout.tpl"}
|
|
|
|
{block name=main}
|
|
<div class="well">
|
|
|
|
<table class="table" style="font-size: 12px;">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
{for $i=1 to $nbExoMax}
|
|
<th class="text-center">Exercice {$i}</th>
|
|
{/for}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{$total=0}
|
|
{foreach from=$themes item=theme}
|
|
<tr>
|
|
<th>{$theme->get_name()}</th>
|
|
{$themeID=$theme->get_id()}
|
|
{foreach from=$theme->get_exercices_ordered() item=exo}
|
|
{$teamName=""}
|
|
{for $i=0 to $nbExoMax}
|
|
{$teamName=Team::first_to_solve_exercice($exo->get_id())}
|
|
{/for}
|
|
{if $teamName != ""}
|
|
<td class="success text-center">{$teamName}</td>
|
|
{else}
|
|
<td class="danger text-center"></td>
|
|
{/if}
|
|
{/foreach}
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
{/block}
|