1
0
forked from qwerty/milfs

correccion api

This commit is contained in:
humano 2018-10-26 05:06:47 -05:00
parent 36cb230c39
commit 03f445bbcf
2 changed files with 13 additions and 11 deletions

View File

@ -11563,18 +11563,19 @@ $features = array();
$cantidad = mysqli_num_rows($sql_total);
$features['total'] = $cantidad;
$features['registros'] = $datos['registros'];
$features['pagina'] = $datos['pagina'];
$features['total_paginas'] = ceil($cantidad / $datos['registros']);
//$features['total'] = $cantidad;
if(isset($datos['registros'])){$registros=$datos['registros'];}else{$datos['registros']=$cantidad;}
//$features['registros'] = $datos['registros'];
//$features['pagina'] = $datos['pagina'];
//$features['total_paginas'] = ceil($cantidad / $datos['registros']);
if ($datos['pagina'] =='') {$inicio = 0; $pagina = $datos['registros']; }
else {
$pagina = ($datos['pagina'] * $datos['registros']);
$inicio = ($datos['pagina'] - 1) * $datos['registros'];}
$features['limit_pagina'] = $pagina;
$features['inicio_pagina'] = $inicio;
$limite= " limit $inicio,$features[registros]";
$features['limite'] = $limite;
//$features['limit_pagina'] = $pagina;
//$features['inicio_pagina'] = $inicio;
$limite= " limit $inicio,$datos[registros]";
//$features['limite'] = $limite;
$consulta ="$consulta_total $limite";
@ -11586,8 +11587,8 @@ $features['limite'] = $limite;
$i = 1;
$features['consulta_total'] = $consulta_total;
$features['consulta'] = $consulta;
//$features['consulta_total'] = $consulta_total;
//$features['consulta'] = $consulta;
while($row = mysqli_fetch_array( $sql ))
{

View File

@ -610,7 +610,8 @@ else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}
/*
$(function () {
$('[data-toggle="tooltip"]').tooltip()
}) ;
* */