From 4cc13064db8e63bcb446c1e325ded457668f74f3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 5 Apr 2012 21:15:09 +0200 Subject: [PATCH] Fix: W3C --- htdocs/product/index.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/htdocs/product/index.php b/htdocs/product/index.php index 27b8bf7065f..bfd666fad2b 100644 --- a/htdocs/product/index.php +++ b/htdocs/product/index.php @@ -159,7 +159,7 @@ print ''; print ''; /* - * Derniers produits/services en vente + * Last modified products */ $max=15; $sql = "SELECT p.rowid, p.label, p.price, p.ref, p.fk_product_type, p.tosell, p.tobuy,"; @@ -186,7 +186,10 @@ if ($result) print ''; - print ''; + $colnb=5; + if (empty($conf->global->PRODUIT_MULTIPRICES)) $colnb++; + + print ''; $var=True; @@ -211,7 +214,7 @@ if ($result) } $var=!$var; - print ""; + print ""; print ''; + if ($objp->price_base_type == 'TTC') print price($objp->price_ttc).' '.$langs->trans("TTC"); + else print price($objp->price).' '.$langs->trans("HT"); + print ''; } print '
'.$transRecordedType.'
'.$transRecordedType.'
'; $product_static->id=$objp->rowid; $product_static->ref=$objp->ref; @@ -226,9 +229,9 @@ if ($result) if (empty($conf->global->PRODUIT_MULTIPRICES)) { print ''; - if ($objp->price_base_type == 'TTC') print price($objp->price_ttc).' '.$langs->trans("TTC"); - else print price($objp->price).' '.$langs->trans("HT"); - print ''; print $product_static->LibStatut($objp->tosell,5,0); @@ -252,7 +255,7 @@ else print '
'; -$db->close(); - llxFooter(); + +$db->close(); ?>