diff options
author | alonso <alonso@us.es> | 2009-11-16 18:28:44 +0000 |
---|---|---|
committer | alonso <alonso@us.es> | 2009-11-16 18:28:44 +0000 |
commit | b1f0d318f93eda135e1ae3ae3eaf291553cac4f6 (patch) | |
tree | e687bc4300c043aa8f779a45815c9262bd29fc1f /admin/WebConsole/varios/informacion_perfileshardware.php | |
parent | a2a829651269528e6d0b120a2e1151103077af4f (diff) |
git-svn-id: https://opengnsys.es/svn/trunk@549 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/varios/informacion_perfileshardware.php')
-rw-r--r-- | admin/WebConsole/varios/informacion_perfileshardware.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/admin/WebConsole/varios/informacion_perfileshardware.php b/admin/WebConsole/varios/informacion_perfileshardware.php index 0d10c03b..3b7d1771 100644 --- a/admin/WebConsole/varios/informacion_perfileshardware.php +++ b/admin/WebConsole/varios/informacion_perfileshardware.php @@ -69,14 +69,14 @@ function SubarbolXML_PerfilesHardwares($cmd,$idperfilhard){ global $TbMsg; $cadenaXML=""; $rs=new Recordset; - $cmd->texto="SELECT tipohardwares.pci,perfileshard.idperfilhard ,perfileshard.descripcion as pdescripcion, perfileshard.comentarios,hardwares.idhardware,hardwares.descripcion as hdescripcion,tipohardwares.urlimg,fabricantes.nombre as nombrefabricante FROM perfileshard "; + $cmd->texto="SELECT tipohardwares.descripcion as tipohardware,perfileshard.idperfilhard ,perfileshard.descripcion as pdescripcion, perfileshard.comentarios,hardwares.idhardware,hardwares.descripcion as hdescripcion,tipohardwares.urlimg FROM perfileshard "; $cmd->texto.=" LEFT OUTER JOIN perfileshard_hardwares ON perfileshard.idperfilhard=perfileshard_hardwares.idperfilhard"; $cmd->texto.=" LEFT OUTER JOIN hardwares ON hardwares.idhardware=perfileshard_hardwares.idhardware"; - $cmd->texto.=" LEFT OUTER JOIN fabricantes ON fabricantes.codigo=hardwares.codigo1"; $cmd->texto.=" LEFT OUTER JOIN tipohardwares ON hardwares.idtipohardware=tipohardwares.idtipohardware" ; $cmd->texto.=" WHERE perfileshard.idperfilhard=".$idperfilhard; $cmd->texto.=" ORDER by tipohardwares.idtipohardware,hardwares.descripcion"; $rs->Comando=&$cmd; + if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset $rs->Primero(); $cadenaXML.='<PERFILESHARDWARES'; @@ -102,16 +102,10 @@ function SubarbolXML_PerfilesHardwares($cmd,$idperfilhard){ $swcompo=true; } - if ($rs->campos["pci"]>0) - $fabricante="(".trim($rs->campos["nombrefabricante"]).")"; - else - $fabricante=""; - - $cadenaXML.='<PERFILHARDWARE'; // Atributos $cadenaXML.=' imagenodo='.$rs->campos["urlimg"]; - $cadenaXML.=' infonodo="'.$fabricante.$rs->campos["hdescripcion"].'"'; + $cadenaXML.=' infonodo="('.$rs->campos["tipohardware"].") ".$rs->campos["hdescripcion"].'"'; $cadenaXML.='>'; $cadenaXML.='</PERFILHARDWARE>'; } |