source: admin/ogAdmSources/ogAdmWebCon/images/L_Iconos.js @ e42f34e

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since e42f34e was 8964f9b, checked in by ramon <ramongomez@…>, 16 years ago

Resstructuración de trunk.

git-svn-id: https://opengnsys.es/svn/trunk@390 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 2.4 KB
Line 
1// *************************************************************************************************************************************************
2//      Libreria de scripts de Javascript
3// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
4// Fecha Creación:2003-2004
5// Fecha Última modificación: Noviembre-2005
6// Nombre del fichero: L_Iconos.js
7// Descripción :
8//              Este fichero implementa las funciones javascript del fichero L_Iconos.php
9// *************************************************************************************************************************************************
10// Opciones
11var Menu=0
12var Insertar=1
13var Eliminar=2
14var Modificar=3
15var Consultar=4
16
17// Acciones
18var Sin_accion=0
19var Insertar_registro=1
20var Borrar_registro=2
21var Modificar_registro=3
22var Leer_registro=4
23 
24var currentImg=null;
25
26//-----------------------------------------------------------------------------------------------------
27function consultar(){
28        reset_contextual(-1,-1);
29        id=document.fdatos.identificador.value
30        var whref
31        whref="M_Iconos.php"
32        whref=whref + "?opcion=" + Consultar
33        whref=whref + "&accion=" + Leer_registro
34        whref=whref + "&idicono=" + id
35        window.open(whref,"frame_contenidos")
36}
37//-----------------------------------------------------------------------------------------------------
38function borrar(){
39        reset_contextual(-1,-1);
40        id=document.fdatos.identificador.value
41        var whref
42        whref="M_Iconos.php"
43        whref=whref + "?opcion=" + Eliminar
44        whref=whref + "&accion=" + Leer_registro
45        whref=whref + "&idicono=" + id
46        window.open(whref,"frame_contenidos")
47}     
48//-----------------------------------------------------------------------------------------------------
49function modificar(){
50        reset_contextual(-1,-1);
51        id=document.fdatos.identificador.value
52        var whref
53        whref="M_Iconos.php"
54        whref=whref + "?opcion=" + Modificar
55        whref=whref + "&accion=" + Leer_registro
56        whref=whref + "&idicono=" + id
57        window.open(whref,"frame_contenidos")
58}
59//_____________________________________________________________________________________
60//
61function menu_contextual(o){
62        document.fdatos.identificador.value=o.getAttribute("id")
63        if (currentImg!=null)
64                currentImg.src="../images/iconos/administrar_off.gif"
65        o.src="../images/iconos/administrar_on.gif";
66        currentImg=o;
67        var coorX=event.clientX;
68        var coorY=event.clientY;
69        var menuctx=document.getElementById("flo_menu");
70        muestra_contextual(coorX,coorY,menuctx);
71}
72
Note: See TracBrowser for help on using the repository browser.