forked from rebillar/site-accueil-insa
62 lines
No EOL
2.1 KiB
PHP
62 lines
No EOL
2.1 KiB
PHP
<?php
|
|
include "script.php";
|
|
|
|
if($user['perm'] < 1) {
|
|
header('Location: deco.php');
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Admin / Com'ville</title>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
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>
|
|
</body>
|
|
</html>
|