From 9b9d3ed8d215f90a93b2f525fde969eb5a05483b Mon Sep 17 00:00:00 2001 From: humano Date: Mon, 6 Nov 2017 15:26:19 -0500 Subject: [PATCH] mejoras en la api --- index.php | 4 +--- librerias/infinite.php | 2 +- milfs/api.php | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index f51526f..f75e503 100644 --- a/index.php +++ b/index.php @@ -519,9 +519,7 @@ checkForNewDiv();
-
-
test div
-
+
$footer"; diff --git a/librerias/infinite.php b/librerias/infinite.php index 2caadc2..6c76997 100644 --- a/librerias/infinite.php +++ b/librerias/infinite.php @@ -87,7 +87,7 @@ $.ajax({ //url: 'get-post.php?variable='+(offset), - url: '../milfs/api.php?id=74&tipo=simple&formato=li®istros=1&pagina='+pageNumber, + url: '../milfs/api.php?id=74&tipo=simple&formato=li&plantilla=landingpage®istros=1&pagina='+pageNumber, type:'POST', dataType: 'html', success: function(html) { diff --git a/milfs/api.php b/milfs/api.php index ef61558..a7dea02 100644 --- a/milfs/api.php +++ b/milfs/api.php @@ -32,7 +32,7 @@ if(!isset($_REQUEST['formato'])) { header('Content-Type: application/json'); echo json($datos); }else{ -echo "$datos[pagina] ".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',""); +echo "$datos[pagina] ".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',"$datos[plantilla]"); } //echo "hola /// $_REQUEST[id] // " ;