Modif legendes

This commit is contained in:
Rodolphe Quiedeville 2005-11-14 13:49:37 +00:00
parent eb6319568d
commit fe63a6940a

View File

@ -98,12 +98,25 @@ class GraphDistributeurCommission 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 = $this->year.substr('0'.$i,-2);
$datas[$i-1] = $comms[$idx];
$labels[$i-1] = $i;
$labels[$i-1] = $month[$i];
}
if (sizeof($datas))