diff --git a/htdocs/compta/prelevement/fiche.php b/htdocs/compta/prelevement/fiche.php index dc6e029bf376705976f83213fff6522a19e6dd2d..3b4803c9b9e8bf09c70f3fa619ea4dc70842c7c3 100644 --- a/htdocs/compta/prelevement/fiche.php +++ b/htdocs/compta/prelevement/fiche.php @@ -1,5 +1,6 @@ <?PHP /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> + * Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net> * * 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 @@ -19,8 +20,19 @@ * $Source$ * */ + +/** + \file htdocs/compta/prelevement/fiche.php + \ingroup prelevement + \brief Fiche prelevement + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("bills"); + + /* * S�curit� acc�s client */ @@ -61,16 +73,16 @@ llxHeader('','Bon de pr $h = 0; $head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/fiche.php?id='.$_GET["id"]; -$head[$h][1] = $langs->trans("Fiche"); +$head[$h][1] = $langs->trans("Card"); $hselected = $h; $h++; $head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/factures.php?id='.$_GET["id"]; -$head[$h][1] = $langs->trans("Factures"); +$head[$h][1] = $langs->trans("Bills"); $h++; $head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/fiche-stat.php?id='.$_GET["id"]; -$head[$h][1] = $langs->trans("Statistiques"); +$head[$h][1] = $langs->trans("Statistics"); $h++; $prev_id = $_GET["id"]; @@ -93,10 +105,10 @@ if ($_GET["id"]) print '<table class="border" width="100%">'; - print '<tr><td width="20%">R�f�rence</td><td>'.$bon->ref.'</td></tr>'; - print '<tr><td width="20%">Date</td><td>'.strftime("%d %b %Y",$bon->datec).'</td></tr>'; - print '<tr><td width="20%">Montant</td><td>'.price($bon->amount).'</td></tr>'; - print '<tr><td width="20%">Fichier</td><td>'; + print '<tr><td width="20%">'.$langs->trans("Ref").'</td><td>'.$bon->ref.'</td></tr>'; + print '<tr><td width="20%">'.$langs->trans("Date").'</td><td>'.strftime("%d %b %Y",$bon->datec).'</td></tr>'; + print '<tr><td width="20%">'.$langs->trans("Amount").'</td><td>'.price($bon->amount).'</td></tr>'; + print '<tr><td width="20%">'.$langs->trans("File").'</td><td>'; $encfile = urlencode(DOL_DATA_ROOT.'/prelevement/bon/'.$bon->ref); @@ -159,7 +171,7 @@ if ($_GET["id"]) } else { - print "Erreur"; + dolibarr_print_error($db); } }