Init Git Prod Mars 2026
This commit is contained in:
commit
d81efe93b1
362 files changed
+86627
No files matched your search
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../includes/init_praticien.php';
|
||||
|
||||
|
||||
$praticien_id = $_SESSION['reference_id'] ?? null;
|
||||
|
||||
$stmt = $pdo->prepare("
|
||||
SELECT a.nom, a.prix, a.duree_jours, p.date_expiration
|
||||
FROM praticien p
|
||||
JOIN abonnement a ON p.abonnement_id = a.id
|
||||
WHERE p.id = ?
|
||||
");
|
||||
$stmt->execute([$praticien_id]);
|
||||
$abonnement = $stmt->fetch();
|
||||
|
||||
$nomKey = trim((string)($abonnement['nom'] ?? ''));
|
||||
$nomTxt = $translations[$nomKey] ?? $nomKey;
|
||||
require_once '../includes/header.php';
|
||||
?>
|
||||
|
||||
<div class="main1">
|
||||
<div class="container mt-5">
|
||||
<div class="shadow p-4 rounded bg-light">
|
||||
<h3 class="mb-4 text-center"><?= htmlspecialchars($translations['titre_abonnement']) ?></h3>
|
||||
|
||||
<?php if ($abonnement):
|
||||
$dateExp = date('d/m/Y', strtotime($abonnement['date_expiration']));
|
||||
?>
|
||||
<div class="mb-4">
|
||||
<p><strong><?= htmlspecialchars($translations['facture_formule']) ?> :</strong> <?= $nomTxt ?></p>
|
||||
<p><strong><?= htmlspecialchars($translations['label_date_expiration']) ?> :</strong> <?= $dateExp ?></p>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center">
|
||||
<button type="button" class="btn btn-outline-primary custom-gray ms-3" data-bs-toggle="modal" data-bs-target="#modalResiliation">
|
||||
<?= htmlspecialchars($translations['btn_resilier_abonnement']) ?>
|
||||
</button>
|
||||
<a href="/public/choisir_abonnement.php" class="btn btn-outline-primary custom-gray ms-3">
|
||||
<?= htmlspecialchars($translations['btn_changer_formule']) ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- MODALE -->
|
||||
<div class="modal fade" id="modalResiliation" tabindex="-1" aria-labelledby="modalResiliationLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content border-danger">
|
||||
<div class="modal-header bg-danger text-white">
|
||||
<h5 class="modal-title" id="modalResiliationLabel">
|
||||
<?= htmlspecialchars($translations['modal_resiliation_titre']) ?>
|
||||
</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Fermer"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
⚠️ <?= htmlspecialchars($translations['modal_resiliation_texte']) ?><br>
|
||||
<?php
|
||||
$texteAcces = strtr($translations['modal_resiliation_acces_jusqua'], ['{date}' => $dateExp]);
|
||||
?>
|
||||
<?= $texteAcces ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<form method="POST" action="/public/praticien/resiliation_action.php">
|
||||
<button type="submit" class="btn btn-danger">
|
||||
<?= htmlspecialchars($translations['btn_oui_resilier']) ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
|
||||
<?= htmlspecialchars($translations['btn_annuler']) ?>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<div class="alert alert-warning">
|
||||
<?= htmlspecialchars($translations['abonnement_absent']) ?>
|
||||
</div>
|
||||
<a href="/public/choisir_abonnement.php" class="btn btn-primary">
|
||||
<?= htmlspecialchars($translations['btn_choisir_abonnement']) ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap JS (si non inclus ailleurs) -->
|
||||
<script src="/js/bootstrap.bundle.min.js"></script>
|
||||
</div>
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<p><?= $translations['copyr'] ?></p>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in new issue
Block a user