diff --git a/htdocs/telephonie/stats/distributeurs/distributeur.php b/htdocs/telephonie/stats/distributeurs/distributeur.php
index 75abcb340e4..3cee265f51e 100644
--- a/htdocs/telephonie/stats/distributeurs/distributeur.php
+++ b/htdocs/telephonie/stats/distributeurs/distributeur.php
@@ -56,49 +56,11 @@ if ($_GET["id"])
print '
';
- print '| ';
+ print ' |
';
- print '';
-
- print '| Mois | Nb Lignes | ';
-
- $sql = "SELECT count(*) as cc, date_format(date_commande,'%m %Y')";
- $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne as l";
- $sql .= " , ".MAIN_DB_PREFIX."telephonie_distributeur_commerciaux as dc";
- $sql .= " WHERE dc.fk_distributeur = ".$_GET["id"];
- $sql .= " AND date_commande IS NOT NULL";
- $sql .= " AND dc.fk_user = l.fk_commercial_sign";
- $sql .= " AND l.statut <> 7";
- $sql .= " GROUP BY date_format(date_commande,'%Y%m') DESC";
+
- $result = $db->query($sql);
- if ($result)
- {
- $num = $db->num_rows();
- $i = 0;
- $datas = array();
- $legends = array();
-
- while ($i < $num)
- {
- $row = $db->fetch_row($i);
- $var=!$var;
-
- print "";
- print '| ';
- print $row[2]." ". $row[1].' | '.$row[0].' | ';
- $i++;
- }
- $db->free();
- }
- else
- {
- print $db->error() . ' ' . $sql;
- }
-
- print ' ';
-
- print ' | ';
+ print ' | ';
print '
'."\n";
|