font acces v1

This commit is contained in:
Baptiste 2022-06-15 17:59:43 +02:00
parent bf5396b84f
commit 29c6d00b66
2 changed files with 53 additions and 9 deletions

View file

@ -3,11 +3,11 @@
padding: 0; padding: 0;
--color1 : rgba(30, 30, 30, 1); --color1 : rgba(30, 30, 30, 1);
--color2 : rgba(255, 255, 255, 0.07); --color2 : rgba(255, 255, 255, 0.07);
color: white;
} }
body { body {
background-color: var(--color1); background-color: var(--color1);
color: white;
} }
main { main {
@ -31,12 +31,11 @@ nav ul li a {
text-decoration: none; text-decoration: none;
color: white; color: white;
font-weight: bold; font-weight: bold;
transition: 3s ease;
} }
nav ul li:hover { nav ul li:hover {
transform: scale(1.05); transform: scale(1.05);
transition: 0.3s ease; transition: 0.2s ease;
} }
@ -51,4 +50,24 @@ nav ul li.red {
} }
nav ul li.white { nav ul li.white {
border-bottom: 1px solid white; border-bottom: 1px solid white;
}
table.acces {
width: 100%;
border: 0;
border-collapse: collapse;
}
table.acces th {
background-color: var(--color2);
padding: 20px;
border: 0;
text-align: center;
color: white;
}
table.acces td {
border: 3px solid var(--color2);
padding: 20px;
text-align: center;
} }

View file

@ -54,12 +54,37 @@ if(isset($_POST['send'])) {
} }
?> ?>
<br><br> <br><br>
<?php <table class="acces">
$req = $db->query('SELECT id, pseudo, perm FROM admin'); <tr>
while($admin = $req->fetch()) { <th width="20%">ID (db)</td>
?> <th width="20%">Identifiant</td>
<?= $admin['id'] ?> || <?= $admin['pseudo'] ?> || <?= $admin['perm'] ?> <th width="20%">Perm</td>
<?php } ?> <th width="40%"></td>
</tr>
<?php
$req = $db->query('SELECT id, pseudo, perm FROM admin');
while($admin = $req->fetch()) {
?>
<tr>
<td><?= $admin['id'] ?></td>
<td><?= $admin['pseudo'] ?></td>
<td><?php
switch ($user['perm']) {
case 0:
echo "<font color='green'>GDA</font>";
break;
case 1:
echo "<font color='orange'>Bureau</font>";
break;
case 2:
echo "<font color='red'>Admin</font>";
break;
}
?></td>
<td></td>
</tr>
<?php } ?>
</table>
</main> </main>
</body> </body>
</html> </html>