From ed6b1f3fcca802c00919b38cadbf3eefa270352f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Sep 2005 00:12:38 +0000 Subject: [PATCH] =?UTF-8?q?Param=E9trage=20du=20tel,=20fax,=20mail,=20web?= =?UTF-8?q?=20de=20la=20soci=E9t=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/index.php | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index 54a6079b4ad..7f63c77e099 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -41,6 +41,11 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update') dolibarr_set_const($db, "MAIN_INFO_SOCIETE_ADRESSE",stripslashes($_POST["address"])); dolibarr_set_const($db, "MAIN_INFO_SOCIETE_PAYS",stripslashes($_POST["pays_id"])); dolibarr_set_const($db, "MAIN_MONNAIE",stripslashes($_POST["currency"])); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_TEL",stripslashes($_POST["tel"])); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_FAX",stripslashes($_POST["fax"])); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_MAIL",stripslashes($_POST["mail"])); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_WEB",stripslashes($_POST["web"])); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_LOGO",stripslashes($_POST["logo"])); dolibarr_set_const($db, "MAIN_INFO_CAPITAL",stripslashes($_POST["capital"])); dolibarr_set_const($db, "MAIN_INFO_SOCIETE_FORME_JURIDIQUE",stripslashes($_POST["forme_juridique_code"])); @@ -49,6 +54,7 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update') dolibarr_set_const($db, "MAIN_INFO_APE",stripslashes($_POST["ape"])); dolibarr_set_const($db, "MAIN_INFO_RCS",stripslashes($_POST["rcs"])); dolibarr_set_const($db, "MAIN_INFO_TVAINTRA",stripslashes($_POST["tva"])); + dolibarr_set_const($db, "FACTURE_TVAOPTION",stripslashes($_POST["optiontva"])); if ($_POST['action'] != 'updateedit') @@ -114,6 +120,31 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') $form->select_currency($conf->global->MAIN_MONNAIE,"currency"); print ''; + $var=!$var; + print ''.$langs->trans("Tel").''; + print ''; + print ''; + + $var=!$var; + print ''.$langs->trans("Fax").''; + print ''; + print ''; + + $var=!$var; + print ''.$langs->trans("Mail").''; + print ''; + print ''; + + $var=!$var; + print ''.$langs->trans("Web").''; + print ''; + print ''; + + $var=!$var; + print ''.$langs->trans("Logo").''; + print ''; + print ''; + print ''; print '
'; @@ -304,6 +335,21 @@ else print $form->currency_name($conf->global->MAIN_MONNAIE,1); print ''; + $var=!$var; + print ''.$langs->trans("Tel").'' . $conf->global->MAIN_INFO_SOCIETE_TEL . ''; + + $var=!$var; + print ''.$langs->trans("Fax").'' . $conf->global->MAIN_INFO_SOCIETE_FAX . ''; + + $var=!$var; + print ''.$langs->trans("Mail").'' . $conf->global->MAIN_INFO_SOCIETE_MAIL . ''; + + $var=!$var; + print ''.$langs->trans("Web").'' . $conf->global->MAIN_INFO_SOCIETE_WEB . ''; + + $var=!$var; + print ''.$langs->trans("Logo").'' . $conf->global->MAIN_INFO_SOCIETE_LOGO . ''; + print ''; print '
';