Ajoute la gestion du numro de TVA Intracommunautaire
This commit is contained in:
parent
59a9d8be59
commit
f024dcfa92
@ -1,5 +1,5 @@
|
|||||||
<?PHP
|
<?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
|
* 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
|
* 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');
|
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();
|
llxHeader();
|
||||||
|
|
||||||
print_titre("Configuration Dolibarr (version ".DOL_VERSION.")");
|
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 '<tr class="liste_titre">';
|
||||||
print '<td>Nom</td><td>Valeur</td><td>Action</td>';
|
print '<td>Nom</td><td>Valeur</td><td>Action</td>';
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
|
|
||||||
print '<tr class="pair"><td>Version</td><td>' . DOL_VERSION . '</td><td> </td></tr>';
|
print '<tr class="pair"><td>Version</td><td>' . DOL_VERSION . '</td><td> </td></tr>';
|
||||||
|
|
||||||
print '<tr class="impair"><td>theme</td>';
|
print '<tr class="impair"><td>theme</td>';
|
||||||
|
|
||||||
if ($action == 'modtheme')
|
if ($_GET["action"] == 'modtheme')
|
||||||
{
|
{
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
$dir = "../theme/";
|
$dir = "../theme/";
|
||||||
@ -73,17 +81,46 @@ if ($action == 'modtheme')
|
|||||||
}
|
}
|
||||||
else
|
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été</td></tr>';
|
||||||
|
|
||||||
|
print '<tr class="impair"><td>Nom de la société</td><td>';
|
||||||
|
print '<input name="nom" value="'. MAIN_INFO_SOCIETE_NOM . '"></td></tr>';
|
||||||
|
|
||||||
|
print '<tr class="pair"><td width="50%">Numé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été</td></tr>';
|
||||||
|
print '<tr class="impair"><td width="50%">Nom de la société</td><td>' . MAIN_INFO_SOCIETE_NOM . '</td></tr>';
|
||||||
|
print '<tr class="pair"><td>Numé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> </td></tr>';
|
|
||||||
|
|
||||||
print '<tr class="liste_titre"><td colspan="3">Base de données</td></tr>';
|
|
||||||
print '<tr class="pair"><td>Type</td><td>' . $conf->db->type . '</td><td> </td></tr>';
|
|
||||||
print '<tr class="impair"><td>Serveur</td><td>' . $conf->db->host . '</td><td> </td></tr>';
|
|
||||||
print '<tr class="pair"><td>Nom</td><td>' . $conf->db->name . '</td><td> </td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
|
|
||||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user