Amelioration interface adhesions
This commit is contained in:
parent
aa057a1090
commit
c94c29b967
@ -62,27 +62,16 @@ if (isset($_POST['adherent-id'])) {
|
||||
<head>
|
||||
<?php fillHead($rootPageURL, "Admin - " . $pageName, $darkTheme, $lightTheme);?>
|
||||
<style>
|
||||
.users-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
table {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
.user-row {
|
||||
margin: 0.5em;
|
||||
border: 1px solid var(--text);
|
||||
border-radius: 100px;
|
||||
padding: 0 0.5em 0 1em;
|
||||
tr {
|
||||
height: 30px;
|
||||
}
|
||||
.user-row form {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.user-row button {
|
||||
display: inline;
|
||||
}
|
||||
.users {
|
||||
min-height: 25em;
|
||||
th, td {
|
||||
border: 1px solid gray;
|
||||
padding: 5px;
|
||||
}
|
||||
.admin-links {
|
||||
margin-bottom: 4em;
|
||||
@ -136,14 +125,15 @@ if (isset($_POST['adherent-id'])) {
|
||||
$result = $request->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
if ($result) {
|
||||
echo ('<div class="users-list">');
|
||||
echo ('<table>');
|
||||
echo ("<tr><th>Prénom Nom</th><th>Date de demande</th><th></th></tr>");
|
||||
foreach($result as $row) {
|
||||
echo ('<div class="user-row">');
|
||||
echo ('<tr>');
|
||||
echo ('<form action="#" method="post">');
|
||||
echo ('<div>' . $row['firstname'] . ' ' . $row['lastname'] . '</div><div>' . $row['join_date'] . '</div><div><input type="hidden" name="adherent-id" value="' . $row['ID'] . '"><button type="submit" style="margin-left: 1em;">Accepter</button></div>');
|
||||
echo ('</form></div>');
|
||||
echo ('<td>' . $row['firstname'] . ' ' . $row['lastname'] . '</td><td>' . $row['join_date'] . '</td><td><input type="hidden" name="adherent-id" value="' . $row['ID'] . '"><button type="submit" style="margin-left: 1em;">Accepter</button></td>');
|
||||
echo ('</form></tr>');
|
||||
}
|
||||
echo ('</div>');
|
||||
echo ('</table>');
|
||||
} else {
|
||||
echo ('Aucun utilisateur trouvé.');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user