From 2d6df7b0930a98033cf563356ae2ea024a578895 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 15 Feb 2006 16:58:42 +0000 Subject: [PATCH] changement affichage --- htdocs/comm/fiche.php | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 5a6d26bb3c5..1a00a82242f 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -234,7 +234,7 @@ if ($_socid > 0) print ''; print ''; - print ''; @@ -346,22 +346,38 @@ if ($_socid > 0) print ''; + print '
'.$langs->trans("Name").''; + print '
'.$langs->trans("Name").''; print $objsoc->nom; print '
'; print '
'; print $langs->trans('PaymentConditions'); - print ''; - print ' '; - print '
'; - print '
'; - $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'cond_reglement_id'); + print ''; + + if ($_GET['action'] != 'editconditions') print 'id.'">'.img_edit($langs->trans('SetConditions'),1).'
'; + print ''; + if ($_GET['action'] == 'editconditions') + { + $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'mode_reglement_id'); + } + else + { + $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'none'); + } + print ""; print ''; // mode de règlement print ''; print '
'; print $langs->trans('PaymentMode'); - print ''; - print ' '; - print '
'; - print ''; - $html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'mode_reglement_id'); + print ''; + if ($_GET['action'] != 'editmode') print 'id.'">'.img_edit($langs->trans('SetMode'),1).''; + print ''; + print ''; + if ($_GET['action'] == 'editmode') + { + $html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'mode_reglement_id'); + } + else + { + $html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'none'); + } print ""; print ''; }