From 864da612efb9a1af20835c1a89c8d7bfbbaaa7e5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 28 Nov 2004 15:28:11 +0000 Subject: [PATCH] Trad: Quelques traductions de plus --- htdocs/commande/fiche.php | 49 +++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index a1a16818c97..bee15a80b7b 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -21,10 +21,10 @@ * */ -/*! \file htdocs/commande/fiche.php - \ingroup commande - \brief Fiche commande - \version $Revision$ +/*! \file htdocs/commande/fiche.php + \ingroup commande + \brief Fiche commande + \version $Revision$ */ require("./pre.inc.php"); @@ -175,10 +175,7 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == yes) } } -/* - * - */ -if ($action == 'pdf') +if ($_GET["action"] == 'pdf') { /* * Generation de la commande @@ -187,6 +184,7 @@ if ($action == 'pdf') commande_pdf_create($db, $_GET["id"]); } + llxHeader('',$langs->trans("OrderCard"),"Commande"); @@ -404,7 +402,7 @@ else $id = $_GET["id"]; if ($id > 0) { - $commande = New Commande($db); + $commande = new Commande($db); if ( $commande->fetch($id) > 0) { $soc = new Societe($db); @@ -457,7 +455,7 @@ else print ''; } - print ''; + print '
'; print ""; print ''; @@ -498,14 +496,14 @@ else print ''; print ''; print ''; - print ''; + print ''; print '
".$langs->trans("Customer")."'; print ''.$soc->nom.'
'.$langs->trans("AmountHT").''.price($commande->total_ht).''.MAIN_MONNAIE.'Note :
'.$langs->trans("Note").' :
Remise globale'; if ($commande->brouillon == 1 && $user->rights->commande->creer) { print '%'; - print ''; + print ''; } else { @@ -533,7 +531,7 @@ else * Lignes de commandes * */ - echo '
'; + echo '
'; $sql = "SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_tx, l.remise_percent, l.subprice"; $sql .= " FROM ".MAIN_DB_PREFIX."commandedet as l WHERE l.fk_commande = $id ORDER BY l.rowid"; @@ -548,9 +546,9 @@ else { print ''; print ''; - print ''; - print ''; - print ''; + print ''; + print ''; + print ''; print ''; print ''; print "\n"; @@ -559,7 +557,7 @@ else while ($i < $num) { $objp = $db->fetch_object(); - print ""; + print ""; if ($objp->fk_product > 0) { print '"; - print ''; + print ''; print ''; print ''; print ''; @@ -691,7 +689,7 @@ else if ($commande->statut == 0 && $user->rights->commande->supprimer) { - print 'Supprimer'; + print ''.$langs->trans("Delete").''; } if ($commande->statut > 0 && $commande->statut < 3 && $user->rights->expedition->creer) @@ -704,7 +702,7 @@ else { if ($user->rights->commande->valider) { - print 'Valider'; + print ''.$langs->trans("Valid").''; } } @@ -713,7 +711,7 @@ else $nb_expedition = $commande->nb_expedition(); if ($user->rights->commande->valider && $nb_expedition == 0) { - print 'Annuler la commande'; + print ''.$langs->trans("Cancel").''; } } @@ -738,7 +736,7 @@ else { print_titre("Expéditions"); $i = 0; $total = 0; - print '
'.$langs->trans("Description").'TvaQuantitéRemise'.$langs->trans("VAT").''.$langs->trans("Qty").''.$langs->trans("Discount").'P.U.  
'; @@ -601,7 +599,7 @@ else print ''; print ''; print "
 %
'; + print '
'; print "\n"; $var=True; @@ -759,6 +757,7 @@ else print $db->error(); } print " 
ExpéditionDate
"; + /* * Liste des factures */ @@ -775,7 +774,7 @@ else print_titre("Factures"); $i = 0; $total = 0; print ''; - print "\n"; + print "\n"; $var=True; while ($i < $num) @@ -806,7 +805,7 @@ else { print_titre("Documents"); - print '
FactureDate
Facture".$langs->trans("Date")."
'; + print '
'; print ""; print ''; @@ -825,7 +824,7 @@ else { print '

'; print ''; - print '

Commande PDFref."/".$commande->ref.'.pdf">'.$commande->ref.'.pdf
'; + print '
'; print '
Projet'; $proj = new Project($db);