[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * 19 * $Id: bplc.php,v 1.16 2005/08/21 18:52:27 rodolphe Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/compta/bank/bplc.php,v $ 21 */ 22 23 require ("./pre.inc.php"); 24 require ("./bank.lib.php"); 25 26 $user->getrights('compta'); 27 28 if (!$user->rights->banque->lire) accessforbidden(); 29 30 llxHeader(); 31 32 if ($page == -1) { $page = 0 ; } 33 34 $offset = $conf->liste_limit * $page ; 35 $pageprev = $page - 1; 36 $pagenext = $page + 1; 37 38 print_barre_liste("Transactions BPLC", $page, "bplc.php"); 39 40 print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">"; 41 print "<tr class=\"liste_titre\">"; 42 print "<td>Réf. commande</td>"; 43 print "<td>ip client</td><td>Num. transaction</td><td>Date</td><td>Heure</td>"; 44 print "<td>Num autorisation</td>"; 45 print "<td>clé acceptation</td>"; 46 print "<td>code retour</td>"; 47 print "</tr>\n"; 48 49 $sql = "SELECT ipclient, 50 num_transaction, 51 date_transaction, 52 heure_transaction, 53 num_autorisation, 54 cle_acceptation, 55 code_retour, 56 ref_commande"; 57 58 $sql .= " FROM ".MAIN_DB_PREFIX."transaction_bplc"; 59 60 $resql = $db->query($sql); 61 if ($resql) 62 { 63 $var=True; 64 $num = $db->num_rows($resql); 65 $i = 0; $total = 0; 66 67 $sep = 0; 68 69 while ($i < $num) 70 { 71 $objp = $db->fetch_object($resql); 72 73 print "<tr $bc[1]>"; 74 75 $type = substr($objp->ref_commande, strlen($objp->ref_commande) - 2 ); 76 $id = substr($objp->ref_commande, 0 , strlen($objp->ref_commande) - 2 ); 77 78 if ($type == 10) 79 { 80 print '<td><a href="../dons/fiche.php?rowid='.$id.'&action=edit">'.$objp->ref_commande.'</a></td>'; 81 } 82 83 print "<td>$objp->ipclient</td>"; 84 print "<td>$objp->num_transaction</td>"; 85 print "<td>$objp->date_transaction</td>"; 86 print "<td>$objp->heure_transaction</td>"; 87 print "<td>$objp->num_autorisation</td>"; 88 print "<td>$objp->cle_acceptation</td>"; 89 print "<td>$objp->code_retour</td>"; 90 $i++; 91 } 92 $db->free($resql); 93 } 94 print "</table>"; 95 96 $db->close(); 97 98 llxFooter(strftime("%H:%M",time()). " - <em>Dernière modification $Date: 2005/08/21 18:52:27 $ révision $Revision: 1.16 $</em>"); 99 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |