diff --git a/htdocs/compta/bank/bplc.php b/htdocs/compta/bank/bplc.php new file mode 100644 index 00000000000..1229192c8ca --- /dev/null +++ b/htdocs/compta/bank/bplc.php @@ -0,0 +1,89 @@ + + * + * 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 ""; +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 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 ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + + + $i++; + } + $db->free(); +} +print "
ip clientNum. transactionDateheureNum autorisationclé acceptationcode retourRéf. commande
$objp->ipclient$objp->num_transaction$objp->date_transaction$objp->heure_transaction$objp->num_autorisation$objp->cle_acceptation$objp->code_retour$objp->ref_commande
"; + +$db->close(); + +llxFooter(strftime("%H:%M",time()). " - Dernière modification $Date$ révision $Revision$"); +?> diff --git a/htdocs/compta/bank/pre.inc.php3 b/htdocs/compta/bank/pre.inc.php3 index 26283d1a7f6..9494b447454 100644 --- a/htdocs/compta/bank/pre.inc.php3 +++ b/htdocs/compta/bank/pre.inc.php3 @@ -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); diff --git a/htdocs/public/dons/bplc.php b/htdocs/public/dons/bplc.php index e172a5d5cbb..2daaf710ae3 100644 --- a/htdocs/public/dons/bplc.php +++ b/htdocs/public/dons/bplc.php @@ -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();