Update 2 files
- /html/src/css/style.css - /html/users.php
This commit is contained in:
parent
0a7772dd07
commit
3e5713e2a4
@ -118,6 +118,11 @@ a {
|
|||||||
|
|
||||||
.article-content {
|
.article-content {
|
||||||
padding: 2em;
|
padding: 2em;
|
||||||
|
margin: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(max-width: 750px) {
|
@media(max-width: 750px) {
|
||||||
|
@ -53,15 +53,15 @@ if($_SESSION['role'] < 4) {
|
|||||||
|
|
||||||
if ($resultat) {
|
if ($resultat) {
|
||||||
foreach($resultat as $row) {
|
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) {
|
foreach($classifications as $id => $nom) {
|
||||||
if($row['role'] == $id) {
|
if($row['role'] == $id) {
|
||||||
echo '<option value="' . $id .'">' . $nom . '</option>';
|
|
||||||
} else {
|
|
||||||
echo '<option value="' . $id .'" selected>' . $nom . '</option>';
|
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>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user