Commit 4ed0f35a9c931c9ff984dab9d33ea9d836fb627c
1 parent
23bc4cb1
Affichage du réseau
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
site/network.php
@@ -28,11 +28,11 @@ $raspberrys = getRaspberrys(); | @@ -28,11 +28,11 @@ $raspberrys = getRaspberrys(); | ||
28 | ?> | 28 | ?> |
29 | <tr> | 29 | <tr> |
30 | <?php | 30 | <?php |
31 | - if($ | 31 | + if(strcmp($capteur['type'], "Température") == 0) |
32 | { | 32 | { |
33 | $source = "img/temperature.png"; | 33 | $source = "img/temperature.png"; |
34 | } | 34 | } |
35 | - else | 35 | + else if(strcmp($capteur['type'], "Distance") == 0) |
36 | { | 36 | { |
37 | $source = "img/pi.png"; | 37 | $source = "img/pi.png"; |
38 | } | 38 | } |