Ver Mensaje Individual
  #19 (permalink)  
Antiguo 31/05/2009, 00:19
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Mejorar paginacion

Perdona ya vi donde esta el error se me olvido escribirte una linea cambia esta funcion en el class por esta

Código PHP:
function pagination($r$rPP$sc$scn){ 
    
$p = new paginationClass($r$rPP$sc$scn); 
    
$p->page $_REQUEST["page"];
    foreach(
$p->getPagePagination() as $k => $v){ 
        if(
trim($v)){ 
            global $
$k
            $
$k $v
        } 
    } 

y tambien cambia el & por el % en esta linea
this->range_min = ($this->range & 2 == 0) ? ($this->range / 2) -1 : ($this->range - 1) / 2;

debe ser
this->range_min = ($this->range % 2 == 0) ? ($this->range / 2) -1 : ($this->range - 1) / 2;