* Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ * $Source$ */ /*! \file htdocs/admin/index.php \brief Page d'accueil de l'espace administration/configuration \version $Revision$ */ require("./pre.inc.php"); $langs->load("admin"); if (!$user->admin) accessforbidden(); if ($_POST["action"] == 'update') { dolibarr_set_const($db, "MAIN_INFO_SOCIETE_NOM",$_POST["nom"]); dolibarr_set_const($db, "MAIN_INFO_SOCIETE_PAYS",$_POST["pays_id"]); dolibarr_set_const($db, "MAIN_INFO_TVAINTRA",$_POST["tva"]); dolibarr_set_const($db, "MAIN_INFO_CAPITAL",$_POST["capital"]); dolibarr_set_const($db, "MAIN_INFO_SIREN",$_POST["siren"]); dolibarr_set_const($db, "MAIN_INFO_SIRET",$_POST["siret"]); dolibarr_set_const($db, "MAIN_INFO_APE",$_POST["ape"]); Header("Location: index.php"); } llxHeader(); $form = new Form($db); print_titre($langs->trans("GlobalSetup")); print "
\n"; if ($_GET["action"] == 'edit') { print '
'; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print '
Informations sur la société ou association
Nom de la société/association'; print '
Pays de la société'; $form->select_pays(MAIN_INFO_SOCIETE_PAYS); print '
Numéro de TVA intracommunautaire'; print '
Capital'; print '
Identifiant professionnel (SIREN,SIRET,...)'; print '
Code de l\'activité économique'; print '
'; print '
'; } else { print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print '
Informations sur la société/association'.$langs->trans("Value").'
Nom de la société/association' . MAIN_INFO_SOCIETE_NOM . '
Pays de la société'; print $form->pays_name(MAIN_INFO_SOCIETE_PAYS); print '
Numéro de TVA intracommunautaire' . MAIN_INFO_TVAINTRA . '
Capital'; print MAIN_INFO_CAPITAL . '
Identifiant professionnel (SIREN,...)'; print MAIN_INFO_SIREN . '
Code de l\'activité économique'; print MAIN_INFO_APE . '

'; // Boutons d'action print '
'; print ''.$langs->trans("Edit").''; print '
'; } llxFooter("Dernière modification $Date$ révision $Revision$"); ?>