mejoras en funciones

This commit is contained in:
humano 2018-07-18 05:48:05 -05:00
parent eb974d96de
commit b79b646f13
3 changed files with 13 additions and 11 deletions

View File

@ -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";}

View File

@ -1,5 +1,4 @@
<?php
session_start();
// Comprobamos si existe la variable
/*if ( !isset ( $_SESSION['id'] ) ) {
@ -16,7 +15,7 @@ $dir="$path_images_secure/";
if ((!$file=realpath($dir.$_GET['file']))
|| strpos($file,realpath($dir))!==0 || substr($file,-4)=='.php'){
//header('HTTP/1.0 404 Not Found');
header("Location: ../sinimagen.jpg?$dir");
header("Location: ../sinimagen.jpg?");
exit();
}
$ref=@$_SERVER['HTTP_REFERER'];

View File

@ -90,6 +90,7 @@ class xajax
$this->sWrapperPrefix = $sWrapperPrefix;
$this->setCharEncoding($sEncoding);
$this->bDebug =$bDebug;
//$this->bDebug =true;//$bDebug;
$this->bWaitCursor = true;
$this->bExitAllowed = true;
$this->bErrorHandler = false;