*
* 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$
*
*/
require("./pre.inc.php3");
require("../../tva.class.php3");
$mesg = '';
if ($HTTP_POST_VARS["action"] == 'add' && $HTTP_POST_VARS["cancel"] <> 'Annuler')
{
$tva = new Tva($db);
$tva->add_payement(mktime(12,0,0,
$HTTP_POST_VARS["datevmonth"],
$HTTP_POST_VARS["datevday"],
$HTTP_POST_VARS["datevyear"]
),
mktime(12,0,0,
$HTTP_POST_VARS["datepmonth"],
$HTTP_POST_VARS["datepday"],
$HTTP_POST_VARS["datepyear"]
),
$HTTP_POST_VARS["amount"]
);
Header ( "Location: reglement.php");
}
llxHeader();
/*
*
*
*/
$html = new Form($db);
if ($action == 'create')
{
print "
';
}
else
{
if ($id)
{
$product = new Product($db);
$result = $product->fetch($id);
if ( $result )
{
print '
';
print '
';
print '
';
print_fiche_titre('Fiche produit : '.$product->ref, $mesg);
print '
';
print "
";
print '
Référence
'.$product->ref.'
';
print '
';
if ($product->envente)
{
print "En vente";
}
else
{
print "Cet article n'est pas en vente";
}
print '