add js
This commit is contained in:
@@ -3,6 +3,5 @@
|
||||
<p>© 2026 Smart House</p>
|
||||
</footer>
|
||||
|
||||
<script src="dashboard.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
<!-- JS du dashboard -->
|
||||
<script src="../dashboard.js"></script>
|
||||
@@ -5,9 +5,12 @@
|
||||
<title>Smart House</title>
|
||||
|
||||
<!-- CSS principal -->
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="stylesheet" href="../style.css">
|
||||
|
||||
<!-- Chart.js pour les graphiques -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<!-- Chart.js local -->
|
||||
<script src="../js/chart.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<body>
|
||||
|
||||
<!-- NAVIGATION -->
|
||||
<?php include 'nav.php'; ?>
|
||||
@@ -1,16 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
$role = isset($_SESSION['role']) ? $_SESSION['role'] : '';
|
||||
?>
|
||||
|
||||
<nav>
|
||||
<a href="../dashboard.php">Dashboard</a>
|
||||
|
||||
<?php if ($role === 'Admin'): ?>
|
||||
| <a href="../admin_users.php">Gestion utilisateurs</a>
|
||||
| <a href="../admin_settings.php">Paramètres</a>
|
||||
<?php endif; ?>
|
||||
|
||||
| <a href="../logout.php">Se déconnecter</a>
|
||||
<a href="../admin_users.php">Utilisateurs</a>
|
||||
<a href="../admin_settings.php">Paramètres</a>
|
||||
<a href="../logout.php">Déconnexion</a>
|
||||
</nav>
|
||||
<hr>
|
||||
Reference in New Issue
Block a user