premiers affichages

This commit is contained in:
Baptiste 2022-07-24 23:12:31 +02:00
parent 29eb51f186
commit 6d4db33382

View file

@ -14,7 +14,49 @@ if($user['perm'] < 1) {
</head> </head>
<body> <body>
<main> <main>
yo, ça arrive mais calmos les enfants yo, ça arrive mais calmos les enfants, c'est en cours de dev no problem ce sera plus jolie que ça plus tard<br><br>
<table class="acces">
<tr>
<th width="10%">ID (db)</td>
<th width="10%">nom</td>
<th width="10%">première étape</td>
<th width="20%">avancement (nombre d'étape réussit)</td>
<th width="50%">temps</td>
</tr>
<?php
$req = $db->query('SELECT id, nom, begin, avancement, temps FROM ville_equipe');
while($equipe = $req->fetch()) {
?>
<tr>
<td><?= $equipe['id'] ?></td>
<td><?= $equipe['nom'] ?></td>
<td><?= $equipe['begin'] ?></td>
<td><?= $equipe['avancement'] ?></td>
<td><?= $equipe['temps'] ?></td>
</tr>
<?php } ?>
</table><br><br>
<table class="acces">
<tr>
<th width="10%">ID (db)</td>
<th width="70%">Indice</td>
<th width="10%">reponse</td>
<th width="10%">photos</td>
</tr>
<?php
$req = $db->query('SELECT id, indice, reponse, photo FROM ville_epreuve');
while($epreuve = $req->fetch()) {
?>
<tr>
<td><?= $epreuve['id'] ?></td>
<td><?= $epreuve['indice'] ?></td>
<td><?= $epreuve['reponse'] ?></td>
<td><?php if(isset($epreuve['photo'])) { ?><img src="../assets/img/com_ville/<?= $epreuve['photo'] ?>" style="height: 100px;"><?php } else { echo "<font color='red'>no photos</font>"; }?></td>
</tr>
<?php } ?>
</table>
</main> </main>
</body> </body>
</html> </html>