dashboard.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Tableau de bord - dirCops</title>
  7. <script src="https://cdn.tailwindcss.com"></script>
  8. </head>
  9. <body class="bg-gray-50 min-h-screen">
  10. <div class="max-w-5xl mx-auto px-4 py-8">
  11. <header class="flex justify-between items-center mb-8">
  12. <h1 class="text-2xl font-semibold text-gray-800">dirCops</h1>
  13. <nav class="space-x-4">
  14. <a href="index.html" class="text-gray-600 hover:text-blue-600">Clients</a>
  15. <a href="dashboard.html" class="text-blue-600 font-medium">Tableau de bord</a>
  16. <a href="top-clients.html" class="text-gray-600 hover:text-blue-600">Top clients</a>
  17. <a href="quantites-clients.html" class="text-gray-600 hover:text-blue-600">Quantités</a>
  18. </nav>
  19. </header>
  20. <div id="error-message" class="hidden mb-4 p-3 bg-red-100 text-red-700 rounded"></div>
  21. <section class="bg-white rounded-lg shadow overflow-hidden mb-8">
  22. <div class="px-6 py-4 border-b border-gray-200 flex flex-wrap justify-between items-center gap-2">
  23. <h2 id="titre-encours" class="text-lg font-medium text-gray-800">Encours clients au …</h2>
  24. <div class="flex flex-wrap gap-3 text-sm">
  25. <a href="api/reporting.php?format=csv" class="text-blue-600 hover:underline">Exporter encours CSV</a>
  26. <a href="api/reporting.php?format=factures_csv" class="text-blue-600 hover:underline">Exporter l’ensemble des factures (PJ)</a>
  27. </div>
  28. </div>
  29. <div id="encours-par-client" class="p-6 overflow-x-auto">Chargement...</div>
  30. <div id="synthèse-encours" class="px-6 pb-6"></div>
  31. </section>
  32. <section class="bg-white rounded-lg shadow overflow-hidden mt-8">
  33. <h2 class="px-6 py-4 border-b border-gray-200 text-lg font-medium text-gray-800">Échéances à venir</h2>
  34. <div id="echeances" class="p-6">Chargement...</div>
  35. </section>
  36. </div>
  37. <script src="js/utils.js"></script>
  38. <script src="js/dashboard.js"></script>
  39. </body>
  40. </html>