Modif lgnde

This commit is contained in:
Rodolphe Quiedeville 2005-11-14 13:51:22 +00:00
parent 2329bec3da
commit f128b0fedd

View File

@ -111,11 +111,25 @@ class GraphDistributeurGain extends GraphBar {
print $this->db->error() . ' ' . $sql;
}
$month = array();
$month[1] = 'J';
$month[2] = 'F';
$month[3] = 'M';
$month[4] = 'A';
$month[5] = 'M';
$month[6] = 'J';
$month[7] = 'J';
$month[8] = 'A';
$month[9] = 'S';
$month[10] = 'O';
$month[11] = 'N';
$month[12] = 'D';
for ($i = 1 ; $i < 13 ; $i++)
{
$idx = $year.substr('0'.$i,-2);
$datas[$i-1] = $gains[$idx];
$labels[$i-1] = $i;
$labels[$i-1] = $month[$i];
}
if (sizeof($datas))