From 8f7371cdf0f6b7e8a286a783673f847daeac6706 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Jun 2017 12:24:42 +0200 Subject: [PATCH] Product has 2 status. Add span to differentiate for css --- htdocs/core/boxes/box_produits.php | 6 ++++-- htdocs/core/boxes/box_produits_alerte_stock.php | 17 ++++++++++++----- htdocs/product/index.php | 8 ++++---- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/htdocs/core/boxes/box_produits.php b/htdocs/core/boxes/box_produits.php index c495c83f867..7ea5b8aec58 100644 --- a/htdocs/core/boxes/box_produits.php +++ b/htdocs/core/boxes/box_produits.php @@ -162,12 +162,14 @@ class box_produits extends ModeleBoxes $this->info_box_contents[$line][] = array( 'td' => 'align="right" width="18"', - 'text' => $productstatic->LibStatut($objp->tosell,3,0), + 'text' => ''.$productstatic->LibStatut($objp->tosell,3,0).'', + 'asis' => 1 ); $this->info_box_contents[$line][] = array( 'td' => 'align="right" width="18"', - 'text' => $productstatic->LibStatut($objp->tobuy,3,1), + 'text' => ''.$productstatic->LibStatut($objp->tobuy,3,1).'', + 'asis' => 1 ); $line++; diff --git a/htdocs/core/boxes/box_produits_alerte_stock.php b/htdocs/core/boxes/box_produits_alerte_stock.php index c8c856684af..8a6044583d5 100644 --- a/htdocs/core/boxes/box_produits_alerte_stock.php +++ b/htdocs/core/boxes/box_produits_alerte_stock.php @@ -164,15 +164,22 @@ class box_produits_alerte_stock extends ModeleBoxes 'text' => $price_base_type, ); - $this->info_box_contents[$line][] = array('td' => 'align="center"', + $this->info_box_contents[$line][] = array( + 'td' => 'align="center"', 'text' => $objp->total_stock . ' / '.$objp->seuil_stock_alerte, 'text2'=>img_warning($langs->transnoentitiesnoconv("StockLowerThanLimit"))); - $this->info_box_contents[$line][] = array('td' => 'align="right" width="18"', - 'text' => $productstatic->LibStatut($objp->tosell,3,0)); + $this->info_box_contents[$line][] = array( + 'td' => 'align="right" width="18"', + 'text' => ''.$productstatic->LibStatut($objp->tosell,3,0).'', + 'asis' => 1 + ); - $this->info_box_contents[$line][] = array('td' => 'align="right" width="18"', - 'text' => $productstatic->LibStatut($objp->tobuy,3,1)); + $this->info_box_contents[$line][] = array( + 'td' => 'align="right" width="18"', + 'text' => ''.$productstatic->LibStatut($objp->tobuy,3,0).'', + 'asis' => 1 + ); $line++; } diff --git a/htdocs/product/index.php b/htdocs/product/index.php index c882390a56a..981ba71e72d 100644 --- a/htdocs/product/index.php +++ b/htdocs/product/index.php @@ -335,12 +335,12 @@ if ($result) else print price($objp->price).' '.$langs->trans("HT"); print ''; } - print ''; + print ''; print $product_static->LibStatut($objp->tosell,5,0); - print ""; - print ''; + print ""; + print ''; print $product_static->LibStatut($objp->tobuy,5,1); - print ""; + print ""; print "\n"; $i++; }