From 437339c82193625156a1d81c19add4c8a37e3f81 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 26 May 2006 13:58:59 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20affichait=20les=20stats=20des=20services?= =?UTF-8?q?=20lorsque=20le=20module=20n'=E9tait=20pas=20actif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/langs/en_US/products.lang | 1 + htdocs/langs/fr_FR/products.lang | 1 + htdocs/product/stats/index.php | 33 ++++++++++++++++---------------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/htdocs/langs/en_US/products.lang b/htdocs/langs/en_US/products.lang index ca5ecf9e219..637d0f10920 100644 --- a/htdocs/langs/en_US/products.lang +++ b/htdocs/langs/en_US/products.lang @@ -16,6 +16,7 @@ ProductsOrServices=Products or Services ProductsAndServicesOnSell=Products and Services on sell ProductsAndServicesNotOnSell=Products and Services out of sell ProductsAndServicesStatistics=Products and Services statistics +ProductsStatistics=Products statistics ProductsOnSell=Products on sell ProductsNotOnSell=Products out of sell ServicesOnSell=Services on sell diff --git a/htdocs/langs/fr_FR/products.lang b/htdocs/langs/fr_FR/products.lang index 80a6c340ff6..90ad2cc95ed 100644 --- a/htdocs/langs/fr_FR/products.lang +++ b/htdocs/langs/fr_FR/products.lang @@ -16,6 +16,7 @@ ProductsAndServices=Produits et Services ProductsAndServicesOnSell=Produits et Services en vente ProductsAndServicesNotOnSell=Produits et Services hors vente ProductsAndServicesStatistics=Statistiques produits et services +ProductsStatistics=Statistiques produits ProductsOnSell=Produits en vente ProductsNotOnSell=Produits hors vente ServicesOnSell=Services en vente diff --git a/htdocs/product/stats/index.php b/htdocs/product/stats/index.php index df9c54cde39..d37bb57c069 100644 --- a/htdocs/product/stats/index.php +++ b/htdocs/product/stats/index.php @@ -86,25 +86,24 @@ else print_fiche_titre($langs->trans("ProductsStatistics"), $mesg); } +print '
'; +print ''; + +print ''; +print ''; +print "\n"; + +$var=True; +print ""; +print ''; +print ''; +$var=!$var; +print ""; +print ''; +print ''; + if ($conf->service->enabled) { - print '
'; - - print '
'.$langs->trans("Summary").''.$langs->trans("Value").'
Nb de produit dans le catalogue'.$nbproduct.'
Nb de produit dans le catalogue qui ne sont pas en vente'.$nbhv.'
'; - - print ''; - print ''; - print "\n"; - - $var=True; - print ""; - print ''; - print ''; - $var=!$var; - print ""; - print ''; - print ''; - $sql = "SELECT count(*)"; $sql .= " FROM ".MAIN_DB_PREFIX."product as p"; if ($conf->categorie->enabled && !$user->rights->categorie->voir)
'.$langs->trans("Summary").''.$langs->trans("Value").'
Nb de produit dans le catalogue'.$nbproduct.'
Nb de produit dans le catalogue qui ne sont pas en vente'.$nbhv.'