| 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: Marzo-2006 | 
|---|
| 7 | // Nombre del fichero: aulas.php | 
|---|
| 8 | // Descripción : | 
|---|
| 9 | //              Administra grupos,aulas y 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."/aulas_".$idioma.".php"); | 
|---|
| 19 | include_once("../idiomas/php/".$idioma."/comandos/mensajes_".$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,$nombrecentro); // Crea el arbol XML con todos los datos de aulas 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); // Crea el árbol (formato XML) | 
|---|
| 30 | //________________________________________________________________________________________________________ | 
|---|
| 31 | ?> | 
|---|
| 32 | <HTML> | 
|---|
| 33 | <HEAD> | 
|---|
| 34 | <TITLE>Administración web de aulas</TITLE> | 
|---|
| 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/aulas.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.'/aulas_'.$idioma.'.js"></SCRIPT>'?> | 
|---|
| 46 | </HEAD> | 
|---|
| 47 | <BODY OnContextMenu="return false"> | 
|---|
| 48 | <FORM name="fcomandos" action="" method="post" target="frame_contenidos"> | 
|---|
| 49 | <INPUT type="hidden" name="idcomando" value=""> | 
|---|
| 50 | <INPUT type="hidden" name="descricomando" value=""> | 
|---|
| 51 | <INPUT type="hidden" name="ambito" value=""> | 
|---|
| 52 | <INPUT type="hidden" name="idambito" value=""> | 
|---|
| 53 | <INPUT type="hidden" name="nombreambito" value=""> | 
|---|
| 54 | <INPUT type="hidden" name="gestor" value=""> | 
|---|
| 55 | <INPUT type="hidden" name="funcion" value=""> | 
|---|
| 56 | </FORM> | 
|---|
| 57 | <?php | 
|---|
| 58 | //________________________________________________________________________________________________________ | 
|---|
| 59 | echo $arbol->CreaArbolVistaXML();       // Crea árbol (HTML) a partir del XML | 
|---|
| 60 | $flotante=new MenuContextual();                  // Crea objeto MenuContextual | 
|---|
| 61 |  | 
|---|
| 62 | // Crea contextual de los Centros y aulas | 
|---|
| 63 | $XMLcontextual=ContextualXMLCentros(); // Centros | 
|---|
| 64 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 65 | $XMLcontextual=ContextualXMLGruposAulas(); //  Grupos de aulas | 
|---|
| 66 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 67 | $XMLcontextual=ContextualXMLAulas();  // Aulas | 
|---|
| 68 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 69 | $XMLcontextual=CreacontextualXMLUsuarios(); // Operadores | 
|---|
| 70 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 71 | $XMLcontextual=ContextualXMLGruposOrdenadores();  // Grupos de ordenadores | 
|---|
| 72 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 73 | $XMLcontextual=ContextualXMLOrdenadores();  // Ordenadores | 
|---|
| 74 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 75 |  | 
|---|
| 76 | // Crea contextual de los comandos para los distintos �bitos | 
|---|
| 77 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_CENTROS,$AMBITO_CENTROS); | 
|---|
| 78 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 79 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_GRUPOSAULAS,$AMBITO_GRUPOSAULAS); | 
|---|
| 80 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 81 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_AULAS,$AMBITO_AULAS); | 
|---|
| 82 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 83 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_GRUPOSORDENADORES,$AMBITO_GRUPOSORDENADORES); | 
|---|
| 84 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 85 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_ORDENADORES,$AMBITO_ORDENADORES); | 
|---|
| 86 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 87 |  | 
|---|
| 88 | // Crea contextual de los comandos para los distintos �bitos | 
|---|
| 89 | $XMLcontextual=ContextualXMLSincronizacion($LITAMBITO_AULAS,$AMBITO_AULAS); | 
|---|
| 90 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 91 | $XMLcontextual=ContextualXMLSincronizacion($LITAMBITO_GRUPOSORDENADORES,$AMBITO_GRUPOSORDENADORES); | 
|---|
| 92 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 93 | $XMLcontextual=ContextualXMLSincronizacion($LITAMBITO_ORDENADORES,$AMBITO_ORDENADORES); | 
|---|
| 94 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 95 |  | 
|---|
| 96 |  | 
|---|
| 97 | // Crea submenu contextual de clase de gestion de arranque pxe | 
|---|
| 98 | $XMLcontextual=ContextualXMLNetBoot();  // Crea submenu contextual de acciones | 
|---|
| 99 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 100 |  | 
|---|
| 101 | // Crea submenu contextual de la clase de asistentes. | 
|---|
| 102 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_CENTROS,$AMBITO_CENTROS); | 
|---|
| 103 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 104 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_GRUPOSAULAS,$AMBITO_GRUPOSAULAS); | 
|---|
| 105 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 106 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_AULAS,$AMBITO_AULAS); | 
|---|
| 107 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 108 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_GRUPOSORDENADORES,$AMBITO_GRUPOSORDENADORES); | 
|---|
| 109 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 110 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_ORDENADORES,$AMBITO_ORDENADORES); | 
|---|
| 111 | echo $flotante->CreaMenuContextual($XMLcontextual); | 
|---|
| 112 |  | 
|---|
| 113 |  | 
|---|
| 114 |  | 
|---|
| 115 | //___________________________________________________________________________________________________ | 
|---|
| 116 | ?> | 
|---|
| 117 | </BODY> | 
|---|
| 118 | </HTML> | 
|---|
| 119 | <?php | 
|---|
| 120 | // ************************************************************************************************************************************************* | 
|---|
| 121 | //      Devuelve una cadena con formato XML con toda la informaci� de aulas y ordenadores registrados en un Centro concreto | 
|---|
| 122 | //      Parametros: | 
|---|
| 123 | //              - cmd:Una comando ya operativo ( con conexiónabierta) | 
|---|
| 124 | //              - idcentro: El identificador del centro | 
|---|
| 125 | //              - nombrecentro: El nombre del centro | 
|---|
| 126 | //________________________________________________________________________________________________________ | 
|---|
| 127 | function CreaArbol($cmd,$idcentro,$nombrecentro){ | 
|---|
| 128 | global $TbMsg; | 
|---|
| 129 | global $LITAMBITO_CENTROS; | 
|---|
| 130 | $cadenaXML='<CENTRO'; | 
|---|
| 131 | // Atributos | 
|---|
| 132 | $cadenaXML.=' imagenodo="../images/iconos/centros.gif"'; | 
|---|
| 133 | $cadenaXML.=' nodoid='.$LITAMBITO_CENTROS."-".$idcentro; | 
|---|
| 134 | $cadenaXML.=' infonodo="'.$nombrecentro.'"'; | 
|---|
| 135 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_CENTROS."'" .')"'; | 
|---|
| 136 | $cadenaXML.='>'; | 
|---|
| 137 | $cadenaXML.=SubarbolXML_grupos_aulas($cmd,$idcentro,0); | 
|---|
| 138 | $cadenaXML.='</CENTRO>'; | 
|---|
| 139 | return($cadenaXML); | 
|---|
| 140 | } | 
|---|
| 141 | //________________________________________________________________________________________________________ | 
|---|
| 142 | function SubarbolXML_grupos_aulas($cmd,$idcentro,$grupoid){ | 
|---|
| 143 | global $TbMsg; | 
|---|
| 144 | global $LITAMBITO_GRUPOSAULAS; | 
|---|
| 145 | global $LITAMBITO_AULAS; | 
|---|
| 146 | global $AMBITO_GRUPOSAULAS; | 
|---|
| 147 | $cadenaXML=""; | 
|---|
| 148 | $rs=new Recordset; | 
|---|
| 149 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSAULAS." ORDER BY nombregrupo"; | 
|---|
| 150 | $rs->Comando=&$cmd; | 
|---|
| 151 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset | 
|---|
| 152 | $rs->Primero(); | 
|---|
| 153 | while (!$rs->EOF){ | 
|---|
| 154 | $cadenaXML.='<GRUPOSAULAS'; | 
|---|
| 155 | // Atributos | 
|---|
| 156 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSAULAS."'" .');"'; | 
|---|
| 157 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; | 
|---|
| 158 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; | 
|---|
| 159 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSAULAS.'-'.$rs->campos["idgrupo"]; | 
|---|
| 160 | $cadenaXML.='>'; | 
|---|
| 161 | $cadenaXML.=SubarbolXML_grupos_aulas($cmd,$idcentro,$rs->campos["idgrupo"]); | 
|---|
| 162 | $cadenaXML.='</GRUPOSAULAS>'; | 
|---|
| 163 | $rs->Siguiente(); | 
|---|
| 164 | } | 
|---|
| 165 | $rs->Cerrar(); | 
|---|
| 166 | $cmd->texto="SELECT idaula,nombreaula FROM aulas WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." order by nombreaula"; | 
|---|
| 167 | $rs->Comando=&$cmd; | 
|---|
| 168 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset | 
|---|
| 169 | $rs->Primero(); | 
|---|
| 170 | while (!$rs->EOF){ | 
|---|
| 171 | $cadenaXML.='<AULA '; | 
|---|
| 172 | // Atributos | 
|---|
| 173 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_AULAS."'" .')"'; | 
|---|
| 174 | $cadenaXML.=' clicksupnodo="ver_aulas();"'; | 
|---|
| 175 | $cadenaXML.=' imagenodo="../images/iconos/aula.gif"'; | 
|---|
| 176 | $cadenaXML.=' infonodo="'.$rs->campos["nombreaula"].'"'; | 
|---|
| 177 | $cadenaXML.=' nodoid='.$LITAMBITO_AULAS.'-'.$rs->campos["idaula"]; | 
|---|
| 178 | $cadenaXML.='>'; | 
|---|
| 179 | $cadenaXML.=SubarbolXML_aulas_ordenadores($cmd,$rs->campos["idaula"],0); | 
|---|
| 180 | // La siguiente línea está prevista para añadir operatores de aulas. | 
|---|
| 181 | //$cadenaXML.=SubarbolXML_aulas_operadores($cmd,$rs->campos["idaula"],$cc); | 
|---|
| 182 | $cadenaXML.='</AULA>'; | 
|---|
| 183 | $rs->Siguiente(); | 
|---|
| 184 | } | 
|---|
| 185 | $rs->Cerrar(); | 
|---|
| 186 | return($cadenaXML); | 
|---|
| 187 | } | 
|---|
| 188 | //________________________________________________________________________________________________________ | 
|---|
| 189 | function SubarbolXML_aulas_operadores($cmd,$idaula,$cont){ | 
|---|
| 190 | global $TbMsg; | 
|---|
| 191 | global $LITAMBITO_USUARIOS; | 
|---|
| 192 | global $cadenaXML; | 
|---|
| 193 | global $OPERADOR; | 
|---|
| 194 | $cadenaXML=""; | 
|---|
| 195 | $rs=new Recordset; | 
|---|
| 196 | $cmd->texto="SELECT idusuario,nombre FROM usuarios WHERE idtipousuario=".$OPERADOR." AND idambito=".$idaula." ORDER by nombre"; | 
|---|
| 197 | $rs->Comando=&$cmd; | 
|---|
| 198 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset | 
|---|
| 199 | $rs->Primero(); | 
|---|
| 200 | if ($rs->EOF) return(""); | 
|---|
| 201 | while (!$rs->EOF){ | 
|---|
| 202 | $cont++; | 
|---|
| 203 | $cadenaXML.='<USUARIO'; | 
|---|
| 204 | // Atributos | 
|---|
| 205 | $cadenaXML.=' imagenodo="../images/iconos/operadores.gif"'; | 
|---|
| 206 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_USUARIOS."'" .')"'; | 
|---|
| 207 | $cadenaXML.=' infonodo="'.$rs->campos["nombre"].'"'; | 
|---|
| 208 | $cadenaXML.=' nodoid='.$LITAMBITO_USUARIOS.'-'.$rs->campos["idusuario"]; | 
|---|
| 209 | $cadenaXML.='></USUARIO>'; | 
|---|
| 210 | $rs->Siguiente(); | 
|---|
| 211 | } | 
|---|
| 212 | $rs->Cerrar(); | 
|---|
| 213 | return($cadenaXML); | 
|---|
| 214 | } | 
|---|
| 215 | //________________________________________________________________________________________________________ | 
|---|
| 216 | function SubarbolXML_aulas_ordenadores($cmd,$idaula,$grupoid){ | 
|---|
| 217 | global $TbMsg; | 
|---|
| 218 | global $LITAMBITO_GRUPOSORDENADORES; | 
|---|
| 219 | global $LITAMBITO_ORDENADORES; | 
|---|
| 220 | $cadenaXML=""; | 
|---|
| 221 | $rs=new Recordset; | 
|---|
| 222 | $cmd->texto="SELECT idgrupo,nombregrupoordenador,grupoid FROM gruposordenadores WHERE grupoid=".$grupoid." AND idaula=".$idaula." ORDER BY  nombregrupoordenador"; | 
|---|
| 223 | $rs->Comando=&$cmd; | 
|---|
| 224 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset | 
|---|
| 225 | $rs->Primero(); | 
|---|
| 226 | while (!$rs->EOF){ | 
|---|
| 227 | $cadenaXML.='<GRUPOSORDENADORES'; | 
|---|
| 228 | // Atributos | 
|---|
| 229 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_GRUPOSORDENADORES."'" .')"'; | 
|---|
| 230 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; | 
|---|
| 231 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupoordenador"].'"'; | 
|---|
| 232 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSORDENADORES.'-'.$rs->campos["idgrupo"]; | 
|---|
| 233 | $cadenaXML.='>'; | 
|---|
| 234 | $cadenaXML.=SubarbolXML_aulas_ordenadores($cmd,$idaula,$rs->campos["idgrupo"]); | 
|---|
| 235 | $cadenaXML.='</GRUPOSORDENADORES>'; | 
|---|
| 236 | $rs->Siguiente(); | 
|---|
| 237 | } | 
|---|
| 238 | $rs->Cerrar(); | 
|---|
| 239 | $cmd->texto="SELECT idordenador,nombreordenador FROM ordenadores WHERE grupoid=".$grupoid." AND idaula=".$idaula." order by nombreordenador desc"; | 
|---|
| 240 | $rs->Comando=&$cmd; | 
|---|
| 241 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset | 
|---|
| 242 | $rs->Primero(); | 
|---|
| 243 | while (!$rs->EOF){ | 
|---|
| 244 | $cadenaXML.='<ORDENADOR'; | 
|---|
| 245 | // Atributos | 
|---|
| 246 | $cadenaXML.=' imagenodo="../images/iconos/ordenador.gif"'; | 
|---|
| 247 | $wpages="../propiedades/propiedades_ordenadores.php"; | 
|---|
| 248 | $wParam="0,0,0,0,'". $wpages."'"; | 
|---|
| 249 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_ORDENADORES."'" .')"'; | 
|---|
| 250 | $cadenaXML.=' clicksupnodo="modificar('.$wParam.')"'; | 
|---|
| 251 | $cadenaXML.=' infonodo="'.$rs->campos["nombreordenador"].'"'; | 
|---|
| 252 | $cadenaXML.=' nodoid='.$LITAMBITO_ORDENADORES.'-'.$rs->campos["idordenador"]; | 
|---|
| 253 | $cadenaXML.='></ORDENADOR>'; | 
|---|
| 254 | $rs->Siguiente(); | 
|---|
| 255 | } | 
|---|
| 256 | $rs->Cerrar(); | 
|---|
| 257 | return($cadenaXML); | 
|---|
| 258 | } | 
|---|
| 259 | //________________________________________________________________________________________________________ | 
|---|
| 260 | // | 
|---|
| 261 | //      Mens Contextuales | 
|---|
| 262 | //________________________________________________________________________________________________________ | 
|---|
| 263 | function ContextualXMLCentros(){ | 
|---|
| 264 | global $TbMsg; | 
|---|
| 265 | global $AMBITO_AULAS; | 
|---|
| 266 | global $AMBITO_GRUPOSAULAS; | 
|---|
| 267 | global $LITAMBITO_GRUPOSAULAS; | 
|---|
| 268 | global $AMBITO_CENTROS; | 
|---|
| 269 | global $LITAMBITO_CENTROS; | 
|---|
| 270 | global $RESERVA_CONFIRMADA; | 
|---|
| 271 |  | 
|---|
| 272 | $layerXML='<MENUCONTEXTUAL'; | 
|---|
| 273 | $layerXML.=' idctx="flo_'.$LITAMBITO_CENTROS.'"'; | 
|---|
| 274 | $layerXML.=' maxanchu=160'; | 
|---|
| 275 | $layerXML.=' swimg=1'; | 
|---|
| 276 | $layerXML.=' clase="menu_contextual"'; | 
|---|
| 277 | $layerXML.='>'; | 
|---|
| 278 |  | 
|---|
| 279 | $layerXML.='<ITEM'; | 
|---|
| 280 | $layerXML.=' alpulsar="ver_aulas()"'; | 
|---|
| 281 | $layerXML.=' textoitem='.$TbMsg[1]; | 
|---|
| 282 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
| 283 | $layerXML.='></ITEM>'; | 
|---|
| 284 |  | 
|---|
| 285 | $layerXML.='<ITEM'; | 
|---|
| 286 | $layerXML.=' alpulsar="cola_acciones()"'; | 
|---|
| 287 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; | 
|---|
| 288 | $layerXML.=' textoitem='.$TbMsg[6]; | 
|---|
| 289 | $layerXML.='></ITEM>'; | 
|---|
| 290 |  | 
|---|
| 291 | $layerXML.='<SEPARADOR>'; | 
|---|
| 292 | $layerXML.='</SEPARADOR>'; | 
|---|
| 293 |  | 
|---|
| 294 | $layerXML.='<ITEM'; | 
|---|
| 295 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSAULAS.',' ."'".$LITAMBITO_GRUPOSAULAS."',1". ')"'; | 
|---|
| 296 |  | 
|---|
| 297 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; | 
|---|
| 298 | $layerXML.=' textoitem='.$TbMsg[0]; | 
|---|
| 299 | $layerXML.='></ITEM>'; | 
|---|
| 300 |  | 
|---|
| 301 | $wLeft=170; | 
|---|
| 302 | $wTop=80; | 
|---|
| 303 | $wWidth=480; | 
|---|
| 304 | $wHeight=480; | 
|---|
| 305 | $wpages="../propiedades/propiedades_aulas.php"; | 
|---|
| 306 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; | 
|---|
| 307 | $layerXML.='<ITEM'; | 
|---|
| 308 | $layerXML.=' alpulsar="insertar('.$wParam.',1)"'; | 
|---|
| 309 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; | 
|---|
| 310 | $layerXML.=' textoitem='.$TbMsg[3]; | 
|---|
| 311 | $layerXML.='></ITEM>'; | 
|---|
| 312 |  | 
|---|
| 313 | $layerXML.='<SEPARADOR>'; | 
|---|
| 314 | $layerXML.='</SEPARADOR>'; | 
|---|
| 315 |  | 
|---|
| 316 | $layerXML.='<ITEM'; | 
|---|
| 317 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; | 
|---|
| 318 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; | 
|---|
| 319 | $layerXML.=' textoitem='.$TbMsg[4]; | 
|---|
| 320 | $layerXML.='></ITEM>'; | 
|---|
| 321 |  | 
|---|
| 322 | $layerXML.='<ITEM'; | 
|---|
| 323 | $layerXML.=' alpulsar="purgar_ordenadores()"'; | 
|---|
| 324 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; | 
|---|
| 325 | $layerXML.=' textoitem='.$TbMsg[2]; | 
|---|
| 326 | $layerXML.='></ITEM>'; | 
|---|
| 327 |  | 
|---|
| 328 | $layerXML.='<SEPARADOR>'; | 
|---|
| 329 | $layerXML.='</SEPARADOR>'; | 
|---|
| 330 |  | 
|---|
| 331 | $layerXML.='<ITEM'; | 
|---|
| 332 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_CENTROS.')"'; | 
|---|
| 333 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; | 
|---|
| 334 | $layerXML.=' textoitem='.$TbMsg[33]; | 
|---|
| 335 | $layerXML.='></ITEM>'; | 
|---|
| 336 |  | 
|---|
| 337 | $layerXML.='<SEPARADOR>'; | 
|---|
| 338 | $layerXML.='</SEPARADOR>'; | 
|---|
| 339 |  | 
|---|
| 340 | $layerXML.='<ITEM'; | 
|---|
| 341 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_CENTROS.'"'; | 
|---|
| 342 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 343 | $layerXML.=' textoitem='.$TbMsg[5]; | 
|---|
| 344 | $layerXML.='></ITEM>'; | 
|---|
| 345 |  | 
|---|
| 346 |  | 
|---|
| 347 | $layerXML.='<ITEM'; | 
|---|
| 348 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_CENTROS.')"'; | 
|---|
| 349 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; | 
|---|
| 350 | $layerXML.=' textoitem='.$TbMsg[28]; | 
|---|
| 351 | $layerXML.='></ITEM>'; | 
|---|
| 352 |  | 
|---|
| 353 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 354 | return($layerXML); | 
|---|
| 355 | } | 
|---|
| 356 | //________________________________________________________________________________________________________ | 
|---|
| 357 | function ContextualXMLGruposAulas(){ | 
|---|
| 358 | global $TbMsg; | 
|---|
| 359 | global $AMBITO_AULAS; | 
|---|
| 360 | global $AMBITO_GRUPOSAULAS; | 
|---|
| 361 | global $LITAMBITO_GRUPOSAULAS; | 
|---|
| 362 | global $RESERVA_CONFIRMADA; | 
|---|
| 363 |  | 
|---|
| 364 | $layerXML='<MENUCONTEXTUAL'; | 
|---|
| 365 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSAULAS.'"'; | 
|---|
| 366 | $layerXML.=' maxanchu=155'; | 
|---|
| 367 | $layerXML.=' swimg=1'; | 
|---|
| 368 | $layerXML.=' clase="menu_contextual"'; | 
|---|
| 369 | $layerXML.='>'; | 
|---|
| 370 |  | 
|---|
| 371 |  | 
|---|
| 372 |  | 
|---|
| 373 | $layerXML.='<ITEM'; | 
|---|
| 374 | $layerXML.=' alpulsar="ver_aulas()"'; | 
|---|
| 375 | $layerXML.=' textoitem='.$TbMsg[1]; | 
|---|
| 376 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
| 377 | $layerXML.='></ITEM>'; | 
|---|
| 378 |  | 
|---|
| 379 | $layerXML.='<ITEM'; | 
|---|
| 380 | $layerXML.=' alpulsar="cola_acciones()"'; | 
|---|
| 381 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; | 
|---|
| 382 | $layerXML.=' textoitem='.$TbMsg[6]; | 
|---|
| 383 | $layerXML.='></ITEM>'; | 
|---|
| 384 |  | 
|---|
| 385 |  | 
|---|
| 386 | $layerXML.='<SEPARADOR>'; | 
|---|
| 387 | $layerXML.='</SEPARADOR>'; | 
|---|
| 388 |  | 
|---|
| 389 | $layerXML.='<ITEM'; | 
|---|
| 390 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSAULAS.',' ."'".$LITAMBITO_GRUPOSAULAS."'". ')"'; | 
|---|
| 391 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; | 
|---|
| 392 | $layerXML.=' textoitem='.$TbMsg[0]; | 
|---|
| 393 | $layerXML.='></ITEM>'; | 
|---|
| 394 |  | 
|---|
| 395 | $wLeft=170; | 
|---|
| 396 | $wTop=80; | 
|---|
| 397 | $wWidth=480; | 
|---|
| 398 | $wHeight=480; | 
|---|
| 399 | $wpages="../propiedades/propiedades_aulas.php"; | 
|---|
| 400 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; | 
|---|
| 401 | $layerXML.='<ITEM'; | 
|---|
| 402 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; | 
|---|
| 403 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; | 
|---|
| 404 | $layerXML.=' textoitem='.$TbMsg[3]; | 
|---|
| 405 | $layerXML.='></ITEM>'; | 
|---|
| 406 |  | 
|---|
| 407 | $layerXML.='<SEPARADOR>'; | 
|---|
| 408 | $layerXML.='</SEPARADOR>'; | 
|---|
| 409 |  | 
|---|
| 410 | $layerXML.='<ITEM'; | 
|---|
| 411 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; | 
|---|
| 412 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; | 
|---|
| 413 | $layerXML.=' textoitem='.$TbMsg[4]; | 
|---|
| 414 | $layerXML.='></ITEM>'; | 
|---|
| 415 |  | 
|---|
| 416 | $layerXML.='<ITEM'; | 
|---|
| 417 | $layerXML.=' alpulsar="purgar_ordenadores()"'; | 
|---|
| 418 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; | 
|---|
| 419 | $layerXML.=' textoitem='.$TbMsg[2]; | 
|---|
| 420 | $layerXML.='></ITEM>'; | 
|---|
| 421 |  | 
|---|
| 422 | $layerXML.='<SEPARADOR>'; | 
|---|
| 423 | $layerXML.='</SEPARADOR>'; | 
|---|
| 424 |  | 
|---|
| 425 | $layerXML.='<ITEM'; | 
|---|
| 426 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_GRUPOSAULAS.')"'; | 
|---|
| 427 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; | 
|---|
| 428 | $layerXML.=' textoitem='.$TbMsg[33]; | 
|---|
| 429 | $layerXML.='></ITEM>'; | 
|---|
| 430 |  | 
|---|
| 431 | $layerXML.='<SEPARADOR>'; | 
|---|
| 432 | $layerXML.='</SEPARADOR>'; | 
|---|
| 433 |  | 
|---|
| 434 | $layerXML.='<ITEM'; | 
|---|
| 435 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_GRUPOSAULAS.'"'; | 
|---|
| 436 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 437 | $layerXML.=' textoitem='.$TbMsg[5]; | 
|---|
| 438 | $layerXML.='></ITEM>'; | 
|---|
| 439 |  | 
|---|
| 440 | $layerXML.='<ITEM'; | 
|---|
| 441 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_GRUPOSAULAS.')"'; | 
|---|
| 442 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; | 
|---|
| 443 | $layerXML.=' textoitem='.$TbMsg[28]; | 
|---|
| 444 | $layerXML.='></ITEM>'; | 
|---|
| 445 |  | 
|---|
| 446 | $layerXML.='<SEPARADOR>'; | 
|---|
| 447 | $layerXML.='</SEPARADOR>'; | 
|---|
| 448 |  | 
|---|
| 449 | $layerXML.='<ITEM'; | 
|---|
| 450 | $layerXML.=' alpulsar="modificar_grupos()"'; | 
|---|
| 451 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; | 
|---|
| 452 | $layerXML.=' textoitem='.$TbMsg[13]; | 
|---|
| 453 | $layerXML.='></ITEM>'; | 
|---|
| 454 |  | 
|---|
| 455 | $layerXML.='<ITEM'; | 
|---|
| 456 | $layerXML.=' alpulsar="eliminar_grupos()"'; | 
|---|
| 457 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; | 
|---|
| 458 | $layerXML.=' textoitem='.$TbMsg[7]; | 
|---|
| 459 | $layerXML.='></ITEM>'; | 
|---|
| 460 |  | 
|---|
| 461 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 462 | return($layerXML); | 
|---|
| 463 | } | 
|---|
| 464 | //________________________________________________________________________________________________________ | 
|---|
| 465 | function ContextualXMLAulas(){ | 
|---|
| 466 | global $TbMsg; | 
|---|
| 467 | global $AMBITO_AULAS; | 
|---|
| 468 | global $LITAMBITO_AULAS; | 
|---|
| 469 | global $RESERVA_CONFIRMADA; | 
|---|
| 470 | global $OPERADOR; | 
|---|
| 471 |  | 
|---|
| 472 | $layerXML='<MENUCONTEXTUAL'; | 
|---|
| 473 | $layerXML.=' idctx="flo_'.$LITAMBITO_AULAS.'"'; | 
|---|
| 474 | $layerXML.=' maxanchu=190'; | 
|---|
| 475 | $layerXML.=' swimg=1'; | 
|---|
| 476 | $layerXML.=' clase="menu_contextual"'; | 
|---|
| 477 | $layerXML.='>'; | 
|---|
| 478 |  | 
|---|
| 479 | $layerXML.='<ITEM'; | 
|---|
| 480 | // Pasar al menú la única opción del submenú "NetBoot Gestión". | 
|---|
| 481 | //$layerXML.=' subflotante="flo_netboot"'; | 
|---|
| 482 | $layerXML.=' alpulsar="ver_boot()"'; | 
|---|
| 483 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
| 484 | $layerXML.=' textoitem='.$TbMsg[40]; | 
|---|
| 485 | $layerXML.='></ITEM>'; | 
|---|
| 486 |  | 
|---|
| 487 | //adv compatiblidad Configurador de Startpages | 
|---|
| 488 | $layerXML.='<ITEM'; | 
|---|
| 489 | $layerXML.=' alpulsar="ver_ubicarordenadores()"'; | 
|---|
| 490 | $layerXML.=' textoitem='.$TbMsg[41]; | 
|---|
| 491 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
| 492 | $layerXML.='></ITEM>'; | 
|---|
| 493 | //adv compatiblidad Configurador de Startpages | 
|---|
| 494 |  | 
|---|
| 495 | $layerXML.='<ITEM'; | 
|---|
| 496 | $layerXML.=' alpulsar="ver_aulas()"'; | 
|---|
| 497 | $layerXML.=' textoitem='.$TbMsg[1]; | 
|---|
| 498 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
| 499 | $layerXML.='></ITEM>'; | 
|---|
| 500 |  | 
|---|
| 501 | $layerXML.='<ITEM'; | 
|---|
| 502 | $layerXML.=' alpulsar="cola_acciones()"'; | 
|---|
| 503 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; | 
|---|
| 504 | $layerXML.=' textoitem='.$TbMsg[6]; | 
|---|
| 505 | $layerXML.='></ITEM>'; | 
|---|
| 506 |  | 
|---|
| 507 | $layerXML.='<SEPARADOR>'; | 
|---|
| 508 | $layerXML.='</SEPARADOR>'; | 
|---|
| 509 |  | 
|---|
| 510 | $layerXML.='<ITEM'; | 
|---|
| 511 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_AULAS.',' ."'".$LITAMBITO_AULAS."'". ')"'; | 
|---|
| 512 |  | 
|---|
| 513 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; | 
|---|
| 514 | $layerXML.=' textoitem='.$TbMsg[8]; | 
|---|
| 515 | $layerXML.='></ITEM>'; | 
|---|
| 516 |  | 
|---|
| 517 | $layerXML.='<ITEM'; | 
|---|
| 518 | $layerXML.=' alpulsar="colocar_ordenador(1)"'; | 
|---|
| 519 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; | 
|---|
| 520 | $layerXML.=' textoitem='.$TbMsg[11]; | 
|---|
| 521 | $layerXML.='></ITEM>'; | 
|---|
| 522 |  | 
|---|
| 523 | $layerXML.='<SEPARADOR>'; | 
|---|
| 524 | $layerXML.='</SEPARADOR>'; | 
|---|
| 525 |  | 
|---|
| 526 | $wLeft=170; | 
|---|
| 527 | $wTop=80; | 
|---|
| 528 | $wWidth=480; | 
|---|
| 529 | $wHeight=480; | 
|---|
| 530 | $wpages="../propiedades/propiedades_ordenadores.php"; | 
|---|
| 531 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; | 
|---|
| 532 | $layerXML.='<ITEM'; | 
|---|
| 533 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; | 
|---|
| 534 | $layerXML.=' imgitem="../images/iconos/ordenador.gif"'; | 
|---|
| 535 | $layerXML.=' textoitem='.$TbMsg[9]; | 
|---|
| 536 | $layerXML.='></ITEM>'; | 
|---|
| 537 |  | 
|---|
| 538 | $layerXML.='<ITEM'; | 
|---|
| 539 | $layerXML.=' alpulsar="incorporarordenador()"'; | 
|---|
| 540 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; | 
|---|
| 541 | $layerXML.=' textoitem='.$TbMsg[27]; | 
|---|
| 542 | $layerXML.='></ITEM>'; | 
|---|
| 543 |  | 
|---|
| 544 | $layerXML.='<SEPARADOR>'; | 
|---|
| 545 | $layerXML.='</SEPARADOR>'; | 
|---|
| 546 |  | 
|---|
| 547 | $layerXML.='<ITEM'; | 
|---|
| 548 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; | 
|---|
| 549 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; | 
|---|
| 550 | $layerXML.=' textoitem='.$TbMsg[4]; | 
|---|
| 551 | $layerXML.='></ITEM>'; | 
|---|
| 552 |  | 
|---|
| 553 | $layerXML.='<ITEM'; | 
|---|
| 554 | $layerXML.=' alpulsar="purgar_ordenadores()"'; | 
|---|
| 555 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; | 
|---|
| 556 | $layerXML.=' textoitem='.$TbMsg[2]; | 
|---|
| 557 | $layerXML.='></ITEM>'; | 
|---|
| 558 |  | 
|---|
| 559 | $layerXML.='<SEPARADOR>'; | 
|---|
| 560 | $layerXML.='</SEPARADOR>'; | 
|---|
| 561 |  | 
|---|
| 562 | $layerXML.='<ITEM'; | 
|---|
| 563 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_AULAS.')"'; | 
|---|
| 564 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; | 
|---|
| 565 | $layerXML.=' textoitem='.$TbMsg[33]; | 
|---|
| 566 | $layerXML.='></ITEM>'; | 
|---|
| 567 |  | 
|---|
| 568 | $layerXML.='<SEPARADOR>'; | 
|---|
| 569 | $layerXML.='</SEPARADOR>'; | 
|---|
| 570 |  | 
|---|
| 571 | $layerXML.='<ITEM'; | 
|---|
| 572 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_AULAS.'"'; | 
|---|
| 573 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 574 | $layerXML.=' textoitem='.$TbMsg[5]; | 
|---|
| 575 | $layerXML.='></ITEM>'; | 
|---|
| 576 |  | 
|---|
| 577 | $layerXML.='<ITEM'; | 
|---|
| 578 | $layerXML.=' subflotante="flo_sincronizacion_'.$LITAMBITO_AULAS.'"'; | 
|---|
| 579 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 580 | $layerXML.=' textoitem='.$TbMsg[49]; | 
|---|
| 581 | $layerXML.='></ITEM>'; | 
|---|
| 582 |  | 
|---|
| 583 | $layerXML.='<ITEM'; | 
|---|
| 584 | $layerXML.=' subflotante="flo_asistentes_'.$LITAMBITO_AULAS.'"'; | 
|---|
| 585 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 586 | $layerXML.=' textoitem='.$TbMsg[38]; | 
|---|
| 587 | $layerXML.='></ITEM>'; | 
|---|
| 588 |  | 
|---|
| 589 | $layerXML.='<SEPARADOR>'; | 
|---|
| 590 | $layerXML.='</SEPARADOR>'; | 
|---|
| 591 |  | 
|---|
| 592 | $layerXML.='<ITEM'; | 
|---|
| 593 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_AULAS.')"'; | 
|---|
| 594 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; | 
|---|
| 595 | $layerXML.=' textoitem='.$TbMsg[28]; | 
|---|
| 596 | $layerXML.='></ITEM>'; | 
|---|
| 597 |  | 
|---|
| 598 | $layerXML.='<SEPARADOR>'; | 
|---|
| 599 | $layerXML.='</SEPARADOR>'; | 
|---|
| 600 |  | 
|---|
| 601 | $layerXML.='<ITEM'; | 
|---|
| 602 | $layerXML.=' alpulsar="configuraciones('.$AMBITO_AULAS.')"'; | 
|---|
| 603 | $layerXML.=' textoitem='.$TbMsg[10]; | 
|---|
| 604 | $layerXML.=' imgitem="../images/iconos/configuraciones.gif"'; | 
|---|
| 605 | $layerXML.='></ITEM>'; | 
|---|
| 606 |  | 
|---|
| 607 | $wLeft=170; | 
|---|
| 608 | $wTop=80; | 
|---|
| 609 | $wWidth=480; | 
|---|
| 610 | $wHeight=480; | 
|---|
| 611 | $wpages="../propiedades/propiedades_aulas.php"; | 
|---|
| 612 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; | 
|---|
| 613 | $layerXML.='<ITEM'; | 
|---|
| 614 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; | 
|---|
| 615 | $layerXML.=' textoitem='.$TbMsg[13]; | 
|---|
| 616 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; | 
|---|
| 617 | $layerXML.='></ITEM>'; | 
|---|
| 618 |  | 
|---|
| 619 | $layerXML.='<ITEM'; | 
|---|
| 620 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; | 
|---|
| 621 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; | 
|---|
| 622 | $layerXML.=' textoitem='.$TbMsg[14]; | 
|---|
| 623 | $layerXML.='></ITEM>'; | 
|---|
| 624 | /* | 
|---|
| 625 | $layerXML.='<SEPARADOR>'; | 
|---|
| 626 | $layerXML.='</SEPARADOR>'; | 
|---|
| 627 |  | 
|---|
| 628 | // Crear operador | 
|---|
| 629 | $wLeft=140; | 
|---|
| 630 | $wTop=115; | 
|---|
| 631 | $wWidth=400; | 
|---|
| 632 | $wHeight=320; | 
|---|
| 633 | $wpages="../propiedades/propiedades_usuarios.php?idtipousuario=".$OPERADOR; | 
|---|
| 634 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; | 
|---|
| 635 | $layerXML.='<ITEM'; | 
|---|
| 636 | $layerXML.=' alpulsar="insertar('.$wParam.',3)"'; | 
|---|
| 637 | $layerXML.=' imgitem="../images/iconos/operadores.gif"'; | 
|---|
| 638 | $layerXML.=' textoitem='.$TbMsg[37]; | 
|---|
| 639 | $layerXML.='></ITEM>'; | 
|---|
| 640 | */ | 
|---|
| 641 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 642 | return($layerXML); | 
|---|
| 643 | } | 
|---|
| 644 | //________________________________________________________________________________________________________ | 
|---|
| 645 | function CreacontextualXMLUsuarios(){ | 
|---|
| 646 | global $LITAMBITO_USUARIOS; | 
|---|
| 647 | global $TbMsg; | 
|---|
| 648 |  | 
|---|
| 649 | $layerXML='<MENUCONTEXTUAL'; | 
|---|
| 650 | $layerXML.=' idctx="flo_'.$LITAMBITO_USUARIOS.'"'; | 
|---|
| 651 | $layerXML.=' maxanchu=130'; | 
|---|
| 652 | $layerXML.=' swimg=1'; | 
|---|
| 653 | $layerXML.=' clase="menu_contextual"'; | 
|---|
| 654 | $layerXML.='>'; | 
|---|
| 655 |  | 
|---|
| 656 | // Modificar usuarios | 
|---|
| 657 | $wLeft=140; | 
|---|
| 658 | $wTop=115; | 
|---|
| 659 | $wWidth=400; | 
|---|
| 660 | $wHeight=320; | 
|---|
| 661 | $wpages="../propiedades/propiedades_usuarios.php"; | 
|---|
| 662 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; | 
|---|
| 663 | $layerXML.='<ITEM'; | 
|---|
| 664 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; | 
|---|
| 665 | $layerXML.=' textoitem='.$TbMsg[13]; | 
|---|
| 666 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; | 
|---|
| 667 | $layerXML.='></ITEM>'; | 
|---|
| 668 |  | 
|---|
| 669 | $layerXML.='<SEPARADOR>'; | 
|---|
| 670 | $layerXML.='</SEPARADOR>'; | 
|---|
| 671 |  | 
|---|
| 672 | $layerXML.='<ITEM'; | 
|---|
| 673 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; | 
|---|
| 674 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; | 
|---|
| 675 | $layerXML.=' textoitem='.$TbMsg[36]; | 
|---|
| 676 | $layerXML.='></ITEM>'; | 
|---|
| 677 |  | 
|---|
| 678 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 679 | return($layerXML); | 
|---|
| 680 | } | 
|---|
| 681 | //________________________________________________________________________________________________________ | 
|---|
| 682 | function ContextualXMLGruposOrdenadores(){ | 
|---|
| 683 | global $TbMsg; | 
|---|
| 684 | global $AMBITO_GRUPOSORDENADORES; | 
|---|
| 685 | global $LITAMBITO_GRUPOSORDENADORES; | 
|---|
| 686 | $layerXML='<MENUCONTEXTUAL'; | 
|---|
| 687 |  | 
|---|
| 688 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSORDENADORES.'"'; | 
|---|
| 689 | $layerXML.=' maxanchu=195'; | 
|---|
| 690 | $layerXML.=' swimg=1'; | 
|---|
| 691 | $layerXML.=' clase="menu_contextual"'; | 
|---|
| 692 | $layerXML.='>'; | 
|---|
| 693 |  | 
|---|
| 694 |  | 
|---|
| 695 | $layerXML.='<ITEM'; | 
|---|
| 696 | // Pasar al menú la única opción del submenú "NetBoot Gestión". | 
|---|
| 697 | //$layerXML.=' subflotante="flo_netboot"'; | 
|---|
| 698 | $layerXML.=' alpulsar="ver_boot()"'; | 
|---|
| 699 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
| 700 | $layerXML.=' textoitem='.$TbMsg[40]; | 
|---|
| 701 | $layerXML.='></ITEM>'; | 
|---|
| 702 |  | 
|---|
| 703 |  | 
|---|
| 704 |  | 
|---|
| 705 | $layerXML.='<ITEM'; | 
|---|
| 706 | $layerXML.=' alpulsar="ver_aulas()"'; | 
|---|
| 707 | $layerXML.=' textoitem='.$TbMsg[1]; | 
|---|
| 708 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
| 709 | $layerXML.='></ITEM>'; | 
|---|
| 710 |  | 
|---|
| 711 | $layerXML.='<ITEM'; | 
|---|
| 712 | $layerXML.=' alpulsar="cola_acciones()"'; | 
|---|
| 713 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; | 
|---|
| 714 | $layerXML.=' textoitem='.$TbMsg[6]; | 
|---|
| 715 | $layerXML.='></ITEM>'; | 
|---|
| 716 |  | 
|---|
| 717 | $layerXML.='<SEPARADOR>'; | 
|---|
| 718 | $layerXML.='</SEPARADOR>'; | 
|---|
| 719 |  | 
|---|
| 720 | $layerXML.='<ITEM'; | 
|---|
| 721 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSORDENADORES.',' ."'".$LITAMBITO_GRUPOSORDENADORES."'". ')"'; | 
|---|
| 722 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; | 
|---|
| 723 | $layerXML.=' textoitem='.$TbMsg[8]; | 
|---|
| 724 | $layerXML.='></ITEM>'; | 
|---|
| 725 |  | 
|---|
| 726 | $wLeft=170; | 
|---|
| 727 | $wTop=80; | 
|---|
| 728 | $wWidth=480; | 
|---|
| 729 | $wHeight=480; | 
|---|
| 730 | $wpages="../propiedades/propiedades_ordenadores.php"; | 
|---|
| 731 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; | 
|---|
| 732 | $layerXML.='<ITEM'; | 
|---|
| 733 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; | 
|---|
| 734 | $layerXML.=' imgitem="../images/iconos/ordenador.gif"'; | 
|---|
| 735 | $layerXML.=' textoitem='.$TbMsg[9]; | 
|---|
| 736 | $layerXML.='></ITEM>'; | 
|---|
| 737 |  | 
|---|
| 738 | $layerXML.='<SEPARADOR>'; | 
|---|
| 739 | $layerXML.='</SEPARADOR>'; | 
|---|
| 740 |  | 
|---|
| 741 | $layerXML.='<ITEM'; | 
|---|
| 742 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; | 
|---|
| 743 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; | 
|---|
| 744 | $layerXML.=' textoitem='.$TbMsg[4]; | 
|---|
| 745 | $layerXML.='></ITEM>'; | 
|---|
| 746 |  | 
|---|
| 747 | $layerXML.='<ITEM'; | 
|---|
| 748 | $layerXML.=' alpulsar="purgar_ordenadores()"'; | 
|---|
| 749 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; | 
|---|
| 750 | $layerXML.=' textoitem='.$TbMsg[2]; | 
|---|
| 751 | $layerXML.='></ITEM>'; | 
|---|
| 752 |  | 
|---|
| 753 | $layerXML.='<SEPARADOR>'; | 
|---|
| 754 | $layerXML.='</SEPARADOR>'; | 
|---|
| 755 |  | 
|---|
| 756 | $layerXML.='<ITEM'; | 
|---|
| 757 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_GRUPOSORDENADORES.')"'; | 
|---|
| 758 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; | 
|---|
| 759 | $layerXML.=' textoitem='.$TbMsg[33]; | 
|---|
| 760 | $layerXML.='></ITEM>'; | 
|---|
| 761 |  | 
|---|
| 762 | $layerXML.='<SEPARADOR>'; | 
|---|
| 763 | $layerXML.='</SEPARADOR>'; | 
|---|
| 764 |  | 
|---|
| 765 | $layerXML.='<ITEM'; | 
|---|
| 766 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_GRUPOSORDENADORES.'"'; | 
|---|
| 767 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 768 | $layerXML.=' textoitem='.$TbMsg[5]; | 
|---|
| 769 | $layerXML.='></ITEM>'; | 
|---|
| 770 |  | 
|---|
| 771 | $layerXML.='<ITEM'; | 
|---|
| 772 | $layerXML.=' subflotante="flo_sincronizacion_'.$LITAMBITO_GRUPOSORDENADORES.'"'; | 
|---|
| 773 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 774 | $layerXML.=' textoitem='.$TbMsg[49]; | 
|---|
| 775 | $layerXML.='></ITEM>'; | 
|---|
| 776 |  | 
|---|
| 777 | $layerXML.='<ITEM'; | 
|---|
| 778 | $layerXML.=' subflotante="flo_asistentes_'.$LITAMBITO_GRUPOSORDENADORES.'"'; | 
|---|
| 779 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 780 | $layerXML.=' textoitem='.$TbMsg[38]; | 
|---|
| 781 | $layerXML.='></ITEM>'; | 
|---|
| 782 |  | 
|---|
| 783 | $layerXML.='<SEPARADOR>'; | 
|---|
| 784 | $layerXML.='</SEPARADOR>'; | 
|---|
| 785 |  | 
|---|
| 786 | $layerXML.='<ITEM'; | 
|---|
| 787 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_GRUPOSORDENADORES.')"'; | 
|---|
| 788 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; | 
|---|
| 789 | $layerXML.=' textoitem='.$TbMsg[28]; | 
|---|
| 790 | $layerXML.='></ITEM>'; | 
|---|
| 791 |  | 
|---|
| 792 | $layerXML.='<SEPARADOR>'; | 
|---|
| 793 | $layerXML.='</SEPARADOR>'; | 
|---|
| 794 |  | 
|---|
| 795 | $layerXML.='<ITEM'; | 
|---|
| 796 | $layerXML.=' alpulsar="colocar_ordenador(0)"'; | 
|---|
| 797 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; | 
|---|
| 798 | $layerXML.=' textoitem='.$TbMsg[11]; | 
|---|
| 799 | $layerXML.='></ITEM>'; | 
|---|
| 800 |  | 
|---|
| 801 | $layerXML.='<SEPARADOR>'; | 
|---|
| 802 | $layerXML.='</SEPARADOR>'; | 
|---|
| 803 |  | 
|---|
| 804 | $layerXML.='<ITEM'; | 
|---|
| 805 | $layerXML.=' alpulsar="configuraciones('.$AMBITO_GRUPOSORDENADORES.')"'; | 
|---|
| 806 | $layerXML.=' textoitem='.$TbMsg[10]; | 
|---|
| 807 | $layerXML.=' imgitem="../images/iconos/configuraciones.gif"'; | 
|---|
| 808 | $layerXML.='></ITEM>'; | 
|---|
| 809 |  | 
|---|
| 810 | $layerXML.='<ITEM'; | 
|---|
| 811 | $layerXML.=' alpulsar="modificar_grupos()"'; | 
|---|
| 812 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; | 
|---|
| 813 | $layerXML.=' textoitem='.$TbMsg[13]; | 
|---|
| 814 | $layerXML.='></ITEM>'; | 
|---|
| 815 |  | 
|---|
| 816 | $layerXML.='<ITEM'; | 
|---|
| 817 | $layerXML.=' alpulsar="eliminar_grupos()"'; | 
|---|
| 818 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; | 
|---|
| 819 | $layerXML.=' textoitem='.$TbMsg[16]; | 
|---|
| 820 | $layerXML.='></ITEM>'; | 
|---|
| 821 |  | 
|---|
| 822 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 823 | return($layerXML); | 
|---|
| 824 | } | 
|---|
| 825 | //________________________________________________________________________________________________________ | 
|---|
| 826 | function ContextualXMLOrdenadores(){ | 
|---|
| 827 | global $TbMsg; | 
|---|
| 828 | global $AMBITO_ORDENADORES; | 
|---|
| 829 | global $LITAMBITO_ORDENADORES; | 
|---|
| 830 |  | 
|---|
| 831 | $layerXML='<MENUCONTEXTUAL'; | 
|---|
| 832 | $layerXML.=' idctx="flo_'.$LITAMBITO_ORDENADORES.'"'; | 
|---|
| 833 | $layerXML.=' maxanchu=140'; | 
|---|
| 834 | $layerXML.=' swimg=1'; | 
|---|
| 835 | $layerXML.=' clase="menu_contextual"'; | 
|---|
| 836 | $layerXML.='>'; | 
|---|
| 837 |  | 
|---|
| 838 | $layerXML.='<ITEM'; | 
|---|
| 839 | $layerXML.=' alpulsar="cola_acciones()"'; | 
|---|
| 840 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; | 
|---|
| 841 | $layerXML.=' textoitem='.$TbMsg[6]; | 
|---|
| 842 | $layerXML.='></ITEM>'; | 
|---|
| 843 |  | 
|---|
| 844 | $layerXML.='<SEPARADOR>'; | 
|---|
| 845 | $layerXML.='</SEPARADOR>'; | 
|---|
| 846 |  | 
|---|
| 847 | $layerXML.='<ITEM'; | 
|---|
| 848 | $layerXML.=' alpulsar="ver_log('.$AMBITO_ORDENADORES.')"'; | 
|---|
| 849 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; | 
|---|
| 850 | $layerXML.=' textoitem='.$TbMsg[47]; | 
|---|
| 851 | $layerXML.='></ITEM>'; | 
|---|
| 852 |  | 
|---|
| 853 | $layerXML.='<ITEM'; | 
|---|
| 854 | $layerXML.=' alpulsar="ver_log_seguimiento('.$AMBITO_ORDENADORES.')"'; | 
|---|
| 855 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; | 
|---|
| 856 | $layerXML.=' textoitem='.$TbMsg[48]; | 
|---|
| 857 | $layerXML.='></ITEM>'; | 
|---|
| 858 |  | 
|---|
| 859 | $layerXML.='<ITEM'; | 
|---|
| 860 | $layerXML.=' alpulsar="mover_ordenador()"'; | 
|---|
| 861 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; | 
|---|
| 862 | $layerXML.=' textoitem='.$TbMsg[17]; | 
|---|
| 863 | $layerXML.='></ITEM>'; | 
|---|
| 864 |  | 
|---|
| 865 | $layerXML.='<SEPARADOR>'; | 
|---|
| 866 | $layerXML.='</SEPARADOR>'; | 
|---|
| 867 |  | 
|---|
| 868 | $layerXML.='<ITEM'; | 
|---|
| 869 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; | 
|---|
| 870 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; | 
|---|
| 871 | $layerXML.=' textoitem='.$TbMsg[4]; | 
|---|
| 872 | $layerXML.='></ITEM>'; | 
|---|
| 873 |  | 
|---|
| 874 | $layerXML.='<ITEM'; | 
|---|
| 875 | $layerXML.=' alpulsar="purgar_ordenadores()"'; | 
|---|
| 876 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; | 
|---|
| 877 | $layerXML.=' textoitem='.$TbMsg[2]; | 
|---|
| 878 | $layerXML.='></ITEM>'; | 
|---|
| 879 |  | 
|---|
| 880 | $layerXML.='<SEPARADOR>'; | 
|---|
| 881 | $layerXML.='</SEPARADOR>'; | 
|---|
| 882 |  | 
|---|
| 883 | $layerXML.='<ITEM'; | 
|---|
| 884 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_ORDENADORES.')"'; | 
|---|
| 885 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; | 
|---|
| 886 | $layerXML.=' textoitem='.$TbMsg[33]; | 
|---|
| 887 | $layerXML.='></ITEM>'; | 
|---|
| 888 |  | 
|---|
| 889 | $layerXML.='<ITEM'; | 
|---|
| 890 | $layerXML.=' alpulsar="eco_remoto()"'; | 
|---|
| 891 | $layerXML.=' imgitem="../images/iconos/ecocon.gif"'; | 
|---|
| 892 | $layerXML.=' textoitem='.$TbMsg[39]; | 
|---|
| 893 | $layerXML.='></ITEM>'; | 
|---|
| 894 |  | 
|---|
| 895 | $layerXML.='<SEPARADOR>'; | 
|---|
| 896 | $layerXML.='</SEPARADOR>'; | 
|---|
| 897 |  | 
|---|
| 898 | $layerXML.='<ITEM'; | 
|---|
| 899 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_ORDENADORES.'"'; | 
|---|
| 900 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 901 | $layerXML.=' textoitem='.$TbMsg[5]; | 
|---|
| 902 | $layerXML.='></ITEM>'; | 
|---|
| 903 |  | 
|---|
| 904 | $layerXML.='<ITEM'; | 
|---|
| 905 | $layerXML.=' subflotante="flo_sincronizacion_'.$LITAMBITO_ORDENADORES.'"'; | 
|---|
| 906 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 907 | $layerXML.=' textoitem='.$TbMsg[49]; | 
|---|
| 908 | $layerXML.='></ITEM>'; | 
|---|
| 909 |  | 
|---|
| 910 | $layerXML.='<ITEM'; | 
|---|
| 911 | $layerXML.=' subflotante="flo_asistentes_'.$LITAMBITO_ORDENADORES.'"'; | 
|---|
| 912 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| 913 | $layerXML.=' textoitem='.$TbMsg[38]; | 
|---|
| 914 | $layerXML.='></ITEM>'; | 
|---|
| 915 |  | 
|---|
| 916 | $layerXML.='<SEPARADOR>'; | 
|---|
| 917 | $layerXML.='</SEPARADOR>'; | 
|---|
| 918 |  | 
|---|
| 919 | $layerXML.='<ITEM'; | 
|---|
| 920 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_ORDENADORES.')"'; | 
|---|
| 921 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; | 
|---|
| 922 | $layerXML.=' textoitem='.$TbMsg[28]; | 
|---|
| 923 | $layerXML.='></ITEM>'; | 
|---|
| 924 |  | 
|---|
| 925 | $layerXML.='<SEPARADOR>'; | 
|---|
| 926 | $layerXML.='</SEPARADOR>'; | 
|---|
| 927 |  | 
|---|
| 928 | $layerXML.='<ITEM'; | 
|---|
| 929 | $layerXML.=' alpulsar="configuraciones('.$AMBITO_ORDENADORES.')"'; | 
|---|
| 930 | $layerXML.=' textoitem='.$TbMsg[10]; | 
|---|
| 931 | $layerXML.=' imgitem="../images/iconos/configuraciones.gif"'; | 
|---|
| 932 | $layerXML.='></ITEM>'; | 
|---|
| 933 |  | 
|---|
| 934 | $wLeft=170; | 
|---|
| 935 | $wTop=80; | 
|---|
| 936 | $wWidth=480; | 
|---|
| 937 | $wHeight=400; | 
|---|
| 938 | $wpages="../propiedades/propiedades_ordenadores.php"; | 
|---|
| 939 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; | 
|---|
| 940 | $layerXML.='<ITEM'; | 
|---|
| 941 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; | 
|---|
| 942 |  | 
|---|
| 943 | $layerXML.=' textoitem='.$TbMsg[13]; | 
|---|
| 944 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; | 
|---|
| 945 | $layerXML.='></ITEM>'; | 
|---|
| 946 |  | 
|---|
| 947 | $layerXML.='<ITEM'; | 
|---|
| 948 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; | 
|---|
| 949 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; | 
|---|
| 950 | $layerXML.=' textoitem='.$TbMsg[18]; | 
|---|
| 951 | $layerXML.='></ITEM>'; | 
|---|
| 952 |  | 
|---|
| 953 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 954 | return($layerXML); | 
|---|
| 955 | } | 
|---|
| 956 | //________________________________________________________________________________________________________ | 
|---|
| 957 | function ContextualXMLComandos($litambito,$ambito){ | 
|---|
| 958 | global $cmd; | 
|---|
| 959 | global $TbMsg; | 
|---|
| 960 | $maxlongdescri=0; | 
|---|
| 961 | $rs=new Recordset; | 
|---|
| 962 | $cmd->texto="SELECT  idcomando,descripcion,pagina,gestor,funcion | 
|---|
| 963 | FROM comandos | 
|---|
| 964 | WHERE activo=1 AND submenu='' AND aplicambito & ".$ambito.">0 | 
|---|
| 965 | ORDER BY descripcion"; | 
|---|
| 966 | $rs->Comando=&$cmd; | 
|---|
| 967 | if ($rs->Abrir()){ | 
|---|
| 968 | $layerXML=""; | 
|---|
| 969 | $rs->Primero(); | 
|---|
| 970 | while (!$rs->EOF){ | 
|---|
| 971 | $descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]]; | 
|---|
| 972 | if (empty ($descrip)) { | 
|---|
| 973 | $descrip=$rs->campos["descripcion"]; | 
|---|
| 974 | } | 
|---|
| 975 | $layerXML.='<ITEM'; | 
|---|
| 976 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; | 
|---|
| 977 | $layerXML.=' textoitem="'.$descrip.'"'; | 
|---|
| 978 | $layerXML.='></ITEM>'; | 
|---|
| 979 | if ($maxlongdescri < strlen($descrip)) // Toma la Descripción de mayor longitud | 
|---|
| 980 | $maxlongdescri=strlen($descrip); | 
|---|
| 981 | $rs->Siguiente(); | 
|---|
| 982 | } | 
|---|
| 983 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 984 | $prelayerXML='<MENUCONTEXTUAL'; | 
|---|
| 985 | $prelayerXML.=' idctx="flo_comandos_'.$litambito.'"'; | 
|---|
| 986 | $prelayerXML.=' maxanchu='.$maxlongdescri*6; | 
|---|
| 987 | $prelayerXML.=' clase="menu_contextual"'; | 
|---|
| 988 | $prelayerXML.='>'; | 
|---|
| 989 | $finallayerXML=$prelayerXML.$layerXML; | 
|---|
| 990 | return($finallayerXML); | 
|---|
| 991 | } | 
|---|
| 992 | } | 
|---|
| 993 |  | 
|---|
| 994 | //________________________________________________________________________________________________________ | 
|---|
| 995 |  | 
|---|
| 996 | function ContextualXMLSincronizacion($litambito,$ambito){ | 
|---|
| 997 | global $cmd; | 
|---|
| 998 | global $TbMsg; | 
|---|
| 999 | $maxlongdescri=0; | 
|---|
| 1000 | $rs=new Recordset; | 
|---|
| 1001 | $cmd->texto="SELECT  idcomando,descripcion,pagina,gestor,funcion | 
|---|
| 1002 | FROM comandos | 
|---|
| 1003 | WHERE activo=1 AND submenu='Sincronizacion' AND aplicambito & ".$ambito.">0 | 
|---|
| 1004 | ORDER BY descripcion"; | 
|---|
| 1005 | $rs->Comando=&$cmd; | 
|---|
| 1006 | if ($rs->Abrir()){ | 
|---|
| 1007 | $layerXML=""; | 
|---|
| 1008 | $rs->Primero(); | 
|---|
| 1009 | while (!$rs->EOF){ | 
|---|
| 1010 | $descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]]; | 
|---|
| 1011 | if (empty ($descrip)) { | 
|---|
| 1012 | $descrip=$rs->campos["descripcion"]; | 
|---|
| 1013 | } | 
|---|
| 1014 | $layerXML.='<ITEM'; | 
|---|
| 1015 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; | 
|---|
| 1016 | $layerXML.=' textoitem="'.$descrip.'"'; | 
|---|
| 1017 | $layerXML.='></ITEM>'; | 
|---|
| 1018 | if ($maxlongdescri < strlen($descrip)) // Toma la Descripción de mayor longitud | 
|---|
| 1019 | $maxlongdescri=strlen($descrip); | 
|---|
| 1020 | $rs->Siguiente(); | 
|---|
| 1021 | } | 
|---|
| 1022 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 1023 | $prelayerXML='<MENUCONTEXTUAL'; | 
|---|
| 1024 | $prelayerXML.=' idctx="flo_sincronizacion_'.$litambito.'"'; | 
|---|
| 1025 | $prelayerXML.=' maxanchu='.$maxlongdescri*6; | 
|---|
| 1026 | $prelayerXML.=' clase="menu_contextual"'; | 
|---|
| 1027 | $prelayerXML.='>'; | 
|---|
| 1028 | $finallayerXML=$prelayerXML.$layerXML; | 
|---|
| 1029 | return($finallayerXML); | 
|---|
| 1030 | } | 
|---|
| 1031 | } | 
|---|
| 1032 | //________________________________________________________________________________________________________ | 
|---|
| 1033 | function ContextualXMLAsistentes($litambito,$ambito){ | 
|---|
| 1034 | global $cmd; | 
|---|
| 1035 | global $TbMsg; | 
|---|
| 1036 | $maxlongdescri=0; | 
|---|
| 1037 | $rs=new Recordset; | 
|---|
| 1038 | $cmd->texto="SELECT  idcomando,descripcion,pagina,gestor,funcion | 
|---|
| 1039 | FROM asistentes | 
|---|
| 1040 | WHERE activo=1 AND aplicambito & ".$ambito.">0 | 
|---|
| 1041 | ORDER BY descripcion"; | 
|---|
| 1042 | $rs->Comando=&$cmd; | 
|---|
| 1043 | if ($rs->Abrir()){ | 
|---|
| 1044 | $layerXML=""; | 
|---|
| 1045 | $rs->Primero(); | 
|---|
| 1046 | while (!$rs->EOF){ | 
|---|
| 1047 | $descrip=$TbMsg["WIZARD_".$rs->campos["descripcion"]]; | 
|---|
| 1048 | if (empty ($descrip)) { | 
|---|
| 1049 | $descrip=$rs->campos["descripcion"]; | 
|---|
| 1050 | } | 
|---|
| 1051 | $layerXML.='<ITEM'; | 
|---|
| 1052 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; | 
|---|
| 1053 | $layerXML.=' textoitem="'.$descrip.'"'; | 
|---|
| 1054 | $layerXML.='></ITEM>'; | 
|---|
| 1055 | if($maxlongdescri<strlen($descrip)) // Toma la Descripción de mayor longitud | 
|---|
| 1056 | $maxlongdescri=strlen($descrip); | 
|---|
| 1057 | $rs->Siguiente(); | 
|---|
| 1058 | } | 
|---|
| 1059 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 1060 | $prelayerXML='<MENUCONTEXTUAL'; | 
|---|
| 1061 | $prelayerXML.=' idctx="flo_asistentes_'.$litambito.'"'; | 
|---|
| 1062 | $prelayerXML.=' maxanchu='.$maxlongdescri*6; | 
|---|
| 1063 | $prelayerXML.=' clase="menu_contextual"'; | 
|---|
| 1064 | $prelayerXML.='>'; | 
|---|
| 1065 | $finallayerXML=$prelayerXML.$layerXML; | 
|---|
| 1066 | return($finallayerXML); | 
|---|
| 1067 | } | 
|---|
| 1068 | } | 
|---|
| 1069 |  | 
|---|
| 1070 |  | 
|---|
| 1071 | function ContextualXMLNetBoot(){ | 
|---|
| 1072 | #global $TbMsg; | 
|---|
| 1073 | #global $EJECUCION_COMANDO; | 
|---|
| 1074 | #global $EJECUCION_TAREA; | 
|---|
| 1075 | #global $EJECUCION_TRABAJO; | 
|---|
| 1076 |  | 
|---|
| 1077 | $layerXML='<MENUCONTEXTUAL'; | 
|---|
| 1078 | $layerXML.=' idctx="flo_netboot"'; | 
|---|
| 1079 | $layerXML.=' maxanchu=190'; | 
|---|
| 1080 | $layerXML.=' swimg=1'; | 
|---|
| 1081 | $layerXML.=' clase="menu_contextual"'; | 
|---|
| 1082 | $layerXML.='>'; | 
|---|
| 1083 |  | 
|---|
| 1084 |  | 
|---|
| 1085 | //adv compatiblidad Gestor de arranque remoto | 
|---|
| 1086 | $layerXML.='<ITEM'; | 
|---|
| 1087 | $layerXML.=' alpulsar="ver_boot()"'; | 
|---|
| 1088 | $layerXML.=' textoitem="NetBoot AVANZADO"'; | 
|---|
| 1089 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
| 1090 | $layerXML.='></ITEM>'; | 
|---|
| 1091 | //adv compatiblidad Gestor de arranque remoto | 
|---|
| 1092 | //adv compatiblidad Configurador de Startpages | 
|---|
| 1093 | //      $layerXML.='<ITEM'; | 
|---|
| 1094 | //      $layerXML.=' alpulsar="ver_startpages()"'; | 
|---|
| 1095 | //      $layerXML.=' textoitem="Gestor Startpages"'; | 
|---|
| 1096 | //      $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
| 1097 | //      $layerXML.='></ITEM>'; | 
|---|
| 1098 | //adv compatiblidad Configurador de Startpages | 
|---|
| 1099 |  | 
|---|
| 1100 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
| 1101 | return($layerXML); | 
|---|
| 1102 | } | 
|---|
| 1103 |  | 
|---|
| 1104 | ?> | 
|---|