From e64c353f7029e8abd3724392aff09be0ea87b8a9 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 4 May 2005 09:09:15 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20r=E9pertoires?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/graph-statistiques-makedir.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/htdocs/telephonie/script/graph-statistiques-makedir.php b/htdocs/telephonie/script/graph-statistiques-makedir.php index 97754717aad..c36d6275d3b 100644 --- a/htdocs/telephonie/script/graph-statistiques-makedir.php +++ b/htdocs/telephonie/script/graph-statistiques-makedir.php @@ -39,6 +39,9 @@ $dirs[5] = DOL_DATA_ROOT."/graph/telephonie/communications/"; $dirs[6] = DOL_DATA_ROOT."/graph/telephonie/contrats/"; $dirs[7] = DOL_DATA_ROOT."/graph/telephonie/factures/"; $dirs[8] = DOL_DATA_ROOT."/graph/telephonie/lignes/"; +$dirs[9] = DOL_DATA_ROOT."/graph/telephonie/commerciaux/"; +$dirs[10] = DOL_DATA_ROOT."/graph/telephonie/commerciaux/groupes/"; +$dirs[11] = DOL_DATA_ROOT."/graph/telephonie/distributeurs/"; $numdir = (sizeof($dirs) + 2); $i = $numdir ; @@ -62,6 +65,31 @@ if ($db->query($sql)) } } +/* Groupes de commerciaux */ + +$sql = "SELECT rowid "; +$sql .= " FROM ".MAIN_DB_PREFIX."usergroup"; + +if ($db->query($sql)) +{ + $num = $db->num_rows(); + $j = 0; + + while ($j < $num) + { + $row = $db->fetch_row(); + + $dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/commerciaux/groupes/".$row[0]; + + $i++; + $j++; + } +} + + + +/* Clients */ + for ($j = 0 ; $j < 10 ; $j++) { $dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/client/".$j;