ajout du CSS sur les vues manquantes et formulaire d'ajout complet
This commit is contained in:
@@ -1,7 +1,37 @@
|
||||
<h2><?php echo $titre_message; ?></h2>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title><?= html_escape($titre_message) ?></title>
|
||||
<style>
|
||||
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f7f6; color: #333; margin: 0; padding: 20px; display: flex; justify-content: center; align-items: center; min-height: 80vh; }
|
||||
|
||||
.container { max-width: 500px; width: 100%; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; }
|
||||
|
||||
h1 { color: #2c3e50; margin-top: 10px; margin-bottom: 15px; }
|
||||
|
||||
p { font-size: 16px; color: #555; line-height: 1.5; margin-bottom: 35px; }
|
||||
|
||||
.btn-retour { display: inline-block; background-color: #3498db; color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; transition: background 0.3s; }
|
||||
.btn-retour:hover { background-color: #2980b9; }
|
||||
|
||||
.icon { font-size: 60px; margin-bottom: 10px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p><?php echo $contenu_message; ?></p>
|
||||
<div class="container">
|
||||
<?php if (strpos(strtolower($titre_message), 'succès') !== false): ?>
|
||||
<div class="icon">✅</div>
|
||||
<?php else: ?>
|
||||
<div class="icon">⚠️</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<p>
|
||||
<a href="<?php echo site_url($lien_retour); ?>">Retour</a>
|
||||
</p>
|
||||
<h1><?= html_escape($titre_message) ?></h1>
|
||||
<p><?= html_escape($contenu_message) ?></p>
|
||||
|
||||
<a href="<?= site_url($lien_retour) ?>" class="btn-retour">Continuer</a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user