From a3909449171f07116f3ec1b134cad6d8409454c3 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Fri, 11 Oct 2024 16:36:56 +0200 Subject: [PATCH] css crud --- crud/add.php | 5 ++-- crud/details.php | 25 +++++++++-------- crud/edit.php | 52 +++++++++++++++++------------------ crud/index.php | 64 ++++++++++++++++++++++++-------------------- crud/style/style.css | 37 +++++++++++++++++++++++++ 5 files changed, 115 insertions(+), 68 deletions(-) create mode 100644 crud/style/style.css diff --git a/crud/add.php b/crud/add.php index 661f090..f40ce9c 100644 --- a/crud/add.php +++ b/crud/add.php @@ -37,6 +37,7 @@ require_once('close.php'); + Ajouter utilisateur @@ -45,7 +46,7 @@ require_once('close.php'); - + @@ -53,7 +54,7 @@ require_once('close.php'); - + diff --git a/crud/details.php b/crud/details.php index a2dce49..5e88181 100644 --- a/crud/details.php +++ b/crud/details.php @@ -27,20 +27,23 @@ require_once('close.php'); - - Liste des produits + Détails de l'utilisateur + -

Détails pour l’utilisateur

-

ID :

-

Login :

-

FirstName :

-

LastName :

-

Role :

-

Modifier - Supprimer -

+
+

Détails pour l’utilisateur

+

ID :

+

Login :

+

FirstName :

+

LastName :

+

Role :

+

+ + +

+
\ No newline at end of file diff --git a/crud/edit.php b/crud/edit.php index a21ce6b..3e03267 100644 --- a/crud/edit.php +++ b/crud/edit.php @@ -38,36 +38,36 @@ require_once('close.php'); - Liste des produits + Modification de l'utilisateur + href="style/style.css"> -

Modifier un utilisateur

-
-

- - -

-

- - -

-

- - -

-

- -

- -
+
+

Modifier un utilisateur

+
+

+ + +

+

+ + +

+

+ + +

+

+ +

+ +
+
\ No newline at end of file diff --git a/crud/index.php b/crud/index.php index ca6f346..a7f422c 100644 --- a/crud/index.php +++ b/crud/index.php @@ -16,40 +16,46 @@ require_once('close.php'); + Liste des utilisateurs -

Liste des utilisateurs

- - - - - - - - - - - - - - - - - - - - -
IDLoginNomPrenomRôle
Voir Modifier Supprimer
- Ajouter +
+

Liste des utilisateurs

+ + + + + + + + + + + + + + + + + + + + + +
IDLoginNomPrenomRôleActions
+ + + +
+ +
\ No newline at end of file diff --git a/crud/style/style.css b/crud/style/style.css new file mode 100644 index 0000000..ae391a4 --- /dev/null +++ b/crud/style/style.css @@ -0,0 +1,37 @@ +table { + width: 100%; + margin: auto; + line-height: 2em; +} + +table tr td { + border-style: solid; + border-color: black; + border-width: 0.1em; + text-align: center; + padding: 2px; +} + +th { + background-color: gray; +} + +table tr:nth-child(even) { + background-color: darkgray; +} + +button { + font-size: 1em; +} + +body { + display: flex; + align-items: center; + justify-content: space-around; +} + +div { + background-color: lightgray; + padding: 10px; + text-align: center; +} \ No newline at end of file