RE:aqui esta la funcion de direccion
aqui esta la funcion para las flecha de direccion
function paginas($pg, $pages, $quants) {
global $QUERY_STRING, $PHP_SELF;
$QSTRING = quita_var_get("pg-", $QUERY_STRING);
if (substr($quants, -1)==0) {
$msg=0;
}else{
$msg=1;
}
if ($pg != 0):
$cons = "<a href='".$PHP_SELF."?".$QSTRING."&pg=0'><img src='img/paginacion/b_inicio.gif' width='48' height='15' border='0'></a>\n";
else:
endif;
//boton anterior
if ($pg != 0):
$url = $pg - 1;
$cons .= "<a href='".$PHP_SELF."?".$QSTRING."&pg=".$url."'><img src='img/paginacion/b_anterior.gif' width='68' height='15' border='0'></a>\n";
else:
$cons .= " \n";
endif;
//boton siguiente
if ($pg < $pages ):
if($msg==0 and $pg==($pages-1)) {
$cons .= "\n";
}else{
$url = $pg + 1;
$cons .= "<a href='".$PHP_SELF."?".$QSTRING."&pg=".$url."'><img src='img/paginacion/b_siguiente.gif' width='68' height='15' border='0'></a>\n";
}
else:
$cons .= " \n";
endif;
return $cons;
}