From 7b2e6a297456337481a390e54d77b1f98b4c5eb7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 27 Oct 2013 00:34:25 +0200 Subject: [PATCH] Fix: responsive desing of page --- htdocs/product/stats/fiche.php | 35 +++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index 20a11f8dc4d..4b706a0c6ee 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -1,6 +1,6 @@ - * Copyright (c) 2004-2011 Laurent Destailleur + * Copyright (c) 2004-2013 Laurent Destailleur * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2005 Eric Seigne * @@ -66,8 +66,8 @@ if (! empty($id) || ! empty($ref)) $head=product_prepare_head($object, $user); $titre=$langs->trans("CardProduct".$object->type); $picto=($object->type==1?'service':'product'); - dol_fiche_head($head, 'stats', $titre, 0, $picto); + dol_fiche_head($head, 'stats', $titre, 0, $picto); print ''; @@ -92,7 +92,8 @@ if (! empty($id) || ! empty($ref)) print ''; print '
'; - print ''; + + dol_fiche_end(); // Choice of stats @@ -108,7 +109,7 @@ if (! empty($id) || ! empty($ref)) print '

'; - print ''; + //print '
'; // Generation des graphs $WIDTH=380; @@ -197,10 +198,16 @@ if (! empty($id) || ! empty($ref)) if ($graphfiles == 'invoices_suppliers' && ! $user->rights->fournisseur->facture->lire) continue; - if ($i % 2 == 0) print ''; + if ($i % 2 == 0) + { + print "\n".'
'."\n"; + } + else + { + print "\n".'
'."\n"; + } // Show graph - print '
'; - - if ($i % 2 == 1) print ''; - + if ($i % 2 == 0) + { + print "\n".''."\n"; + } + else + { + print "\n".''; + print '

'."\n"; + } $i++; } - if ($i % 2 == 1) print ''; - - print '
'; print ''; // Label @@ -226,17 +233,19 @@ if (! empty($id) || ! empty($ref)) print ''; print '
'; - print '
 
'; print '
'; print '
';