From 078085674b1602c99af84971414638e6b43974dc Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 6 Apr 2006 12:17:54 +0000 Subject: [PATCH] Ajout onglet commentaires --- htdocs/telephonie/ligne/fiche.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/ligne/fiche.php b/htdocs/telephonie/ligne/fiche.php index 3350a461c65..a135b52e6a4 100644 --- a/htdocs/telephonie/ligne/fiche.php +++ b/htdocs/telephonie/ligne/fiche.php @@ -545,6 +545,15 @@ else $head[$h][1] = $langs->trans('Historique'); $h++; + $head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/commentaires.php?id=".$ligne->id; + $head[$h][1] = $langs->trans('Commentaires'); + $numc = $ligne->num_comments(); + if ($numc > 0) + { + $head[$h][1] = $langs->trans("Commentaires ($numc)"); + } + $h++; + $head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/conso.php?id=".$ligne->id; $head[$h][1] = $langs->trans('Conso'); $h++; @@ -553,9 +562,16 @@ else $head[$h][1] = $langs->trans('Stats'); $h++; + $ligne->load_previous_next_id(); + + $previous_ref = $ligne->ref_previous?''.img_previous().'':''; + $next_ref = $ligne->ref_next?''.img_next().'':''; + dolibarr_fiche_head($head, $hselected, 'Ligne : '.$ligne->numero); - print_fiche_titre('Fiche Ligne', $mesg); + print ''; + print '
Fiche Ligne '.$mesg.''.$product->ref.''; + print ''.$previous_ref.''.$next_ref.'

'; /* *