Update 2 files

- /html/src/css/style.css
- /html/users.php
This commit is contained in:
Jan BELLON 2024-03-07 21:13:03 +00:00
parent 0a7772dd07
commit 3e5713e2a4
2 changed files with 9 additions and 4 deletions

View File

@ -118,6 +118,11 @@ a {
.article-content {
padding: 2em;
margin: 2em;
}
.row {
display: flex;
}
@media(max-width: 750px) {

View File

@ -53,15 +53,15 @@ if($_SESSION['role'] < 4) {
if ($resultat) {
foreach($resultat as $row) {
echo "<div><form action='' method='post'><div>" . $row['display_name'] . "</div><div>" . $row['username'] . "</div><div>" . $row['email'] . "</div><div><select name='role' required>";
echo "<div class='row'><form action='' method='post'><div>" . $row['display_name'] . "</div><div>" . $row['username'] . "</div><div>" . $row['email'] . "</div><div><select name='role' required>";
foreach($classifications as $id => $nom) {
if($row['role'] == $id) {
echo '<option value="' . $id .'">' . $nom . '</option>';
} else {
echo '<option value="' . $id .'" selected>' . $nom . '</option>';
} else {
echo '<option value="' . $id .'">' . $nom . '</option>';
}
}
echo "</select><input type='submit' value='Mettre à jour'</div></form></div>";
echo "</select><input type='submit' value='Mettre à jour'></div></form></div>";
}
}
?>