From b2a1d23014638ac8a8996d91c0ec3068083a321f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 31 Dec 2004 13:43:06 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20saisie=20par=20defaut=20du=20num=E9ro?= =?UTF-8?q?=20de=20t=E9l=E9phone=20de=20la=20soci=E9t=E9=20lors=20de=20la?= =?UTF-8?q?=20cr=E9ation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/contact/fiche.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index f670c7b4a6d..36473ee011c 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -199,18 +199,26 @@ if ($_GET["socid"] > 0) if ($_GET["action"] == 'create') { - /* - * Fiche en mode creation - * - */ + /* + * Fiche en mode creation + * + */ + print '
'; - print "
"; + print ''; print ''; print ''; if ($_GET["socid"] > 0) { + + /* On remplit avec le numéro de la société par défaut */ + if (strlen(trim($contact->phone_pro)) == 0) + { + $contact->phone_pro = $objsoc->tel; + } + print ''; print ''; print '';
'.$langs->trans("Company").''.$objsoc->nom.'