21 |
*/ |
*/ |
22 |
require("./pre.inc.php"); |
require("./pre.inc.php"); |
23 |
|
|
24 |
if (!$user->rights->telephonie->lire) |
if (!$user->rights->telephonie->lire) accessforbidden(); |
25 |
accessforbidden(); |
if (!$user->rights->telephonie->stats->lire) accessforbidden(); |
26 |
|
|
27 |
llxHeader('','Telephonie - Statistiques - Commerciaux'); |
llxHeader('','Telephonie - Statistiques - Commerciaux'); |
28 |
|
|
47 |
|
|
48 |
if (strlen($_GET["month"]) == 0) |
if (strlen($_GET["month"]) == 0) |
49 |
{ |
{ |
50 |
$month = '022005'; |
$month = strftime("%m%Y",time()); |
51 |
} |
} |
52 |
else |
else |
53 |
{ |
{ |
57 |
$month_prev = strftime("%m%Y", mktime(12,12,12,substr($month,0,2), 1, substr($month,-4)) - (20*3600*24)); |
$month_prev = strftime("%m%Y", mktime(12,12,12,substr($month,0,2), 1, substr($month,-4)) - (20*3600*24)); |
58 |
$month_next = strftime("%m%Y", mktime(12,12,12,substr($month,0,2), 25, substr($month,-4)) + (10*3600*24)); |
$month_next = strftime("%m%Y", mktime(12,12,12,substr($month,0,2), 25, substr($month,-4)) + (10*3600*24)); |
59 |
|
|
60 |
print "Mois de : ".strftime("%B %Y", mktime(12,12,12,substr($month,0,2), 1, substr($month,-4))); |
print "<br />Mois de : ".strftime("%B %Y", mktime(12,12,12,substr($month,0,2), 1, substr($month,-4))); |
61 |
print ' (<a href="mensuel.php?month='.$month_prev.'">'.strftime("%B %Y", mktime(12,12,12,substr($month_prev,0,2), 1, substr($month_prev,-4))); |
print ' (<a href="mensuel.php?month='.$month_prev.'">'.strftime("%B %Y", mktime(12,12,12,substr($month_prev,0,2), 1, substr($month_prev,-4))); |
62 |
print ' - <a href="mensuel.php?month='.$month_next.'">'.strftime("%B %Y", mktime(12,12,12,substr($month_next,0,2), 1, substr($month_next,-4))).")"; |
print ' - <a href="mensuel.php?month='.$month_next.'">'.strftime("%B %Y", mktime(12,12,12,substr($month_next,0,2), 1, substr($month_next,-4))).")"; |
63 |
print "<br /><br />"; |
print "<br /><br />"; |