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