From ab743e544de9efbc16340672a52283b613ba87c3 Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Tue, 28 Jul 2020 09:35:06 +0200 Subject: #969 Images tree is adapted to jquery: jscripts/imagenes.js and principal/imagenes.php: specific functions are removed and replaced by common functions. jscripts/arbol.js and jscripts/comunes.js: functions include cases for the types of images. includes/arbol.php: the case of the image is separated into the different image types. idiomas/php/esp/informacion_imagenes_esp.php: Fixs a text message. --- admin/WebConsole/includes/arbol.php | 52 ++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 15 deletions(-) (limited to 'admin/WebConsole/includes/arbol.php') diff --git a/admin/WebConsole/includes/arbol.php b/admin/WebConsole/includes/arbol.php index 7bfca904..c2e65735 100644 --- a/admin/WebConsole/includes/arbol.php +++ b/admin/WebConsole/includes/arbol.php @@ -92,8 +92,6 @@ function grupos_arbol($tipo_nodo) { $id=$rs->campos["id"]; $conjuntoid=$rs->campos["conjuntoid"]; - // El tipo de grupo de imagenes son 70, 71 y 72 correspondiendo al tipo de imagen 1, 2 y 3 - if ($tipo_nodo == "imagenes") $conjuntoid-=69; if ($oldgrupopadre != $grupopadre) { $oldgrupopadre=$grupopadre; @@ -138,7 +136,7 @@ function lista_grupo_arbol($tipo_nodo, $tipo, $idgrupo, $nivel, $orden, $nodos, foreach ($grupos[$tipo][$idgrupo] as $hijo) { $orden=$orden+1; echo '
  • -
  • + echo '
  • -
  • + echo '
  • '.$nodo["descripcion"].''; } echo "
  • "."\n"; @@ -196,7 +194,7 @@ function lista_raiz_arbol ($tipo_nodo, $nodos, $grupos){ if (count($keys) == 1) { $tipo= array_keys($nodos)[0]; echo '
  • -