{*
  modules/list_matchs page
  $Id: modules/list_tables.tpl,v 1.1 2007/07/21 16:59:36
*}
{assign var=CELLWIDTH value="35"}
{assign var=CELLHEIGHT value="35"}

<link rel="stylesheet" href="templates/classic/compact.css" type="text/css" />

<!-- list_matchs -->
<div style="width:100%;">
<div id="match-list-result">
	<table width="95%" border="0" cellspacing="0" cellpadding="2">
		{counter start=0 print=false name=matchcount}
		{foreach item=team from=$table name=teams}
		{counter assign=count name=matchcount}
	
	{if ($smarty.foreach.teams.total - $params.relegation) < $count}
		{assign var="CLASS" value="mod-classement-rel"}
	{elseif  $params.accession >= $count}
		{assign var="CLASS" value="mod-classement-acc"}
	{elseif  ($params.accession + $params.barrage) >= $count}
		{assign var="CLASS" value="mod-classement-bar"}
	{else}
		{assign var="CLASS" value="mod-classement"}
	{/if}

		<tr>
			<td class="{$CLASS}" style="text-align:left;">{$team.name}</td>
			<td class="{$CLASS}" style="text-align:left;"><b>{$team.points}</b></td>
			<td class="mod-classement" style="text-align:left;"><b>{if $team.diff > 0}+{/if}{$team.diff}</b></td>
		</tr>
		{/foreach}
	</table>
</div>
</div>
<!-- /list_matchs -->
