*** empty log message ***

This commit is contained in:
Rodolphe Quiedeville 2002-12-23 16:15:48 +00:00
parent 44f1b6d997
commit c8dc608dbb
3 changed files with 106 additions and 11 deletions

View File

@ -0,0 +1,89 @@
<?PHP
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* 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("./bank.lib.php3");
$db = new Db();
llxHeader();
if ($page == -1) { $page = 0 ; }
$offset = $conf->liste_limit * $page ;
$pageprev = $page - 1;
$pagenext = $page + 1;
print_barre_liste("Transactions BPLC", $page, $PHP_SELF);
print "<TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
print "<TR class=\"liste_titre\">";
print "<td>ip client</td><td>Num. transaction</td><td>Date</TD><td>heure</td>";
print "<td>Num autorisation</td>";
print "<td>clé acceptation</td>";
print "<td>code retour</td>";
print "<td>Réf. commande</td>";
print "</TR>\n";
$sql = "SELECT ipclient,
num_transaction,
date_transaction,
heure_transaction,
num_autorisation,
cle_acceptation,
code_retour,
ref_commande";
$sql .= " FROM transaction_bplc";
$result = $db->query($sql);
if ($result) {
$var=True;
$num = $db->num_rows();
$i = 0; $total = 0;
$sep = 0;
while ($i < $num) {
$objp = $db->fetch_object( $i);
print "<tr>";
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>";
print "<td>$objp->ref_commande</td>";
$i++;
}
$db->free();
}
print "</table>";
$db->close();
llxFooter(strftime("%H:%M",time()). " - <em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");
?>

View File

@ -65,11 +65,12 @@ function llxHeader($head = "")
$menu->add_submenu("bilan.php3","Bilan");
$menu->add_submenu("virement.php3","Virement");
$menu->add_submenu("config.php3","Config");
$menu->add("/compta/facture.php3","Factures");
$menu->add("/compta/bank/bplc.php","Transactions BPLC");
$menu->add("/compta/ca.php3","Chiffres d'affaires");
left_menu($menu->liste);

View File

@ -20,26 +20,31 @@
*
*/
/* /bplc.php?CHAMP000=500240&CHAMP001=5965&CHAMP002=5429999010&CHAMP003=I&CHAMP004=Serveur+de+test+FSF+France&CHAMP006=FSF+France+TEST&CHAMP008=rq@lolix.org&CHAMP100=Quiedeville&CHA
MP101=Rodolphe&CHAMP102=FSFFrance&CHAMP103=.&CHAMP104=rq@lolix.org&CHAMP105=80.15.137.93&CHAMP106=.&CHAMP107=.&CHAMP108=.&CHAMP109=.&CHAMP110=.&CHAMP200=15CB6D9703F8F46760846CEC4A3CADC8&CHAMP201=0,15&CHAMP202=EUR&CHAMP900=01&CHAMP901=0170610&CHAMP902=20021223&CHAMP903=170610&CHAMP904=950467&CHAMP905=2203G&CHAMP114=Quiedeville+Rodolphe&CHAMP906=0000&CHAMP907=0 HTTP/1.1" 200 5 "-" "Microsoft URL Control - 6.00.8169"
*/
require("../../lib/mysql.lib.php3");
require("../../conf/conf.class.php3");
require("../../retourbplc.class.php");
$conf = new Conf();
$conf = new Conf();
$db = new Db();
$retbplc = new Retourbplc($db, $conf);
$retbplc->ipclient = $HTTP_POST_VARS["CHAMP105"];
$retbplc->num_transaction = $HTTP_POST_VARS["CHAMP901"];
$retbplc->date_transaction = $HTTP_POST_VARS["CHAMP902"];
$retbplc->heure_transaction = $HTTP_POST_VARS["CHAMP903"];
$retbplc->num_autorisation = $HTTP_POST_VARS["CHAMP904"];
$retbplc->cle_acceptation = $HTTP_POST_VARS["CHAMP905"];
$retbplc->code_retour = $HTTP_POST_VARS["CHAMP906"];
$retbplc->ipclient = $CHAMP105;
$retbplc->num_transaction = $CHAMP901;
$retbplc->date_transaction = $CHAMP902;
$retbplc->heure_transaction = $CHAMP903;
$retbplc->num_autorisation = $CHAMP904;
$retbplc->cle_acceptation = $CHAMP905;
$retbplc->code_retour = $CHAMP906;
$retbplc->ref_commande = $HTTP_POST_VARS["CHAMP200"];
$retbplc->ref_commande = $CHAMP200;
$retbplc->insertdb();
print $retbplc->insertdb();