<?php 
$poule = v('poule');
$poule['POU_NOM'] = isset($poule['POU_NOM'])?$poule['POU_NOM']:'classement';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
	.small {
		width: 25px;
text-align: center;
}
</style>
</head>
<body>
<table class="zkup-poule" cellpadding="1" cellspacing="1" border="1">
		<caption><?php echo href($poule['POU_NOM'], array('controleur'=>'tournoi','action'=>'voir','params'=>g('tournoi'))); ?></caption>
		<tr>
			<th><?php echo __('com.table.equipe'); ?></th>
			<th><?php echo __('com.table.poule.joue'); ?></th>
			<th><?php echo __('com.table.poule.gagne'); ?></th>
			<th><?php echo __('com.table.poule.null'); ?></th>
			<th><?php echo __('com.table.poule.perdu'); ?></th>
			<th><?php echo __('com.table.poule.diff'); ?></th>
			<th><?php echo __('com.table.poule.points'); ?></th>
		</tr>
	<?php
	$i = 0;
	$pts_max = -1;
	$der_eq = null;
	foreach (v('T_P') as $kk=>$eq){
		$pts_max = $pts_max>$eq['PTS']?$pts_max:$eq['PTS'];
		?>
		<tr <?php echo $i%2==0?'class="pair"':''; ?>>
			<td><?php echo zk_tag($eq); ?></td>
			<td class="small"><?php echo $eq['JOUE']; ?></td>
			<td class="small"><?php echo $eq['G']; ?></td>
			<td class="small"><?php echo $eq['N']; ?></td>
			<td class="small"><?php echo $eq['D']; ?></td>
			<td class="small"><?php echo $eq['GA']; ?></td>
			<td class="small PTS"><?php echo $eq['PTS']; ?></td>
			<?php
			}
			?>
		</tr>
		<?php
		$i++;
		$der_eq = $eq;
	?></table>
	</body>
	</html>