2013-10-26 19:01:02 +00:00
|
|
|
{extends file="layout-nav.tpl"}
|
|
|
|
|
|
|
|
{block name=head}
|
|
|
|
<link href="/css/common.css" rel="stylesheet">
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block name=content}
|
|
|
|
<h1>
|
|
|
|
THIS IS SUMMARY
|
|
|
|
</h1>
|
2013-11-05 04:15:18 +00:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
{for $i=1 to $nbExoMax}
|
|
|
|
<th>exo{$i}</th>
|
|
|
|
{/for}
|
|
|
|
<th>Points</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{$total=0}
|
|
|
|
{foreach from=$themes item=theme}
|
|
|
|
<tr>
|
|
|
|
<th>{$theme->get_name()}</th>
|
|
|
|
{$sum=0}
|
|
|
|
{foreach from=$theme->get_exercicesOrdered() item=exo}
|
|
|
|
{$pts=$exo->points}{$sum=$sum + $pts}
|
|
|
|
<td>{$pts}</td>
|
|
|
|
{/foreach}
|
|
|
|
<td>{$sum}</td>
|
|
|
|
</tr>
|
|
|
|
{$total=$total+$sum}
|
|
|
|
{/foreach}
|
|
|
|
<tr>
|
|
|
|
{for $i=1 to $nbExoMax}
|
|
|
|
<td></td>
|
|
|
|
{/for}
|
|
|
|
<td>Total :</td>
|
|
|
|
<td>{$total}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-10-26 19:01:02 +00:00
|
|
|
{/block}
|