From 7c9972341f656dc649e7d7fef59c235a6f7e74aa Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 12 Dec 2005 14:25:41 +0000 Subject: [PATCH] Ajout curseur precedent et suivant --- htdocs/telephonie/contrat/fiche.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/htdocs/telephonie/contrat/fiche.php b/htdocs/telephonie/contrat/fiche.php index 8ab55917496..42bb47eb5df 100644 --- a/htdocs/telephonie/contrat/fiche.php +++ b/htdocs/telephonie/contrat/fiche.php @@ -457,10 +457,17 @@ else $head[$h][1] = $langs->trans("Infos"); $h++; + $contrat->load_previous_next_id(); + $previous_ref = $contrat->ref_previous?''.img_previous().'':''; + $next_ref = $contrat->ref_next?''.img_next().'':''; dolibarr_fiche_head($head, $hselected, 'Contrat : '.$contrat->ref); - print_fiche_titre('Fiche Contrat', $mesg); - + //print_fiche_titre('Fiche Contrat', $mesg); + + print ''; + print '
Fiche Contrat'.$product->ref.''; + print ''.$previous_ref.''.$next_ref.'

'; + print ''; //$client_comm = new Societe($db); @@ -951,16 +958,11 @@ else print ''; } - /* - * - * * */ - print ''; - /* ************************************************************************** */ /* */ /* Barre d'action */ @@ -971,7 +973,6 @@ else if ($_GET["action"] == '') { - if ($user->rights->telephonie->ligne->creer && $contrat->statut <> 6) { print 'Nouvelle ligne';