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 2003-2004 |
---|
6 | // Fecha Última modificación: Febrero-2005 |
---|
7 | // Nombre del fichero: acciones.php |
---|
8 | // Descripción : |
---|
9 | // Administra procedimientos,tareas y trabajos 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."/acciones_".$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); // Crea el arbol XML con todos los datos de las acciones registradas en el Centro |
---|
25 | // Creación del árbol |
---|
26 | $baseurlimg="../images/signos"; // Url de las im�enes de signo |
---|
27 | $clasedefault="texto_arbol"; // Hoja de estilo (Clase por defecto) del árbol |
---|
28 | $arbol=new ArbolVistaXML($arbolXML,0,$baseurlimg,$clasedefault,1,0,5); |
---|
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 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1"> |
---|
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/acciones.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 | <? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comunes_'.$idioma.'.js"></SCRIPT>'?> |
---|
44 | <? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/acciones_'.$idioma.'.js"></SCRIPT>'?> |
---|
45 | </HEAD> |
---|
46 | <BODY OnContextMenu="return false"> |
---|
47 | <? |
---|
48 | //________________________________________________________________________________________________________ |
---|
49 | echo $arbol->CreaArbolVistaXML(); // Crea árbol (HTML) a partir del XML |
---|
50 | $flotante=new MenuContextual(); // Crea objeto MenuContextual |
---|
51 | |
---|
52 | // Crea contextual de los procedimientos |
---|
53 | $XMLcontextual=CreacontextualXMLProcedimientos(); |
---|
54 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
55 | $XMLcontextual=ContextualXMLGruposProcedimientos(); // Grupo de Procedimientos |
---|
56 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
57 | $XMLcontextual=CreacontextualXMLProcedimiento(); // Procedimientos |
---|
58 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
59 | |
---|
60 | // Crea contextual de las tareas |
---|
61 | $XMLcontextual=CreacontextualXMLTareas(); |
---|
62 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
63 | $XMLcontextual=ContextualXMLGruposTareas(); // Grupo de Tareas |
---|
64 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
65 | $XMLcontextual=CreacontextualXMLTarea(); // Tareas |
---|
66 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
67 | |
---|
68 | // Crea contextual de los trabajos |
---|
69 | $XMLcontextual=CreacontextualXMLTrabajos(); |
---|
70 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
71 | $XMLcontextual=ContextualXMLGruposTrabajos(); // Grupo de Trabajos |
---|
72 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
73 | $XMLcontextual=CreacontextualXMLTrabajo(); // Trabajos |
---|
74 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
75 | //________________________________________________________________________________________________________ |
---|
76 | include_once("../includes/iframecomun.php"); |
---|
77 | //________________________________________________________________________________________________________ |
---|
78 | ?> |
---|
79 | </BODY> |
---|
80 | </HTML> |
---|
81 | <? |
---|
82 | // ******************************************************************************************************** |
---|
83 | // Devuelve una cadena con formato XML con toda la informaci� de las acciones registradas en un Centro concreto |
---|
84 | // Parametros: |
---|
85 | // - cmd:Una comando ya operativo ( con conexiónabierta) |
---|
86 | // - idcentro: El identificador del centro |
---|
87 | //________________________________________________________________________________________________________ |
---|
88 | function CreaArbol($cmd,$idcentro){ |
---|
89 | global $TbMsg; |
---|
90 | global $LITAMBITO_PROCEDIMIENTOS; |
---|
91 | global $LITAMBITO_TAREAS; |
---|
92 | global $LITAMBITO_TRABAJOS; |
---|
93 | |
---|
94 | $cadenaXML='<ACCIONES'; |
---|
95 | // Atributos |
---|
96 | $cadenaXML.=' imagenodo="../images/iconos/acciones.gif"'; |
---|
97 | $cadenaXML.=' infonodo="'.$TbMsg[33].'"'; |
---|
98 | $cadenaXML.=' nodoid="RaizAcciones"'; |
---|
99 | $cadenaXML.='>'; |
---|
100 | |
---|
101 | $cadenaXML.='<COMANDOS'; |
---|
102 | // Atributos |
---|
103 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
104 | $cadenaXML.=' infonodo="'.$TbMsg[30].'"'; |
---|
105 | $cadenaXML.=' nodoid="RaizComandos"'; |
---|
106 | $cadenaXML.='>'; |
---|
107 | $cadenaXML.=SubarbolXML_Comandos($cmd); |
---|
108 | $cadenaXML.='</COMANDOS>'; |
---|
109 | |
---|
110 | $cadenaXML.='<PROCEDIMIENTOS'; |
---|
111 | // Atributos |
---|
112 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
113 | $cadenaXML.=' infonodo="'.$TbMsg[29].'"'; |
---|
114 | $cadenaXML.=' nodoid=Raizpro'.$LITAMBITO_PROCEDIMIENTOS; |
---|
115 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_Raiz".$LITAMBITO_PROCEDIMIENTOS."'".')"'; |
---|
116 | $cadenaXML.='>'; |
---|
117 | $cadenaXML.=SubarbolXML_grupos_procedimientos($cmd,$idcentro,0); |
---|
118 | $cadenaXML.='</PROCEDIMIENTOS>'; |
---|
119 | |
---|
120 | $cadenaXML.='<TAREAS'; |
---|
121 | // Atributos |
---|
122 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
123 | $cadenaXML.=' infonodo="'.$TbMsg[31].'"'; |
---|
124 | $cadenaXML.=' nodoid=Raiz'.$LITAMBITO_TAREAS; |
---|
125 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_Raiz".$LITAMBITO_TAREAS."'".')"'; |
---|
126 | $cadenaXML.='>'; |
---|
127 | $cadenaXML.=SubarbolXML_grupos_tareas($cmd,$idcentro,0); |
---|
128 | $cadenaXML.='</TAREAS>'; |
---|
129 | |
---|
130 | $cadenaXML.='<TRABAJOS'; |
---|
131 | // Atributos |
---|
132 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
133 | $cadenaXML.=' infonodo="'.$TbMsg[32].'"'; |
---|
134 | $cadenaXML.=' nodoid=Raiz'.$LITAMBITO_TRABAJOS; |
---|
135 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_Raiz".$LITAMBITO_TRABAJOS."'".')"'; |
---|
136 | $cadenaXML.='>'; |
---|
137 | $cadenaXML.=SubarbolXML_grupos_trabajos($cmd,$idcentro,0); |
---|
138 | $cadenaXML.='</TRABAJOS>'; |
---|
139 | $cadenaXML.='</ACCIONES>'; |
---|
140 | return($cadenaXML); |
---|
141 | } |
---|
142 | //________________________________________________________________________________________________________ |
---|
143 | function SubarbolXML_Comandos($cmd){ |
---|
144 | $cadenaXML=""; |
---|
145 | $rs=new Recordset; |
---|
146 | $cmd->texto="SELECT idcomando,descripcion,urlimg FROM comandos Where activo=1 order by descripcion"; |
---|
147 | $rs->Comando=&$cmd; |
---|
148 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
149 | $rs->Primero(); |
---|
150 | while (!$rs->EOF){ |
---|
151 | $cadenaXML.='<COMANDO'; |
---|
152 | // Atributos |
---|
153 | //if (!empty($rs->campos["urlimg"])) |
---|
154 | // $cadenaXML.=' imagenodo='.$rs->campos["urlimg"]; |
---|
155 | //else |
---|
156 | $cadenaXML.=' imagenodo="../images/iconos/comandos.gif"'; |
---|
157 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; |
---|
158 | $cadenaXML.=' nodoid=comando-'.$rs->campos["idcomando"]; |
---|
159 | $cadenaXML.='>'; |
---|
160 | $cadenaXML.='</COMANDO>'; |
---|
161 | $rs->Siguiente(); |
---|
162 | } |
---|
163 | $rs->Cerrar(); |
---|
164 | return($cadenaXML); |
---|
165 | } |
---|
166 | //________________________________________________________________________________________________________ |
---|
167 | function SubarbolXML_grupos_procedimientos($cmd,$idcentro,$grupoid){ |
---|
168 | global $AMBITO_GRUPOSPROCEDIMIENTOS; |
---|
169 | global $LITAMBITO_GRUPOSPROCEDIMIENTOS; |
---|
170 | $cadenaXML=""; |
---|
171 | $rs=new Recordset; |
---|
172 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSPROCEDIMIENTOS." ORDER BY nombregrupo"; |
---|
173 | $rs->Comando=&$cmd; |
---|
174 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
175 | $rs->Primero(); |
---|
176 | while (!$rs->EOF){ |
---|
177 | $cadenaXML.='<GRUPOSPROCEDIMIENTOS'; |
---|
178 | // Atributos |
---|
179 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSPROCEDIMIENTOS."'" .');"'; |
---|
180 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
181 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
---|
182 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSPROCEDIMIENTOS.'-'.$rs->campos["idgrupo"]; |
---|
183 | $cadenaXML.='>'; |
---|
184 | $cadenaXML.=SubarbolXML_grupos_procedimientos($cmd,$idcentro,$rs->campos["idgrupo"]); |
---|
185 | $cadenaXML.='</GRUPOSPROCEDIMIENTOS>'; |
---|
186 | $rs->Siguiente(); |
---|
187 | } |
---|
188 | $rs->Cerrar(); |
---|
189 | $cadenaXML.=SubarbolXML_Procedimientos($cmd,$idcentro,$grupoid); |
---|
190 | return($cadenaXML); |
---|
191 | } |
---|
192 | //________________________________________________________________________________________________________ |
---|
193 | function SubarbolXML_Procedimientos($cmd,$idcentro,$grupoid){ |
---|
194 | global $LITAMBITO_PROCEDIMIENTOS; |
---|
195 | $cadenaXML=""; |
---|
196 | $rs=new Recordset; |
---|
197 | $cmd->texto="SELECT idprocedimiento,descripcion FROM procedimientos WHERE idcentro=".$idcentro." AND grupoid=".$grupoid." ORDER BY descripcion"; |
---|
198 | $rs->Comando=&$cmd; |
---|
199 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
200 | $rs->Primero(); |
---|
201 | while (!$rs->EOF){ |
---|
202 | $cadenaXML.='<PROCEDIMIENTO'; |
---|
203 | // Atributos |
---|
204 | $cadenaXML.=' imagenodo="../images/iconos/procedimiento.gif"'; |
---|
205 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; |
---|
206 | $cadenaXML.=' nodoid='.$LITAMBITO_PROCEDIMIENTOS.'-'.$rs->campos["idprocedimiento"]; |
---|
207 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_PROCEDIMIENTOS."'" .')"'; |
---|
208 | $cadenaXML.='>'; |
---|
209 | $cadenaXML.='</PROCEDIMIENTO>'; |
---|
210 | $rs->Siguiente(); |
---|
211 | } |
---|
212 | $rs->Cerrar(); |
---|
213 | return($cadenaXML); |
---|
214 | } |
---|
215 | //________________________________________________________________________________________________________ |
---|
216 | function SubarbolXML_grupos_tareas($cmd,$idcentro,$grupoid){ |
---|
217 | global $AMBITO_GRUPOSTAREAS; |
---|
218 | global $LITAMBITO_GRUPOSTAREAS; |
---|
219 | $cadenaXML=""; |
---|
220 | $rs=new Recordset; |
---|
221 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSTAREAS." ORDER BY nombregrupo"; |
---|
222 | $rs->Comando=&$cmd; |
---|
223 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
224 | $rs->Primero(); |
---|
225 | while (!$rs->EOF){ |
---|
226 | $cadenaXML.='<GRUPOSTAREAS'; |
---|
227 | // Atributos |
---|
228 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSTAREAS."'" .');"'; |
---|
229 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
230 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
---|
231 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSTAREAS.'-'.$rs->campos["idgrupo"]; |
---|
232 | $cadenaXML.='>'; |
---|
233 | $cadenaXML.=SubarbolXML_grupos_tareas($cmd,$idcentro,$rs->campos["idgrupo"]); |
---|
234 | $cadenaXML.='</GRUPOSTAREAS>'; |
---|
235 | $rs->Siguiente(); |
---|
236 | } |
---|
237 | $rs->Cerrar(); |
---|
238 | $cadenaXML.=SubarbolXML_Tareas($cmd,$idcentro,$grupoid); |
---|
239 | return($cadenaXML); |
---|
240 | } |
---|
241 | //________________________________________________________________________________________________________ |
---|
242 | function SubarbolXML_Tareas($cmd,$idcentro,$grupoid){ |
---|
243 | global $LITAMBITO_TAREAS; |
---|
244 | $cadenaXML=""; |
---|
245 | $rs=new Recordset; |
---|
246 | $cmd->texto="SELECT tareas.idtarea,tareas.descripcion FROM tareas WHERE tareas.idcentro=".$idcentro." AND grupoid=".$grupoid; |
---|
247 | $cmd->texto.=" ORDER by tareas.descripcion"; |
---|
248 | $rs->Comando=&$cmd; |
---|
249 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
250 | $rs->Primero(); |
---|
251 | while (!$rs->EOF){ |
---|
252 | $cadenaXML.='<TAREA'; |
---|
253 | // Atributos |
---|
254 | $cadenaXML.=' imagenodo="../images/iconos/tareas.gif"'; |
---|
255 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; |
---|
256 | $cadenaXML.=' nodoid='.$LITAMBITO_TAREAS.'-'.$rs->campos["idtarea"]; |
---|
257 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_TAREAS."'" .')"'; |
---|
258 | $cadenaXML.='>'; |
---|
259 | $cadenaXML.='</TAREA>'; |
---|
260 | $rs->Siguiente(); |
---|
261 | } |
---|
262 | $rs->Cerrar(); |
---|
263 | return($cadenaXML); |
---|
264 | } |
---|
265 | //________________________________________________________________________________________________________ |
---|
266 | function SubarbolXML_grupos_trabajos($cmd,$idcentro,$grupoid){ |
---|
267 | global $AMBITO_GRUPOSTRABAJOS; |
---|
268 | global $LITAMBITO_GRUPOSTRABAJOS; |
---|
269 | $cadenaXML=""; |
---|
270 | $rs=new Recordset; |
---|
271 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSTRABAJOS." ORDER BY nombregrupo"; |
---|
272 | $rs->Comando=&$cmd; |
---|
273 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
274 | $rs->Primero(); |
---|
275 | while (!$rs->EOF){ |
---|
276 | $cadenaXML.='<GRUPOSTRABAJOS'; |
---|
277 | // Atributos |
---|
278 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSTRABAJOS."'" .');"'; |
---|
279 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
280 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
---|
281 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSTRABAJOS.'-'.$rs->campos["idgrupo"]; |
---|
282 | $cadenaXML.='>'; |
---|
283 | $cadenaXML.=SubarbolXML_grupos_trabajos($cmd,$idcentro,$rs->campos["idgrupo"]); |
---|
284 | $cadenaXML.='</GRUPOSTRABAJOS>'; |
---|
285 | $rs->Siguiente(); |
---|
286 | } |
---|
287 | $rs->Cerrar(); |
---|
288 | $cadenaXML.=SubarbolXML_Trabajos($cmd,$idcentro,$grupoid); |
---|
289 | return($cadenaXML); |
---|
290 | } |
---|
291 | //________________________________________________________________________________________________________ |
---|
292 | function SubarbolXML_Trabajos($cmd,$idcentro,$grupoid){ |
---|
293 | global $LITAMBITO_TRABAJOS; |
---|
294 | $cadenaXML=""; |
---|
295 | $rs=new Recordset; |
---|
296 | $cmd->texto="SELECT trabajos.idtrabajo,trabajos.descripcion FROM trabajos WHERE trabajos.idcentro=".$idcentro." AND trabajos.grupoid=".$grupoid;; |
---|
297 | $cmd->texto.=" ORDER by trabajos.descripcion"; |
---|
298 | $rs->Comando=&$cmd; |
---|
299 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
300 | $rs->Primero(); |
---|
301 | while (!$rs->EOF){ |
---|
302 | $cadenaXML.='<TRABAJO'; |
---|
303 | // Atributos |
---|
304 | $cadenaXML.=' imagenodo="../images/iconos/trabajos.gif"'; |
---|
305 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; |
---|
306 | $cadenaXML.=' nodoid='.$LITAMBITO_TRABAJOS.'-'.$rs->campos["idtrabajo"]; |
---|
307 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_TRABAJOS."'" .')"'; |
---|
308 | $cadenaXML.='>'; |
---|
309 | $cadenaXML.='</TRABAJO>'; |
---|
310 | $rs->Siguiente(); |
---|
311 | } |
---|
312 | $rs->Cerrar(); |
---|
313 | return($cadenaXML); |
---|
314 | } |
---|
315 | //________________________________________________________________________________________________________ |
---|
316 | // |
---|
317 | // Mens Contextuales |
---|
318 | //________________________________________________________________________________________________________ |
---|
319 | function CreacontextualXMLProcedimientos(){ |
---|
320 | global $AMBITO_PROCEDIMIENTOS; |
---|
321 | global $AMBITO_GRUPOSPROCEDIMIENTOS; |
---|
322 | global $LITAMBITO_GRUPOSPROCEDIMIENTOS; |
---|
323 | global $LITAMBITO_PROCEDIMIENTOS; |
---|
324 | global $TbMsg; |
---|
325 | |
---|
326 | $layerXML='<MENUCONTEXTUAL'; |
---|
327 | $layerXML.=' idctx="flo_Raiz'.$LITAMBITO_PROCEDIMIENTOS.'"'; |
---|
328 | $layerXML.=' maxanchu=195'; |
---|
329 | $layerXML.=' swimg=1'; |
---|
330 | $layerXML.=' clase="menu_contextual"'; |
---|
331 | $layerXML.='>'; |
---|
332 | |
---|
333 | $layerXML.='<ITEM'; |
---|
334 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSPROCEDIMIENTOS.',' . "'".$LITAMBITO_GRUPOSPROCEDIMIENTOS."'" . ')"'; |
---|
335 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
336 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
337 | $layerXML.='></ITEM>'; |
---|
338 | |
---|
339 | $wLeft=140; |
---|
340 | $wTop=115; |
---|
341 | $wWidth=550; |
---|
342 | $wHeight=250; |
---|
343 | $wpages="../propiedades/propiedades_procedimientos.php"; |
---|
344 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
345 | |
---|
346 | $layerXML.='<ITEM'; |
---|
347 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
348 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
349 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
350 | $layerXML.='></ITEM>'; |
---|
351 | |
---|
352 | $layerXML.='<SEPARADOR>'; |
---|
353 | $layerXML.='</SEPARADOR>'; |
---|
354 | |
---|
355 | $wParam="../gestores/gestor_procedimientos.php"; |
---|
356 | |
---|
357 | $layerXML.='<ITEM'; |
---|
358 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_PROCEDIMIENTOS.')"'; |
---|
359 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
360 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
361 | $layerXML.='></ITEM>'; |
---|
362 | |
---|
363 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
364 | return($layerXML); |
---|
365 | } |
---|
366 | //________________________________________________________________________________________________________ |
---|
367 | function ContextualXMLGruposProcedimientos(){ |
---|
368 | global $AMBITO_PROCEDIMIENTOS; |
---|
369 | global $AMBITO_GRUPOSPROCEDIMIENTOS; |
---|
370 | global $LITAMBITO_GRUPOSPROCEDIMIENTOS; |
---|
371 | global $TbMsg; |
---|
372 | |
---|
373 | $layerXML='<MENUCONTEXTUAL'; |
---|
374 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSPROCEDIMIENTOS.'"'; |
---|
375 | $layerXML.=' maxanchu=200'; |
---|
376 | $layerXML.=' swimg=1'; |
---|
377 | $layerXML.=' clase="menu_contextual"'; |
---|
378 | $layerXML.='>'; |
---|
379 | |
---|
380 | $layerXML.='<ITEM'; |
---|
381 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSPROCEDIMIENTOS.',' ."'".$LITAMBITO_GRUPOSPROCEDIMIENTOS."'". ')"'; |
---|
382 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
383 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
384 | $layerXML.='></ITEM>'; |
---|
385 | |
---|
386 | $wLeft=140; |
---|
387 | $wTop=115; |
---|
388 | $wWidth=550; |
---|
389 | $wHeight=250; |
---|
390 | $wpages="../propiedades/propiedades_procedimientos.php"; |
---|
391 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
392 | |
---|
393 | $layerXML.='<ITEM'; |
---|
394 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
395 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
396 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
397 | $layerXML.='></ITEM>'; |
---|
398 | |
---|
399 | $layerXML.='<SEPARADOR>'; |
---|
400 | $layerXML.='</SEPARADOR>'; |
---|
401 | |
---|
402 | $wParam="../gestores/gestor_procedimientos.php"; |
---|
403 | |
---|
404 | $layerXML.='<ITEM'; |
---|
405 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_PROCEDIMIENTOS.')"'; |
---|
406 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
407 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
408 | $layerXML.='></ITEM>'; |
---|
409 | |
---|
410 | $layerXML.='<SEPARADOR>'; |
---|
411 | $layerXML.='</SEPARADOR>'; |
---|
412 | |
---|
413 | $layerXML.='<ITEM'; |
---|
414 | $layerXML.=' alpulsar="modificar_grupos()"'; |
---|
415 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
---|
416 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
417 | $layerXML.='></ITEM>'; |
---|
418 | |
---|
419 | $layerXML.='<ITEM'; |
---|
420 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
---|
421 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
422 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
423 | $layerXML.='></ITEM>'; |
---|
424 | |
---|
425 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
426 | return($layerXML); |
---|
427 | } |
---|
428 | //________________________________________________________________________________________________________ |
---|
429 | function CreacontextualXMLProcedimiento(){ |
---|
430 | global $EJECUCION_PROCEDIMIENTO; |
---|
431 | global $AMBITO_PROCEDIMIENTOS; |
---|
432 | global $LITAMBITO_PROCEDIMIENTOS; |
---|
433 | global $TbMsg; |
---|
434 | |
---|
435 | $layerXML='<MENUCONTEXTUAL'; |
---|
436 | $layerXML.=' idctx="flo_'.$LITAMBITO_PROCEDIMIENTOS.'"'; |
---|
437 | $layerXML.=' maxanchu=170'; |
---|
438 | $layerXML.=' swimg=1'; |
---|
439 | $layerXML.='>'; |
---|
440 | |
---|
441 | $layerXML.='<ITEM'; |
---|
442 | $layerXML.=' alpulsar="gestionar_procedimientocomando()"'; |
---|
443 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
444 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
445 | $layerXML.='></ITEM>'; |
---|
446 | |
---|
447 | $layerXML.='<ITEM'; |
---|
448 | $layerXML.=' alpulsar="ver_comandosprocedimientos()"'; |
---|
449 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
450 | $layerXML.=' imgitem="../images/iconos/informacion.gif"'; |
---|
451 | $layerXML.='></ITEM>'; |
---|
452 | |
---|
453 | $layerXML.='<SEPARADOR>'; |
---|
454 | $layerXML.='</SEPARADOR>'; |
---|
455 | |
---|
456 | $layerXML.='<ITEM'; |
---|
457 | $layerXML.=' alpulsar="mover('.$AMBITO_PROCEDIMIENTOS.')"'; |
---|
458 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; |
---|
459 | $layerXML.=' textoitem='.$TbMsg[7]; |
---|
460 | $layerXML.='></ITEM>'; |
---|
461 | |
---|
462 | $layerXML.='<SEPARADOR>'; |
---|
463 | $layerXML.='</SEPARADOR>'; |
---|
464 | |
---|
465 | $wLeft=140; |
---|
466 | $wTop=115; |
---|
467 | $wWidth=550; |
---|
468 | $wHeight=250; |
---|
469 | $wpages="../propiedades/propiedades_procedimientos.php"; |
---|
470 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
471 | |
---|
472 | $layerXML.='<ITEM'; |
---|
473 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
474 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
475 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
476 | $layerXML.='></ITEM>'; |
---|
477 | |
---|
478 | $layerXML.='<ITEM'; |
---|
479 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
480 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
481 | $layerXML.=' textoitem='.$TbMsg[9]; |
---|
482 | $layerXML.='></ITEM>'; |
---|
483 | |
---|
484 | $layerXML.='<SEPARADOR>'; |
---|
485 | $layerXML.='</SEPARADOR>'; |
---|
486 | |
---|
487 | $layerXML.='<ITEM'; |
---|
488 | $layerXML.=' alpulsar="insertar_accionmenu('.$EJECUCION_PROCEDIMIENTO.')"'; |
---|
489 | $layerXML.=' imgitem="../images/iconos/menus.gif"'; |
---|
490 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
491 | $layerXML.='></ITEM>'; |
---|
492 | |
---|
493 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
494 | return($layerXML); |
---|
495 | } |
---|
496 | //________________________________________________________________________________________________________ |
---|
497 | function CreacontextualXMLTareas(){ |
---|
498 | global $AMBITO_TAREAS; |
---|
499 | global $AMBITO_GRUPOSTAREAS; |
---|
500 | global $LITAMBITO_GRUPOSTAREAS; |
---|
501 | global $LITAMBITO_TAREAS; |
---|
502 | global $TbMsg; |
---|
503 | |
---|
504 | $layerXML='<MENUCONTEXTUAL'; |
---|
505 | $layerXML.=' idctx="flo_Raiz'.$LITAMBITO_TAREAS.'"'; |
---|
506 | $layerXML.=' maxanchu=150'; |
---|
507 | $layerXML.=' swimg=1'; |
---|
508 | $layerXML.='>'; |
---|
509 | |
---|
510 | $layerXML.='<ITEM'; |
---|
511 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSTAREAS.',' ."'".$LITAMBITO_GRUPOSTAREAS."'". ')"'; |
---|
512 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
513 | $layerXML.=' textoitem='.$TbMsg[11]; |
---|
514 | $layerXML.='></ITEM>'; |
---|
515 | |
---|
516 | $wLeft=170; |
---|
517 | $wTop=150; |
---|
518 | $wWidth=480; |
---|
519 | $wHeight=270; |
---|
520 | $wpages="../propiedades/propiedades_tareas.php"; |
---|
521 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
522 | |
---|
523 | $layerXML.='<ITEM'; |
---|
524 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
525 | $layerXML.=' imgitem="../images/iconos/tareas.gif"'; |
---|
526 | $layerXML.=' textoitem='.$TbMsg[12]; |
---|
527 | $layerXML.='></ITEM>'; |
---|
528 | |
---|
529 | $layerXML.='<SEPARADOR>'; |
---|
530 | $layerXML.='</SEPARADOR>'; |
---|
531 | |
---|
532 | $wParam="../gestores/gestor_tareas.php"; |
---|
533 | |
---|
534 | $layerXML.='<ITEM'; |
---|
535 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_TAREAS.')"'; |
---|
536 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
537 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
538 | $layerXML.='></ITEM>'; |
---|
539 | |
---|
540 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
541 | return($layerXML); |
---|
542 | } |
---|
543 | //________________________________________________________________________________________________________ |
---|
544 | function ContextualXMLGruposTareas(){ |
---|
545 | global $AMBITO_TAREAS; |
---|
546 | global $AMBITO_GRUPOSTAREAS; |
---|
547 | global $LITAMBITO_GRUPOSTAREAS; |
---|
548 | global $TbMsg; |
---|
549 | |
---|
550 | $layerXML='<MENUCONTEXTUAL'; |
---|
551 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSTAREAS.'"'; |
---|
552 | $layerXML.=' maxanchu=160'; |
---|
553 | $layerXML.=' swimg=1'; |
---|
554 | $layerXML.=' clase="menu_contextual"'; |
---|
555 | $layerXML.='>'; |
---|
556 | |
---|
557 | $layerXML.='<ITEM'; |
---|
558 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSTAREAS.',' ."'".$LITAMBITO_GRUPOSTAREAS."'". ')"'; |
---|
559 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
560 | $layerXML.=' textoitem='.$TbMsg[11]; |
---|
561 | $layerXML.='></ITEM>'; |
---|
562 | |
---|
563 | $wLeft=170; |
---|
564 | $wTop=150; |
---|
565 | $wWidth=480; |
---|
566 | $wHeight=270; |
---|
567 | $wpages="../propiedades/propiedades_tareas.php"; |
---|
568 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
569 | |
---|
570 | $layerXML.='<ITEM'; |
---|
571 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
572 | $layerXML.=' imgitem="../images/iconos/tareas.gif"'; |
---|
573 | $layerXML.=' textoitem='.$TbMsg[12]; |
---|
574 | $layerXML.='></ITEM>'; |
---|
575 | |
---|
576 | $layerXML.='<SEPARADOR>'; |
---|
577 | $layerXML.='</SEPARADOR>'; |
---|
578 | |
---|
579 | $wParam="../gestores/gestor_tareas.php"; |
---|
580 | |
---|
581 | $layerXML.='<ITEM'; |
---|
582 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_TAREAS.')"'; |
---|
583 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
584 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
585 | $layerXML.='></ITEM>'; |
---|
586 | |
---|
587 | $layerXML.='<SEPARADOR>'; |
---|
588 | $layerXML.='</SEPARADOR>'; |
---|
589 | |
---|
590 | $layerXML.='<ITEM'; |
---|
591 | $layerXML.=' alpulsar="modificar_grupos()"'; |
---|
592 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
---|
593 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
594 | $layerXML.='></ITEM>'; |
---|
595 | |
---|
596 | $layerXML.='<ITEM'; |
---|
597 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
---|
598 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
599 | $layerXML.=' textoitem='.$TbMsg[14]; |
---|
600 | $layerXML.='></ITEM>'; |
---|
601 | |
---|
602 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
603 | return($layerXML); |
---|
604 | } |
---|
605 | //________________________________________________________________________________________________________ |
---|
606 | function CreacontextualXMLTarea(){ |
---|
607 | global $EJECUCION_TAREA; |
---|
608 | global $AMBITO_TAREAS; |
---|
609 | global $LITAMBITO_TAREAS; |
---|
610 | global $TbMsg; |
---|
611 | |
---|
612 | $layerXML='<MENUCONTEXTUAL'; |
---|
613 | $layerXML.=' idctx="flo_'.$LITAMBITO_TAREAS.'"'; |
---|
614 | $layerXML.=' maxanchu=150'; |
---|
615 | $layerXML.=' swimg=1'; |
---|
616 | $layerXML.='>'; |
---|
617 | |
---|
618 | $layerXML.='<ITEM'; |
---|
619 | $layerXML.=' alpulsar="ejecutar_tareas()"'; |
---|
620 | $layerXML.=' imgitem="../images/iconos/tareas.gif"'; |
---|
621 | $layerXML.=' textoitem='.$TbMsg[15]; |
---|
622 | $layerXML.='></ITEM>'; |
---|
623 | |
---|
624 | $layerXML.='<ITEM'; |
---|
625 | $layerXML.=' alpulsar="programacion('.$EJECUCION_TAREA.')"'; |
---|
626 | $layerXML.=' imgitem="../images/iconos/reloj.gif"'; |
---|
627 | $layerXML.=' textoitem='.$TbMsg[16]; |
---|
628 | $layerXML.='></ITEM>'; |
---|
629 | |
---|
630 | $layerXML.='<SEPARADOR>'; |
---|
631 | $layerXML.='</SEPARADOR>'; |
---|
632 | |
---|
633 | $layerXML.='<ITEM'; |
---|
634 | $layerXML.=' alpulsar="gestionar_tareacomando()"'; |
---|
635 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
636 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
637 | $layerXML.='></ITEM>'; |
---|
638 | |
---|
639 | $layerXML.='<ITEM'; |
---|
640 | $layerXML.=' alpulsar="ver_comandostareas()"'; |
---|
641 | $layerXML.=' textoitem='.$TbMsg[17]; |
---|
642 | $layerXML.=' imgitem="../images/iconos/informacion.gif"'; |
---|
643 | $layerXML.='></ITEM>'; |
---|
644 | |
---|
645 | $layerXML.='<SEPARADOR>'; |
---|
646 | $layerXML.='</SEPARADOR>'; |
---|
647 | |
---|
648 | $layerXML.='<ITEM'; |
---|
649 | $layerXML.=' alpulsar="mover('.$AMBITO_TAREAS.')"'; |
---|
650 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; |
---|
651 | $layerXML.=' textoitem='.$TbMsg[18]; |
---|
652 | $layerXML.='></ITEM>'; |
---|
653 | |
---|
654 | $layerXML.='<SEPARADOR>'; |
---|
655 | $layerXML.='</SEPARADOR>'; |
---|
656 | |
---|
657 | $wLeft=170; |
---|
658 | $wTop=150; |
---|
659 | $wWidth=480; |
---|
660 | $wHeight=270; |
---|
661 | $wpages="../propiedades/propiedades_tareas.php"; |
---|
662 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
663 | |
---|
664 | $layerXML.='<ITEM'; |
---|
665 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
666 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
667 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
668 | $layerXML.='></ITEM>'; |
---|
669 | |
---|
670 | $layerXML.='<ITEM'; |
---|
671 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
672 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
673 | $layerXML.=' textoitem='.$TbMsg[19]; |
---|
674 | $layerXML.='></ITEM>'; |
---|
675 | |
---|
676 | $layerXML.='<SEPARADOR>'; |
---|
677 | $layerXML.='</SEPARADOR>'; |
---|
678 | |
---|
679 | $layerXML.='<ITEM'; |
---|
680 | $layerXML.=' alpulsar="insertar_accionmenu('.$EJECUCION_TAREA.')"'; |
---|
681 | $layerXML.=' imgitem="../images/iconos/menus.gif"'; |
---|
682 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
683 | $layerXML.='></ITEM>'; |
---|
684 | |
---|
685 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
686 | return($layerXML); |
---|
687 | } |
---|
688 | //________________________________________________________________________________________________________ |
---|
689 | function CreacontextualXMLTrabajos(){ |
---|
690 | global $AMBITO_TRABAJOS; |
---|
691 | global $AMBITO_GRUPOSTRABAJOS; |
---|
692 | global $LITAMBITO_GRUPOSTRABAJOS; |
---|
693 | global $LITAMBITO_TRABAJOS; |
---|
694 | global $TbMsg; |
---|
695 | |
---|
696 | $layerXML='<MENUCONTEXTUAL'; |
---|
697 | $layerXML.=' idctx="flo_Raiz'.$LITAMBITO_TRABAJOS.'"'; |
---|
698 | $layerXML.=' maxanchu=160'; |
---|
699 | $layerXML.=' swimg=1'; |
---|
700 | $layerXML.='>'; |
---|
701 | |
---|
702 | $layerXML.='<ITEM'; |
---|
703 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSTRABAJOS.',' ."'".$LITAMBITO_GRUPOSTRABAJOS."'". ')"'; |
---|
704 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
705 | $layerXML.=' textoitem='.$TbMsg[20]; |
---|
706 | $layerXML.='></ITEM>'; |
---|
707 | |
---|
708 | $wLeft=170; |
---|
709 | $wTop=150; |
---|
710 | $wWidth=480; |
---|
711 | $wHeight=250; |
---|
712 | $wpages="../propiedades/propiedades_trabajos.php"; |
---|
713 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
714 | |
---|
715 | $layerXML.='<ITEM'; |
---|
716 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
717 | $layerXML.=' imgitem="../images/iconos/trabajos.gif"'; |
---|
718 | $layerXML.=' textoitem='.$TbMsg[21]; |
---|
719 | $layerXML.='></ITEM>'; |
---|
720 | |
---|
721 | $layerXML.='<SEPARADOR>'; |
---|
722 | $layerXML.='</SEPARADOR>'; |
---|
723 | |
---|
724 | $wParam="../gestores/gestor_trabajos.php"; |
---|
725 | |
---|
726 | $layerXML.='<ITEM'; |
---|
727 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_TRABAJOS.')"'; |
---|
728 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
729 | $layerXML.=' textoitem='.$TbMsg[22]; |
---|
730 | $layerXML.='></ITEM>'; |
---|
731 | |
---|
732 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
733 | return($layerXML); |
---|
734 | } |
---|
735 | //________________________________________________________________________________________________________ |
---|
736 | function ContextualXMLGruposTrabajos(){ |
---|
737 | global $AMBITO_TRABAJOS; |
---|
738 | global $AMBITO_GRUPOSTRABAJOS; |
---|
739 | global $LITAMBITO_GRUPOSTRABAJOS; |
---|
740 | global $TbMsg; |
---|
741 | |
---|
742 | $layerXML='<MENUCONTEXTUAL'; |
---|
743 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSTRABAJOS.'"'; |
---|
744 | $layerXML.=' maxanchu=170'; |
---|
745 | $layerXML.=' swimg=1'; |
---|
746 | $layerXML.=' clase="menu_contextual"'; |
---|
747 | $layerXML.='>'; |
---|
748 | |
---|
749 | $layerXML.='<ITEM'; |
---|
750 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSTRABAJOS.',' ."'".$LITAMBITO_GRUPOSTRABAJOS."'". ')"'; |
---|
751 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
752 | $layerXML.=' textoitem='.$TbMsg[20]; |
---|
753 | $layerXML.='></ITEM>'; |
---|
754 | |
---|
755 | $wLeft=170; |
---|
756 | $wTop=150; |
---|
757 | $wWidth=480; |
---|
758 | $wHeight=250; |
---|
759 | $wpages="../propiedades/propiedades_trabajos.php"; |
---|
760 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
761 | |
---|
762 | $layerXML.='<ITEM'; |
---|
763 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
764 | $layerXML.=' imgitem="../images/iconos/trabajos.gif"'; |
---|
765 | $layerXML.=' textoitem='.$TbMsg[21]; |
---|
766 | $layerXML.='></ITEM>'; |
---|
767 | |
---|
768 | $layerXML.='<SEPARADOR>'; |
---|
769 | $layerXML.='</SEPARADOR>'; |
---|
770 | |
---|
771 | $wParam="../gestores/gestor_trabajos.php"; |
---|
772 | |
---|
773 | $layerXML.='<ITEM'; |
---|
774 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_TRABAJOS.')"'; |
---|
775 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
776 | $layerXML.=' textoitem='.$TbMsg[22]; |
---|
777 | $layerXML.='></ITEM>'; |
---|
778 | |
---|
779 | $layerXML.='<SEPARADOR>'; |
---|
780 | $layerXML.='</SEPARADOR>'; |
---|
781 | |
---|
782 | $layerXML.='<ITEM'; |
---|
783 | $layerXML.=' alpulsar="modificar_grupos()"'; |
---|
784 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
---|
785 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
786 | $layerXML.='></ITEM>'; |
---|
787 | |
---|
788 | $layerXML.='<ITEM'; |
---|
789 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
---|
790 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
791 | $layerXML.=' textoitem='.$TbMsg[23]; |
---|
792 | $layerXML.='></ITEM>'; |
---|
793 | |
---|
794 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
795 | return($layerXML); |
---|
796 | } |
---|
797 | //________________________________________________________________________________________________________ |
---|
798 | function CreacontextualXMLTrabajo(){ |
---|
799 | global $EJECUCION_TRABAJO; |
---|
800 | global $AMBITO_TRABAJOS; |
---|
801 | global $LITAMBITO_TRABAJOS; |
---|
802 | global $TbMsg; |
---|
803 | |
---|
804 | $layerXML='<MENUCONTEXTUAL'; |
---|
805 | $layerXML.=' idctx="flo_'.$LITAMBITO_TRABAJOS.'"'; |
---|
806 | $layerXML.=' maxanchu=140'; |
---|
807 | $layerXML.=' swimg=1'; |
---|
808 | $layerXML.='>'; |
---|
809 | |
---|
810 | $layerXML.='<ITEM'; |
---|
811 | $layerXML.=' alpulsar="ejecutar_trabajos()"'; |
---|
812 | $layerXML.=' imgitem="../images/iconos/trabajos.gif"'; |
---|
813 | $layerXML.=' textoitem='.$TbMsg[24]; |
---|
814 | $layerXML.='></ITEM>'; |
---|
815 | |
---|
816 | $layerXML.='<ITEM'; |
---|
817 | $layerXML.=' alpulsar="programacion('.$EJECUCION_TRABAJO.')"'; |
---|
818 | $layerXML.=' imgitem="../images/iconos/reloj.gif"'; |
---|
819 | $layerXML.=' textoitem='.$TbMsg[16]; |
---|
820 | $layerXML.='></ITEM>'; |
---|
821 | |
---|
822 | $layerXML.='<SEPARADOR>'; |
---|
823 | $layerXML.='</SEPARADOR>'; |
---|
824 | |
---|
825 | $layerXML.='<ITEM'; |
---|
826 | $layerXML.=' alpulsar="insertar_trabajotarea()"'; |
---|
827 | $layerXML.=' imgitem="../images/iconos/tareas.gif"'; |
---|
828 | $layerXML.=' textoitem='.$TbMsg[25]; |
---|
829 | $layerXML.='></ITEM>'; |
---|
830 | |
---|
831 | $layerXML.='<ITEM'; |
---|
832 | $layerXML.=' alpulsar="ver_tareastrabajos()"'; |
---|
833 | $layerXML.=' textoitem='.$TbMsg[26]; |
---|
834 | $layerXML.=' imgitem="../images/iconos/informacion.gif"'; |
---|
835 | $layerXML.='></ITEM>'; |
---|
836 | |
---|
837 | $layerXML.='<SEPARADOR>'; |
---|
838 | $layerXML.='</SEPARADOR>'; |
---|
839 | |
---|
840 | $layerXML.='<ITEM'; |
---|
841 | $layerXML.=' alpulsar="mover('.$AMBITO_TRABAJOS.')"'; |
---|
842 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; |
---|
843 | $layerXML.=' textoitem='.$TbMsg[27]; |
---|
844 | $layerXML.='></ITEM>'; |
---|
845 | |
---|
846 | $layerXML.='<SEPARADOR>'; |
---|
847 | $layerXML.='</SEPARADOR>'; |
---|
848 | |
---|
849 | $wLeft=170; |
---|
850 | $wTop=150; |
---|
851 | $wWidth=480; |
---|
852 | $wHeight=250; |
---|
853 | $wpages="../propiedades/propiedades_trabajos.php"; |
---|
854 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
855 | |
---|
856 | $layerXML.='<ITEM'; |
---|
857 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
858 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
859 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
860 | $layerXML.='></ITEM>'; |
---|
861 | |
---|
862 | $layerXML.='<ITEM'; |
---|
863 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
864 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
865 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
866 | $layerXML.='></ITEM>'; |
---|
867 | |
---|
868 | $layerXML.='<SEPARADOR>'; |
---|
869 | $layerXML.='</SEPARADOR>'; |
---|
870 | |
---|
871 | $layerXML.='<ITEM'; |
---|
872 | $layerXML.=' alpulsar="insertar_accionmenu('.$EJECUCION_TRABAJO.')"'; |
---|
873 | $layerXML.=' imgitem="../images/iconos/menus.gif"'; |
---|
874 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
875 | $layerXML.='></ITEM>'; |
---|
876 | |
---|
877 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
878 | return($layerXML); |
---|
879 | } |
---|
880 | ?> |
---|