RE:funcion para numerar parte 1
Publicado por Omar25 (5 intervenciones) el 11/12/2004 04:35:24
function paginas_nro($pg, $pages, $mod, $quants){
global $QUERY_STRING, $PHP_SELF;
$QSTRING = quita_var_get("pg-", $QUERY_STRING);
$bar_col="92A9DA";
if (substr($quants, -1)==0) {
$msg=0;
}else{
$msg=1;
}
$cons = "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
//if ($pg < ($pages+1)):
$cons .= "<tr><td bgcolor=\"#$bar_col\" valign=\"middle\" height=\"20\">
<div align=\"center\">Paginas ";
if ($pg > 15 ):
$url = $pg - 13;
$cons .= "<a href='".$PHP_SELF."?".$QSTRING."&pg=".$url."'><span class=\"bot_pag\">«</span></a>";
else:
$cons .= " \n";
endif;
global $QUERY_STRING, $PHP_SELF;
$QSTRING = quita_var_get("pg-", $QUERY_STRING);
$bar_col="92A9DA";
if (substr($quants, -1)==0) {
$msg=0;
}else{
$msg=1;
}
$cons = "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
//if ($pg < ($pages+1)):
$cons .= "<tr><td bgcolor=\"#$bar_col\" valign=\"middle\" height=\"20\">
<div align=\"center\">Paginas ";
if ($pg > 15 ):
$url = $pg - 13;
$cons .= "<a href='".$PHP_SELF."?".$QSTRING."&pg=".$url."'><span class=\"bot_pag\">«</span></a>";
else:
$cons .= " \n";
endif;
Valora esta pregunta


0