From 10ff19eb46575d4ce43ae73d673f4b2c6c3f76c2 Mon Sep 17 00:00:00 2001 From: bobby Date: Mon, 28 Dec 2015 10:20:23 +0100 Subject: [PATCH] NEW : if nb total of lines provided in print barre_liste, display in title --- htdocs/core/lib/functions.lib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 0e6214560c4..ca59ce82ab3 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2985,7 +2985,11 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so // Left if ($picto && $titre) print ''.img_picto('', $picto, '', $pictoisfullpath).''; - print '
'.$titre.'
'; + print '
'.$titre; + if (!empty($totalnboflines)) { + print ' ('.$totalnboflines.')'; + } + print '
'; // Center if ($center)