diff --git a/htdocs/telephonie/stats/commerciaux/commercialca.php b/htdocs/telephonie/stats/commerciaux/commercialca.php
index 2e3367e9e43..0a5038f1511 100644
--- a/htdocs/telephonie/stats/commerciaux/commercialca.php
+++ b/htdocs/telephonie/stats/commerciaux/commercialca.php
@@ -56,53 +56,15 @@ if ($_GET["commid"])
print '
';
- print '| ';
+ print ' |
';
- print '';
-
- print '| Nom | Nb Lignes | ';
-
- $sql = "SELECT count(*) as cc,date_format(date_commande,'%m %Y')";
- $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne as l";
- $sql .= " WHERE l.fk_commercial = ".$comm->id;
- $sql .= " AND date_commande IS NOT NULL";
- $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 '
'."\n";
-
- print ' |
';
- print '
';
-
- $db->close();
+ print '
'."\n";
+
+ print '';
+ print '';
+
+ $db->close();
}