| [043e67d] | 1 | <?php |
|---|
| [3ec149c] | 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: Agosto-2010 |
|---|
| 7 | // Nombre del fichero: acciones.php |
|---|
| 8 | // Descripción : |
|---|
| 9 | // Administra procedimientos,y tareas 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ágenes 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 | <SCRIPT language="javascript" src="../clases/jscripts/HttpLib.js"></SCRIPT> |
|---|
| [043e67d] | 44 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comunes_'.$idioma.'.js"></SCRIPT>'?> |
|---|
| 45 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/acciones_'.$idioma.'.js"></SCRIPT>'?> |
|---|
| [3ec149c] | 46 | </HEAD> |
|---|
| 47 | <BODY OnContextMenu="return false"> |
|---|
| [043e67d] | 48 | <?php |
|---|
| [3ec149c] | 49 | //________________________________________________________________________________________________________ |
|---|
| 50 | echo $arbol->CreaArbolVistaXML(); // Crea árbol (HTML) a partir del XML |
|---|
| 51 | $flotante=new MenuContextual(); // Crea objeto MenuContextual |
|---|
| 52 | |
|---|
| 53 | $XMLcontextual=CreacontextualXMLComandos(); // comandos |
|---|
| 54 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 55 | $XMLcontextual=CreacontextualXMLComando(); // comando |
|---|
| 56 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 57 | |
|---|
| 58 | // Crea contextual de los procedimientos |
|---|
| 59 | $XMLcontextual=CreacontextualXMLProcedimientos(); |
|---|
| 60 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 61 | $XMLcontextual=ContextualXMLGruposProcedimientos(); // Grupo de Procedimientos |
|---|
| 62 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 63 | $XMLcontextual=CreacontextualXMLProcedimiento(); // Procedimientos |
|---|
| 64 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 65 | |
|---|
| 66 | // Crea contextual de las tareas |
|---|
| 67 | $XMLcontextual=CreacontextualXMLTareas(); |
|---|
| 68 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 69 | $XMLcontextual=ContextualXMLGruposTareas(); // Grupo de Tareas |
|---|
| 70 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 71 | $XMLcontextual=CreacontextualXMLTarea(); // Tareas |
|---|
| 72 | echo $flotante->CreaMenuContextual($XMLcontextual); |
|---|
| 73 | |
|---|
| 74 | ?> |
|---|
| 75 | </BODY> |
|---|
| 76 | </HTML> |
|---|
| [043e67d] | 77 | <?php |
|---|
| [3ec149c] | 78 | // ******************************************************************************************************** |
|---|
| 79 | // Devuelve una cadena con formato XML con toda la informaci� de las acciones registradas en un Centro concreto |
|---|
| 80 | // Parametros: |
|---|
| 81 | // - cmd:Una comando ya operativo ( con conexiónabierta) |
|---|
| 82 | // - idcentro: El identificador del centro |
|---|
| 83 | //________________________________________________________________________________________________________ |
|---|
| 84 | function CreaArbol($cmd,$idcentro) |
|---|
| 85 | { |
|---|
| 86 | global $TbMsg; |
|---|
| 87 | global $LITAMBITO_COMANDOS; |
|---|
| 88 | global $LITAMBITO_PROCEDIMIENTOS; |
|---|
| 89 | global $LITAMBITO_TAREAS; |
|---|
| 90 | |
|---|
| 91 | $cadenaXML='<ACCIONES'; |
|---|
| 92 | // Atributos |
|---|
| 93 | $cadenaXML.=' imagenodo="../images/iconos/acciones.gif"'; |
|---|
| 94 | $cadenaXML.=' infonodo="'.$TbMsg[33].'"'; |
|---|
| 95 | $cadenaXML.=' nodoid="RaizAcciones"'; |
|---|
| 96 | $cadenaXML.='>'; |
|---|
| 97 | |
|---|
| 98 | $cadenaXML.='<COMANDOS'; |
|---|
| 99 | // Atributos |
|---|
| 100 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 101 | $cadenaXML.=' infonodo="'.$TbMsg[30].'"'; |
|---|
| 102 | $cadenaXML.=' nodoid="RaizComandos"'; |
|---|
| 103 | //$cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_Raiz".$LITAMBITO_COMANDOS."'" .');"'; |
|---|
| 104 | $cadenaXML.='>'; |
|---|
| 105 | $cadenaXML.=SubarbolXML_Comandos($cmd); |
|---|
| 106 | $cadenaXML.='</COMANDOS>'; |
|---|
| 107 | |
|---|
| 108 | $cadenaXML.='<PROCEDIMIENTOS'; |
|---|
| 109 | // Atributos |
|---|
| 110 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 111 | $cadenaXML.=' infonodo="'.$TbMsg[29].'"'; |
|---|
| 112 | $cadenaXML.=' nodoid=Raizpro'.$LITAMBITO_PROCEDIMIENTOS; |
|---|
| 113 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_Raiz".$LITAMBITO_PROCEDIMIENTOS."'".')"'; |
|---|
| 114 | $cadenaXML.='>'; |
|---|
| 115 | $cadenaXML.=SubarbolXML_grupos_procedimientos($cmd,$idcentro,0); |
|---|
| 116 | $cadenaXML.='</PROCEDIMIENTOS>'; |
|---|
| 117 | |
|---|
| 118 | $cadenaXML.='<TAREAS'; |
|---|
| 119 | // Atributos |
|---|
| 120 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 121 | $cadenaXML.=' infonodo="'.$TbMsg[31].'"'; |
|---|
| 122 | $cadenaXML.=' nodoid=Raiz'.$LITAMBITO_TAREAS; |
|---|
| 123 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_Raiz".$LITAMBITO_TAREAS."'".')"'; |
|---|
| 124 | $cadenaXML.='>'; |
|---|
| 125 | $cadenaXML.=SubarbolXML_grupos_tareas($cmd,$idcentro,0); |
|---|
| 126 | $cadenaXML.='</TAREAS>'; |
|---|
| 127 | |
|---|
| 128 | $cadenaXML.='</ACCIONES>'; |
|---|
| 129 | return($cadenaXML); |
|---|
| 130 | } |
|---|
| 131 | //________________________________________________________________________________________________________ |
|---|
| 132 | function SubarbolXML_Comandos($cmd) |
|---|
| 133 | { |
|---|
| 134 | global $LITAMBITO_COMANDOS; |
|---|
| 135 | $cadenaXML=""; |
|---|
| 136 | $rs=new Recordset; |
|---|
| 137 | $cmd->texto="SELECT idcomando,descripcion,urlimg FROM comandos Where activo=1 order by descripcion"; |
|---|
| 138 | $rs->Comando=&$cmd; |
|---|
| 139 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 140 | $rs->Primero(); |
|---|
| 141 | while (!$rs->EOF){ |
|---|
| 142 | $cadenaXML.='<COMANDO'; |
|---|
| 143 | // Atributos |
|---|
| 144 | //$cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_COMANDOS."'" .');"'; |
|---|
| 145 | $cadenaXML.=' imagenodo="../images/iconos/comandos.gif"'; |
|---|
| 146 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; |
|---|
| 147 | $cadenaXML.=' nodoid=comando-'.$rs->campos["idcomando"]; |
|---|
| 148 | $cadenaXML.='>'; |
|---|
| 149 | $cadenaXML.='</COMANDO>'; |
|---|
| 150 | $rs->Siguiente(); |
|---|
| 151 | } |
|---|
| 152 | $rs->Cerrar(); |
|---|
| 153 | return($cadenaXML); |
|---|
| 154 | } |
|---|
| 155 | //________________________________________________________________________________________________________ |
|---|
| 156 | function SubarbolXML_grupos_procedimientos($cmd,$idcentro,$grupoid){ |
|---|
| 157 | global $AMBITO_GRUPOSPROCEDIMIENTOS; |
|---|
| 158 | global $LITAMBITO_GRUPOSPROCEDIMIENTOS; |
|---|
| 159 | $cadenaXML=""; |
|---|
| 160 | $rs=new Recordset; |
|---|
| 161 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos |
|---|
| 162 | WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSPROCEDIMIENTOS." |
|---|
| 163 | ORDER BY nombregrupo"; |
|---|
| 164 | $rs->Comando=&$cmd; |
|---|
| 165 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 166 | $rs->Primero(); |
|---|
| 167 | while (!$rs->EOF){ |
|---|
| 168 | $cadenaXML.='<GRUPOSPROCEDIMIENTOS'; |
|---|
| 169 | // Atributos |
|---|
| 170 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSPROCEDIMIENTOS."'" .');"'; |
|---|
| 171 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 172 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
|---|
| 173 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSPROCEDIMIENTOS.'-'.$rs->campos["idgrupo"]; |
|---|
| 174 | $cadenaXML.='>'; |
|---|
| 175 | $cadenaXML.=SubarbolXML_grupos_procedimientos($cmd,$idcentro,$rs->campos["idgrupo"]); |
|---|
| 176 | $cadenaXML.='</GRUPOSPROCEDIMIENTOS>'; |
|---|
| 177 | $rs->Siguiente(); |
|---|
| 178 | } |
|---|
| 179 | $rs->Cerrar(); |
|---|
| 180 | $cadenaXML.=SubarbolXML_Procedimientos($cmd,$idcentro,$grupoid); |
|---|
| 181 | return($cadenaXML); |
|---|
| 182 | } |
|---|
| 183 | //________________________________________________________________________________________________________ |
|---|
| 184 | function SubarbolXML_Procedimientos($cmd,$idcentro,$grupoid){ |
|---|
| 185 | global $LITAMBITO_PROCEDIMIENTOS; |
|---|
| 186 | $cadenaXML=""; |
|---|
| 187 | $rs=new Recordset; |
|---|
| 188 | $cmd->texto="SELECT idprocedimiento,descripcion FROM procedimientos |
|---|
| 189 | WHERE idcentro=".$idcentro." AND grupoid=".$grupoid." |
|---|
| 190 | ORDER BY descripcion"; |
|---|
| 191 | $rs->Comando=&$cmd; |
|---|
| 192 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 193 | $rs->Primero(); |
|---|
| 194 | while (!$rs->EOF){ |
|---|
| 195 | $cadenaXML.='<PROCEDIMIENTO'; |
|---|
| 196 | // Atributos |
|---|
| 197 | $cadenaXML.=' imagenodo="../images/iconos/procedimiento.gif"'; |
|---|
| 198 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; |
|---|
| 199 | $cadenaXML.=' nodoid='.$LITAMBITO_PROCEDIMIENTOS.'-'.$rs->campos["idprocedimiento"]; |
|---|
| 200 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_PROCEDIMIENTOS."'" .')"'; |
|---|
| 201 | $cadenaXML.='>'; |
|---|
| 202 | $cadenaXML.='</PROCEDIMIENTO>'; |
|---|
| 203 | $rs->Siguiente(); |
|---|
| 204 | } |
|---|
| 205 | $rs->Cerrar(); |
|---|
| 206 | return($cadenaXML); |
|---|
| 207 | } |
|---|
| 208 | //________________________________________________________________________________________________________ |
|---|
| 209 | function SubarbolXML_grupos_tareas($cmd,$idcentro,$grupoid){ |
|---|
| 210 | global $AMBITO_GRUPOSTAREAS; |
|---|
| 211 | global $LITAMBITO_GRUPOSTAREAS; |
|---|
| 212 | $cadenaXML=""; |
|---|
| 213 | $rs=new Recordset; |
|---|
| 214 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid |
|---|
| 215 | FROM grupos |
|---|
| 216 | WHERE grupoid=".$grupoid." |
|---|
| 217 | AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSTAREAS." |
|---|
| 218 | ORDER BY nombregrupo"; |
|---|
| 219 | $rs->Comando=&$cmd; |
|---|
| 220 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 221 | $rs->Primero(); |
|---|
| 222 | while (!$rs->EOF){ |
|---|
| 223 | $cadenaXML.='<GRUPOSTAREAS'; |
|---|
| 224 | // Atributos |
|---|
| 225 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSTAREAS."'" .');"'; |
|---|
| 226 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
|---|
| 227 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
|---|
| 228 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSTAREAS.'-'.$rs->campos["idgrupo"]; |
|---|
| 229 | $cadenaXML.='>'; |
|---|
| 230 | $cadenaXML.=SubarbolXML_grupos_tareas($cmd,$idcentro,$rs->campos["idgrupo"]); |
|---|
| 231 | $cadenaXML.='</GRUPOSTAREAS>'; |
|---|
| 232 | $rs->Siguiente(); |
|---|
| 233 | } |
|---|
| 234 | $rs->Cerrar(); |
|---|
| 235 | $cadenaXML.=SubarbolXML_Tareas($cmd,$idcentro,$grupoid); |
|---|
| 236 | return($cadenaXML); |
|---|
| 237 | } |
|---|
| 238 | //________________________________________________________________________________________________________ |
|---|
| 239 | function SubarbolXML_Tareas($cmd,$idcentro,$grupoid) |
|---|
| 240 | { |
|---|
| 241 | global $LITAMBITO_TAREAS; |
|---|
| 242 | |
|---|
| 243 | $cadenaXML=""; |
|---|
| 244 | $rs=new Recordset; |
|---|
| 245 | $cmd->texto="SELECT tareas.idtarea,tareas.descripcion,tareas.ambito |
|---|
| 246 | FROM tareas |
|---|
| 247 | WHERE tareas.idcentro=".$idcentro." |
|---|
| 248 | AND grupoid=".$grupoid." |
|---|
| 249 | ORDER by tareas.descripcion"; |
|---|
| 250 | $rs->Comando=&$cmd; |
|---|
| 251 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
|---|
| 252 | $rs->Primero(); |
|---|
| 253 | while (!$rs->EOF){ |
|---|
| 254 | $cadenaXML.='<TAREA'; |
|---|
| 255 | // Atributos |
|---|
| 256 | $cadenaXML.=' imagenodo="../images/iconos/tareas.gif"'; |
|---|
| 257 | $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; |
|---|
| 258 | $cadenaXML.=' nodoid='.$LITAMBITO_TAREAS.'-'.$rs->campos["idtarea"]; |
|---|
| 259 | $cadenaXML.=' nodovalue="'.$rs->campos["ambito"].'"'; |
|---|
| 260 | |
|---|
| 261 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_TAREAS."'" .')"'; |
|---|
| 262 | $cadenaXML.='>'; |
|---|
| 263 | $cadenaXML.='</TAREA>'; |
|---|
| 264 | $rs->Siguiente(); |
|---|
| 265 | } |
|---|
| 266 | $rs->Cerrar(); |
|---|
| 267 | return($cadenaXML); |
|---|
| 268 | } |
|---|
| 269 | //________________________________________________________________________________________________________ |
|---|
| 270 | // |
|---|
| 271 | // Mens Contextuales |
|---|
| 272 | //________________________________________________________________________________________________________ |
|---|
| 273 | function CreacontextualXMLComandos() |
|---|
| 274 | { |
|---|
| 275 | global $LITAMBITO_COMANDOS; |
|---|
| 276 | global $EJECUCION_COMANDO; |
|---|
| 277 | global $TbMsg; |
|---|
| 278 | |
|---|
| 279 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 280 | $layerXML.=' idctx="flo_Raiz'.$LITAMBITO_COMANDOS.'"'; |
|---|
| 281 | $layerXML.=' maxanchu=165'; |
|---|
| 282 | $layerXML.=' swimg=1'; |
|---|
| 283 | $layerXML.=' clase="menu_contextual"'; |
|---|
| 284 | $layerXML.='>'; |
|---|
| 285 | |
|---|
| 286 | $layerXML.='<ITEM'; |
|---|
| 287 | $layerXML.=' alpulsar="programacion('.$EJECUCION_COMANDO.')"'; |
|---|
| 288 | $layerXML.=' imgitem="../images/iconos/reloj.gif"'; |
|---|
| 289 | $layerXML.=' textoitem="'.$TbMsg[21].'"'; |
|---|
| 290 | $layerXML.='></ITEM>'; |
|---|
| 291 | |
|---|
| 292 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 293 | return($layerXML); |
|---|
| 294 | } |
|---|
| 295 | //________________________________________________________________________________________________________ |
|---|
| 296 | function CreacontextualXMLComando() |
|---|
| 297 | { |
|---|
| 298 | global $LITAMBITO_COMANDOS; |
|---|
| 299 | global $EJECUCION_COMANDO; |
|---|
| 300 | global $TbMsg; |
|---|
| 301 | |
|---|
| 302 | $layerXML='<MENUCONTEXTUAL'; |
|---|
| 303 | $layerXML.=' idctx="flo_'.$LITAMBITO_COMANDOS.'"'; |
|---|
| 304 | $layerXML.=' maxanchu=120'; |
|---|
| 305 | $layerXML.=' swimg=1'; |
|---|
| 306 | $layerXML.=' clase="menu_contextual"'; |
|---|
| 307 | $layerXML.='>'; |
|---|
| 308 | |
|---|
| 309 | $layerXML.='<ITEM'; |
|---|
| 310 | $layerXML.=' alpulsar="programacion('.$EJECUCION_COMANDO.')"'; |
|---|
| 311 | $layerXML.=' imgitem="../images/iconos/reloj.gif"'; |
|---|
| 312 | $layerXML.=' textoitem="'.$TbMsg[21].'"'; |
|---|
| 313 | $layerXML.='></ITEM>'; |
|---|
| 314 | |
|---|
| 315 | $layerXML.='</MENUCONTEXTUAL>'; |
|---|
| 316 | return($layerXML); |
|---|
| 317 | } |
|---|
| 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="informacion_acciones('.$AMBITO_PROCEDIMIENTOS.')"'; |
|---|
| 443 | $layerXML.=' imgitem="../images/iconos/informacion.gif"'; |
|---|
| 444 | $layerXML.=' textoitem='.$TbMsg[6]; |
|---|
| 445 | $layerXML.='></ITEM>'; |
|---|
| 446 | |
|---|
| 447 | $layerXML.='<ITEM'; |
|---|
| 448 | $layerXML.=' alpulsar="inclusion_acciones('.$AMBITO_PROCEDIMIENTOS.')"'; |
|---|
| 449 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
|---|
| 450 | $layerXML.=' textoitem="'.$TbMsg[20].'"'; |
|---|
| 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('.$EJECUCION_TAREA.')"'; |
|---|
| 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="informacion_acciones('.$AMBITO_TAREAS.')"'; |
|---|
| 635 | $layerXML.=' imgitem="../images/iconos/informacion.gif"'; |
|---|
| 636 | $layerXML.=' textoitem='.$TbMsg[17]; |
|---|
| 637 | $layerXML.='></ITEM>'; |
|---|
| 638 | |
|---|
| 639 | $layerXML.='<ITEM'; |
|---|
| 640 | $layerXML.=' alpulsar="inclusion_acciones('.$AMBITO_TAREAS.')"'; |
|---|
| 641 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
|---|
| 642 | $layerXML.=' textoitem="'.$TbMsg[20].'"'; |
|---|
| 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 | ?> |
|---|