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

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