Init Git Prod Mars 2026
This commit is contained in:
commit
d81efe93b1
362 files changed
+86627
No files matched your search
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
// /plata/views/success.php
|
||||
if (session_status() === PHP_SESSION_NONE) session_start();
|
||||
require_once __DIR__.'/../../public/includes/securite.php';
|
||||
require_login_or_redirect(['praticien']);
|
||||
require_once __DIR__.'/../../public/includes/lang.php';
|
||||
|
||||
// Texte avec fallback si pas de $translations
|
||||
$t_page = $translations['paiement_succes_title'] ?? 'Paiement réussi';
|
||||
//$t_msg = $translations['paiement_succes_message'] ?? "Votre paiement a été reçu. La facture sera disponible dans votre espace.";
|
||||
$t_btn = $translations['voir_mes_factures'] ?? 'Voir mes factures';
|
||||
//$t_redirect= $translations['redirection_factures'] ?? 'Redirection vers vos factures…';
|
||||
unset($_SESSION['checkout_attempt_id']);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title><?= htmlspecialchars($t_page) ?> | USLUGI</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
:root{
|
||||
--brand-blue:#38378B; --brand-red:#E03C3F; --page-blue:#8CA9FF;
|
||||
--text-dark:#fff; --border:#e5e7eb; --radius:18px; --shadow:0 10px 28px rgba(0,0,0,.10);
|
||||
}
|
||||
html,body{height:100%}
|
||||
body{
|
||||
background-color: #8CA9FF;
|
||||
font-family:'Montserrat',system-ui,-apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
|
||||
color:var(--text-dark);
|
||||
display:flex; align-items:center; justify-content:center; padding:24px;
|
||||
}
|
||||
.card{
|
||||
border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); background:#fff;
|
||||
max-width:560px; width:100%;
|
||||
}
|
||||
.badge-pill{
|
||||
display:inline-flex; align-items:center; gap:10px;
|
||||
background:#eaf8f0; color:#1e7f4f; border-radius:999px; padding:10px 16px; font-weight:600;
|
||||
}
|
||||
.btn-brand{
|
||||
background:var(--brand-red); border: none; border-radius:999px; font-weight:600;
|
||||
padding:.8rem 1.2rem; box-shadow:0 8px 22px rgba(0,0,0,.18); color:#fff;
|
||||
}
|
||||
.btn-brand:hover,.btn-brand:focus{ background:var(--brand-red); border: none; color:#fff; }
|
||||
.check-wrap{
|
||||
width:82px; height:82px; border-radius:50%; display:grid; place-items:center;
|
||||
background:rgba(30, 128, 80, .1); margin:0 auto 18px auto; position:relative;
|
||||
border:3px solid rgba(30,128,80,.25);
|
||||
animation: pop .45s ease-out both;
|
||||
}
|
||||
@keyframes pop{ from{ transform:scale(.85); opacity:.5 } to{ transform:scale(1); opacity:1 } }
|
||||
.check{
|
||||
width:38px; height:26px; border:5px solid #1e8050; border-top:0;border-left:0; transform: rotate(45deg);
|
||||
animation: draw .5s .2s ease-out both;
|
||||
}
|
||||
@keyframes draw{ from{ opacity:0; clip-path: inset(0 100% 0 0) } to{ opacity:1; clip-path: inset(0 0 0 0) } }
|
||||
.small-muted{ color:#64748b; font-size:.95rem }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="card p-4 p-md-5">
|
||||
<div class="text-center">
|
||||
<div class="check-wrap"><div class="check"></div></div>
|
||||
<h1 class="h3 fw-bold mb-2"><?= htmlspecialchars($t_page) ?></h1>
|
||||
<p class="small-muted mb-4"><?= htmlspecialchars($t_msg) ?></p>
|
||||
|
||||
<div class="d-grid d-sm-inline-block">
|
||||
<a href="/public/praticien/factures.php" class="btn btn-brand px-4"><?= htmlspecialchars($t_btn) ?></a>
|
||||
</div>
|
||||
|
||||
<p class="small-muted mt-3" id="redirMsg" aria-live="polite"><?= htmlspecialchars($t_redirect) ?></p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
// Redirection automatique après 5 secondes (désactive en commentant)
|
||||
setTimeout(function(){ window.location.href = "/public/praticien/factures.php"; }, 5000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user