* Copyright (C) 2004 Laurent Destailleur * * 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.php"); require_once(DOL_DOCUMENT_ROOT."/lib/bank.lib.php"); $user->getrights('compta'); if (!$user->rights->banque->lire) accessforbidden(); llxHeader(); if ($page == -1) { $page = 0 ; } $offset = $conf->liste_limit * $page ; $pageprev = $page - 1; $pagenext = $page + 1; print_barre_liste("Transactions BPLC", $page, "bplc.php"); print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "\n"; $sql = "SELECT ipclient, num_transaction, date_transaction, heure_transaction, num_autorisation, cle_acceptation, code_retour, ref_commande"; $sql .= " FROM ".MAIN_DB_PREFIX."transaction_bplc"; $resql = $db->query($sql); if ($resql) { $var=True; $num = $db->num_rows($resql); $i = 0; $total = 0; $sep = 0; while ($i < $num) { $objp = $db->fetch_object($resql); print ""; $type = substr($objp->ref_commande, strlen($objp->ref_commande) - 2 ); $id = substr($objp->ref_commande, 0 , strlen($objp->ref_commande) - 2 ); if ($type == 10) { print ''; } print ""; print ""; print ""; print ""; print ""; print ""; print ""; $i++; } $db->free($resql); } print "
Réf. commandeip clientNum. transactionDateHeureNum autorisationclé acceptationcode retour
'.$objp->ref_commande.'$objp->ipclient$objp->num_transaction$objp->date_transaction$objp->heure_transaction$objp->num_autorisation$objp->cle_acceptation$objp->code_retour
"; $db->close(); llxFooter(strftime("%H:%M",time()). " - Dernière modification $Date$ révision $Revision$"); ?>