This commit is contained in:
Rodolphe Quiedeville 2006-01-11 10:51:29 +00:00
parent 232f54cb1f
commit 8b78788eec

View File

@ -24,6 +24,19 @@ function stat_year_bar($year)
$cyear = strftime("%Y",time()); $cyear = strftime("%Y",time());
$x = 2005; $x = 2005;
$string = ''; $string = '';
$query = array();
$query = explode("&",$_SERVER["QUERY_STRING"]);
$qs = '';
foreach($query as $q)
{
if (substr($q,0,4) <> 'year')
{
$qs .= '&amp;'.$q;
}
}
while ($x <= $cyear) while ($x <= $cyear)
{ {
if ($x == $year) if ($x == $year)
@ -32,7 +45,11 @@ function stat_year_bar($year)
} }
else else
{ {
$string .= '<a href="'.$_SERVER["SCRIPT_URI"].'?year='.$x.'&amp;'.$_SERVER["QUERY_STRING"]; $string .= '<a href="'.$_SERVER["SCRIPT_URI"].'?year='.$x;
if ($qs)
{
$string .=$qs;
}
$string .= '">'.$x.'</a>&nbsp;|&nbsp;'; $string .= '">'.$x.'</a>&nbsp;|&nbsp;';
} }
$x++; $x++;