summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/principal/hardwares.php
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-02-18 12:07:17 +0000
committerramon <ramongomez@us.es>2012-02-18 12:07:17 +0000
commitc70078c3c8fa827e449fd9dc8489b166659e87cd (patch)
tree6719980b382646ae20663ea2794e035be89c5ff9 /admin/WebConsole/principal/hardwares.php
parent09468cb2ce06c27650aecf55db78a3bdaacd44be (diff)
VersiĆ³n 1.0.3, #483: Internacionalizar tipos de hardware.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2616 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/principal/hardwares.php')
-rw-r--r--admin/WebConsole/principal/hardwares.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/admin/WebConsole/principal/hardwares.php b/admin/WebConsole/principal/hardwares.php
index 734d282f..4ba10d9a 100644
--- a/admin/WebConsole/principal/hardwares.php
+++ b/admin/WebConsole/principal/hardwares.php
@@ -16,6 +16,7 @@ include_once("../clases/MenuContextual.php");
include_once("../includes/constantes.php");
include_once("../includes/CreaComando.php");
include_once("../idiomas/php/".$idioma."/hardwares_".$idioma.".php");
+include_once("../idiomas/php/".$idioma."/tiposhardwares_".$idioma.".php");
//________________________________________________________________________________________________________
$cmd=CreaComando($cadenaconexion);
if (!$cmd)
@@ -120,10 +121,12 @@ function CreaArbol($cmd,$idcentro){
}
//________________________________________________________________________________________________________
function SubarbolXML_TiposHardwares($cmd){
- global $LITAMBITO_TIPOHARDWARES;
+ global $LITAMBITO_TIPOHARDWARES;
+ global $TbMsg;
$cadenaXML="";
$rs=new Recordset;
- $cmd->texto="SELECT idtipohardware,descripcion,urlimg FROM tipohardwares order by descripcion";
+ $cmd->texto="SELECT idtipohardware, descripcion, urlimg, nemonico
+ FROM tipohardwares ORDER BY descripcion";
$rs->Comando=&$cmd;
if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset
$rs->Primero();
@@ -134,7 +137,11 @@ function SubarbolXML_TiposHardwares($cmd){
$cadenaXML.=' imagenodo="'.$rs->campos["urlimg"].'"';
else
$cadenaXML.=' imagenodo="../images/iconos/confihard.gif"';
- $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"';
+ $descrip = $TbMsg["HARDWARE_".$rs->campos["nemonico"]];
+ if (empty ($descrip)) {
+ $descrip = $rs->campos["descripcion"];
+ }
+ $cadenaXML.=' infonodo="'.$descrip.'"';
$cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_TIPOHARDWARES."'" .')"';
$cadenaXML.=' nodoid='.$LITAMBITO_TIPOHARDWARES.'-'.$rs->campos["idtipohardware"];