machines() renvoie tous les nouveaux champs

This commit is contained in:
jbousquie 2016-11-24 16:45:04 +01:00
parent 36bd4d638f
commit 306695086c
2 changed files with 5 additions and 2 deletions

View File

@ -31,10 +31,10 @@ function Machines() {
//$machines = array() ;
$db = db_connect();
$req = 'select machine_id, salle, os, os_sp, os_version, adresse_ip from machines order by salle, machine_id';
$req = 'select machine_id, salle, os, os_sp, os_version, adresse_ip, marque, modele, type_systeme, mac, mac_description from machines order by salle, machine_id';
$res = db_query($db, $req);
while ($mac = db_fetch_row($res)) {
$machines[$mac[0]] = array($mac[1], $mac[2], $mac[3], $mac[4], $mac[5]);
$machines[$mac[0]] = array($mac[1], $mac[2], $mac[3], $mac[4], $mac[5], $mac[6], $mac[7], $mac[8], $mac[9], $mac[10]);
}
db_free($res);
return $machines;

3
admin/machine.php Normal file
View File

@ -0,0 +1,3 @@
<?php
?>