diff --git a/htdocs/telephonie/contrat/fiche.php b/htdocs/telephonie/contrat/fiche.php
index 065e7a2859d..421e55f303d 100644
--- a/htdocs/telephonie/contrat/fiche.php
+++ b/htdocs/telephonie/contrat/fiche.php
@@ -669,7 +669,68 @@ else
print $sql;
}
- print "";
+ print "
";
+
+ /* Liens xDSL */
+
+ require_once DOL_DOCUMENT_ROOT.'/telephonie/adsl/ligneadsl.class.php';
+
+ $sql = "SELECT l.rowid, l.numero_ligne, l.statut, t.intitule";
+ $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_adsl_ligne as l";
+ $sql .= " , ".MAIN_DB_PREFIX."telephonie_adsl_type as t";
+ $sql .= " WHERE l.fk_contrat=".$contrat->id;
+ $sql .= " AND t.rowid = l.fk_type";
+ $sql .= " ORDER BY l.statut ASC;";
+ $resql = $db->query($sql);
+ if ( $resql )
+ {
+ $numlignes = $db->num_rows($resql);
+ if ( $numlignes > 0 )
+ {
+ $i = 0;
+
+ $ligne = new LigneAdsl($db);
+
+ print '
| Liens xDSL'; + print ' | Numero support | Statut | '; + print "
";
+
+ print ' ';
+
+ print '';
+ print img_file();
+
+ print ' ';
+
+ print ''.stripslashes($obj->intitule)." | \n";
+
+ print ''.$obj->numero_ligne." | \n"; + print ''.$ligne->statuts[$obj->statut]." | \n"; + print "