Actualiser index.php
This commit is contained in:
parent
5580b8fd4f
commit
c1ee658881
@ -238,8 +238,7 @@ if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin') {
|
||||
.header h1 { color: #333; margin-bottom: 10px; }
|
||||
.header p { color: #666; margin-bottom: 10px; }
|
||||
.flag-btn { background: #ffc107; color: #333; padding: 12px 25px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; margin-top: 10px; }
|
||||
.flag-btn:hover { background: #ffb300; }
|
||||
.flag-box { background: #fff3cd; border-left: 4px solid #ffc107; padding: 15px; margin-bottom: 20px; border-radius: 5px; display: none; }
|
||||
.flag-btn:hover { background: #ffb300; } .flag-box { background: #fff3cd; border-left: 4px solid #ffc107; padding: 15px; margin-bottom: 20px; border-radius: 5px; display: none; }
|
||||
.flag-box.show { display: block; }
|
||||
.flag-box strong { color: #856404; }
|
||||
.auth-section { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin-bottom: 30px; }
|
||||
@ -271,7 +270,7 @@ if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin') {
|
||||
<h1>🚀 Forum Équipe J</h1>
|
||||
<p>Espace de discussion sécurisé</p>
|
||||
<?php if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin'): ?>
|
||||
<button class="flag-btn" onclick="toggleFlag()">📌 Afficher le Flag</button>
|
||||
<a href="#flag" class="flag-btn" onclick="toggleFlag(event)">📌 Afficher le Flag</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
@ -368,7 +367,8 @@ if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin') {
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function toggleFlag() {
|
||||
function toggleFlag(event) {
|
||||
event.preventDefault();
|
||||
const flagBox = document.getElementById('flag');
|
||||
flagBox.classList.toggle('show');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user