From b79b646f13da1ecca4712cee4a34f2413e2cef33 Mon Sep 17 00:00:00 2001 From: humano Date: Wed, 18 Jul 2018 05:48:05 -0500 Subject: [PATCH] mejoras en funciones --- funciones/funciones.php | 20 +++++++++++--------- images/secure/index.php | 3 +-- xajax/xajax.inc.php | 1 + 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/funciones/funciones.php b/funciones/funciones.php index 812409a..8a084b0 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -10335,21 +10335,23 @@ $xajax->registerFunction("buscador_campo"); function imprimir_buscador_campo($id_campo,$valor,$plantilla) { - +$campo1=array(); +$campo2=array(); $claves = remplacetas("form_campos_valores","id_form_campo","$id_campo","campo_valor",""); $consulta=$claves; $claves = $claves[0]; - $claves = explode(' ',$claves); + $claves = @explode(' ',$claves); $formulario = explode(':',$claves[0]) ; - $formulario = $formulario[1]; - $key = explode(':',$claves[1]) ; - $key = $key[1]; - $descripcion = explode(':',$claves[2]) ; - $descripcion = $descripcion[1]; + $formulario = @$formulario[1]; + $key = @explode(':',$claves[1]) ; + $key = @$key[1]; + $descripcion = @explode(':',$claves[2]) ; + if(isset($descripcion[1])){$descripcion = $descripcion[1]; + $campo2 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$descripcion' "); + }else{$campo2[0] ="";} $campo1 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$key' "); - $campo2 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$descripcion' "); - $imprimir ="$campo1[0] $campo2[0]"; + $imprimir = @"$campo1[0] $campo2[0]"; if($plantilla =="") {$plantilla= "buscador";} diff --git a/images/secure/index.php b/images/secure/index.php index 3efecf3..c166816 100644 --- a/images/secure/index.php +++ b/images/secure/index.php @@ -1,5 +1,4 @@ sWrapperPrefix = $sWrapperPrefix; $this->setCharEncoding($sEncoding); $this->bDebug =$bDebug; + //$this->bDebug =true;//$bDebug; $this->bWaitCursor = true; $this->bExitAllowed = true; $this->bErrorHandler = false;