mirror of
				https://gitlab.com/animath/si/plateforme-corres2math.git
				synced 2025-11-04 16:42:33 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			70 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php require_once "header.php" ?>
 | 
						|
 | 
						|
<div class="mt-4 mb-4">
 | 
						|
    <h2 class="display-3">Problème <?= $problem ?></h2>
 | 
						|
</div>
 | 
						|
 | 
						|
<hr/>
 | 
						|
 | 
						|
<h2>Équipes inscrites pour ce problème :</h2>
 | 
						|
 | 
						|
<table class="table table-striped table-bordered table-hover">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        <th scope="col">
 | 
						|
            Équipe
 | 
						|
        </th>
 | 
						|
        <th scope="col">
 | 
						|
            Trigramme
 | 
						|
        </th>
 | 
						|
        <th scope="col">
 | 
						|
            Date d'inscription
 | 
						|
        </th>
 | 
						|
        <th scope="col">
 | 
						|
            État de validation de l'inscription
 | 
						|
        </th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
    <tbody>
 | 
						|
	<?php
 | 
						|
	/** @var Team $team */
 | 
						|
	foreach ($teams as $team) {
 | 
						|
		?>
 | 
						|
        <tr>
 | 
						|
            <th scope="row">
 | 
						|
				<?php
 | 
						|
				if (isset($_SESSION["role"]) && $_SESSION["role"] == Role::ADMIN)
 | 
						|
					echo "<a href=\"/equipe/" . $team->getTrigram() . "\">" . $team->getName() . "</a>";
 | 
						|
				else
 | 
						|
					echo $team->getName();
 | 
						|
				?>
 | 
						|
            </th>
 | 
						|
            <td><?= $team->getTrigram() ?></td>
 | 
						|
            <td><?= formatDate($team->getInscriptionDate()) ?></td>
 | 
						|
            <td><?= ValidationStatus::getTranslatedName($team->getValidationStatus()) ?></td>
 | 
						|
        </tr>
 | 
						|
		<?php
 | 
						|
	}
 | 
						|
	?>
 | 
						|
    </tbody>
 | 
						|
    <tfoot>
 | 
						|
    <tr>
 | 
						|
        <th>
 | 
						|
            Équipe
 | 
						|
        </th>
 | 
						|
        <th>
 | 
						|
            Trigramme
 | 
						|
        </th>
 | 
						|
        <th>
 | 
						|
            Date d'inscription
 | 
						|
        </th>
 | 
						|
        <th>
 | 
						|
            État de validation de l'inscription
 | 
						|
        </th>
 | 
						|
    </tr>
 | 
						|
    </tfoot>
 | 
						|
</table>
 | 
						|
 | 
						|
<?php require_once "footer.php" ?>
 | 
						|
 |