dolibarr/htdocs/fourn/paiement/info.php

67 lines
1.8 KiB
PHP
Raw Normal View History

2005-08-01 14:29:45 +02:00
<?php
2005-10-17 19:07:30 +02:00
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
2009-08-05 20:22:40 +02:00
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
2005-08-01 14:29:45 +02:00
*
* 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 3 of the License, or
2005-08-01 14:29:45 +02:00
* (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
2011-08-01 01:45:11 +02:00
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2005-08-01 14:29:45 +02:00
*/
2005-10-17 19:07:30 +02:00
/**
2009-08-05 20:22:40 +02:00
* \file htdocs/fourn/paiement/info.php
* \ingroup facture
* \brief Onglet info d'un paiement fournisseur
*/
2005-08-01 14:29:45 +02:00
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT.'/fourn/class/paiementfourn.class.php';
2005-08-01 14:29:45 +02:00
$langs->load("bills");
$langs->load("suppliers");
2005-08-01 14:29:45 +02:00
$langs->load("companies");
2009-08-05 20:22:40 +02:00
/*
* View
*/
2005-08-01 14:29:45 +02:00
llxHeader();
2005-10-17 19:07:30 +02:00
$h=0;
$head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/fiche.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Card");
2009-02-19 20:06:12 +01:00
$h++;
2005-10-17 19:07:30 +02:00
$head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/info.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Info");
$hselected = $h;
2009-02-19 20:06:12 +01:00
$h++;
2005-10-17 19:07:30 +02:00
2009-08-05 20:22:40 +02:00
dol_fiche_head($head, $hselected, $langs->trans("SupplierPayment"), 0, 'payment');
2005-08-01 14:29:45 +02:00
$paiement = new PaiementFourn($db);
$paiement->fetch($_GET["id"], $user);
$paiement->info($_GET["id"]);
print '<table width="100%"><tr><td>';
dol_print_object_info($paiement);
2005-08-01 14:29:45 +02:00
print '</td></tr></table>';
2005-10-17 19:07:30 +02:00
print '</div>';
2005-08-01 14:29:45 +02:00
$db->close();
llxFooter();
2005-08-01 14:29:45 +02:00
?>