1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| <?PHP session_start();
require 'config/connexion.php';
$q = $db->prepare('SELECT
CONCAT_WS(" ", utilisateurs.nom, prenom) AS nom,
places,
etat,
quand,
prix,
objectifs,
date_debut,
date_fin,
formations.nom AS formation
FROM propositions
JOIN utilisateurs ON utilisateurs.id = propositions.id_proposeur
JOIN formations ON propositions.id_formation = formations.id
WHERE id_formation = ?');
$q->execute([$_GET['id']]);
$r = $q->fetch();
?>
==============================content================================-->
<section id="content">
<div id="zonFor">
<p> <h3 id='titreFormation'>Détails de la formation </h3></p>
<table border=1>
<tbody>
<tr>
<td>
<th style='text-align:center; background-color:#7DA2FA'>Libllé</th></td>
<td><h2><?= $r['formation'] ?></h2></td>
</tr>
<tr><td>
<th style='text-align:center; background-color:#7DA2FA'>Date</th></td>
<td><?= 'du ', $r['date_debut'], ' au ', $r['date_fin'] ?></td></tr>
<tr><td>
<th style='text-align:center; background-color:#7DA2FA'>Objectif</th></td>
<td><?= $r['objectifs'] ?></td>
<tr><td>
<th style='text-align:center; background-color:#7DA2FA'>Prix</th></td>
<td><?= $r['prix'] ?></td>
</tr>
<tr>
<td>
<th style='text-align:center; background-color:#7DA2FA' >Proposée par
</th></td>
<td><?= $r['nom'] ?></td>
</tr>
<tr><td>
<th style='text-align:center; background-color:#7DA2FA'>Places restantes</th></td>
<td><?= $r['places'] ?></td>
</tr></tbody>
</table>
</div>
</section>
</div> |
Partager