diff --git a/htdocs/compta/bank/bilan.php b/htdocs/compta/bank/bilan.php
index 92ae40b8d06..54eda825a59 100644
--- a/htdocs/compta/bank/bilan.php
+++ b/htdocs/compta/bank/bilan.php
@@ -15,10 +15,13 @@
* 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$
- *
+ */
+
+/**
+ * \file htdocs/compta/bank/bilan.php
+ * \ingroup banque
+ * \brief Page de bilan
+ * \version $Id$
*/
require("./pre.inc.php");
@@ -48,13 +51,13 @@ print '
';
print '
';
print "";
-echo '| Résumé | ';
+echo 'R�sum� | ';
print "
\n";
$var=!$var;
$sql = "SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX."paiement";
$paiem = valeur($sql);
-print "| Somme des paiements (associés à une facture) | ".price($paiem)." |
";
+print "| Somme des paiements (associes a une facture) | ".price($paiem)." |
";
$var=!$var;
$sql = "SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX."bank WHERE amount > 0";
diff --git a/htdocs/compta/bank/bplc.php b/htdocs/compta/bank/bplc.php
index f3fa472622f..cb48238ac51 100644
--- a/htdocs/compta/bank/bplc.php
+++ b/htdocs/compta/bank/bplc.php
@@ -15,14 +15,25 @@
* 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$
+ */
+
+/**
+ * \file htdocs/compta/bank/bplc.php
+ * \ingroup banque
+ * \brief Page of BPLC transactions
+ * \version $Id$
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/bank.lib.php");
-if (!$user->rights->banque->lire) accessforbidden();
+// Security check
+restrictedArea($user,'banque');
+
+
+/*
+ * View
+ */
llxHeader();
@@ -36,20 +47,20 @@ print_barre_liste("Transactions BPLC", $page, "bplc.php");
print "";
print "";
-print "| Réf. commande | ";
+print "R�f. commande | ";
print "ip client | Num. transaction | Date | Heure | ";
print "Num autorisation | ";
-print "clé acceptation | ";
+print "cl� acceptation | ";
print "code retour | ";
print "
\n";
-$sql = "SELECT ipclient,
- num_transaction,
- date_transaction,
- heure_transaction,
- num_autorisation,
- cle_acceptation,
- code_retour,
+$sql = "SELECT ipclient,
+ num_transaction,
+ date_transaction,
+ heure_transaction,
+ num_autorisation,
+ cle_acceptation,
+ code_retour,
ref_commande";
$sql .= " FROM ".MAIN_DB_PREFIX."transaction_bplc";
@@ -57,33 +68,33 @@ $sql .= " FROM ".MAIN_DB_PREFIX."transaction_bplc";
$resql = $db->query($sql);
if ($resql)
{
- $var=True;
+ $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 '| '.$objp->ref_commande.' | ';
}
-
+
print "$objp->ipclient | ";
print "$objp->num_transaction | ";
print "$objp->date_transaction | ";
print "$objp->heure_transaction | ";
print "$objp->num_autorisation | ";
print "$objp->cle_acceptation | ";
- print "$objp->code_retour | ";
+ print "$objp->code_retour | ";
$i++;
}
$db->free($resql);
diff --git a/htdocs/compta/bank/budget.php b/htdocs/compta/bank/budget.php
index 3703568c63c..7cb9adf5a0c 100644
--- a/htdocs/compta/bank/budget.php
+++ b/htdocs/compta/bank/budget.php
@@ -19,11 +19,11 @@
*/
/**
- \file htdocs/compta/bank/budget.php
- \ingroup banque
- \brief Page de budget
- \version $Id$
-*/
+ * \file htdocs/compta/bank/budget.php
+ * \ingroup banque
+ * \brief Page de budget
+ * \version $Id$
+ */
require("./pre.inc.php");
@@ -40,7 +40,7 @@ $result=restrictedArea($user,'banque');
*/
$companystatic=new Societe($db);
-
+
llxHeader();