[FLUG] Re: Ampoliros...php... e mailing list

  • From: Alex Pagnoni <alex.pagnoni@xxxxxxxxxxx>
  • To: fanolug@xxxxxxxxxxxxx
  • Date: Thu, 8 May 2003 08:38:33 +0200

Mailing List del Fortunae LUG
============================
On Wednesday 07 May 2003 16:52, you wrote:

> Ecco il listato... non è commentato, ma se lo fatto io non dovrebbe essere
> niente di complesso... :PP

Prova con questa versione:

<?php

function make_row($testo) {
    print "<tr>";
    print "<td>".$testo."</td>";
    print '<td><a 
href="//www.freelists.org/archives/fanolug/'.$testo.'/maillist.html" 
target="_new">[per Data]</a>';
    print ' <a 
href="//www.freelists.org/archives/fanolug/'.$testo.'/threads.html" 
target="_new">[per Thread]</a></td>';
    print "</tr>";
}
print '<table border="1" cellpadding="2" cellspacing="0" width="250" 
align="center">';
print "<tr>";
print "<td>Archivio</td>";
print "<td>Consulta per:</td>";
print "</tr>";


$annoinizio = 2001;

while ($annoinizio <= date('Y')) {
    if ($annoinizio == 2001) {
        $meseinizio = 12;
    } else {
        $meseinizio = 1;
    }

    if ($annoinizio == date('Y')) {
        $mesefine = date('m'); 
    } else {
        $mesefine = 12;
    }
    

    while ($meseinizio <= $mesefine) {
        if (strlen($meseinizio) == 1) {
            $testo = "0".$meseinizio; 
        } else {
            $testo = $meseinizio;
        }
        $testo = $testo."-".$annoinizio;
        make_row($testo);
        $meseinizio++;
    }
    $annoinizio++;
}
print "</table>";

?>

-- 
Alex Pagnoni
Presidente del C.d.A. - Amministratore Delegato
Responsabile area Ricerca e Sviluppo
alex.pagnoni@xxxxxxxxxxx

SOLARIX S.r.l.
Servizi web avanzati
http://www.solarix.biz
--
Bill Gates : "No! Nel nostro software non ci sono bug significativi che un 
numero significativo di utenti vuol vedere corretti."

Other related posts: