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