From 7df77d6f580a13620fed08431cdf63a2cb2e6acd Mon Sep 17 00:00:00 2001
From: Rodolphe Quiedeville <rodolphe@quiedeville.org>
Date: Tue, 20 Sep 2005 12:42:05 +0000
Subject: [PATCH] =?UTF-8?q?Modif=20positionnement=20par=20d=E9faut?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 htdocs/telephonie/stats/commerciaux/mensuel.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/htdocs/telephonie/stats/commerciaux/mensuel.php b/htdocs/telephonie/stats/commerciaux/mensuel.php
index 565f0d4b360..a3ce9ce2bb8 100644
--- a/htdocs/telephonie/stats/commerciaux/mensuel.php
+++ b/htdocs/telephonie/stats/commerciaux/mensuel.php
@@ -21,8 +21,8 @@
  */
 require("./pre.inc.php");
 
-if (!$user->rights->telephonie->lire)
-  accessforbidden();
+if (!$user->rights->telephonie->lire) accessforbidden();
+if (!$user->rights->telephonie->stats->lire) accessforbidden();
 
 llxHeader('','Telephonie - Statistiques - Commerciaux');
 
@@ -47,7 +47,7 @@ dolibarr_fiche_head($head, $hselected, "Commerciaux");
 
 if (strlen($_GET["month"]) == 0)
 {
-  $month = '022005';
+  $month = strftime("%m%Y",time());
 }
 else
 {
@@ -57,7 +57,7 @@ else
 $month_prev = strftime("%m%Y", mktime(12,12,12,substr($month,0,2), 1, substr($month,-4)) - (20*3600*24));
 $month_next = strftime("%m%Y", mktime(12,12,12,substr($month,0,2), 25, substr($month,-4)) + (10*3600*24));
 
-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)));
 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;-&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 "<br /><br />";
-- 
GitLab