From 83ff5e5abd623d9c66ee51b9b5379016b2ce7379 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 21 Jul 2004 08:46:32 +0000 Subject: [PATCH] =?UTF-8?q?Positionne=20le=20pays=20sur=20celui=20s=E9lect?= =?UTF-8?q?ionn=E9=20dans=20la=20conf,=20par=20d=E9faut=20lors=20de=20la?= =?UTF-8?q?=20cr=E9ation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/soc.php | 125 +++++++++++++++++++++++++------------------------ 1 file changed, 63 insertions(+), 62 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index be39e912813..2e9f769f667 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -79,75 +79,76 @@ $form = new Form($db); if ($_GET["action"] == 'create') { - if ($user->rights->societe->creer) { - /* - * Fiche societe en mode création - */ - $soc = new Societe($db); - if ($_GET["type"]=='f') { $soc->fournisseur=1; } - if ($_GET["type"]=='c') { $soc->client=1; } - if ($_GET["type"]=='p') { $soc->client=2; } + if ($user->rights->societe->creer) + { + /* + * Fiche societe en mode création + */ + $soc = new Societe($db); + if ($_GET["type"]=='f') { $soc->fournisseur=1; } + if ($_GET["type"]=='c') { $soc->client=1; } + if ($_GET["type"]=='p') { $soc->client=2; } + + print '
'.$langs->trans("NewCompany").'

'; + print '
'; + print ''; + print ''; + + print ''; + print ''; + print ''; + print ''; + + print ''; + + print ''; + + print ''; + print ''; + + print ''; + + print ''; + + print ''; + + print ''; + print ''; - print '
'.$langs->trans("NewCompany").'

'; - print ''; - print ''; - print ''; - - print '
'.$langs->trans('Name').'
'.$langs->trans('Address').'
'.$langs->trans('Zip').' '; + print $langs->trans('Town').' '.$langs->trans('State').''; + print $form->select_departement($soc->departement_id); + print '
'.$langs->trans('Country').''; + print $form->select_pays(MAIN_INFO_SOCIETE_PAYS); + print '
'.$langs->trans('Phone').''.$langs->trans('Fax').'
'.$langs->trans('Web').'http://
'.$langs->trans('ProfIdSiren').''.$langs->trans('ProfIdSiret').'
'.$langs->trans('Ape').'Capital '.MAIN_MONNAIE.'
'; - print ''; - print ''; - print ''; - - print ''; - - print ''; - - print ''; - print ''; - - print ''; - - print ''; - - print ''; - - print ''; - print ''; + print ''; - print ''; - - print ''; + print ''; - print ''; + print ''; + print ''; + print '
Vous pouvez vérifier ce numéro sur le site de la commission européenne'; + print ''; - print ''; + print ''; - print ''; + print ''; - print ''; - print '
'.$langs->trans('Name').'
'.$langs->trans('Address').'
'.$langs->trans('Zip').' '; - print $langs->trans('Town').' '.$langs->trans('State').''; - print $form->select_departement($soc->departement_id); - print '
'.$langs->trans('Country').''; - print $form->select_pays($soc->pays_id); - print '
'.$langs->trans('Phone').''.$langs->trans('Fax').'
'.$langs->trans('Web').'http://
'.$langs->trans('ProfIdSiren').''.$langs->trans('ProfIdSiret').'
'.$langs->trans('Ape').'Capital '.MAIN_MONNAIE.'
Forme juridique'; + print $form->select_forme_juridique($soc->forme_juridique_code); + print '
Forme juridique'; - print $form->select_forme_juridique($soc->forme_juridique_code); - print '
Effectif'; - print $form->select_array("effectif_id",$soc->effectif_array(), $soc->effectif_id); - print '
Effectif'; + print $form->select_array("effectif_id",$soc->effectif_array(), $soc->effectif_id); + print '
'.$langs->trans('TVAIntra').''; + print '
'.$langs->trans('TVAIntra').''; - print ''; - print ''; - print '
Vous pouvez vérifier ce numéro sur le site de la commission européenne'; - print '
'.$langs->trans('ProspectCustomer').'
'.$langs->trans('ProspectCustomer').''.$langs->trans('Supplier').'
'.$langs->trans('Supplier').'
'; - print '
'; - } + print ''; + print ''; + print ''; + } } elseif ($_GET["action"] == 'edit') {