| 1 | <?php |
|---|
| 2 | // ************************************************************************************************************************************************* |
|---|
| 3 | // Aplicación WEB: ogAdmWebCon |
|---|
| 4 | // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
|---|
| 5 | // Fecha Creación: Año 2009-2010 |
|---|
| 6 | // Fecha Última modificación: Agosto-2010 |
|---|
| 7 | // Nombre del fichero: hardwares.php |
|---|
| 8 | // Descripción : |
|---|
| 9 | // Administra el hardware de los ordenadores de un determinado Centro |
|---|
| 10 | // ************************************************************************************************************************************************* |
|---|
| 11 | include_once("../includes/ctrlacc.php"); |
|---|
| 12 | include_once("../clases/AdoPhp.php"); |
|---|
| 13 | include_once("../clases/XmlPhp.php"); |
|---|
| 14 | include_once("../clases/ArbolVistaXML.php"); |
|---|
| 15 | include_once("../clases/MenuContextual.php"); |
|---|
| 16 | include_once("../includes/constantes.php"); |
|---|
| 17 | include_once("../includes/CreaComando.php"); |
|---|
| 18 | include_once("../idiomas/php/".$idioma."/hardwares_".$idioma.".php"); |
|---|
| 19 | include_once("../idiomas/php/".$idioma."/tiposhardwares_".$idioma.".php"); |
|---|
| 20 | //________________________________________________________________________________________________________ |
|---|
| 21 | $cmd=CreaComando($cadenaconexion); |
|---|
| 22 | if (!$cmd) |
|---|
| 23 | Header('Location: '.$pagerror.'?herror=2'); // Error de conexióncon servidor B.D. |
|---|
| 24 | else |
|---|
| 25 | $arbolXML=CreaArbol($cmd,$idcentro); // Crea el arbol XML con todos los datos del Centro |
|---|
| 26 | // Creación del árbol |
|---|
| 27 | $baseurlimg="../images/signos"; // Url de las imágenes de signo |
|---|
| 28 | $clasedefault="texto_arbol"; // Hoja de estilo (Clase por defecto) del árbol |
|---|
| 29 | $arbol=new ArbolVistaXML($arbolXML,0,$baseurlimg,$clasedefault,1,0,5); |
|---|
| 30 | //________________________________________________________________________________________________________ |
|---|
| 31 | ?> |
|---|
| 32 | <HTML> |
|---|
| 33 | <TITLE>Administración web de aulas</TITLE> |
|---|
| 34 | <HEAD> |
|---|
| 35 | <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
|---|
| 36 | <LINK rel="stylesheet" type="text/css" href="../estilos.css"> |
|---|
| 37 | <SCRIPT language="javascript" src="../clases/jscripts/ArbolVistaXML.js"></SCRIPT> |
|---|
| 38 | <SCRIPT language="javascript" src="../clases/jscripts/MenuContextual.js"></SCRIPT> |
|---|
| 39 | <SCRIPT language="javascript" src="../jscripts/hardwares.js"></SCRIPT> |
|---|
| 40 | <SCRIPT language="javascript" src="../jscripts/opciones.js"></SCRIPT> |
|---|
| 41 | <SCRIPT language="javascript" src="../jscripts/constantes.js"></SCRIPT> |
|---|
| 42 | <SCRIPT language="javascript" src="../jscripts/comunes.js"></SCRIPT> |
|---|
| 43 | <SCRIPT language="javascript" src="../clases/jscripts/HttpLib.js"></SCRIPT> |
|---|
| 44 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comunes_'.$idioma.'.js"></SCRIPT>'?> |
|---|
| 45 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/hardwares_'.$idioma.'.js"></SCRIPT>'?> |
|---|
| 46 | </HEAD> |
|---|
| 47 | <BODY OnContextMenu="return false"> |
|---|
| 48 | <?php |
|---|
| 49 | //________________________________________________________________________________________________________ |
|---|
| 50 | echo $arbol->CreaArbolVistaXML(); // Crea árbol (HTML) a partir del XML |
|---|
| 51 | $flotante=new MenuContextual(); // Crea objeto MenuContextual |
|---|
| 52 | |
|---|
| 53 | // Crea contextual de tipos de hardware |
|---|
| 54 | $XMLcontextual=CreacontextualXMLTipos_Hardware(); |
|---|
| 55 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 56 | $XMLcontextual=CreacontextualXMLTipoHardware(); |
|---|
| 57 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 58 | |
|---|
| 59 | // Crea contextual de componentes hardware |
|---|
| 60 | $XMLcontextual=CreacontextualXMLComponentes_Hardware(); |
|---|
| 61 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 62 | $XMLcontextual=ContextualXMLGruposComponentes(); // Grupos de componentes |
|---|
| 63 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 64 | $XMLcontextual=CreacontextualXMLComponente_Hardware(); // Componentes |
|---|
| 65 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 66 | |
|---|
| 67 | // Crea contextual de perfiles hardware |
|---|
| 68 | $XMLcontextual=CreacontextualXMLPerfiles_Hardware(); |
|---|
| 69 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 70 | $XMLcontextual=ContextualXMLGruposPerfiles(); // Grupos de perfiles |
|---|
| 71 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 72 | $XMLcontextual=CreacontextualXMLPerfil_Hardware(); // Perfiles |
|---|
| 73 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 74 | ?> |
|---|
| 75 | </BODY> |
|---|
| 76 | </HTML> |
|---|
| 77 | <?php |
|---|
| 78 | // ************************************************************************************************************************************************* |
|---|
| 79 | // Devuelve una cadena con formato XML de toda la informaci� del hardware registrado en un Centro concreto |
|---|
| 80 | // Parametros: |
|---|
| 81 | // - cmd:Una comando ya operativo ( con conexiónabierta) |
|---|
| 82 | // - idcentro: El identificador del centro |
|---|
| 83 | //________________________________________________________________________________________________________ |
|---|
| 84 | function CreaArbol($cmd,$idcentro){ |
|---|
| 85 | global $TbMsg; |
|---|
| 86 | $cadenaXML='<HARDWARES'; |
|---|
| 87 | // Atributos |
|---|
| 88 | $cadenaXML.=' imagenodo="../images/iconos/confihard.gif"'; |
|---|
| 89 | $cadenaXML.=' nodoid=RaizHardwares'; |
|---|
| 90 | $cadenaXML.=' infonodo="Hardware"'; |
|---|
| 91 | $cadenaXML.='>'; |
|---|
| 92 | $cadenaXML.='<TIPOS'; |
|---|
| 93 | // Atributos |
|---|
| 94 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 95 | $cadenaXML.=' infonodo='.$TbMsg[18]; |
|---|
| 96 | $cadenaXML.=' nodoid=RaizTipoHardwares'; |
|---|
| 97 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_RaizTipoHardwares'" .')"'; |
|---|
| 98 | $cadenaXML.='>'; |
|---|
| 99 | $cadenaXML.=SubarbolXML_TiposHardwares($cmd); |
|---|
| 100 | $cadenaXML.='</TIPOS>'; |
|---|
| 101 | $cadenaXML.='<COMPONENTES'; |
|---|
| 102 | // Atributos |
|---|
| 103 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 104 | $cadenaXML.=' infonodo='.$TbMsg[19]; |
|---|
| 105 | $cadenaXML.=' nodoid=RaizComponentesHardwares'; |
|---|
| 106 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_RaizComponentesHardwares'" .')"'; |
|---|
| 107 | $cadenaXML.='>'; |
|---|
| 108 | $cadenaXML.=SubarbolXML_grupos_componenteshard($cmd,$idcentro,0); |
|---|
| 109 | $cadenaXML.='</COMPONENTES>'; |
|---|
| 110 | $cadenaXML.='<PERFILES'; |
|---|
| 111 | // Atributos |
|---|
| 112 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 113 | $cadenaXML.=' infonodo='.$TbMsg[20]; |
|---|
| 114 | $cadenaXML.=' nodoid=RaizPerfilesHardwares'; |
|---|
| 115 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_RaizPerfilesHardwares'" .')"'; |
|---|
| 116 | $cadenaXML.='>'; |
|---|
| 117 | $cadenaXML.=SubarbolXML_grupos_perfileshard($cmd,$idcentro,0); |
|---|
| 118 | $cadenaXML.='</PERFILES>'; |
|---|
| 119 | $cadenaXML.='</HARDWARES>'; |
|---|
| 120 | return($cadenaXML); |
|---|
| 121 | } |
|---|
| 122 | //________________________________________________________________________________________________________ |
|---|
| 123 | function SubarbolXML_TiposHardwares($cmd){ |
|---|
| 124 | global $LITAMBITO_TIPOHARDWARES; |
|---|
| 125 | global $TbMsg; |
|---|
| 126 | $cadenaXML=""; |
|---|
| 127 | $rs=new Recordset; |
|---|
| 128 | $cmd->texto="SELECT idtipohardware, descripcion, urlimg, nemonico |
|---|
| 129 | FROM tipohardwares ORDER BY descripcion"; |
|---|
| 130 | $rs->Comando=&$cmd; |
|---|
| 131 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 132 | $rs->Primero(); |
|---|
| 133 | while (!$rs->EOF){ |
|---|
| 134 | $cadenaXML.='<TIPOHARDWARES'; |
|---|
| 135 | // Atributos |
|---|
| 136 | if ($rs->campos["urlimg"]!="") |
|---|
| 137 | $cadenaXML.=' imagenodo="'.$rs->campos["urlimg"].'"'; |
|---|
| 138 | else |
|---|
| 139 | $cadenaXML.=' imagenodo="../images/iconos/confihard.gif"'; |
|---|
| 140 | $descrip = $TbMsg["HARDWARE_".$rs->campos["nemonico"]]; |
|---|
| 141 | if (empty ($descrip)) { |
|---|
| 142 | $descrip = $rs->campos["descripcion"]; |
|---|
| 143 | } |
|---|
| 144 | $cadenaXML.=' infonodo="'.$descrip.'"'; |
|---|
| 145 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_TIPOHARDWARES."'" .')"'; |
|---|
| 146 | $cadenaXML.=' nodoid='.$LITAMBITO_TIPOHARDWARES.'-'.$rs->campos["idtipohardware"]; |
|---|
| 147 | |
|---|
| 148 | $cadenaXML.='>'; |
|---|
| 149 | $cadenaXML.='</TIPOHARDWARES>'; |
|---|
| 150 | $rs->Siguiente(); |
|---|
| 151 | } |
|---|
| 152 | $rs->Cerrar(); |
|---|
| 153 | return($cadenaXML); |
|---|
| 154 | } |
|---|
| 155 | //________________________________________________________________________________________________________ |
|---|
| 156 | function SubarbolXML_grupos_componenteshard($cmd,$idcentro,$grupoid){ |
|---|
| 157 | global $LITAMBITO_GRUPOSCOMPONENTESHARD; |
|---|
| 158 | global $AMBITO_GRUPOSCOMPONENTESHARD; |
|---|
| 159 | $cadenaXML=""; |
|---|
| 160 | $rs=new Recordset; |
|---|
| 161 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSCOMPONENTESHARD." ORDER BY nombregrupo"; |
|---|
| 162 | $rs->Comando=&$cmd; |
|---|
| 163 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 164 | $rs->Primero(); |
|---|
| 165 | while (!$rs->EOF){ |
|---|
| 166 | $cadenaXML.='<GRUPOSCOMPONENTESHARD'; |
|---|
| 167 | // Atributos |
|---|
| 168 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSCOMPONENTESHARD."'" .');"'; |
|---|
| 169 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 170 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
|---|
| 171 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSCOMPONENTESHARD.'-'.$rs->campos["idgrupo"]; |
|---|
| 172 | $cadenaXML.='>'; |
|---|
| 173 | $cadenaXML.=SubarbolXML_grupos_componenteshard($cmd,$idcentro,$rs->campos["idgrupo"]); |
|---|
| 174 | $cadenaXML.='</GRUPOSCOMPONENTESHARD>'; |
|---|
| 175 | $rs->Siguiente(); |
|---|
| 176 | } |
|---|
| 177 | $rs->Cerrar(); |
|---|
| 178 | $cadenaXML.=SubarbolXML_ComponentesHardwares($cmd,$idcentro,$grupoid); |
|---|
| 179 | return($cadenaXML); |
|---|
| 180 | } |
|---|
| 181 | //________________________________________________________________________________________________________ |
|---|
| 182 | function SubarbolXML_ComponentesHardwares($cmd,$idcentro,$grupoid){ |
|---|
| 183 | global $LITAMBITO_COMPONENTESHARD; |
|---|
| 184 | $cadenaXML=""; |
|---|
| 185 | $rs=new Recordset; |
|---|
| 186 | $cmd->texto="SELECT hardwares.idhardware,hardwares.descripcion,tipohardwares.urlimg FROM hardwares INNER JOIN tipohardwares ON hardwares.idtipohardware=tipohardwares.idtipohardware WHERE idcentro=".$idcentro." AND grupoid=". $grupoid." order by tipohardwares.idtipohardware,hardwares.descripcion"; |
|---|
| 187 | $rs->Comando=&$cmd; |
|---|
| 188 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 189 | $rs->Primero(); |
|---|
| 190 | while (!$rs->EOF){ |
|---|
| 191 | $cadenaXML.='<COMPONENTES'; |
|---|
| 192 | // Atributos |
|---|
| 193 | if ($rs->campos["urlimg"]!="") |
|---|
| 194 | $cadenaXML.=' imagenodo='.$rs->campos["urlimg"]; |
|---|
| 195 | else |
|---|
| 196 | $cadenaXML.=' imagenodo="../images/iconos/confihard.gif"'; |
|---|
| 197 | |
|---|
| 198 | |
|---|
| 199 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; |
|---|
| 200 | $cadenaXML.=' nodoid='.$LITAMBITO_COMPONENTESHARD.'-'.$rs->campos["idhardware"]; |
|---|
| 201 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_COMPONENTESHARD."'" .')"'; |
|---|
| 202 | $cadenaXML.='>'; |
|---|
| 203 | $cadenaXML.='</COMPONENTES>'; |
|---|
| 204 | $rs->Siguiente(); |
|---|
| 205 | } |
|---|
| 206 | $rs->Cerrar(); |
|---|
| 207 | return($cadenaXML); |
|---|
| 208 | } |
|---|
| 209 | //________________________________________________________________________________________________________ |
|---|
| 210 | function SubarbolXML_grupos_perfileshard($cmd,$idcentro,$grupoid){ |
|---|
| 211 | global $LITAMBITO_GRUPOSPERFILESHARD; |
|---|
| 212 | global $AMBITO_GRUPOSPERFILESHARD; |
|---|
| 213 | $cadenaXML=""; |
|---|
| 214 | $rs=new Recordset; |
|---|
| 215 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSPERFILESHARD." ORDER BY nombregrupo"; |
|---|
| 216 | $rs->Comando=&$cmd; |
|---|
| 217 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 218 | $rs->Primero(); |
|---|
| 219 | while (!$rs->EOF){ |
|---|
| 220 | $cadenaXML.='<GRUPOSPERFILESHARD'; |
|---|
| 221 | // Atributos |
|---|
| 222 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSPERFILESHARD."'" .');"'; |
|---|
| 223 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 224 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
|---|
| 225 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSPERFILESHARD.'-'.$rs->campos["idgrupo"]; |
|---|
| 226 | $cadenaXML.='>'; |
|---|
| 227 | $cadenaXML.=SubarbolXML_grupos_perfileshard($cmd,$idcentro,$rs->campos["idgrupo"]); |
|---|
| 228 | $cadenaXML.='</GRUPOSPERFILESHARD>'; |
|---|
| 229 | $rs->Siguiente(); |
|---|
| 230 | } |
|---|
| 231 | $rs->Cerrar(); |
|---|
| 232 | $cadenaXML.=SubarbolXML_PerfilesHardwares($cmd,$idcentro,$grupoid); |
|---|
| 233 | return($cadenaXML); |
|---|
| 234 | } |
|---|
| 235 | //________________________________________________________________________________________________________ |
|---|
| 236 | function SubarbolXML_PerfilesHardwares($cmd,$idcentro,$grupoid){ |
|---|
| 237 | global $LITAMBITO_PERFILESHARD; |
|---|
| 238 | $cadenaXML=""; |
|---|
| 239 | $rs=new Recordset; |
|---|
| 240 | $cmd->texto="SELECT perfileshard.idperfilhard ,perfileshard.descripcion FROM perfileshard WHERE perfileshard.idcentro=".$idcentro." AND perfileshard.grupoid=". $grupoid; |
|---|
| 241 | $cmd->texto.=" ORDER by perfileshard.descripcion"; |
|---|
| 242 | $rs->Comando=&$cmd; |
|---|
| 243 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 244 | $rs->Primero(); |
|---|
| 245 | while (!$rs->EOF){ |
|---|
| 246 | $cadenaXML.='<PERFILESHARDWARES'; |
|---|
| 247 | // Atributos |
|---|
| 248 | $cadenaXML.=' imagenodo="../images/iconos/perfilhardware.gif"'; |
|---|
| 249 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; |
|---|
| 250 | $cadenaXML.=' nodoid='.$LITAMBITO_PERFILESHARD.'-'.$rs->campos["idperfilhard"]; |
|---|
| 251 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_PERFILESHARD."'" .')"'; |
|---|
| 252 | $cadenaXML.='>'; |
|---|
| 253 | $cadenaXML.='</PERFILESHARDWARES>'; |
|---|
| 254 | $rs->Siguiente(); |
|---|
| 255 | } |
|---|
| 256 | $rs->Cerrar(); |
|---|
| 257 | return($cadenaXML); |
|---|
| 258 | } |
|---|
| 259 | //________________________________________________________________________________________________________ |
|---|
| 260 | // |
|---|
| 261 | // Mens Contextuales |
|---|
| 262 | //________________________________________________________________________________________________________ |
|---|
| 263 | function CreacontextualXMLTipos_Hardware(){ |
|---|
| 264 | global $TbMsg; |
|---|
| 265 | |
|---|
| 266 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 267 | $layerXML.=' idctx="flo_RaizTipoHardwares"'; |
|---|
| 268 | $layerXML.=' maxanchu=175'; |
|---|
| 269 | $layerXML.=' swimg=1'; |
|---|
| 270 | $layerXML.=' clase="menu_contextual"'; |
|---|
| 271 | $layerXML.='>'; |
|---|
| 272 | |
|---|
| 273 | $wLeft=170; |
|---|
| 274 | $wTop=150; |
|---|
| 275 | $wWidth=480; |
|---|
| 276 | $wHeight=240; |
|---|
| 277 | $wpages="../propiedades/propiedades_tipohardwares.php"; |
|---|
| 278 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
|---|
| 279 | |
|---|
| 280 | $layerXML.='<ITEM'; |
|---|
| 281 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
|---|
| 282 | $layerXML.=' imgitem="../images/iconos/confihard.gif"'; |
|---|
| 283 | $layerXML.=' textoitem='.$TbMsg[0]; |
|---|
| 284 | |
|---|
| 285 | $layerXML.='></ITEM>'; |
|---|
| 286 | |
|---|
| 287 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 288 | return($layerXML); |
|---|
| 289 | } |
|---|
| 290 | //________________________________________________________________________________________________________ |
|---|
| 291 | function CreacontextualXMLTipoHardware(){ |
|---|
| 292 | global $LITAMBITO_TIPOHARDWARES; |
|---|
| 293 | global $TbMsg; |
|---|
| 294 | |
|---|
| 295 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 296 | $layerXML.=' idctx="flo_'.$LITAMBITO_TIPOHARDWARES.'"'; |
|---|
| 297 | $layerXML.=' maxanchu=165'; |
|---|
| 298 | $layerXML.=' swimg=1'; |
|---|
| 299 | $layerXML.='>'; |
|---|
| 300 | |
|---|
| 301 | $wLeft=170; |
|---|
| 302 | $wTop=150; |
|---|
| 303 | $wWidth=480; |
|---|
| 304 | $wHeight=240; |
|---|
| 305 | $wpages="../propiedades/propiedades_tipohardwares.php"; |
|---|
| 306 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
|---|
| 307 | |
|---|
| 308 | $layerXML.='<ITEM'; |
|---|
| 309 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
|---|
| 310 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
|---|
| 311 | $layerXML.=' textoitem='.$TbMsg[1]; |
|---|
| 312 | $layerXML.='></ITEM>'; |
|---|
| 313 | |
|---|
| 314 | $layerXML.='<SEPARADOR>'; |
|---|
| 315 | $layerXML.='</SEPARADOR>'; |
|---|
| 316 | |
|---|
| 317 | $layerXML.='<ITEM'; |
|---|
| 318 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
|---|
| 319 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
|---|
| 320 | $layerXML.=' textoitem='.$TbMsg[2]; |
|---|
| 321 | $layerXML.='></ITEM>'; |
|---|
| 322 | |
|---|
| 323 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 324 | return($layerXML); |
|---|
| 325 | } |
|---|
| 326 | //________________________________________________________________________________________________________ |
|---|
| 327 | function CreacontextualXMLComponentes_Hardware(){ |
|---|
| 328 | global $AMBITO_COMPONENTESHARD; |
|---|
| 329 | global $AMBITO_GRUPOSCOMPONENTESHARD; |
|---|
| 330 | global $LITAMBITO_GRUPOSCOMPONENTESHARD; |
|---|
| 331 | global $TbMsg; |
|---|
| 332 | |
|---|
| 333 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 334 | $layerXML.=' idctx="flo_RaizComponentesHardwares"'; |
|---|
| 335 | $layerXML.=' maxanchu=185'; |
|---|
| 336 | $layerXML.=' swimg=1'; |
|---|
| 337 | $layerXML.='>'; |
|---|
| 338 | |
|---|
| 339 | $layerXML.='<ITEM'; |
|---|
| 340 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSCOMPONENTESHARD.',' . "'".$LITAMBITO_GRUPOSCOMPONENTESHARD."'" . ')"'; |
|---|
| 341 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
|---|
| 342 | $layerXML.=' textoitem='.$TbMsg[3]; |
|---|
| 343 | $layerXML.='></ITEM>'; |
|---|
| 344 | |
|---|
| 345 | $wLeft=170; |
|---|
| 346 | $wTop=150; |
|---|
| 347 | $wWidth=480; |
|---|
| 348 | $wHeight=230; |
|---|
| 349 | $wpages="../propiedades/propiedades_componentehardwares.php"; |
|---|
| 350 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
|---|
| 351 | |
|---|
| 352 | $layerXML.='<ITEM'; |
|---|
| 353 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
|---|
| 354 | $layerXML.=' imgitem="../images/iconos/confihard.gif"'; |
|---|
| 355 | $layerXML.=' textoitem='.$TbMsg[4]; |
|---|
| 356 | $layerXML.='></ITEM>'; |
|---|
| 357 | |
|---|
| 358 | $layerXML.='<SEPARADOR>'; |
|---|
| 359 | $layerXML.='</SEPARADOR>'; |
|---|
| 360 | |
|---|
| 361 | $wParam="../gestores/gestor_componentehardwares.php"; |
|---|
| 362 | |
|---|
| 363 | $layerXML.='<ITEM'; |
|---|
| 364 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_COMPONENTESHARD.')"'; |
|---|
| 365 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
|---|
| 366 | $layerXML.=' textoitem='.$TbMsg[5]; |
|---|
| 367 | $layerXML.='></ITEM>'; |
|---|
| 368 | |
|---|
| 369 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 370 | return($layerXML); |
|---|
| 371 | } |
|---|
| 372 | //________________________________________________________________________________________________________ |
|---|
| 373 | function ContextualXMLGruposComponentes(){ |
|---|
| 374 | global $AMBITO_COMPONENTESHARD; |
|---|
| 375 | global $AMBITO_GRUPOSCOMPONENTESHARD; |
|---|
| 376 | global $LITAMBITO_GRUPOSCOMPONENTESHARD; |
|---|
| 377 | global $TbMsg; |
|---|
| 378 | |
|---|
| 379 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 380 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSCOMPONENTESHARD.'"'; |
|---|
| 381 | $layerXML.=' maxanchu=195'; |
|---|
| 382 | $layerXML.=' swimg=1'; |
|---|
| 383 | $layerXML.=' clase="menu_contextual"'; |
|---|
| 384 | $layerXML.='>'; |
|---|
| 385 | |
|---|
| 386 | $layerXML.='<ITEM'; |
|---|
| 387 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSCOMPONENTESHARD.',' ."'".$LITAMBITO_GRUPOSCOMPONENTESHARD."'". ')"'; |
|---|
| 388 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
|---|
| 389 | $layerXML.=' textoitem='.$TbMsg[3]; |
|---|
| 390 | $layerXML.='></ITEM>'; |
|---|
| 391 | |
|---|
| 392 | $wLeft=170; |
|---|
| 393 | $wTop=150; |
|---|
| 394 | $wWidth=480; |
|---|
| 395 | $wHeight=230; |
|---|
| 396 | $wpages="../propiedades/propiedades_componentehardwares.php"; |
|---|
| 397 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
|---|
| 398 | |
|---|
| 399 | $layerXML.='<ITEM'; |
|---|
| 400 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
|---|
| 401 | $layerXML.=' imgitem="../images/iconos/confihard.gif"'; |
|---|
| 402 | $layerXML.=' textoitem='.$TbMsg[4]; |
|---|
| 403 | $layerXML.='></ITEM>'; |
|---|
| 404 | |
|---|
| 405 | $layerXML.='<SEPARADOR>'; |
|---|
| 406 | $layerXML.='</SEPARADOR>'; |
|---|
| 407 | |
|---|
| 408 | $wParam="../gestores/gestor_componentehardwares.php"; |
|---|
| 409 | |
|---|
| 410 | $layerXML.='<ITEM'; |
|---|
| 411 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_COMPONENTESHARD.')"'; |
|---|
| 412 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
|---|
| 413 | $layerXML.=' textoitem='.$TbMsg[5]; |
|---|
| 414 | $layerXML.='></ITEM>'; |
|---|
| 415 | |
|---|
| 416 | $layerXML.='<SEPARADOR>'; |
|---|
| 417 | $layerXML.='</SEPARADOR>'; |
|---|
| 418 | |
|---|
| 419 | $layerXML.='<ITEM'; |
|---|
| 420 | $layerXML.=' alpulsar="modificar_grupos()"'; |
|---|
| 421 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
|---|
| 422 | $layerXML.=' textoitem='.$TbMsg[1]; |
|---|
| 423 | $layerXML.='></ITEM>'; |
|---|
| 424 | |
|---|
| 425 | $layerXML.='<ITEM'; |
|---|
| 426 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
|---|
| 427 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
|---|
| 428 | $layerXML.=' textoitem='.$TbMsg[7]; |
|---|
| 429 | $layerXML.='></ITEM>'; |
|---|
| 430 | |
|---|
| 431 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 432 | return($layerXML); |
|---|
| 433 | } |
|---|
| 434 | //________________________________________________________________________________________________________ |
|---|
| 435 | function CreacontextualXMLComponente_Hardware(){ |
|---|
| 436 | global $AMBITO_COMPONENTESHARD; |
|---|
| 437 | global $LITAMBITO_COMPONENTESHARD; |
|---|
| 438 | global $TbMsg; |
|---|
| 439 | |
|---|
| 440 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 441 | $layerXML.=' idctx="flo_'.$LITAMBITO_COMPONENTESHARD.'"'; |
|---|
| 442 | $layerXML.=' maxanchu=145'; |
|---|
| 443 | $layerXML.='>'; |
|---|
| 444 | |
|---|
| 445 | $layerXML.='<ITEM'; |
|---|
| 446 | $layerXML.=' alpulsar="mover('.$AMBITO_COMPONENTESHARD.')"'; |
|---|
| 447 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; |
|---|
| 448 | $layerXML.=' textoitem='.$TbMsg[8]; |
|---|
| 449 | $layerXML.='></ITEM>'; |
|---|
| 450 | |
|---|
| 451 | $layerXML.='<SEPARADOR>'; |
|---|
| 452 | $layerXML.='</SEPARADOR>'; |
|---|
| 453 | |
|---|
| 454 | $wLeft=170; |
|---|
| 455 | $wTop=150; |
|---|
| 456 | $wWidth=480; |
|---|
| 457 | $wHeight=230; |
|---|
| 458 | $wpages="../propiedades/propiedades_componentehardwares.php"; |
|---|
| 459 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
|---|
| 460 | |
|---|
| 461 | $layerXML.='<ITEM'; |
|---|
| 462 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
|---|
| 463 | $layerXML.=' textoitem='.$TbMsg[1]; |
|---|
| 464 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
|---|
| 465 | $layerXML.='></ITEM>'; |
|---|
| 466 | |
|---|
| 467 | $layerXML.='<ITEM'; |
|---|
| 468 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
|---|
| 469 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
|---|
| 470 | $layerXML.=' textoitem='.$TbMsg[9]; |
|---|
| 471 | $layerXML.='></ITEM>'; |
|---|
| 472 | |
|---|
| 473 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 474 | return($layerXML); |
|---|
| 475 | } |
|---|
| 476 | //________________________________________________________________________________________________________ |
|---|
| 477 | function CreacontextualXMLPerfiles_Hardware(){ |
|---|
| 478 | global $AMBITO_PERFILESHARD; |
|---|
| 479 | global $AMBITO_GRUPOSPERFILESHARD; |
|---|
| 480 | global $LITAMBITO_GRUPOSPERFILESHARD; |
|---|
| 481 | global $TbMsg; |
|---|
| 482 | |
|---|
| 483 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 484 | $layerXML.=' idctx="flo_RaizPerfilesHardwares"'; |
|---|
| 485 | $layerXML.=' maxanchu=155'; |
|---|
| 486 | $layerXML.=' swimg=1'; |
|---|
| 487 | $layerXML.=' clase="menu_contextual"'; |
|---|
| 488 | $layerXML.='>'; |
|---|
| 489 | |
|---|
| 490 | $layerXML.='<ITEM'; |
|---|
| 491 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSPERFILESHARD.',' ."'".$LITAMBITO_GRUPOSPERFILESHARD."'". ')"'; |
|---|
| 492 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
|---|
| 493 | $layerXML.=' textoitem='.$TbMsg[10]; |
|---|
| 494 | $layerXML.='></ITEM>'; |
|---|
| 495 | |
|---|
| 496 | $wLeft=170; |
|---|
| 497 | $wTop=150; |
|---|
| 498 | $wWidth=480; |
|---|
| 499 | $wHeight=280; |
|---|
| 500 | $wpages="../propiedades/propiedades_perfilhardwares.php"; |
|---|
| 501 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
|---|
| 502 | |
|---|
| 503 | $layerXML.='<ITEM'; |
|---|
| 504 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
|---|
| 505 | $layerXML.=' imgitem="../images/iconos/confihard.gif"'; |
|---|
| 506 | $layerXML.=' textoitem='.$TbMsg[11]; |
|---|
| 507 | $layerXML.='></ITEM>'; |
|---|
| 508 | |
|---|
| 509 | $layerXML.='<SEPARADOR>'; |
|---|
| 510 | $layerXML.='</SEPARADOR>'; |
|---|
| 511 | |
|---|
| 512 | $wParam="../gestores/gestor_perfilhardwares.php"; |
|---|
| 513 | |
|---|
| 514 | $layerXML.='<ITEM'; |
|---|
| 515 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_PERFILESHARD.')"'; |
|---|
| 516 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
|---|
| 517 | $layerXML.=' textoitem='.$TbMsg[12]; |
|---|
| 518 | $layerXML.='></ITEM>'; |
|---|
| 519 | |
|---|
| 520 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 521 | return($layerXML); |
|---|
| 522 | } |
|---|
| 523 | //________________________________________________________________________________________________________ |
|---|
| 524 | function ContextualXMLGruposPerfiles(){ |
|---|
| 525 | global $AMBITO_PERFILESHARD; |
|---|
| 526 | global $AMBITO_GRUPOSPERFILESHARD; |
|---|
| 527 | global $LITAMBITO_GRUPOSPERFILESHARD; |
|---|
| 528 | global $TbMsg; |
|---|
| 529 | |
|---|
| 530 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 531 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSPERFILESHARD.'"'; |
|---|
| 532 | $layerXML.=' maxanchu=160'; |
|---|
| 533 | $layerXML.=' swimg=1'; |
|---|
| 534 | $layerXML.=' clase="menu_contextual"'; |
|---|
| 535 | $layerXML.='>'; |
|---|
| 536 | |
|---|
| 537 | $layerXML.='<ITEM'; |
|---|
| 538 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSPERFILESHARD.',' ."'".$LITAMBITO_GRUPOSPERFILESHARD."'". ')"'; |
|---|
| 539 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
|---|
| 540 | $layerXML.=' textoitem='.$TbMsg[10]; |
|---|
| 541 | $layerXML.='></ITEM>'; |
|---|
| 542 | |
|---|
| 543 | $wLeft=170; |
|---|
| 544 | $wTop=150; |
|---|
| 545 | $wWidth=480; |
|---|
| 546 | $wHeight=280; |
|---|
| 547 | $wpages="../propiedades/propiedades_perfilhardwares.php"; |
|---|
| 548 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
|---|
| 549 | |
|---|
| 550 | $layerXML.='<ITEM'; |
|---|
| 551 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
|---|
| 552 | $layerXML.=' imgitem="../images/iconos/confihard.gif"'; |
|---|
| 553 | $layerXML.=' textoitem='.$TbMsg[11]; |
|---|
| 554 | $layerXML.='></ITEM>'; |
|---|
| 555 | |
|---|
| 556 | $layerXML.='<SEPARADOR>'; |
|---|
| 557 | $layerXML.='</SEPARADOR>'; |
|---|
| 558 | |
|---|
| 559 | $wParam="../gestores/gestor_perfilhardwares.php"; |
|---|
| 560 | |
|---|
| 561 | $layerXML.='<ITEM'; |
|---|
| 562 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_PERFILESHARD.')"'; |
|---|
| 563 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
|---|
| 564 | $layerXML.=' textoitem='.$TbMsg[12]; |
|---|
| 565 | $layerXML.='></ITEM>'; |
|---|
| 566 | |
|---|
| 567 | $layerXML.='<SEPARADOR>'; |
|---|
| 568 | $layerXML.='</SEPARADOR>'; |
|---|
| 569 | |
|---|
| 570 | $layerXML.='<ITEM'; |
|---|
| 571 | $layerXML.=' alpulsar="modificar_grupos()"'; |
|---|
| 572 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
|---|
| 573 | $layerXML.=' textoitem='.$TbMsg[1]; |
|---|
| 574 | $layerXML.='></ITEM>'; |
|---|
| 575 | |
|---|
| 576 | $layerXML.='<ITEM'; |
|---|
| 577 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
|---|
| 578 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
|---|
| 579 | $layerXML.=' textoitem='.$TbMsg[13]; |
|---|
| 580 | $layerXML.='></ITEM>'; |
|---|
| 581 | |
|---|
| 582 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 583 | return($layerXML); |
|---|
| 584 | } |
|---|
| 585 | //________________________________________________________________________________________________________ |
|---|
| 586 | function CreacontextualXMLPerfil_Hardware(){ |
|---|
| 587 | global $AMBITO_PERFILESHARD; |
|---|
| 588 | global $LITAMBITO_PERFILESHARD; |
|---|
| 589 | global $TbMsg; |
|---|
| 590 | |
|---|
| 591 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 592 | $layerXML.=' idctx="flo_'.$LITAMBITO_PERFILESHARD.'"'; |
|---|
| 593 | $layerXML.=' maxanchu=155'; |
|---|
| 594 | $layerXML.=' swimg=1'; |
|---|
| 595 | $layerXML.=' clase="menu_contextual"'; |
|---|
| 596 | $layerXML.='>'; |
|---|
| 597 | |
|---|
| 598 | $layerXML.='<ITEM'; |
|---|
| 599 | $layerXML.=' alpulsar="insertar_perfilcomponente()"'; |
|---|
| 600 | $layerXML.=' imgitem="../images/iconos/confihard.gif"'; |
|---|
| 601 | $layerXML.=' textoitem='.$TbMsg[14]; |
|---|
| 602 | $layerXML.='></ITEM>'; |
|---|
| 603 | |
|---|
| 604 | $layerXML.='<ITEM'; |
|---|
| 605 | $layerXML.=' alpulsar="muestra_informacion()"'; |
|---|
| 606 | $layerXML.=' textoitem='.$TbMsg[15]; |
|---|
| 607 | $layerXML.=' imgitem="../images/iconos/informacion.gif"'; |
|---|
| 608 | $layerXML.='></ITEM>'; |
|---|
| 609 | |
|---|
| 610 | $layerXML.='<SEPARADOR>'; |
|---|
| 611 | $layerXML.='</SEPARADOR>'; |
|---|
| 612 | |
|---|
| 613 | $layerXML.='<ITEM'; |
|---|
| 614 | $layerXML.=' alpulsar="mover('.$AMBITO_PERFILESHARD.')"'; |
|---|
| 615 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; |
|---|
| 616 | $layerXML.=' textoitem='.$TbMsg[16]; |
|---|
| 617 | $layerXML.='></ITEM>'; |
|---|
| 618 | |
|---|
| 619 | $layerXML.='<SEPARADOR>'; |
|---|
| 620 | $layerXML.='</SEPARADOR>'; |
|---|
| 621 | |
|---|
| 622 | $wLeft=170; |
|---|
| 623 | $wTop=150; |
|---|
| 624 | $wWidth=480; |
|---|
| 625 | $wHeight=280; |
|---|
| 626 | $wpages="../propiedades/propiedades_perfilhardwares.php"; |
|---|
| 627 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
|---|
| 628 | |
|---|
| 629 | $layerXML.='<ITEM'; |
|---|
| 630 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
|---|
| 631 | $layerXML.=' textoitem='.$TbMsg[1]; |
|---|
| 632 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
|---|
| 633 | $layerXML.='></ITEM>'; |
|---|
| 634 | |
|---|
| 635 | $layerXML.='<ITEM'; |
|---|
| 636 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
|---|
| 637 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
|---|
| 638 | $layerXML.=' textoitem='.$TbMsg[17]; |
|---|
| 639 | $layerXML.='></ITEM>'; |
|---|
| 640 | |
|---|
| 641 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 642 | return($layerXML); |
|---|
| 643 | } |
|---|
| 644 | ?> |
|---|