From 9cdc9d0668311937773ffc3f9baa7d68e163a588 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 5 Jul 2007 07:25:04 +0000 Subject: [PATCH] Affiche l'exemple du format de CDR utilise --- htdocs/telephonie/fournisseur/fiche.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/fournisseur/fiche.php b/htdocs/telephonie/fournisseur/fiche.php index 6b08db901c3..d068b07f210 100644 --- a/htdocs/telephonie/fournisseur/fiche.php +++ b/htdocs/telephonie/fournisseur/fiche.php @@ -262,8 +262,20 @@ if ($_GET["id"] > 0) print 'Grille de tarif'; print ''.$ta->liste_name[$fourn->grille].''; print 'Grille de tarif'; - - print '
'; + print '
'; + print 'Format de CDR
'; + + if (strlen($fourn->cdrformat)) + { + if (@require_once(DOL_DOCUMENT_ROOT."/telephonie/fournisseur/cdrformat/cdrformat.".$fourn->cdrformat.".class.php")) + { + $format = "CdrFormat".ucfirst($fourn->cdrformat); + $cdrformat = new $format(); + print '
'.$cdrformat->ShowSample().'
'; + } + } + print ''; + } } }