| [eeeb98a] | 1 | <?php | 
|---|
| [3ec149c] | 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"); | 
|---|
| [08720c1] | 19 | include_once("../idiomas/php/".$idioma."/comandos/mensajes_".$idioma.".php"); | 
|---|
| [3ec149c] | 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 | 
|---|
| [062b55a] | 29 | $arbol=new ArbolVistaXML($arbolXML,0,$baseurlimg,$clasedefault,1,0,5); // Crea el árbol (formato XML) | 
|---|
| [3ec149c] | 30 | //________________________________________________________________________________________________________ | 
|---|
|  | 31 | ?> | 
|---|
|  | 32 | <HTML> | 
|---|
|  | 33 | <HEAD> | 
|---|
| [bf59ef1] | 34 | <TITLE>Administración web de aulas</TITLE> | 
|---|
| [3ec149c] | 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> | 
|---|
| [bf59ef1] | 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>'?> | 
|---|
| [3ec149c] | 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> | 
|---|
| [292fed9] | 57 | <?php | 
|---|
| [3ec149c] | 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); | 
|---|
| [58d08a2] | 87 |  | 
|---|
| [4329e85] | 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 |  | 
|---|
| [eeeb98a] | 96 |  | 
|---|
| [58d08a2] | 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 |  | 
|---|
| [062b55a] | 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 |  | 
|---|
| [3ec149c] | 115 | //___________________________________________________________________________________________________ | 
|---|
|  | 116 | ?> | 
|---|
|  | 117 | </BODY> | 
|---|
|  | 118 | </HTML> | 
|---|
| [292fed9] | 119 | <?php | 
|---|
| [3ec149c] | 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."'" .')"'; | 
|---|
| [591d551] | 174 | $cadenaXML.=' clicksupnodo="ver_aulas();"'; | 
|---|
| [3ec149c] | 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); | 
|---|
| [34374f0] | 180 | // La siguiente línea está prevista para añadir operatores de aulas. | 
|---|
|  | 181 | //$cadenaXML.=SubarbolXML_aulas_operadores($cmd,$rs->campos["idaula"],$cc); | 
|---|
| [3ec149c] | 182 | $cadenaXML.='</AULA>'; | 
|---|
|  | 183 | $rs->Siguiente(); | 
|---|
|  | 184 | } | 
|---|
|  | 185 | $rs->Cerrar(); | 
|---|
|  | 186 | return($cadenaXML); | 
|---|
|  | 187 | } | 
|---|
|  | 188 | //________________________________________________________________________________________________________ | 
|---|
| [4329e85] | 189 | function SubarbolXML_aulas_operadores($cmd,$idaula,$cont){ | 
|---|
| [3ec149c] | 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"'; | 
|---|
| [591d551] | 247 | $wpages="../propiedades/propiedades_ordenadores.php"; | 
|---|
|  | 248 | $wParam="0,0,0,0,'". $wpages."'"; | 
|---|
| [3ec149c] | 249 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_ORDENADORES."'" .')"'; | 
|---|
| [91615f4] | 250 | $cadenaXML.=' clicksupnodo="modificar('.$wParam.')"'; | 
|---|
| [3ec149c] | 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 |  | 
|---|
| [4329e85] | 346 |  | 
|---|
| [3ec149c] | 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 |  | 
|---|
| [58d08a2] | 371 |  | 
|---|
|  | 372 |  | 
|---|
| [3ec149c] | 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 |  | 
|---|
| [58d08a2] | 385 |  | 
|---|
| [3ec149c] | 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 |  | 
|---|
| [a406554] | 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>'; | 
|---|
| [58d08a2] | 486 |  | 
|---|
| [062b55a] | 487 | //adv compatiblidad Configurador de Startpages | 
|---|
| [a406554] | 488 | $layerXML.='<ITEM'; | 
|---|
|  | 489 | $layerXML.=' alpulsar="ver_ubicarordenadores()"'; | 
|---|
|  | 490 | $layerXML.=' textoitem='.$TbMsg[41]; | 
|---|
|  | 491 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; | 
|---|
|  | 492 | $layerXML.='></ITEM>'; | 
|---|
| [062b55a] | 493 | //adv compatiblidad Configurador de Startpages | 
|---|
|  | 494 |  | 
|---|
| [3ec149c] | 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'; | 
|---|
| [4329e85] | 578 | $layerXML.=' subflotante="flo_sincronizacion_'.$LITAMBITO_AULAS.'"'; | 
|---|
|  | 579 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
|  | 580 | $layerXML.=' textoitem='.$TbMsg[49]; | 
|---|
|  | 581 | $layerXML.='></ITEM>'; | 
|---|
| [234a5ef] | 582 |  | 
|---|
| [4329e85] | 583 | $layerXML.='<ITEM'; | 
|---|
| [062b55a] | 584 | $layerXML.=' subflotante="flo_asistentes_'.$LITAMBITO_AULAS.'"'; | 
|---|
|  | 585 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| [59e0a94] | 586 | $layerXML.=' textoitem='.$TbMsg[38]; | 
|---|
| [062b55a] | 587 | $layerXML.='></ITEM>'; | 
|---|
|  | 588 |  | 
|---|
| [4329e85] | 589 | $layerXML.='<SEPARADOR>'; | 
|---|
|  | 590 | $layerXML.='</SEPARADOR>'; | 
|---|
|  | 591 |  | 
|---|
| [062b55a] | 592 | $layerXML.='<ITEM'; | 
|---|
| [3ec149c] | 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>'; | 
|---|
| [292fed9] | 624 | /* | 
|---|
| [3ec149c] | 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>'; | 
|---|
| [292fed9] | 640 | */ | 
|---|
| [3ec149c] | 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 |  | 
|---|
| [d47323ec] | 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 |  | 
|---|
| [58d08a2] | 704 |  | 
|---|
| [3ec149c] | 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>'; | 
|---|
| [4329e85] | 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 |  | 
|---|
| [3ec149c] | 777 | $layerXML.='<ITEM'; | 
|---|
| [062b55a] | 778 | $layerXML.=' subflotante="flo_asistentes_'.$LITAMBITO_GRUPOSORDENADORES.'"'; | 
|---|
|  | 779 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| [59e0a94] | 780 | $layerXML.=' textoitem='.$TbMsg[38]; | 
|---|
| [062b55a] | 781 | $layerXML.='></ITEM>'; | 
|---|
| [4329e85] | 782 |  | 
|---|
|  | 783 | $layerXML.='<SEPARADOR>'; | 
|---|
|  | 784 | $layerXML.='</SEPARADOR>'; | 
|---|
|  | 785 |  | 
|---|
| [062b55a] | 786 | $layerXML.='<ITEM'; | 
|---|
| [3ec149c] | 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>'; | 
|---|
| [58d08a2] | 846 |  | 
|---|
|  | 847 | $layerXML.='<ITEM'; | 
|---|
|  | 848 | $layerXML.=' alpulsar="ver_log('.$AMBITO_ORDENADORES.')"'; | 
|---|
|  | 849 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; | 
|---|
| [77b4ec4] | 850 | $layerXML.=' textoitem='.$TbMsg[47]; | 
|---|
| [58d08a2] | 851 | $layerXML.='></ITEM>'; | 
|---|
| [f311787] | 852 |  | 
|---|
|  | 853 | $layerXML.='<ITEM'; | 
|---|
|  | 854 | $layerXML.=' alpulsar="ver_log_seguimiento('.$AMBITO_ORDENADORES.')"'; | 
|---|
|  | 855 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; | 
|---|
| [77b4ec4] | 856 | $layerXML.=' textoitem='.$TbMsg[48]; | 
|---|
| [f311787] | 857 | $layerXML.='></ITEM>'; | 
|---|
|  | 858 |  | 
|---|
| [3ec149c] | 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 |  | 
|---|
| [4329e85] | 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>'; | 
|---|
| [062b55a] | 909 |  | 
|---|
|  | 910 | $layerXML.='<ITEM'; | 
|---|
|  | 911 | $layerXML.=' subflotante="flo_asistentes_'.$LITAMBITO_ORDENADORES.'"'; | 
|---|
|  | 912 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; | 
|---|
| [59e0a94] | 913 | $layerXML.=' textoitem='.$TbMsg[38]; | 
|---|
| [062b55a] | 914 | $layerXML.='></ITEM>'; | 
|---|
|  | 915 |  | 
|---|
| [4329e85] | 916 | $layerXML.='<SEPARADOR>'; | 
|---|
|  | 917 | $layerXML.='</SEPARADOR>'; | 
|---|
| [062b55a] | 918 |  | 
|---|
| [3ec149c] | 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; | 
|---|
| [cb29596] | 959 | global $TbMsg; | 
|---|
| [3ec149c] | 960 | $maxlongdescri=0; | 
|---|
|  | 961 | $rs=new Recordset; | 
|---|
| [a406554] | 962 | $cmd->texto="SELECT  idcomando,descripcion,pagina,gestor,funcion | 
|---|
|  | 963 | FROM comandos | 
|---|
| [4329e85] | 964 | WHERE activo=1 AND submenu='' AND aplicambito & ".$ambito.">0 | 
|---|
| [a406554] | 965 | ORDER BY descripcion"; | 
|---|
| [3ec149c] | 966 | $rs->Comando=&$cmd; | 
|---|
|  | 967 | if ($rs->Abrir()){ | 
|---|
|  | 968 | $layerXML=""; | 
|---|
|  | 969 | $rs->Primero(); | 
|---|
|  | 970 | while (!$rs->EOF){ | 
|---|
| [cb29596] | 971 | $descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]]; | 
|---|
|  | 972 | if (empty ($descrip)) { | 
|---|
| [4329e85] | 973 | $descrip=$rs->campos["descripcion"]; | 
|---|
| [cb29596] | 974 | } | 
|---|
| [3ec149c] | 975 | $layerXML.='<ITEM'; | 
|---|
|  | 976 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; | 
|---|
| [cb29596] | 977 | $layerXML.=' textoitem="'.$descrip.'"'; | 
|---|
| [3ec149c] | 978 | $layerXML.='></ITEM>'; | 
|---|
| [cb29596] | 979 | if ($maxlongdescri < strlen($descrip)) // Toma la Descripción de mayor longitud | 
|---|
|  | 980 | $maxlongdescri=strlen($descrip); | 
|---|
| [3ec149c] | 981 | $rs->Siguiente(); | 
|---|
|  | 982 | } | 
|---|
|  | 983 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
|  | 984 | $prelayerXML='<MENUCONTEXTUAL'; | 
|---|
|  | 985 | $prelayerXML.=' idctx="flo_comandos_'.$litambito.'"'; | 
|---|
| [4329e85] | 986 | $prelayerXML.=' maxanchu='.$maxlongdescri*6; | 
|---|
|  | 987 | $prelayerXML.=' clase="menu_contextual"'; | 
|---|
|  | 988 | $prelayerXML.='>'; | 
|---|
|  | 989 | $finallayerXML=$prelayerXML.$layerXML; | 
|---|
|  | 990 | return($finallayerXML); | 
|---|
|  | 991 | } | 
|---|
|  | 992 | } | 
|---|
| [eeeb98a] | 993 |  | 
|---|
| [4329e85] | 994 | //________________________________________________________________________________________________________ | 
|---|
| [eeeb98a] | 995 |  | 
|---|
| [4329e85] | 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 | 
|---|
| [d7a03be] | 1003 | WHERE activo=1 AND submenu='Sincronizacion' AND aplicambito & ".$ambito.">0 | 
|---|
| [4329e85] | 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; | 
|---|
| [3ec149c] | 1026 | $prelayerXML.=' clase="menu_contextual"'; | 
|---|
|  | 1027 | $prelayerXML.='>'; | 
|---|
|  | 1028 | $finallayerXML=$prelayerXML.$layerXML; | 
|---|
|  | 1029 | return($finallayerXML); | 
|---|
|  | 1030 | } | 
|---|
|  | 1031 | } | 
|---|
| [eeeb98a] | 1032 | //________________________________________________________________________________________________________ | 
|---|
| [062b55a] | 1033 | function ContextualXMLAsistentes($litambito,$ambito){ | 
|---|
|  | 1034 | global $cmd; | 
|---|
| [cb29596] | 1035 | global $TbMsg; | 
|---|
| [062b55a] | 1036 | $maxlongdescri=0; | 
|---|
|  | 1037 | $rs=new Recordset; | 
|---|
| [a406554] | 1038 | $cmd->texto="SELECT  idcomando,descripcion,pagina,gestor,funcion | 
|---|
|  | 1039 | FROM asistentes | 
|---|
|  | 1040 | WHERE activo=1 AND aplicambito & ".$ambito.">0 | 
|---|
|  | 1041 | ORDER BY descripcion"; | 
|---|
| [062b55a] | 1042 | $rs->Comando=&$cmd; | 
|---|
|  | 1043 | if ($rs->Abrir()){ | 
|---|
|  | 1044 | $layerXML=""; | 
|---|
|  | 1045 | $rs->Primero(); | 
|---|
|  | 1046 | while (!$rs->EOF){ | 
|---|
| [cb29596] | 1047 | $descrip=$TbMsg["WIZARD_".$rs->campos["descripcion"]]; | 
|---|
|  | 1048 | if (empty ($descrip)) { | 
|---|
|  | 1049 | $descrip=$rs->campos["descripcion"]; | 
|---|
|  | 1050 | } | 
|---|
| [062b55a] | 1051 | $layerXML.='<ITEM'; | 
|---|
|  | 1052 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; | 
|---|
| [cb29596] | 1053 | $layerXML.=' textoitem="'.$descrip.'"'; | 
|---|
| [062b55a] | 1054 | $layerXML.='></ITEM>'; | 
|---|
| [cb29596] | 1055 | if($maxlongdescri<strlen($descrip)) // Toma la Descripción de mayor longitud | 
|---|
|  | 1056 | $maxlongdescri=strlen($descrip); | 
|---|
| [062b55a] | 1057 | $rs->Siguiente(); | 
|---|
|  | 1058 | } | 
|---|
|  | 1059 | $layerXML.='</MENUCONTEXTUAL>'; | 
|---|
|  | 1060 | $prelayerXML='<MENUCONTEXTUAL'; | 
|---|
|  | 1061 | $prelayerXML.=' idctx="flo_asistentes_'.$litambito.'"'; | 
|---|
| [4329e85] | 1062 | $prelayerXML.=' maxanchu='.$maxlongdescri*6; | 
|---|
| [062b55a] | 1063 | $prelayerXML.=' clase="menu_contextual"'; | 
|---|
|  | 1064 | $prelayerXML.='>'; | 
|---|
|  | 1065 | $finallayerXML=$prelayerXML.$layerXML; | 
|---|
|  | 1066 | return($finallayerXML); | 
|---|
|  | 1067 | } | 
|---|
|  | 1068 | } | 
|---|
|  | 1069 |  | 
|---|
|  | 1070 |  | 
|---|
| [58d08a2] | 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 |  | 
|---|
| [3ec149c] | 1104 | ?> | 
|---|