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 |
---|
28 | $arbol=new ArbolVistaXML($arbolXML,0,$baseurlimg,$clasedefault,2,0,5); // Crea el árbol (formato XML) |
---|
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); |
---|
86 | //___________________________________________________________________________________________________ |
---|
87 | ?> |
---|
88 | </BODY> |
---|
89 | </HTML> |
---|
90 | <? |
---|
91 | // ************************************************************************************************************************************************* |
---|
92 | // Devuelve una cadena con formato XML con toda la informaci� de aulas y ordenadores registrados en un Centro concreto |
---|
93 | // Parametros: |
---|
94 | // - cmd:Una comando ya operativo ( con conexiónabierta) |
---|
95 | // - idcentro: El identificador del centro |
---|
96 | // - nombrecentro: El nombre del centro |
---|
97 | //________________________________________________________________________________________________________ |
---|
98 | function CreaArbol($cmd,$idcentro,$nombrecentro){ |
---|
99 | global $TbMsg; |
---|
100 | global $LITAMBITO_CENTROS; |
---|
101 | $cadenaXML='<CENTRO'; |
---|
102 | // Atributos |
---|
103 | $cadenaXML.=' imagenodo="../images/iconos/centros.gif"'; |
---|
104 | $cadenaXML.=' nodoid='.$LITAMBITO_CENTROS."-".$idcentro; |
---|
105 | $cadenaXML.=' infonodo="'.$nombrecentro.'"'; |
---|
106 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_CENTROS."'" .')"'; |
---|
107 | $cadenaXML.='>'; |
---|
108 | $cadenaXML.=SubarbolXML_grupos_aulas($cmd,$idcentro,0); |
---|
109 | $cadenaXML.='</CENTRO>'; |
---|
110 | return($cadenaXML); |
---|
111 | } |
---|
112 | //________________________________________________________________________________________________________ |
---|
113 | function SubarbolXML_grupos_aulas($cmd,$idcentro,$grupoid){ |
---|
114 | global $TbMsg; |
---|
115 | global $LITAMBITO_GRUPOSAULAS; |
---|
116 | global $LITAMBITO_AULAS; |
---|
117 | global $AMBITO_GRUPOSAULAS; |
---|
118 | $cadenaXML=""; |
---|
119 | $rs=new Recordset; |
---|
120 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSAULAS." ORDER BY nombregrupo"; |
---|
121 | $rs->Comando=&$cmd; |
---|
122 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
123 | $rs->Primero(); |
---|
124 | while (!$rs->EOF){ |
---|
125 | $cadenaXML.='<GRUPOSAULAS'; |
---|
126 | // Atributos |
---|
127 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSAULAS."'" .');"'; |
---|
128 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
129 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
---|
130 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSAULAS.'-'.$rs->campos["idgrupo"]; |
---|
131 | $cadenaXML.='>'; |
---|
132 | $cadenaXML.=SubarbolXML_grupos_aulas($cmd,$idcentro,$rs->campos["idgrupo"]); |
---|
133 | $cadenaXML.='</GRUPOSAULAS>'; |
---|
134 | $rs->Siguiente(); |
---|
135 | } |
---|
136 | $rs->Cerrar(); |
---|
137 | $cmd->texto="SELECT idaula,nombreaula FROM aulas WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." order by nombreaula"; |
---|
138 | $rs->Comando=&$cmd; |
---|
139 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
140 | $rs->Primero(); |
---|
141 | while (!$rs->EOF){ |
---|
142 | $cadenaXML.='<AULA '; |
---|
143 | // Atributos |
---|
144 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_AULAS."'" .')"'; |
---|
145 | $cadenaXML.=' imagenodo="../images/iconos/aula.gif"'; |
---|
146 | $cadenaXML.=' infonodo="'.$rs->campos["nombreaula"].'"'; |
---|
147 | $cadenaXML.=' nodoid='.$LITAMBITO_AULAS.'-'.$rs->campos["idaula"]; |
---|
148 | $cadenaXML.='>'; |
---|
149 | $cadenaXML.=SubarbolXML_aulas_ordenadores($cmd,$rs->campos["idaula"],0); |
---|
150 | $cadenaXML.=SubarbolXML_aulas_operadores($cmd,$rs->campos["idaula"],&$cc); |
---|
151 | $cadenaXML.='</AULA>'; |
---|
152 | $rs->Siguiente(); |
---|
153 | } |
---|
154 | $rs->Cerrar(); |
---|
155 | return($cadenaXML); |
---|
156 | } |
---|
157 | //________________________________________________________________________________________________________ |
---|
158 | function SubarbolXML_aulas_operadores($cmd,$idaula,$cont){ |
---|
159 | global $TbMsg; |
---|
160 | global $LITAMBITO_USUARIOS; |
---|
161 | global $cadenaXML; |
---|
162 | global $OPERADOR; |
---|
163 | $cadenaXML=""; |
---|
164 | $rs=new Recordset; |
---|
165 | $cmd->texto="SELECT idusuario,nombre FROM usuarios WHERE idtipousuario=".$OPERADOR." AND idambito=".$idaula." ORDER by nombre"; |
---|
166 | $rs->Comando=&$cmd; |
---|
167 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
168 | $rs->Primero(); |
---|
169 | if ($rs->EOF) return(""); |
---|
170 | while (!$rs->EOF){ |
---|
171 | $cont++; |
---|
172 | $cadenaXML.='<USUARIO'; |
---|
173 | // Atributos |
---|
174 | $cadenaXML.=' imagenodo="../images/iconos/operadores.gif"'; |
---|
175 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_USUARIOS."'" .')"'; |
---|
176 | $cadenaXML.=' infonodo="'.$rs->campos["nombre"].'"'; |
---|
177 | $cadenaXML.=' nodoid='.$LITAMBITO_USUARIOS.'-'.$rs->campos["idusuario"]; |
---|
178 | $cadenaXML.='></USUARIO>'; |
---|
179 | $rs->Siguiente(); |
---|
180 | } |
---|
181 | $rs->Cerrar(); |
---|
182 | return($cadenaXML); |
---|
183 | } |
---|
184 | //________________________________________________________________________________________________________ |
---|
185 | function SubarbolXML_aulas_ordenadores($cmd,$idaula,$grupoid){ |
---|
186 | global $TbMsg; |
---|
187 | global $LITAMBITO_GRUPOSORDENADORES; |
---|
188 | global $LITAMBITO_ORDENADORES; |
---|
189 | $cadenaXML=""; |
---|
190 | $rs=new Recordset; |
---|
191 | $cmd->texto="SELECT idgrupo,nombregrupoordenador,grupoid FROM gruposordenadores WHERE grupoid=".$grupoid." AND idaula=".$idaula." ORDER BY nombregrupoordenador"; |
---|
192 | $rs->Comando=&$cmd; |
---|
193 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
194 | $rs->Primero(); |
---|
195 | while (!$rs->EOF){ |
---|
196 | $cadenaXML.='<GRUPOSORDENADORES'; |
---|
197 | // Atributos |
---|
198 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_GRUPOSORDENADORES."'" .')"'; |
---|
199 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
200 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupoordenador"].'"'; |
---|
201 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSORDENADORES.'-'.$rs->campos["idgrupo"]; |
---|
202 | $cadenaXML.='>'; |
---|
203 | $cadenaXML.=SubarbolXML_aulas_ordenadores($cmd,$idaula,$rs->campos["idgrupo"]); |
---|
204 | $cadenaXML.='</GRUPOSORDENADORES>'; |
---|
205 | $rs->Siguiente(); |
---|
206 | } |
---|
207 | $rs->Cerrar(); |
---|
208 | $cmd->texto="SELECT idordenador,nombreordenador FROM ordenadores WHERE grupoid=".$grupoid." AND idaula=".$idaula." order by nombreordenador desc"; |
---|
209 | $rs->Comando=&$cmd; |
---|
210 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
211 | $rs->Primero(); |
---|
212 | while (!$rs->EOF){ |
---|
213 | $cadenaXML.='<ORDENADOR'; |
---|
214 | // Atributos |
---|
215 | $cadenaXML.=' imagenodo="../images/iconos/ordenador.gif"'; |
---|
216 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_ORDENADORES."'" .')"'; |
---|
217 | $cadenaXML.=' infonodo="'.$rs->campos["nombreordenador"].'"'; |
---|
218 | $cadenaXML.=' nodoid='.$LITAMBITO_ORDENADORES.'-'.$rs->campos["idordenador"]; |
---|
219 | $cadenaXML.='></ORDENADOR>'; |
---|
220 | $rs->Siguiente(); |
---|
221 | } |
---|
222 | $rs->Cerrar(); |
---|
223 | return($cadenaXML); |
---|
224 | } |
---|
225 | //________________________________________________________________________________________________________ |
---|
226 | // |
---|
227 | // Mens Contextuales |
---|
228 | //________________________________________________________________________________________________________ |
---|
229 | function ContextualXMLCentros(){ |
---|
230 | global $TbMsg; |
---|
231 | global $AMBITO_AULAS; |
---|
232 | global $AMBITO_GRUPOSAULAS; |
---|
233 | global $LITAMBITO_GRUPOSAULAS; |
---|
234 | global $AMBITO_CENTROS; |
---|
235 | global $LITAMBITO_CENTROS; |
---|
236 | global $RESERVA_CONFIRMADA; |
---|
237 | |
---|
238 | $layerXML='<MENUCONTEXTUAL'; |
---|
239 | $layerXML.=' idctx="flo_'.$LITAMBITO_CENTROS.'"'; |
---|
240 | $layerXML.=' maxanchu=160'; |
---|
241 | $layerXML.=' swimg=1'; |
---|
242 | $layerXML.=' clase="menu_contextual"'; |
---|
243 | $layerXML.='>'; |
---|
244 | |
---|
245 | $layerXML.='<ITEM'; |
---|
246 | $layerXML.=' alpulsar="ver_aulas()"'; |
---|
247 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
248 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
249 | $layerXML.='></ITEM>'; |
---|
250 | |
---|
251 | $layerXML.='<ITEM'; |
---|
252 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
253 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
254 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
255 | $layerXML.='></ITEM>'; |
---|
256 | |
---|
257 | $layerXML.='<SEPARADOR>'; |
---|
258 | $layerXML.='</SEPARADOR>'; |
---|
259 | |
---|
260 | $layerXML.='<ITEM'; |
---|
261 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSAULAS.',' ."'".$LITAMBITO_GRUPOSAULAS."',1". ')"'; |
---|
262 | |
---|
263 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
264 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
265 | $layerXML.='></ITEM>'; |
---|
266 | |
---|
267 | $wLeft=170; |
---|
268 | $wTop=80; |
---|
269 | $wWidth=480; |
---|
270 | $wHeight=480; |
---|
271 | $wpages="../propiedades/propiedades_aulas.php"; |
---|
272 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
273 | $layerXML.='<ITEM'; |
---|
274 | $layerXML.=' alpulsar="insertar('.$wParam.',1)"'; |
---|
275 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; |
---|
276 | $layerXML.=' textoitem='.$TbMsg[3]; |
---|
277 | $layerXML.='></ITEM>'; |
---|
278 | |
---|
279 | $layerXML.='<SEPARADOR>'; |
---|
280 | $layerXML.='</SEPARADOR>'; |
---|
281 | |
---|
282 | $layerXML.='<ITEM'; |
---|
283 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
284 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
285 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
286 | $layerXML.='></ITEM>'; |
---|
287 | |
---|
288 | $layerXML.='<ITEM'; |
---|
289 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
290 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
291 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
292 | $layerXML.='></ITEM>'; |
---|
293 | |
---|
294 | $layerXML.='<SEPARADOR>'; |
---|
295 | $layerXML.='</SEPARADOR>'; |
---|
296 | |
---|
297 | $layerXML.='<ITEM'; |
---|
298 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_CENTROS.')"'; |
---|
299 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
300 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
301 | $layerXML.='></ITEM>'; |
---|
302 | |
---|
303 | $layerXML.='<SEPARADOR>'; |
---|
304 | $layerXML.='</SEPARADOR>'; |
---|
305 | |
---|
306 | $layerXML.='<ITEM'; |
---|
307 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_CENTROS.'"'; |
---|
308 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
309 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
310 | $layerXML.='></ITEM>'; |
---|
311 | |
---|
312 | $layerXML.='<ITEM'; |
---|
313 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_CENTROS.')"'; |
---|
314 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
315 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
316 | $layerXML.='></ITEM>'; |
---|
317 | |
---|
318 | $layerXML.='<SEPARADOR>'; |
---|
319 | $layerXML.='</SEPARADOR>'; |
---|
320 | |
---|
321 | $layerXML.='<ITEM'; |
---|
322 | $layerXML.=' alpulsar="cola_reservas('.$RESERVA_CONFIRMADA.')"'; |
---|
323 | $layerXML.=' imgitem="../images/iconos/reservas.gif"'; |
---|
324 | $layerXML.=' textoitem='.$TbMsg[29]; |
---|
325 | $layerXML.='></ITEM>'; |
---|
326 | |
---|
327 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
328 | return($layerXML); |
---|
329 | } |
---|
330 | //________________________________________________________________________________________________________ |
---|
331 | function ContextualXMLGruposAulas(){ |
---|
332 | global $TbMsg; |
---|
333 | global $AMBITO_AULAS; |
---|
334 | global $AMBITO_GRUPOSAULAS; |
---|
335 | global $LITAMBITO_GRUPOSAULAS; |
---|
336 | global $RESERVA_CONFIRMADA; |
---|
337 | |
---|
338 | $layerXML='<MENUCONTEXTUAL'; |
---|
339 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSAULAS.'"'; |
---|
340 | $layerXML.=' maxanchu=155'; |
---|
341 | $layerXML.=' swimg=1'; |
---|
342 | $layerXML.=' clase="menu_contextual"'; |
---|
343 | $layerXML.='>'; |
---|
344 | |
---|
345 | $layerXML.='<ITEM'; |
---|
346 | $layerXML.=' alpulsar="ver_aulas()"'; |
---|
347 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
348 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
349 | $layerXML.='></ITEM>'; |
---|
350 | |
---|
351 | $layerXML.='<ITEM'; |
---|
352 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
353 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
354 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
355 | $layerXML.='></ITEM>'; |
---|
356 | |
---|
357 | $layerXML.='<SEPARADOR>'; |
---|
358 | $layerXML.='</SEPARADOR>'; |
---|
359 | |
---|
360 | $layerXML.='<ITEM'; |
---|
361 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSAULAS.',' ."'".$LITAMBITO_GRUPOSAULAS."'". ')"'; |
---|
362 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
363 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
364 | $layerXML.='></ITEM>'; |
---|
365 | |
---|
366 | $wLeft=170; |
---|
367 | $wTop=80; |
---|
368 | $wWidth=480; |
---|
369 | $wHeight=480; |
---|
370 | $wpages="../propiedades/propiedades_aulas.php"; |
---|
371 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
372 | $layerXML.='<ITEM'; |
---|
373 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
374 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; |
---|
375 | $layerXML.=' textoitem='.$TbMsg[3]; |
---|
376 | $layerXML.='></ITEM>'; |
---|
377 | |
---|
378 | $layerXML.='<SEPARADOR>'; |
---|
379 | $layerXML.='</SEPARADOR>'; |
---|
380 | |
---|
381 | $layerXML.='<ITEM'; |
---|
382 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
383 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
384 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
385 | $layerXML.='></ITEM>'; |
---|
386 | |
---|
387 | $layerXML.='<ITEM'; |
---|
388 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
389 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
390 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
391 | $layerXML.='></ITEM>'; |
---|
392 | |
---|
393 | $layerXML.='<SEPARADOR>'; |
---|
394 | $layerXML.='</SEPARADOR>'; |
---|
395 | |
---|
396 | $layerXML.='<ITEM'; |
---|
397 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_GRUPOSAULAS.')"'; |
---|
398 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
399 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
400 | $layerXML.='></ITEM>'; |
---|
401 | |
---|
402 | $layerXML.='<SEPARADOR>'; |
---|
403 | $layerXML.='</SEPARADOR>'; |
---|
404 | |
---|
405 | $layerXML.='<ITEM'; |
---|
406 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_GRUPOSAULAS.'"'; |
---|
407 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
408 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
409 | $layerXML.='></ITEM>'; |
---|
410 | |
---|
411 | $layerXML.='<ITEM'; |
---|
412 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_GRUPOSAULAS.')"'; |
---|
413 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
414 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
415 | $layerXML.='></ITEM>'; |
---|
416 | |
---|
417 | $layerXML.='<SEPARADOR>'; |
---|
418 | $layerXML.='</SEPARADOR>'; |
---|
419 | |
---|
420 | $layerXML.='<ITEM'; |
---|
421 | $layerXML.=' alpulsar="modificar_grupos()"'; |
---|
422 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
---|
423 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
424 | $layerXML.='></ITEM>'; |
---|
425 | |
---|
426 | $layerXML.='<ITEM'; |
---|
427 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
---|
428 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
429 | $layerXML.=' textoitem='.$TbMsg[7]; |
---|
430 | $layerXML.='></ITEM>'; |
---|
431 | |
---|
432 | $layerXML.='<SEPARADOR>'; |
---|
433 | $layerXML.='</SEPARADOR>'; |
---|
434 | |
---|
435 | $layerXML.='<ITEM'; |
---|
436 | $layerXML.=' alpulsar="cola_reservas('.$RESERVA_CONFIRMADA.')"'; |
---|
437 | $layerXML.=' imgitem="../images/iconos/reservas.gif"'; |
---|
438 | $layerXML.=' textoitem='.$TbMsg[29]; |
---|
439 | $layerXML.='></ITEM>'; |
---|
440 | |
---|
441 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
442 | return($layerXML); |
---|
443 | } |
---|
444 | //________________________________________________________________________________________________________ |
---|
445 | function ContextualXMLAulas(){ |
---|
446 | global $TbMsg; |
---|
447 | global $AMBITO_AULAS; |
---|
448 | global $LITAMBITO_AULAS; |
---|
449 | global $RESERVA_CONFIRMADA; |
---|
450 | global $OPERADOR; |
---|
451 | |
---|
452 | $layerXML='<MENUCONTEXTUAL'; |
---|
453 | $layerXML.=' idctx="flo_'.$LITAMBITO_AULAS.'"'; |
---|
454 | $layerXML.=' maxanchu=190'; |
---|
455 | $layerXML.=' swimg=1'; |
---|
456 | $layerXML.=' clase="menu_contextual"'; |
---|
457 | $layerXML.='>'; |
---|
458 | |
---|
459 | $layerXML.='<ITEM'; |
---|
460 | $layerXML.=' alpulsar="ver_aulas()"'; |
---|
461 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
462 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
463 | $layerXML.='></ITEM>'; |
---|
464 | |
---|
465 | $layerXML.='<ITEM'; |
---|
466 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
467 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
468 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
469 | $layerXML.='></ITEM>'; |
---|
470 | |
---|
471 | $layerXML.='<SEPARADOR>'; |
---|
472 | $layerXML.='</SEPARADOR>'; |
---|
473 | |
---|
474 | $layerXML.='<ITEM'; |
---|
475 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_AULAS.',' ."'".$LITAMBITO_AULAS."'". ')"'; |
---|
476 | |
---|
477 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
478 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
479 | $layerXML.='></ITEM>'; |
---|
480 | |
---|
481 | $layerXML.='<ITEM'; |
---|
482 | $layerXML.=' alpulsar="colocar_ordenador(1)"'; |
---|
483 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
484 | $layerXML.=' textoitem='.$TbMsg[11]; |
---|
485 | $layerXML.='></ITEM>'; |
---|
486 | |
---|
487 | $layerXML.='<SEPARADOR>'; |
---|
488 | $layerXML.='</SEPARADOR>'; |
---|
489 | |
---|
490 | $wLeft=170; |
---|
491 | $wTop=80; |
---|
492 | $wWidth=480; |
---|
493 | $wHeight=480; |
---|
494 | $wpages="../propiedades/propiedades_ordenadores.php"; |
---|
495 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
496 | $layerXML.='<ITEM'; |
---|
497 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
498 | $layerXML.=' imgitem="../images/iconos/ordenador.gif"'; |
---|
499 | $layerXML.=' textoitem='.$TbMsg[9]; |
---|
500 | $layerXML.='></ITEM>'; |
---|
501 | |
---|
502 | $layerXML.='<ITEM'; |
---|
503 | $layerXML.=' alpulsar="incorporarordenador()"'; |
---|
504 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; |
---|
505 | $layerXML.=' textoitem='.$TbMsg[27]; |
---|
506 | $layerXML.='></ITEM>'; |
---|
507 | |
---|
508 | $layerXML.='<SEPARADOR>'; |
---|
509 | $layerXML.='</SEPARADOR>'; |
---|
510 | |
---|
511 | $layerXML.='<ITEM'; |
---|
512 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
513 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
514 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
515 | $layerXML.='></ITEM>'; |
---|
516 | |
---|
517 | $layerXML.='<ITEM'; |
---|
518 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
519 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
520 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
521 | $layerXML.='></ITEM>'; |
---|
522 | |
---|
523 | $layerXML.='<SEPARADOR>'; |
---|
524 | $layerXML.='</SEPARADOR>'; |
---|
525 | |
---|
526 | $layerXML.='<ITEM'; |
---|
527 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_AULAS.')"'; |
---|
528 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
529 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
530 | $layerXML.='></ITEM>'; |
---|
531 | |
---|
532 | $layerXML.='<SEPARADOR>'; |
---|
533 | $layerXML.='</SEPARADOR>'; |
---|
534 | |
---|
535 | $layerXML.='<ITEM'; |
---|
536 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_AULAS.'"'; |
---|
537 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
538 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
539 | $layerXML.='></ITEM>'; |
---|
540 | |
---|
541 | $layerXML.='<ITEM'; |
---|
542 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_AULAS.')"'; |
---|
543 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
544 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
545 | $layerXML.='></ITEM>'; |
---|
546 | |
---|
547 | $layerXML.='<SEPARADOR>'; |
---|
548 | $layerXML.='</SEPARADOR>'; |
---|
549 | |
---|
550 | $layerXML.='<ITEM'; |
---|
551 | $layerXML.=' alpulsar="configuraciones('.$AMBITO_AULAS.')"'; |
---|
552 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
553 | $layerXML.=' imgitem="../images/iconos/configuraciones.gif"'; |
---|
554 | $layerXML.='></ITEM>'; |
---|
555 | |
---|
556 | $wLeft=170; |
---|
557 | $wTop=80; |
---|
558 | $wWidth=480; |
---|
559 | $wHeight=480; |
---|
560 | $wpages="../propiedades/propiedades_aulas.php"; |
---|
561 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
562 | $layerXML.='<ITEM'; |
---|
563 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
564 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
565 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
566 | $layerXML.='></ITEM>'; |
---|
567 | |
---|
568 | $layerXML.='<ITEM'; |
---|
569 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
570 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
571 | $layerXML.=' textoitem='.$TbMsg[14]; |
---|
572 | $layerXML.='></ITEM>'; |
---|
573 | |
---|
574 | $layerXML.='<SEPARADOR>'; |
---|
575 | $layerXML.='</SEPARADOR>'; |
---|
576 | |
---|
577 | // Crear operador |
---|
578 | $wLeft=140; |
---|
579 | $wTop=115; |
---|
580 | $wWidth=400; |
---|
581 | $wHeight=320; |
---|
582 | $wpages="../propiedades/propiedades_usuarios.php?idtipousuario=".$OPERADOR; |
---|
583 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
584 | $layerXML.='<ITEM'; |
---|
585 | $layerXML.=' alpulsar="insertar('.$wParam.',3)"'; |
---|
586 | $layerXML.=' imgitem="../images/iconos/operadores.gif"'; |
---|
587 | $layerXML.=' textoitem='.$TbMsg[37]; |
---|
588 | $layerXML.='></ITEM>'; |
---|
589 | |
---|
590 | $layerXML.='<ITEM'; |
---|
591 | $layerXML.=' alpulsar="cola_reservas('.$RESERVA_CONFIRMADA.')"'; |
---|
592 | $layerXML.=' imgitem="../images/iconos/reservas.gif"'; |
---|
593 | $layerXML.=' textoitem='.$TbMsg[29]; |
---|
594 | $layerXML.='></ITEM>'; |
---|
595 | |
---|
596 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
597 | return($layerXML); |
---|
598 | } |
---|
599 | //________________________________________________________________________________________________________ |
---|
600 | function CreacontextualXMLUsuarios(){ |
---|
601 | global $LITAMBITO_USUARIOS; |
---|
602 | global $TbMsg; |
---|
603 | |
---|
604 | $layerXML='<MENUCONTEXTUAL'; |
---|
605 | $layerXML.=' idctx="flo_'.$LITAMBITO_USUARIOS.'"'; |
---|
606 | $layerXML.=' maxanchu=130'; |
---|
607 | $layerXML.=' swimg=1'; |
---|
608 | $layerXML.=' clase="menu_contextual"'; |
---|
609 | $layerXML.='>'; |
---|
610 | |
---|
611 | // Modificar usuarios |
---|
612 | $wLeft=140; |
---|
613 | $wTop=115; |
---|
614 | $wWidth=400; |
---|
615 | $wHeight=320; |
---|
616 | $wpages="../propiedades/propiedades_usuarios.php"; |
---|
617 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
618 | $layerXML.='<ITEM'; |
---|
619 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
620 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
621 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
622 | $layerXML.='></ITEM>'; |
---|
623 | |
---|
624 | $layerXML.='<SEPARADOR>'; |
---|
625 | $layerXML.='</SEPARADOR>'; |
---|
626 | |
---|
627 | $layerXML.='<ITEM'; |
---|
628 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
629 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
630 | $layerXML.=' textoitem='.$TbMsg[36]; |
---|
631 | $layerXML.='></ITEM>'; |
---|
632 | |
---|
633 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
634 | return($layerXML); |
---|
635 | } |
---|
636 | //________________________________________________________________________________________________________ |
---|
637 | function ContextualXMLGruposOrdenadores(){ |
---|
638 | global $TbMsg; |
---|
639 | global $AMBITO_GRUPOSORDENADORES; |
---|
640 | global $LITAMBITO_GRUPOSORDENADORES; |
---|
641 | $layerXML='<MENUCONTEXTUAL'; |
---|
642 | |
---|
643 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSORDENADORES.'"'; |
---|
644 | $layerXML.=' maxanchu=195'; |
---|
645 | $layerXML.=' swimg=1'; |
---|
646 | $layerXML.=' clase="menu_contextual"'; |
---|
647 | $layerXML.='>'; |
---|
648 | |
---|
649 | $layerXML.='<ITEM'; |
---|
650 | $layerXML.=' alpulsar="ver_aulas()"'; |
---|
651 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
652 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
653 | $layerXML.='></ITEM>'; |
---|
654 | |
---|
655 | $layerXML.='<ITEM'; |
---|
656 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
657 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
658 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
659 | $layerXML.='></ITEM>'; |
---|
660 | |
---|
661 | $layerXML.='<SEPARADOR>'; |
---|
662 | $layerXML.='</SEPARADOR>'; |
---|
663 | |
---|
664 | $layerXML.='<ITEM'; |
---|
665 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSORDENADORES.',' ."'".$LITAMBITO_GRUPOSORDENADORES."'". ')"'; |
---|
666 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
667 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
668 | $layerXML.='></ITEM>'; |
---|
669 | |
---|
670 | $wLeft=170; |
---|
671 | $wTop=80; |
---|
672 | $wWidth=480; |
---|
673 | $wHeight=480; |
---|
674 | $wpages="../propiedades/propiedades_ordenadores.php"; |
---|
675 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
676 | $layerXML.='<ITEM'; |
---|
677 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
678 | $layerXML.=' imgitem="../images/iconos/ordenador.gif"'; |
---|
679 | $layerXML.=' textoitem='.$TbMsg[9]; |
---|
680 | $layerXML.='></ITEM>'; |
---|
681 | |
---|
682 | $layerXML.='<SEPARADOR>'; |
---|
683 | $layerXML.='</SEPARADOR>'; |
---|
684 | |
---|
685 | $layerXML.='<ITEM'; |
---|
686 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
687 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
688 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
689 | $layerXML.='></ITEM>'; |
---|
690 | |
---|
691 | $layerXML.='<ITEM'; |
---|
692 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
693 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
694 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
695 | $layerXML.='></ITEM>'; |
---|
696 | |
---|
697 | $layerXML.='<SEPARADOR>'; |
---|
698 | $layerXML.='</SEPARADOR>'; |
---|
699 | |
---|
700 | $layerXML.='<ITEM'; |
---|
701 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_GRUPOSORDENADORES.')"'; |
---|
702 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
703 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
704 | $layerXML.='></ITEM>'; |
---|
705 | |
---|
706 | $layerXML.='<SEPARADOR>'; |
---|
707 | $layerXML.='</SEPARADOR>'; |
---|
708 | |
---|
709 | $layerXML.='<ITEM'; |
---|
710 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_GRUPOSORDENADORES.'"'; |
---|
711 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
712 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
713 | $layerXML.='></ITEM>'; |
---|
714 | |
---|
715 | $layerXML.='<ITEM'; |
---|
716 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_GRUPOSORDENADORES.')"'; |
---|
717 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
718 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
719 | $layerXML.='></ITEM>'; |
---|
720 | |
---|
721 | $layerXML.='<SEPARADOR>'; |
---|
722 | $layerXML.='</SEPARADOR>'; |
---|
723 | |
---|
724 | $layerXML.='<ITEM'; |
---|
725 | $layerXML.=' alpulsar="colocar_ordenador(0)"'; |
---|
726 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
727 | $layerXML.=' textoitem='.$TbMsg[11]; |
---|
728 | $layerXML.='></ITEM>'; |
---|
729 | |
---|
730 | $layerXML.='<SEPARADOR>'; |
---|
731 | $layerXML.='</SEPARADOR>'; |
---|
732 | |
---|
733 | $layerXML.='<ITEM'; |
---|
734 | $layerXML.=' alpulsar="configuraciones('.$AMBITO_GRUPOSORDENADORES.')"'; |
---|
735 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
736 | $layerXML.=' imgitem="../images/iconos/configuraciones.gif"'; |
---|
737 | $layerXML.='></ITEM>'; |
---|
738 | |
---|
739 | $layerXML.='<ITEM'; |
---|
740 | $layerXML.=' alpulsar="modificar_grupos()"'; |
---|
741 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
---|
742 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
743 | $layerXML.='></ITEM>'; |
---|
744 | |
---|
745 | $layerXML.='<ITEM'; |
---|
746 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
---|
747 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
748 | $layerXML.=' textoitem='.$TbMsg[16]; |
---|
749 | $layerXML.='></ITEM>'; |
---|
750 | |
---|
751 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
752 | return($layerXML); |
---|
753 | } |
---|
754 | //________________________________________________________________________________________________________ |
---|
755 | function ContextualXMLOrdenadores(){ |
---|
756 | global $TbMsg; |
---|
757 | global $AMBITO_ORDENADORES; |
---|
758 | global $LITAMBITO_ORDENADORES; |
---|
759 | |
---|
760 | $layerXML='<MENUCONTEXTUAL'; |
---|
761 | $layerXML.=' idctx="flo_'.$LITAMBITO_ORDENADORES.'"'; |
---|
762 | $layerXML.=' maxanchu=140'; |
---|
763 | $layerXML.=' swimg=1'; |
---|
764 | $layerXML.=' clase="menu_contextual"'; |
---|
765 | $layerXML.='>'; |
---|
766 | |
---|
767 | $layerXML.='<ITEM'; |
---|
768 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
769 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
770 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
771 | $layerXML.='></ITEM>'; |
---|
772 | |
---|
773 | $layerXML.='<SEPARADOR>'; |
---|
774 | $layerXML.='</SEPARADOR>'; |
---|
775 | |
---|
776 | $layerXML.='<ITEM'; |
---|
777 | $layerXML.=' alpulsar="mover_ordenador()"'; |
---|
778 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; |
---|
779 | $layerXML.=' textoitem='.$TbMsg[17]; |
---|
780 | $layerXML.='></ITEM>'; |
---|
781 | |
---|
782 | $layerXML.='<SEPARADOR>'; |
---|
783 | $layerXML.='</SEPARADOR>'; |
---|
784 | |
---|
785 | $layerXML.='<ITEM'; |
---|
786 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
787 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
788 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
789 | $layerXML.='></ITEM>'; |
---|
790 | |
---|
791 | $layerXML.='<ITEM'; |
---|
792 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
793 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
794 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
795 | $layerXML.='></ITEM>'; |
---|
796 | |
---|
797 | $layerXML.='<SEPARADOR>'; |
---|
798 | $layerXML.='</SEPARADOR>'; |
---|
799 | |
---|
800 | $layerXML.='<ITEM'; |
---|
801 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_ORDENADORES.')"'; |
---|
802 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
803 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
804 | $layerXML.='></ITEM>'; |
---|
805 | |
---|
806 | $layerXML.='<ITEM'; |
---|
807 | $layerXML.=' alpulsar="eco_remoto()"'; |
---|
808 | $layerXML.=' imgitem="../images/iconos/ecocon.gif"'; |
---|
809 | $layerXML.=' textoitem='.$TbMsg[39]; |
---|
810 | $layerXML.='></ITEM>'; |
---|
811 | |
---|
812 | $layerXML.='<SEPARADOR>'; |
---|
813 | $layerXML.='</SEPARADOR>'; |
---|
814 | |
---|
815 | $layerXML.='<ITEM'; |
---|
816 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_ORDENADORES.'"'; |
---|
817 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
818 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
819 | $layerXML.='></ITEM>'; |
---|
820 | |
---|
821 | $layerXML.='<ITEM'; |
---|
822 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_ORDENADORES.')"'; |
---|
823 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
824 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
825 | $layerXML.='></ITEM>'; |
---|
826 | |
---|
827 | $layerXML.='<SEPARADOR>'; |
---|
828 | $layerXML.='</SEPARADOR>'; |
---|
829 | |
---|
830 | $layerXML.='<ITEM'; |
---|
831 | $layerXML.=' alpulsar="configuraciones('.$AMBITO_ORDENADORES.')"'; |
---|
832 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
833 | $layerXML.=' imgitem="../images/iconos/configuraciones.gif"'; |
---|
834 | $layerXML.='></ITEM>'; |
---|
835 | |
---|
836 | $wLeft=170; |
---|
837 | $wTop=80; |
---|
838 | $wWidth=480; |
---|
839 | $wHeight=400; |
---|
840 | $wpages="../propiedades/propiedades_ordenadores.php"; |
---|
841 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
842 | $layerXML.='<ITEM'; |
---|
843 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
844 | |
---|
845 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
846 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
847 | $layerXML.='></ITEM>'; |
---|
848 | |
---|
849 | $layerXML.='<ITEM'; |
---|
850 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
851 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
852 | $layerXML.=' textoitem='.$TbMsg[18]; |
---|
853 | $layerXML.='></ITEM>'; |
---|
854 | |
---|
855 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
856 | return($layerXML); |
---|
857 | } |
---|
858 | //________________________________________________________________________________________________________ |
---|
859 | function ContextualXMLComandos($litambito,$ambito){ |
---|
860 | global $cmd; |
---|
861 | $maxlongdescri=0; |
---|
862 | $rs=new Recordset; |
---|
863 | $cmd->texto="SELECT idcomando,descripcion,pagina,gestor,funcion |
---|
864 | FROM comandos |
---|
865 | WHERE activo=1 AND aplicambito & ".$ambito.">0 |
---|
866 | ORDER BY descripcion"; |
---|
867 | $rs->Comando=&$cmd; |
---|
868 | if ($rs->Abrir()){ |
---|
869 | $layerXML=""; |
---|
870 | $rs->Primero(); |
---|
871 | while (!$rs->EOF){ |
---|
872 | $layerXML.='<ITEM'; |
---|
873 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; |
---|
874 | $layerXML.=' textoitem="'.$rs->campos["descripcion"].'"'; |
---|
875 | $layerXML.='></ITEM>'; |
---|
876 | if($maxlongdescri<strlen($rs->campos["descripcion"])) // Toma la Descripción de mayor longitud |
---|
877 | $maxlongdescri=strlen($rs->campos["descripcion"]); |
---|
878 | $rs->Siguiente(); |
---|
879 | } |
---|
880 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
881 | $prelayerXML='<MENUCONTEXTUAL'; |
---|
882 | $prelayerXML.=' idctx="flo_comandos_'.$litambito.'"'; |
---|
883 | $prelayerXML.=' maxanchu='.$maxlongdescri*7; |
---|
884 | $prelayerXML.=' clase="menu_contextual"'; |
---|
885 | $prelayerXML.='>'; |
---|
886 | $finallayerXML=$prelayerXML.$layerXML; |
---|
887 | return($finallayerXML); |
---|
888 | } |
---|
889 | } |
---|
890 | ?> |
---|