<?php 
	loadClass ( 'CompManager' );
	$Competitions = CompManager::getLastCompetitions(5,array(array(9,'<>')));//Limit des 5 dernieres competitions
?>

<div class="block">
	<div class="title title_3"><?php echo __('adm.bloc.competition'); ?></div>
	<div class="content">
		<?php if ( sizeof((array)$Competitions) == 0 ){ 
			echo __('adm.bloc.competition.no');
		} else { 
			?><table width="100%" class="lister lister-small v-middle"><?php 
			foreach((array)$Competitions as $UN_TNS){
				?><tr>
				<td><?php echo zk_jeu($UN_TNS['TNS_JEU'],false); ?></td>
				<td><?php echo href($UN_TNS['TNS_NOM'],array('controleur'=>'Tournoi','action'=>'voir','params'=>$UN_TNS['TNS_CLE'])); ?></td> 
				<td><?php echo href(img('icons/eye.png','voir'),array('controleur'=>'Tournoi','action'=>'voir','params'=>$UN_TNS['TNS_CLE'])); ?></td> 
				<td>
					<?php echo href(img('icons/pencil.png','edit'),'/admin/gerer/'.$UN_TNS['TNS_CLE']); ?>
				</td>
				</tr><?php 
			}
			?></table><?php
		}?>
		<?php echo href(__('com.bloc.afficher'),array('controleur'=>'tabtournois','action'=>'lister','class'=>'more')); ?>
	</div>
</div>