2004-10-19 20:35:36 +00:00
|
|
|
|
<?php
|
2005-08-21 18:51:08 +00:00
|
|
|
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2004-02-15 03:12:50 +00:00
|
|
|
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
2002-12-23 16:15:48 +00: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 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$
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2003-09-11 20:18:51 +00:00
|
|
|
|
require("./pre.inc.php");
|
2006-08-13 00:34:16 +00:00
|
|
|
|
require_once(DOL_DOCUMENT_ROOT."/lib/bank.lib.php");
|
2002-12-23 16:15:48 +00:00
|
|
|
|
|
2005-08-21 18:51:08 +00:00
|
|
|
|
if (!$user->rights->banque->lire) accessforbidden();
|
2002-12-23 16:15:48 +00:00
|
|
|
|
|
|
|
|
|
|
llxHeader();
|
|
|
|
|
|
|
|
|
|
|
|
if ($page == -1) { $page = 0 ; }
|
|
|
|
|
|
|
|
|
|
|
|
$offset = $conf->liste_limit * $page ;
|
|
|
|
|
|
$pageprev = $page - 1;
|
|
|
|
|
|
$pagenext = $page + 1;
|
|
|
|
|
|
|
2004-07-30 13:13:05 +00:00
|
|
|
|
print_barre_liste("Transactions BPLC", $page, "bplc.php");
|
2002-12-23 16:15:48 +00:00
|
|
|
|
|
2004-02-15 03:05:16 +00:00
|
|
|
|
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
|
|
|
|
|
|
print "<tr class=\"liste_titre\">";
|
2002-12-28 14:57:29 +00:00
|
|
|
|
print "<td>R<>f. commande</td>";
|
2004-02-15 03:05:16 +00:00
|
|
|
|
print "<td>ip client</td><td>Num. transaction</td><td>Date</td><td>Heure</td>";
|
2002-12-23 16:15:48 +00:00
|
|
|
|
print "<td>Num autorisation</td>";
|
|
|
|
|
|
print "<td>cl<63> acceptation</td>";
|
|
|
|
|
|
print "<td>code retour</td>";
|
2004-02-15 03:05:16 +00:00
|
|
|
|
print "</tr>\n";
|
2002-12-23 16:15:48 +00:00
|
|
|
|
|
|
|
|
|
|
$sql = "SELECT ipclient,
|
|
|
|
|
|
num_transaction,
|
|
|
|
|
|
date_transaction,
|
|
|
|
|
|
heure_transaction,
|
|
|
|
|
|
num_autorisation,
|
|
|
|
|
|
cle_acceptation,
|
|
|
|
|
|
code_retour,
|
|
|
|
|
|
ref_commande";
|
|
|
|
|
|
|
2004-02-01 01:50:21 +00:00
|
|
|
|
$sql .= " FROM ".MAIN_DB_PREFIX."transaction_bplc";
|
2002-12-23 16:15:48 +00:00
|
|
|
|
|
2005-08-21 18:51:08 +00:00
|
|
|
|
$resql = $db->query($sql);
|
|
|
|
|
|
if ($resql)
|
|
|
|
|
|
{
|
2002-12-23 16:15:48 +00:00
|
|
|
|
$var=True;
|
2005-08-21 18:51:08 +00:00
|
|
|
|
$num = $db->num_rows($resql);
|
2002-12-23 16:15:48 +00:00
|
|
|
|
$i = 0; $total = 0;
|
2005-08-21 18:51:08 +00:00
|
|
|
|
|
2002-12-23 16:15:48 +00:00
|
|
|
|
$sep = 0;
|
|
|
|
|
|
|
2005-08-21 18:51:08 +00:00
|
|
|
|
while ($i < $num)
|
|
|
|
|
|
{
|
|
|
|
|
|
$objp = $db->fetch_object($resql);
|
|
|
|
|
|
|
|
|
|
|
|
print "<tr $bc[1]>";
|
|
|
|
|
|
|
|
|
|
|
|
$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 '<td><a href="../dons/fiche.php?rowid='.$id.'&action=edit">'.$objp->ref_commande.'</a></td>';
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "<td>$objp->ipclient</td>";
|
|
|
|
|
|
print "<td>$objp->num_transaction</td>";
|
|
|
|
|
|
print "<td>$objp->date_transaction</td>";
|
|
|
|
|
|
print "<td>$objp->heure_transaction</td>";
|
|
|
|
|
|
print "<td>$objp->num_autorisation</td>";
|
|
|
|
|
|
print "<td>$objp->cle_acceptation</td>";
|
|
|
|
|
|
print "<td>$objp->code_retour</td>";
|
|
|
|
|
|
$i++;
|
|
|
|
|
|
}
|
|
|
|
|
|
$db->free($resql);
|
2002-12-23 16:15:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
print "</table>";
|
|
|
|
|
|
|
|
|
|
|
|
$db->close();
|
|
|
|
|
|
|
2007-08-08 15:14:52 +00:00
|
|
|
|
llxFooter('$Date$ - $Revision$');
|
2002-12-23 16:15:48 +00:00
|
|
|
|
?>
|