51 lines
2.3 KiB
PHP
51 lines
2.3 KiB
PHP
<?php
|
|
require_once __DIR__ . '/../includes/init_client.php';
|
|
|
|
|
|
// Récupérer les infos du client
|
|
$stmt = $pdo->prepare("SELECT * FROM client WHERE id = ?");
|
|
$stmt->execute([$_SESSION['reference_id']]);
|
|
$client = $stmt->fetch();
|
|
|
|
if (!$client) {
|
|
echo "<p>{$translations['impossible_charger_infos']}</p>";
|
|
exit;
|
|
}
|
|
require_once '../includes/header.php';
|
|
?>
|
|
<div class="main1">
|
|
<div class="container py-5">
|
|
|
|
<div class="shadow p-4 rounded bg-light">
|
|
<h2 class="mb-4 text-center"><?= $translations['mes_infos_heading'] ?></h2>
|
|
<div class="card-body">
|
|
<ul class="list-group list-group-flush">
|
|
<li class="list-group-item"><strong><?= $translations['label_nom'] ?> :</strong> <?= htmlspecialchars($client['nom'] ?? '') ?></li>
|
|
<li class="list-group-item"><strong><?= $translations['label_prenom'] ?> :</strong> <?= htmlspecialchars($client['prenom'] ?? '') ?></li>
|
|
<li class="list-group-item"><strong><?= $translations['label_email'] ?> :</strong> <?= htmlspecialchars($client['email'] ?? '') ?></li>
|
|
<li class="list-group-item"><strong><?= $translations['label_telephone'] ?> :</strong> <?= htmlspecialchars($client['telephone'] ?? '') ?></li>
|
|
<li class="list-group-item"><strong><?= $translations['label_genre'] ?> :</strong> <?= htmlspecialchars($client['genre'] ?? '') ?></li>
|
|
<li class="list-group-item"><strong><?= $translations['label_date_naissance'] ?> :</strong> <?= date('d/m/Y', strtotime(htmlspecialchars($client['date_naissance'] ?? ''))) ?></li>
|
|
<li class="list-group-item"><strong><?= $translations['label_adresse'] ?> :</strong> <?= nl2br(htmlspecialchars($client['adresse'] ?? '')) ?></li>
|
|
<li class="list-group-item"><strong><?= $translations['label_ville'] ?> :</strong> <?= htmlspecialchars($client['ville'] ?? '') ?></li>
|
|
<li class="list-group-item"><strong><?= $translations['label_code_postal'] ?> :</strong> <?= htmlspecialchars($client['code_postal'] ?? '') ?></li>
|
|
</ul>
|
|
|
|
<div class="mt-4 text-center">
|
|
<a href="/public/client/modifier.php" class="btn btn-primary">
|
|
<?= $translations['btn_modifier_mes_infos'] ?>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<footer class="site-footer">
|
|
<div class="container">
|
|
<p><?= $translations['copyr'] ?></p>
|
|
</a></p>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|