1
0

debug: affichage des valeurs false, true, on, off

This commit is contained in:
2022-06-21 09:01:58 +02:00
parent 566fc0e40c
commit c0aef550ab
2 changed files with 22 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ if (empty($indexIeeeAddress))
// print_r($devices);
print '<form method="GET" action="display_stats.php">';
//print '<input type="hidden" name="fn" value="">';
print '<label for="devicesSelectList">' . _("Choose a device:") . '</label>
print '<label for="devicesSelectList">' . _("Choose a property to display:") . '</label>
<select name="device" id="devicesSelectList">' ;
foreach ($devices as $value)
{
@@ -33,6 +33,8 @@ if (empty($indexIeeeAddress))
$devicesList[$value["device"]][] = $value["property"];
}
}
array_multisort($devicesList);
//$devicesList = array_intersect_key($indexIeeeAddress, $tmp);
//print_r($devicesList);
foreach($devicesList as $ieeeAddress => $array)