2
0
forked from Wavyzz/dolibarr

Ajoute la gestion du numro de TVA Intracommunautaire

This commit is contained in:
Rodolphe Quiedeville
2004-02-05 18:18:47 +00:00
parent 59a9d8be59
commit f024dcfa92

View File

@@ -1,5 +1,5 @@
<?PHP
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* 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 '<table class="border" cellpadding="3" cellspacing="0">';
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
print '<tr class="liste_titre">';
print '<td>Nom</td><td>Valeur</td><td>Action</td>';
print "</TR>\n";
print '<tr class="pair"><td>Version</td><td>' . DOL_VERSION . '</td><td>&nbsp;</td></tr>';
print '<tr class="impair"><td>theme</td>';
if ($action == 'modtheme')
if ($_GET["action"] == 'modtheme')
{
clearstatcache();
$dir = "../theme/";
@@ -73,17 +81,46 @@ if ($action == 'modtheme')
}
else
{
print '<td>' . $conf->theme . '</td><td><a href="index.php?action=modtheme">Changer</a></td></tr>';
print '<td>' . $conf->theme . '</td><td><a href="index.php?action=modtheme">Changer</a></td></tr>';
}
print '</table><br>';
if ($_GET["action"] == 'edit')
{
print '<form method="post" action="index.php">';
print '<input type="hidden" name="action" value="update">';
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
print '<tr class="liste_titre"><td colspan="3">Informations sur la soci<63>t<EFBFBD></td></tr>';
print '<tr class="impair"><td>Nom de la soci<63>t<EFBFBD></td><td>';
print '<input name="nom" value="'. MAIN_INFO_SOCIETE_NOM . '"></td></tr>';
print '<tr class="pair"><td width="50%">Num<75>ro de tva intracommunautaire</td><td>';
print '<input name="tva" size="20" value="' . MAIN_INFO_TVAINTRA . '"></td></tr>';
print '<tr class="impair"><td colspan="2">';
print '<input type="submit" value="Enregistrer"></td></tr>';
print '</table></form>';
}
else
{
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
print '<tr class="liste_titre"><td colspan="3">Informations sur la soci<63>t<EFBFBD></td></tr>';
print '<tr class="impair"><td width="50%">Nom de la soci<63>t<EFBFBD></td><td>' . MAIN_INFO_SOCIETE_NOM . '</td></tr>';
print '<tr class="pair"><td>Num<75>ro de tva intracommunautaire</td><td>' . MAIN_INFO_TVAINTRA . '</td></tr>';
print '</table><br>';
print '<div class="tabsAction">';
print '<a class="tabAction" href="index.php?action=edit">Editer</a>';
print '</div>';
}
print '<tr class="pair"><td>Document root</td><td>' . DOL_DOCUMENT_ROOT . '</td><td>&nbsp;</td></tr>';
print '<tr class="liste_titre"><td colspan="3">Base de donn<6E>es</td></tr>';
print '<tr class="pair"><td>Type</td><td>' . $conf->db->type . '</td><td>&nbsp;</td></tr>';
print '<tr class="impair"><td>Serveur</td><td>' . $conf->db->host . '</td><td>&nbsp;</td></tr>';
print '<tr class="pair"><td>Nom</td><td>' . $conf->db->name . '</td><td>&nbsp;</td></tr>';
print '</table>';
llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");
?>