 |
| |
 |
 |
 |
 |
 |
 |
 |
|
 |
| |
|
Noticias y Prensa
|
");
// Ingresa a MySQL y recibe los datos necesario.
for($i=$start; $i<$start+$d_cant; $i++):
if($i< $total):
$id=mysql_result($result,$i,"id");
$titulo=mysql_result($result,$i,"titulo");
$autor=mysql_result($result,$i,"autor");
$fecha=mysql_result($result,$i,"fecha");
$argdate=explode("-",$fecha);
$argdate[0]=ereg_replace("20","",$argdate[0]);
echo ("
$titulo
$autor
|
|
");
endif;
endfor;
echo("
|
|
");
// Imprimir Link para grupo de pagina tracero " << "
if($st_p>1):
printf ("< ",
$st_p-$p_cant,$st_p-1,($st_p-1)*$d_cant-$d_cant);
endif;
// Imprimir Link de Pagina " 1 2 3 " ------------------------------------------
$t_page=floor($total/$d_cant);
if($total%$d_cant>0) { $t_page++; }
// Preparacion de Link de Pagina, $st_p ( start page link ) $end_p (end page link)
if(!$st_p) { $st_p=1; $end_p=$p_cant+1; }
else { $end_p=$st_p+$p_cant; }
// Imprimir Link de Pagina
for($p=$st_p; $p<$end_p; $p++) :
if ( $p>$t_page) { break; }
if ( $page==$p) :
echo ("%d ",$p);
endfor;
// Imprimir Link para grupo delantero " >> "
if ($t_page >$p-1):
printf (">",$end_p,$end_p,$end_p*$d_cant-$d_cant);
endif;
echo("
|
|
|
|