90 |
$datas = array(); |
$datas = array(); |
91 |
$labels = array(); |
$labels = array(); |
92 |
|
|
93 |
|
$month = array(); |
94 |
|
$month[1] = 'J'; |
95 |
|
$month[2] = 'F'; |
96 |
|
$month[3] = 'M'; |
97 |
|
$month[4] = 'A'; |
98 |
|
$month[5] = 'M'; |
99 |
|
$month[6] = 'J'; |
100 |
|
$month[7] = 'J'; |
101 |
|
$month[8] = 'A'; |
102 |
|
$month[9] = 'S'; |
103 |
|
$month[10] = 'O'; |
104 |
|
$month[11] = 'N'; |
105 |
|
$month[12] = 'D'; |
106 |
|
|
107 |
for ($i = 1 ; $i < 13 ; $i++) |
for ($i = 1 ; $i < 13 ; $i++) |
108 |
{ |
{ |
109 |
$idx = $this->year.substr('0'.$i,-2); |
$idx = $this->year.substr('0'.$i,-2); |
110 |
$datas[$i-1] = $gains[$idx] - $comms[$idx]; |
$datas[$i-1] = $gains[$idx] - $comms[$idx]; |
111 |
$labels[$i-1] = $i; |
$labels[$i-1] = $month[$i]; |
112 |
|
|
113 |
if ($distributeur > 0 ){ |
if ($distributeur > 0 ){ |
114 |
$sqli = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_stats"; |
$sqli = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_stats"; |