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(){ |
---|
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 |
---|
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(){ |
---|
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 |
---|
27 | window.open(whref,"frame_contenidos") |
---|
28 | } |
---|
29 | //________________________________________________________________________________________________________ |
---|
30 | // |
---|
31 | // Inserta nueva imagen |
---|
32 | //________________________________________________________________________________________________________ |
---|
33 | // |
---|
34 | function insertar_imagen(litamb,tipoimg) |
---|
35 | { |
---|
36 | reset_contextual(-1,-1) // Oculta menu contextual |
---|
37 | var identificador=currentNodo.toma_identificador() |
---|
38 | var whref="../propiedades/propiedades_imagenes.php?opcion="+op_alta+"&grupoid="+identificador+"&litamb="+litamb+"&tipoimg="+tipoimg |
---|
39 | window.open(whref,"frame_contenidos"); |
---|
40 | } |
---|
41 | //________________________________________________________________________________________________________ |
---|
42 | // |
---|
43 | // Modificar datos de imagen |
---|
44 | //________________________________________________________________________________________________________ |
---|
45 | // |
---|
46 | function modificar_imagen(tipoimg) |
---|
47 | { |
---|
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 |
---|
51 | window.open(whref,"frame_contenidos"); |
---|
52 | } |
---|
53 | //________________________________________________________________________________________________________ |
---|
54 | // |
---|
55 | // Eliminar una imagen |
---|
56 | //________________________________________________________________________________________________________ |
---|
57 | // |
---|
58 | function eliminar_imagen(tipoimg) |
---|
59 | { |
---|
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 |
---|
63 | window.open(whref,"frame_contenidos"); |
---|
64 | } |
---|