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