Skip to content
Snippets Groups Projects
Commit d1996568 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Sort years

parent dfb4b37c
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ if ($_POST["action"] == 'gen')
llxHeader();
$titre=($year?$langs->trans("PaymentsReportsForYear",$year):$langs->trans("PaymentsReports"));
print_titre($titre);
print_fiche_titre($titre);
// Formulaire de gnration
print '<br><form method="post" action="rapport.php?year='.$year.'">';
......@@ -136,10 +136,15 @@ if (is_dir($dir))
if (is_dir($dir.'/'.$file) && ! eregi('^\.',$file))
{
$found=1;
print '<a href="rapport.php?year='.$file.'">'.$file.'</a> ';
$linkforyear[]=$file;
}
}
}
asort($linkforyear);
foreach($linkforyear as $cursoryear)
{
print '<a href="rapport.php?year='.$cursoryear.'">'.$cursoryear.'</a> &nbsp;';
}
if ($year)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment