From b47fec8c7461ed306382512b54cee3b1c52fbdeb Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 6 Aug 2015 13:41:49 +0200 Subject: [PATCH] place legend into its own column --- views/bootstrap/class.Charts.php | 39 ++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/views/bootstrap/class.Charts.php b/views/bootstrap/class.Charts.php index e7763a263..101348018 100644 --- a/views/bootstrap/class.Charts.php +++ b/views/bootstrap/class.Charts.php @@ -57,9 +57,9 @@ class SeedDMS_View_Charts extends SeedDMS_Bootstrap_Style { ?> \n"; -echo "
\n"; + +echo "
\n"; $this->contentHeading(getMLText("chart_selection")); echo "
\n"; foreach(array('docsperuser', 'sizeperuser', 'docspermimetype', 'docspercategory', 'docsperstatus', 'docspermonth', 'docsaccumulated') as $atype) { @@ -68,12 +68,29 @@ foreach(array('docsperuser', 'sizeperuser', 'docspermimetype', 'docspercategory' echo "
\n"; echo "
\n"; -echo "
\n"; +if(in_array($type, array('docspermonth', 'docsaccumulated'))) { + echo "
\n"; +} else { + echo "
\n"; +} $this->contentHeading(getMLText('chart_'.$type.'_title')); echo "
\n"; - ?>
+\n"; +echo "
\n"; + +if(!in_array($type, array('docspermonth', 'docsaccumulated'))) { + echo "
\n"; + $this->contentHeading(getMLText('legend')); + echo "
\n"; + echo "
\n"; + echo "
\n"; +} + +echo "
\n"; +?> \n"; -echo "
\n"; -echo "
\n"; - $this->contentContainerEnd(); $this->htmlEndPage();