mejoras en la api

This commit is contained in:
humano 2017-11-06 15:26:19 -05:00
parent 222b60e79c
commit 9b9d3ed8d2
3 changed files with 3 additions and 5 deletions

View File

@ -519,9 +519,7 @@ checkForNewDiv();
</section>
<section id='listado' class='scrollable'>
<div id='scroll-content'>
<div>test div</div>
</div>
</section>
</div>
</div>$footer";

View File

@ -87,7 +87,7 @@
$.ajax({
//url: 'get-post.php?variable='+(offset),
url: '../milfs/api.php?id=74&tipo=simple&formato=li&registros=1&pagina='+pageNumber,
url: '../milfs/api.php?id=74&tipo=simple&formato=li&plantilla=landingpage&registros=1&pagina='+pageNumber,
type:'POST',
dataType: 'html',
success: function(html) {

View File

@ -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] // " ;