/[dolibarr]/dolibarr/htdocs/telephonie/stats/commerciaux/mensuel.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/stats/commerciaux/mensuel.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by rodolphe, Tue Feb 8 10:40:41 2005 UTC revision 1.2 by rodolphe, Tue Sep 20 12:42:05 2005 UTC
# Line 21  Line 21 
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    
# Line 47  dolibarr_fiche_head($head, $hselected, " Line 47  dolibarr_fiche_head($head, $hselected, "
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  {  {
# Line 57  else Line 57  else
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 '&nbsp;(<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 '&nbsp;(<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 '&nbsp;-&nbsp;<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 '&nbsp;-&nbsp;<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 />";

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26