server/onyx/tpl/bootstrap/public/home.tpl

56 lines
1.5 KiB
Smarty
Raw Normal View History

2013-11-25 10:55:15 +00:00
{extends file="public/layout.tpl"}
2014-01-11 16:02:46 +00:00
{block name=head2}
2014-01-20 17:59:15 +00:00
<meta http-equiv="refresh" content="{10*(count($teams)+1)}">
2014-01-11 16:02:46 +00:00
{/block}
2013-11-25 10:55:15 +00:00
{block name=main}
2014-01-21 16:45:46 +00:00
{if isset($teams)}
2013-12-14 05:11:14 +00:00
<div id="carousel-team" class="carousel slide">
<div class="carousel-inner">
2014-01-21 16:45:46 +00:00
<div class="item active">
<div class="well">
<table class="table" style="font-size: 14px;">
<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=$exo->first_to_solve_exercice()}
{/for}
{if $teamName != ""}
<td class="success text-center">{$teamName|replace:"_":" "}</td>
{else}
<td class="danger text-center"></td>
{/if}
{/foreach}
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
{foreach from=$teams item=my_team key=k}
2013-12-14 05:11:14 +00:00
<div class="item">
<div class="well">
{include file="summary.tpl"}
</div>
2013-11-08 21:27:08 +00:00
</div>
2014-01-21 16:45:46 +00:00
{/foreach}
2013-12-14 05:11:14 +00:00
</div>
</div>
{/if}
2013-10-09 15:51:12 +00:00
{/block}