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: Noviembre-2012 |
---|
7 | // Nombre del fichero: imagenes.php |
---|
8 | // Descripción : |
---|
9 | // Administra imágenes 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."/imagenes_".$idioma.".php"); |
---|
19 | //________________________________________________________________________________________________________ |
---|
20 | |
---|
21 | $cmd=CreaComando($cadenaconexion); |
---|
22 | if (!$cmd) |
---|
23 | Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D. |
---|
24 | else |
---|
25 | $arbolXML=CreaArbol($cmd,$idcentro); // Crea el código XML del arbol |
---|
26 | |
---|
27 | // Genera vista del árbol usando como origen de datos el XML anterior |
---|
28 | $baseurlimg="../images/signos"; // Url de las imágenes de signo |
---|
29 | $clasedefault="texto_arbol"; // Hoja de estilo (Clase por defecto) del árbol |
---|
30 | $arbol=new ArbolVistaXML($arbolXML,0,$baseurlimg,$clasedefault,1,0,5); |
---|
31 | |
---|
32 | //________________________________________________________________________________________________________ |
---|
33 | ?> |
---|
34 | <HTML> |
---|
35 | <TITLE>Administración web de aulas</TITLE> |
---|
36 | <HEAD> |
---|
37 | <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
38 | <LINK rel="stylesheet" type="text/css" href="../estilos.css"> |
---|
39 | <SCRIPT language="javascript" src="../clases/jscripts/ArbolVistaXML.js"></SCRIPT> |
---|
40 | <SCRIPT language="javascript" src="../clases/jscripts/MenuContextual.js"></SCRIPT> |
---|
41 | <SCRIPT language="javascript" src="../jscripts/imagenes.js"></SCRIPT> |
---|
42 | <SCRIPT language="javascript" src="../jscripts/opciones.js"></SCRIPT> |
---|
43 | <SCRIPT language="javascript" src="../jscripts/constantes.js"></SCRIPT> |
---|
44 | <SCRIPT language="javascript" src="../jscripts/comunes.js"></SCRIPT> |
---|
45 | <SCRIPT language="javascript" src="../clases/jscripts/HttpLib.js"></SCRIPT> |
---|
46 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comunes_'.$idioma.'.js"></SCRIPT>'?> |
---|
47 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/imagenes_'.$idioma.'.js"></SCRIPT>'?> |
---|
48 | </HEAD> |
---|
49 | <BODY OnContextMenu="return false"> |
---|
50 | <?php |
---|
51 | //________________________________________________________________________________________________________ |
---|
52 | |
---|
53 | echo $arbol->CreaArbolVistaXML(); // Muestra árbol en pantalla |
---|
54 | |
---|
55 | // Crea contextual de las imágenes |
---|
56 | $flotante=new MenuContextual(); |
---|
57 | |
---|
58 | $XMLcontextual=CreaContextualXMLTiposImagenes($AMBITO_GRUPOSIMAGENESMONOLITICAS, |
---|
59 | $LITAMBITO_GRUPOSIMAGENESMONOLITICAS, |
---|
60 | $AMBITO_IMAGENESMONOLITICAS, |
---|
61 | $LITAMBITO_IMAGENESMONOLITICAS, |
---|
62 | $IMAGENES_MONOLITICAS); |
---|
63 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
64 | |
---|
65 | $XMLcontextual=CreaContextualXMLTiposImagenes($AMBITO_GRUPOSIMAGENESBASICAS, |
---|
66 | $LITAMBITO_GRUPOSIMAGENESBASICAS, |
---|
67 | $AMBITO_IMAGENESBASICAS, |
---|
68 | $LITAMBITO_IMAGENESBASICAS, |
---|
69 | $IMAGENES_BASICAS); |
---|
70 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
71 | |
---|
72 | $XMLcontextual=CreaContextualXMLTiposImagenes($AMBITO_GRUPOSIMAGENESINCREMENTALES, |
---|
73 | $LITAMBITO_GRUPOSIMAGENESINCREMENTALES, |
---|
74 | $AMBITO_IMAGENESINCREMENTALES, |
---|
75 | $LITAMBITO_IMAGENESINCREMENTALES, |
---|
76 | $IMAGENES_INCREMENTALES); |
---|
77 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
78 | |
---|
79 | $XMLcontextual=CreaContextualXMLGruposImagenes($AMBITO_GRUPOSIMAGENESMONOLITICAS, |
---|
80 | $LITAMBITO_GRUPOSIMAGENESMONOLITICAS, |
---|
81 | $AMBITO_IMAGENESMONOLITICAS, |
---|
82 | $LITAMBITO_IMAGENESMONOLITICAS, |
---|
83 | $IMAGENES_MONOLITICAS); |
---|
84 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
85 | |
---|
86 | $XMLcontextual=CreaContextualXMLGruposImagenes($AMBITO_GRUPOSIMAGENESBASICAS, |
---|
87 | $LITAMBITO_GRUPOSIMAGENESBASICAS, |
---|
88 | $AMBITO_IMAGENESBASICAS, |
---|
89 | $LITAMBITO_IMAGENESBASICAS, |
---|
90 | $IMAGENES_BASICAS); |
---|
91 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
92 | |
---|
93 | $XMLcontextual=CreaContextualXMLGruposImagenes($AMBITO_GRUPOSIMAGENESINCREMENTALES, |
---|
94 | $LITAMBITO_GRUPOSIMAGENESINCREMENTALES, |
---|
95 | $AMBITO_IMAGENESINCREMENTALES, |
---|
96 | $LITAMBITO_IMAGENESINCREMENTALES, |
---|
97 | $IMAGENES_INCREMENTALES); |
---|
98 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
99 | |
---|
100 | $XMLcontextual=CreacontextualXMLImagen($AMBITO_IMAGENESMONOLITICAS, |
---|
101 | $LITAMBITO_IMAGENESMONOLITICAS, |
---|
102 | $IMAGENES_MONOLITICAS); |
---|
103 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
104 | |
---|
105 | $XMLcontextual=CreacontextualXMLImagen($AMBITO_IMAGENESBASICAS, |
---|
106 | $LITAMBITO_IMAGENESBASICAS, |
---|
107 | $IMAGENES_BASICAS); |
---|
108 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
109 | |
---|
110 | $XMLcontextual=CreacontextualXMLImagen($AMBITO_IMAGENESINCREMENTALES, |
---|
111 | $LITAMBITO_IMAGENESINCREMENTALES, |
---|
112 | $IMAGENES_INCREMENTALES); |
---|
113 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
114 | ?> |
---|
115 | </BODY> |
---|
116 | </HTML> |
---|
117 | <?php |
---|
118 | // ******************************************************************************************************** |
---|
119 | // Devuelve una cadena con formato XML con toda la información de las imáges registradas en un Centro |
---|
120 | // concreto |
---|
121 | // Parametros: |
---|
122 | // - cmd:Una comando ya operativo ( con conexión abierta) |
---|
123 | // - idcentro: El identificador del centro |
---|
124 | //________________________________________________________________________________________________________ |
---|
125 | |
---|
126 | function CreaArbol($cmd,$idcentro) |
---|
127 | { |
---|
128 | // Variables globales. |
---|
129 | global $TbMsg; |
---|
130 | |
---|
131 | global $LITAMBITO_IMAGENES; |
---|
132 | global $AMBITO_GRUPOSIMAGENESMONOLITICAS, |
---|
133 | $LITAMBITO_GRUPOSIMAGENESMONOLITICAS, |
---|
134 | $AMBITO_IMAGENESMONOLITICAS, |
---|
135 | $LITAMBITO_IMAGENESMONOLITICAS, |
---|
136 | $IMAGENES_MONOLITICAS; |
---|
137 | |
---|
138 | global $AMBITO_GRUPOSIMAGENESBASICAS, |
---|
139 | $LITAMBITO_GRUPOSIMAGENESBASICAS, |
---|
140 | $AMBITO_IMAGENESBASICAS, |
---|
141 | $LITAMBITO_IMAGENESBASICAS, |
---|
142 | $IMAGENES_BASICAS; |
---|
143 | |
---|
144 | global $AMBITO_GRUPOSIMAGENESINCREMENTALES, |
---|
145 | $LITAMBITO_GRUPOSIMAGENESINCREMENTALES, |
---|
146 | $AMBITO_IMAGENESINCREMENTALES, |
---|
147 | $LITAMBITO_IMAGENESINCREMENTALES, |
---|
148 | $IMAGENES_INCREMENTALES; |
---|
149 | |
---|
150 | $cadenaXML='<RAIZ'; |
---|
151 | // Atributos |
---|
152 | $cadenaXML.=' imagenodo="../images/iconos/imagenes.gif"'; |
---|
153 | $cadenaXML.=' nodoid=Raiz'.$LITAMBITO_IMAGENES; |
---|
154 | $cadenaXML.=' infonodo="'.$TbMsg[9].'"'; |
---|
155 | $cadenaXML.='>'; |
---|
156 | $cadenaXML.=SubarbolXML_tiposimagenes($AMBITO_GRUPOSIMAGENESMONOLITICAS, |
---|
157 | $LITAMBITO_GRUPOSIMAGENESMONOLITICAS, |
---|
158 | $AMBITO_IMAGENESMONOLITICAS, |
---|
159 | $LITAMBITO_IMAGENESMONOLITICAS, |
---|
160 | $IMAGENES_MONOLITICAS, |
---|
161 | $TbMsg[11]); |
---|
162 | |
---|
163 | $cadenaXML.=SubarbolXML_tiposimagenes($AMBITO_GRUPOSIMAGENESBASICAS, |
---|
164 | $LITAMBITO_GRUPOSIMAGENESBASICAS, |
---|
165 | $AMBITO_IMAGENESBASICAS, |
---|
166 | $LITAMBITO_IMAGENESBASICAS, |
---|
167 | $IMAGENES_BASICAS, |
---|
168 | $TbMsg[12]); |
---|
169 | |
---|
170 | $cadenaXML.=SubarbolXML_tiposimagenes($AMBITO_GRUPOSIMAGENESINCREMENTALES, |
---|
171 | $LITAMBITO_GRUPOSIMAGENESINCREMENTALES, |
---|
172 | $AMBITO_IMAGENESINCREMENTALES, |
---|
173 | $LITAMBITO_IMAGENESINCREMENTALES, |
---|
174 | $IMAGENES_INCREMENTALES, |
---|
175 | $TbMsg[13]); |
---|
176 | $cadenaXML.='</RAIZ>'; |
---|
177 | return($cadenaXML); |
---|
178 | } |
---|
179 | //________________________________________________________________________________________________________ |
---|
180 | |
---|
181 | function SubarbolXML_tiposimagenes($ambg,$litambg,$amb,$litamb,$tipo,$msg) |
---|
182 | { |
---|
183 | $cadenaXML=""; |
---|
184 | $cadenaXML.='<TIPOSIMAGENES'; |
---|
185 | // Atributos |
---|
186 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
187 | $cadenaXML.=' nodoid=SubRaiz-0'; |
---|
188 | $cadenaXML.=' infonodo='.$msg; |
---|
189 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'TipoImagen_".$tipo."'".')"'; |
---|
190 | $cadenaXML.='>'; |
---|
191 | $cadenaXML.=SubarbolXML_gruposimagenes(0,$ambg,$litambg,$amb,$litamb,$tipo); |
---|
192 | $cadenaXML.='</TIPOSIMAGENES>'; |
---|
193 | return($cadenaXML); |
---|
194 | } |
---|
195 | //________________________________________________________________________________________________________ |
---|
196 | |
---|
197 | function SubarbolXML_gruposimagenes($grupoid,$ambg,$litambg,$amb,$litamb,$tipo) |
---|
198 | { |
---|
199 | global $cmd; |
---|
200 | global $idcentro; |
---|
201 | |
---|
202 | $cadenaXML=""; |
---|
203 | $rs=new Recordset; |
---|
204 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid |
---|
205 | FROM grupos WHERE grupoid=".$grupoid." |
---|
206 | AND idcentro=".$idcentro." |
---|
207 | AND tipo=".$ambg." |
---|
208 | ORDER BY nombregrupo"; |
---|
209 | $rs->Comando=&$cmd; |
---|
210 | //echo $cmd->texto; |
---|
211 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
212 | $rs->Primero(); |
---|
213 | while (!$rs->EOF){ |
---|
214 | $cadenaXML.='<GRUPOSIMAGENES'; |
---|
215 | // Atributos |
---|
216 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$litambg."'" .');"'; |
---|
217 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
218 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
---|
219 | $cadenaXML.=' nodoid="'.$litambg."-".$rs->campos["idgrupo"]; |
---|
220 | $cadenaXML.='>'; |
---|
221 | $cadenaXML.=SubarbolXML_gruposimagenes($rs->campos["idgrupo"],$ambg,$litambg,$amb,$litamb,$tipo); |
---|
222 | $cadenaXML.='</GRUPOSIMAGENES>'; |
---|
223 | $rs->Siguiente(); |
---|
224 | } |
---|
225 | $rs->Cerrar(); |
---|
226 | $cadenaXML.=SubarbolXML_Imagenes($grupoid,$amb,$litamb,$tipo); |
---|
227 | return($cadenaXML); |
---|
228 | } |
---|
229 | //________________________________________________________________________________________________________ |
---|
230 | |
---|
231 | function SubarbolXML_Imagenes($grupoid,$amb,$litamb,$tipo) |
---|
232 | { |
---|
233 | global $TbMsg; |
---|
234 | global $cmd; |
---|
235 | global $idcentro; |
---|
236 | |
---|
237 | $cadenaXML=""; |
---|
238 | $rs=new Recordset; |
---|
239 | #### agp ### Añado la consulta el campo idrepositorio #### |
---|
240 | $cmd->texto="SELECT DISTINCT imagenes.idimagen,imagenes.descripcion, IFNULL(repositorios.nombrerepositorio,'".$TbMsg["DELETEDREPO"]."') AS nombrerepositorio |
---|
241 | FROM imagenes "; |
---|
242 | // Para hallar el repositorio de las incrementales hay que buscar los datos de la imagen basica (en la propia tablas imágenes) |
---|
243 | if ($tipo == 3) { |
---|
244 | $cmd->texto.=" INNER JOIN imagenes AS basica |
---|
245 | LEFT JOIN repositorios ON basica.idrepositorio=repositorios.idrepositorio |
---|
246 | WHERE imagenes.imagenid=basica.idimagen AND "; |
---|
247 | } else { |
---|
248 | $cmd->texto.=" LEFT JOIN repositorios USING (idrepositorio) WHERE "; |
---|
249 | } |
---|
250 | $cmd->texto.=" imagenes.idcentro=".$idcentro." |
---|
251 | AND imagenes.grupoid=".$grupoid." |
---|
252 | AND imagenes.tipo=".$tipo." |
---|
253 | ORDER BY imagenes.descripcion"; |
---|
254 | //echo "<br>".$cmd->texto; |
---|
255 | $rs->Comando=&$cmd; |
---|
256 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
257 | $rs->Primero(); |
---|
258 | while (!$rs->EOF){ |
---|
259 | $cadenaXML.='<IMAGEN'; |
---|
260 | // Atributos |
---|
261 | $cadenaXML.=' imagenodo="../images/iconos/imagen.gif"'; |
---|
262 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].' ('.$rs->campos["nombrerepositorio"].')"'; |
---|
263 | $cadenaXML.=' nodoid='.$litamb.'-'.$rs->campos["idimagen"]; |
---|
264 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$litamb."'" .')"'; |
---|
265 | $cadenaXML.='>'; |
---|
266 | $cadenaXML.='</IMAGEN>'; |
---|
267 | $rs->Siguiente(); |
---|
268 | } |
---|
269 | $rs->Cerrar(); |
---|
270 | return($cadenaXML); |
---|
271 | } |
---|
272 | //________________________________________________________________________________________________________ |
---|
273 | // |
---|
274 | // Menús Contextuales |
---|
275 | |
---|
276 | //________________________________________________________________________________________________________ |
---|
277 | |
---|
278 | function CreaContextualXMLTiposImagenes($ambg,$litambg,$amb,$litamb,$tipo) |
---|
279 | { |
---|
280 | global $TbMsg; |
---|
281 | |
---|
282 | $layerXML='<MENUCONTEXTUAL'; |
---|
283 | $layerXML.=' idctx="TipoImagen_'.$tipo.'"'; |
---|
284 | $layerXML.=' maxanchu=175'; |
---|
285 | $layerXML.=' swimg=1'; |
---|
286 | $layerXML.=' clase="menu_contextual"'; |
---|
287 | $layerXML.='>'; |
---|
288 | |
---|
289 | $layerXML.='<ITEM'; |
---|
290 | $layerXML.=' alpulsar="insertar_grupos('.$ambg.',' ."'".$litambg."'". ')"'; |
---|
291 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
292 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
293 | $layerXML.='></ITEM>'; |
---|
294 | |
---|
295 | $layerXML.='<ITEM'; |
---|
296 | $layerXML.=' alpulsar="insertar_imagen(\''.$litamb.'\','.$tipo.')"'; |
---|
297 | $layerXML.=' imgitem="../images/iconos/imagen.gif"'; |
---|
298 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
299 | $layerXML.='></ITEM>'; |
---|
300 | |
---|
301 | $layerXML.='<SEPARADOR>'; |
---|
302 | $layerXML.='</SEPARADOR>'; |
---|
303 | |
---|
304 | $wParam="../gestores/gestor_imagenes.php"; |
---|
305 | |
---|
306 | $layerXML.='<ITEM'; |
---|
307 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$tipo.')"'; |
---|
308 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
309 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
310 | $layerXML.='></ITEM>'; |
---|
311 | |
---|
312 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
313 | return($layerXML); |
---|
314 | } |
---|
315 | //________________________________________________________________________________________________________ |
---|
316 | |
---|
317 | function CreaContextualXMLGruposImagenes($ambg,$litambg,$amb,$litamb,$tipo) |
---|
318 | { |
---|
319 | global $TbMsg; |
---|
320 | |
---|
321 | $layerXML='<MENUCONTEXTUAL'; |
---|
322 | $layerXML.=' idctx="flo_'.$litambg.'"'; |
---|
323 | $layerXML.=' maxanchu=175'; |
---|
324 | $layerXML.=' swimg=1'; |
---|
325 | $layerXML.=' clase="menu_contextual"'; |
---|
326 | $layerXML.='>'; |
---|
327 | |
---|
328 | $layerXML.='<ITEM'; |
---|
329 | $layerXML.=' alpulsar="insertar_grupos('.$ambg.',' ."'".$litambg."'". ')"'; |
---|
330 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
331 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
332 | $layerXML.='></ITEM>'; |
---|
333 | |
---|
334 | $layerXML.='<ITEM'; |
---|
335 | $layerXML.=' alpulsar="insertar_imagen(\''.$litamb.'\','.$tipo.')"'; |
---|
336 | $layerXML.=' imgitem="../images/iconos/imagen.gif"'; |
---|
337 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
338 | $layerXML.='></ITEM>'; |
---|
339 | |
---|
340 | $layerXML.='<SEPARADOR>'; |
---|
341 | $layerXML.='</SEPARADOR>'; |
---|
342 | |
---|
343 | $wParam="../gestores/gestor_imagenes.php"; |
---|
344 | |
---|
345 | $layerXML.='<ITEM'; |
---|
346 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$tipo.')"'; |
---|
347 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
348 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
349 | $layerXML.='></ITEM>'; |
---|
350 | |
---|
351 | $layerXML.='<SEPARADOR>'; |
---|
352 | $layerXML.='</SEPARADOR>'; |
---|
353 | |
---|
354 | $layerXML.='<ITEM'; |
---|
355 | $layerXML.=' alpulsar="modificar_grupos()"'; |
---|
356 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
---|
357 | $layerXML.=' textoitem='.$TbMsg[7]; |
---|
358 | $layerXML.='></ITEM>'; |
---|
359 | |
---|
360 | $layerXML.='<ITEM'; |
---|
361 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
---|
362 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
363 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
364 | $layerXML.='></ITEM>'; |
---|
365 | |
---|
366 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
367 | return($layerXML); |
---|
368 | } |
---|
369 | //__________________________________________________________________________________________ |
---|
370 | |
---|
371 | function CreacontextualXMLImagen($amb,$litamb,$tipo) |
---|
372 | { |
---|
373 | global $TbMsg; |
---|
374 | |
---|
375 | $layerXML='<MENUCONTEXTUAL'; |
---|
376 | $layerXML.=' idctx="flo_'.$litamb.'"'; |
---|
377 | $layerXML.=' maxanchu=150'; |
---|
378 | $layerXML.=' swimg=1'; |
---|
379 | $layerXML.='>'; |
---|
380 | |
---|
381 | $layerXML.='<ITEM'; |
---|
382 | $layerXML.=' alpulsar="muestra_informacion()"'; |
---|
383 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
384 | $layerXML.=' imgitem="../images/iconos/informacion.gif"'; |
---|
385 | $layerXML.='></ITEM>'; |
---|
386 | |
---|
387 | $layerXML.='<SEPARADOR>'; |
---|
388 | $layerXML.='</SEPARADOR>'; |
---|
389 | |
---|
390 | $layerXML.='<ITEM'; |
---|
391 | $layerXML.=' alpulsar="mover('.$tipo.')"'; |
---|
392 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; |
---|
393 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
394 | $layerXML.='></ITEM>'; |
---|
395 | |
---|
396 | $layerXML.='<SEPARADOR>'; |
---|
397 | $layerXML.='</SEPARADOR>'; |
---|
398 | |
---|
399 | $layerXML.='<ITEM'; |
---|
400 | $layerXML.=' alpulsar="modificar_imagen('.$tipo.')"'; |
---|
401 | $layerXML.=' textoitem='.$TbMsg[7]; |
---|
402 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
403 | $layerXML.='></ITEM>'; |
---|
404 | |
---|
405 | $layerXML.='<ITEM'; |
---|
406 | $layerXML.=' alpulsar="eliminar_imagen('.$tipo.')"'; |
---|
407 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
408 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
409 | $layerXML.='></ITEM>'; |
---|
410 | |
---|
411 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
412 | return($layerXML); |
---|
413 | } |
---|
414 | ?> |
---|
415 | |
---|