From 27107ea5d61b65ce244945f3f7a2d94e3312cb3f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 4 May 2005 09:50:39 +0000 Subject: [PATCH] Ajout distributeurs --- .../script/graph-statistiques-makedir.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/htdocs/telephonie/script/graph-statistiques-makedir.php b/htdocs/telephonie/script/graph-statistiques-makedir.php index c36d6275d3b..460168ca373 100644 --- a/htdocs/telephonie/script/graph-statistiques-makedir.php +++ b/htdocs/telephonie/script/graph-statistiques-makedir.php @@ -86,6 +86,26 @@ if ($db->query($sql)) } } +/* Distributeurs */ + +$sql = "SELECT rowid "; +$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_distributeur"; + +if ($db->query($sql)) +{ + $num = $db->num_rows(); + $j = 0; + + while ($j < $num) + { + $row = $db->fetch_row(); + + $dirs[$i] = DOL_DATA_ROOT."/graph/telephonie/distributeurs/".$row[0]; + + $i++; + $j++; + } +} /* Clients */