2013-11-25 10:55:15 +00:00
|
|
|
{extends file="public/layout.tpl"}
|
|
|
|
|
|
|
|
{block name=main}
|
|
|
|
<div class="jumbotron">
|
2013-11-25 20:12:01 +00:00
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
2013-11-08 21:27:08 +00:00
|
|
|
</div>
|
2013-10-09 15:51:12 +00:00
|
|
|
{/block}
|