From f024dcfa92741878fbd3348867d1ddc91ec74eef Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 5 Feb 2004 18:18:47 +0000 Subject: [PATCH] =?UTF-8?q?Ajoute=20la=20gestion=20du=20num=E9ro=20de=20TV?= =?UTF-8?q?A=20Intracommunautaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/index.php | 63 +++++++++++++++++++++++++++++++++--------- 1 file changed, 50 insertions(+), 13 deletions(-) diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index 528a21be33f..f745065e047 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2004 Rodolphe Quiedeville * * 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 @@ -31,20 +31,28 @@ if ($HTTP_POST_VARS["action"] == 'changetheme') Header('Location: index.php'); } +if ($HTTP_POST_VARS["action"] == 'update') +{ + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_NOM",$HTTP_POST_VARS["nom"]); + dolibarr_set_const($db, "MAIN_INFO_TVAINTRA",$HTTP_POST_VARS["tva"]); + + Header('Location: index.php'); +} + + llxHeader(); print_titre("Configuration Dolibarr (version ".DOL_VERSION.")"); -print ''; +print '
'; print ''; print ''; print "\n"; print ''; - print ''; -if ($action == 'modtheme') +if ($_GET["action"] == 'modtheme') { clearstatcache(); $dir = "../theme/"; @@ -73,17 +81,46 @@ if ($action == 'modtheme') } else { -print ''; + print ''; +} +print '
NomValeurAction
Version' . DOL_VERSION . ' 
theme' . $conf->theme . 'Changer
' . $conf->theme . 'Changer

'; + +if ($_GET["action"] == 'edit') +{ + print '
'; + print ''; + + print ''; + print ''; + + print ''; + + print ''; + + print ''; + print '
Informations sur la société
Nom de la société'; + print '
Numéro de tva intracommunautaire'; + print '
'; + print '
'; +} +else +{ + + print ''; + print ''; + print ''; + print ''; + print '
Informations sur la société
Nom de la société' . MAIN_INFO_SOCIETE_NOM . '
Numéro de tva intracommunautaire' . MAIN_INFO_TVAINTRA . '

'; + + print '
'; + + print 'Editer'; + + print '
'; + + } -print 'Document root' . DOL_DOCUMENT_ROOT . ' '; - -print 'Base de données'; -print 'Type' . $conf->db->type . ' '; -print 'Serveur' . $conf->db->host . ' '; -print 'Nom' . $conf->db->name . ' '; - -print ''; llxFooter("Dernière modification $Date$ révision $Revision$"); ?>