mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 07:42:11 +01:00 
			
		
		
		
	💄 Rework on tournois.php
Signed-off-by: Hadrien RENAUD <hadrien.renaud@polytechnique.edu>
This commit is contained in:
		@@ -1,41 +1,45 @@
 | 
				
			|||||||
<?php require_once "header.php" ?>
 | 
					<?php require_once "header.php" ?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<h2>Liste des tournois</h2>
 | 
					<div class="mt-4 mb-4">
 | 
				
			||||||
 | 
					    <h2 class="display-3">Liste des tournois</h2>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<table style="border: 1px solid black; width: 100%">
 | 
					<table class="table table-striped table-bordered table-hover">
 | 
				
			||||||
	<thead style="border: 1px solid black">
 | 
					    <thead>
 | 
				
			||||||
	<tr>
 | 
					    <tr>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Nom</th>
 | 
					        <th scope="col">Nom</th>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Dates</th>
 | 
					        <th scope="col">Dates</th>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Inscription avant le</th>
 | 
					        <th scope="col">Inscription avant le</th>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Date de rendu des solutions</th>
 | 
					        <th scope="col">Date de rendu des solutions</th>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Places disponibles</th>
 | 
					        <th scope="col">Places disponibles</th>
 | 
				
			||||||
	</tr>
 | 
					    </tr>
 | 
				
			||||||
	</thead>
 | 
					    </thead>
 | 
				
			||||||
	<tbody style="border: 1px solid black">
 | 
					    <tbody>
 | 
				
			||||||
	<?php
 | 
					    <?php
 | 
				
			||||||
	foreach ($tournaments as $tournament) {
 | 
					    foreach ($tournaments as $tournament) {
 | 
				
			||||||
		?>
 | 
					        ?>
 | 
				
			||||||
		<tr style="border: 1px solid black">
 | 
					        <tr>
 | 
				
			||||||
			<td style="border: 1px solid black; text-align: center"><a href="/tournoi/<?= $tournament->getName() ?>"><?= $tournament->getName() ?></a></td>
 | 
					            <th scope="row">
 | 
				
			||||||
			<td style="border: 1px solid black; text-align: center">Du <?= formatDate($tournament->getStartDate()) ?> au <?= formatDate($tournament->getEndDate()) ?></td>
 | 
					                <a href="/tournoi/<?= $tournament->getName() ?>"><?= $tournament->getName() ?></a>
 | 
				
			||||||
			<td style="border: 1px solid black; text-align: center"><?= formatDate($tournament->getSolutionsDate()) ?></td>
 | 
					            </th>
 | 
				
			||||||
			<td style="border: 1px solid black; text-align: center"><?= formatDate($tournament->getSynthesesDate()) ?></td>
 | 
					            <td>Du <?= formatDate($tournament->getStartDate()) ?> au <?= formatDate($tournament->getEndDate()) ?></td>
 | 
				
			||||||
			<td style="border: 1px solid black; text-align: center"><?= $tournament->getSize() ?></td>
 | 
					            <td><?= formatDate($tournament->getSolutionsDate()) ?></td>
 | 
				
			||||||
		</tr>
 | 
					            <td><?= formatDate($tournament->getSynthesesDate()) ?></td>
 | 
				
			||||||
		<?php
 | 
					            <td><?= $tournament->getSize() ?></td>
 | 
				
			||||||
	}
 | 
					        </tr>
 | 
				
			||||||
	?>
 | 
					        <?php
 | 
				
			||||||
	</tbody>
 | 
					    }
 | 
				
			||||||
	<tfoot style="border: 1px solid black">
 | 
					    ?>
 | 
				
			||||||
	<tr>
 | 
					    </tbody>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Nom</th>
 | 
					    <tfoot>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Dates</th>
 | 
					    <tr>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Inscription avant le</th>
 | 
					        <th>Nom</th>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Date de rendu des solutions</th>
 | 
					        <th>Dates</th>
 | 
				
			||||||
		<th style="border: 1px solid black; text-align: center">Places disponibles</th>
 | 
					        <th>Inscription avant le</th>
 | 
				
			||||||
	</tr>
 | 
					        <th>Date de rendu des solutions</th>
 | 
				
			||||||
	</tfoot>
 | 
					        <th>Places disponibles</th>
 | 
				
			||||||
 | 
					    </tr>
 | 
				
			||||||
 | 
					    </tfoot>
 | 
				
			||||||
</table>
 | 
					</table>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<?php require_once "footer.php" ?>
 | 
					<?php require_once "footer.php" ?>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user