From e1f79bc604165845bf4f6cb30adb7ee9c3e963b9 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 24 Apr 2006 11:08:10 +0000 Subject: [PATCH] =?UTF-8?q?D=E9but=20ajout=20de=20la=20gestion=20des=20adr?= =?UTF-8?q?esses=20de=20livraison?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 4955fcdd226..ac91178d3cc 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1588,7 +1588,7 @@ class Form */ function form_adresse_livraison($page, $selected='', $socid, $htmlname='adresse_livraison_id') { - global $langs; + global $langs,$conf; if ($htmlname != "none") { print '
'; @@ -1596,9 +1596,14 @@ class Form print ''; print ''; print ''; print ''; + if ($numaddress==0) + { + $langs->load("companies"); + print '   '.$langs->trans("AddAddress").''; + } print '
'; - $this->select_adresse_livraison($selected, $_GET['socid'], $htmlname); + $numaddress = $this->select_adresse_livraison($selected, $_GET['socid'], $htmlname); print '
'; } else