[3ec149c] | 1 | // ************************************************************************************************************************************************* |
---|
| 2 | // Libreria de scripts de Javascript |
---|
| 3 | // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
---|
| 4 | // Fichero: imagenes.js |
---|
| 5 | // Este fichero implementa las funciones javascript del fichero imagenes.php |
---|
| 6 | // ************************************************************************************************************************************************* |
---|
| 7 | //___________________________________________________________________________________________________________ |
---|
| 8 | // |
---|
| 9 | // Muestra información sobre las imágenes |
---|
| 10 | //___________________________________________________________________________________________________________ |
---|
| 11 | function muestra_informacion(){ |
---|
[6bf7eae] | 12 | reset_contextual(-1,-1); |
---|
| 13 | var identificador=currentNodo.toma_identificador(); |
---|
| 14 | var descripcionimagen=currentNodo.toma_infonodo(); |
---|
| 15 | var whref="../varios/informacion_imagenes.php?idimagen="+identificador+"&descripcionimagen="+descripcionimagen; |
---|
[3ec149c] | 16 | window.open(whref,"frame_contenidos") |
---|
| 17 | } |
---|
| 18 | //________________________________________________________________________________________________________ |
---|
| 19 | // |
---|
| 20 | // Muestra formulario para gestionar el software incremental incluido en una imagen |
---|
| 21 | //________________________________________________________________________________________________________ |
---|
| 22 | function insertar_imagenincremental(){ |
---|
[3806a31] | 23 | reset_contextual(-1,-1); |
---|
| 24 | var identificador=currentNodo.toma_identificador(); |
---|
| 25 | var descripcionimagen=currentNodo.toma_infonodo(); |
---|
| 26 | var whref="../varios/imagenincremental.php?idimagen="+identificador+"&descripcionimagen="+descripcionimagen; |
---|
[3ec149c] | 27 | window.open(whref,"frame_contenidos") |
---|
| 28 | } |
---|
[4329e85] | 29 | //________________________________________________________________________________________________________ |
---|
| 30 | // |
---|
| 31 | // Inserta nueva imagen |
---|
| 32 | //________________________________________________________________________________________________________ |
---|
| 33 | // |
---|
| 34 | function insertar_imagen(litamb,tipoimg) |
---|
| 35 | { |
---|
[6bf7eae] | 36 | reset_contextual(-1,-1); // Oculta menu contextual |
---|
| 37 | var identificador=currentNodo.toma_identificador(); |
---|
[3806a31] | 38 | var whref="../propiedades/propiedades_imagenes.php?opcion="+op_alta+"&grupoid="+identificador+"&litamb="+litamb+"&tipoimg="+tipoimg; |
---|
[4329e85] | 39 | window.open(whref,"frame_contenidos"); |
---|
| 40 | } |
---|
| 41 | //________________________________________________________________________________________________________ |
---|
| 42 | // |
---|
| 43 | // Modificar datos de imagen |
---|
| 44 | //________________________________________________________________________________________________________ |
---|
| 45 | // |
---|
[6bf7eae] | 46 | function modificar_imagen(tipoimg) |
---|
[4329e85] | 47 | { |
---|
[6bf7eae] | 48 | reset_contextual(-1,-1); // Oculta menu contextual |
---|
| 49 | var identificador=currentNodo.toma_identificador(); |
---|
| 50 | var whref="../propiedades/propiedades_imagenes.php?opcion="+op_modificacion+"&tipoimg="+tipoimg+"&identificador="+identificador; |
---|
[4329e85] | 51 | window.open(whref,"frame_contenidos"); |
---|
| 52 | } |
---|
| 53 | //________________________________________________________________________________________________________ |
---|
| 54 | // |
---|
| 55 | // Eliminar una imagen |
---|
| 56 | //________________________________________________________________________________________________________ |
---|
| 57 | // |
---|
[6bf7eae] | 58 | function eliminar_imagen(tipoimg) |
---|
[4329e85] | 59 | { |
---|
[6bf7eae] | 60 | reset_contextual(-1,-1); // Oculta menu contextual |
---|
| 61 | var identificador=currentNodo.toma_identificador(); |
---|
| 62 | var whref="../propiedades/propiedades_imagenes.php?opcion="+op_eliminacion+"&tipoimg="+tipoimg+"&identificador="+identificador; |
---|
[4329e85] | 63 | window.open(whref,"frame_contenidos"); |
---|
| 64 | } |
---|