From 4ad5b41863742ef82df1729541fa8a3d9d2def28 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 14 Mar 2005 13:12:55 +0000 Subject: [PATCH] Ajout des dirs clients --- .../script/graph-statistiques-makedir.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/htdocs/telephonie/script/graph-statistiques-makedir.php b/htdocs/telephonie/script/graph-statistiques-makedir.php index a8d8a0ea311..e9d7b97197a 100644 --- a/htdocs/telephonie/script/graph-statistiques-makedir.php +++ b/htdocs/telephonie/script/graph-statistiques-makedir.php @@ -60,6 +60,31 @@ if ($db->query($sql)) } } +for ($j = 0 ; $j < 10 ; $j++) +{ + $dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/client/".$j; + $i++; +} + +$sql = "SELECT idp FROM ".MAIN_DB_PREFIX."societe"; + +if ($db->query($sql)) +{ + $num = $db->num_rows(); + $j = 0; + + while ($j < $num) + { + $row = $db->fetch_row(); + + $dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/client/".substr($row[0],0,1)."/".$row[0]."/"; + + $i++; + $j++; + } +} + + if (is_array($dirs)) {