From 970e1761e770705118291abce646ba01357027ea Mon Sep 17 00:00:00 2001 From: rubisalpha Date: Thu, 30 Oct 2025 11:46:55 +0000 Subject: [PATCH] Ajouter admin/dashboard.php --- admin/dashboard.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 admin/dashboard.php diff --git a/admin/dashboard.php b/admin/dashboard.php new file mode 100644 index 0000000..951c6c8 --- /dev/null +++ b/admin/dashboard.php @@ -0,0 +1,35 @@ +query('SELECT COUNT(*) as c FROM articles'); +$count = $stmt->fetchColumn(); +?> + +Dashboard + + +
+

Tableau de bord

+ +
+
+

Nombre total d'articles :

+

+

Articles récents

+ + + query('SELECT id, titre, date_creation FROM articles ORDER BY date_creation DESC LIMIT 50'); + while ($r = $stmt->fetch()): ?> + + + + + + + +
IDTitreDateActions
+ Modifier | + Supprimer +
+
+