From aa9c6d1730ca82d6c03e318c38ac09749919d9eb Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 15 Dec 2015 00:36:59 +0100 Subject: [PATCH] Rerun of dashboard.inc file --- includes/dashboard.inc | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/includes/dashboard.inc b/includes/dashboard.inc index 13a94629..eaaf4a55 100644 --- a/includes/dashboard.inc +++ b/includes/dashboard.inc @@ -53,20 +53,10 @@ function dashboard($sel_app) display_all(); } -function display_customer_topten() +function display_title($title, $colspan=2) { - $pg = new graph(); - - echo ""; - echo "
\n"; // outer table - $today = Today(); - $title = customer_top($today, 10, 66, $pg); - customer_trans($today); - echo "\n"; - source_graphic($today, $title, _("Customer"), $pg); - customer_recurrent_invoices($today); - echo "
\n"; -} + echo "$title\n"; +} function table_one() { @@ -84,6 +74,20 @@ function table_end() echo "\n"; } +function display_customer_topten() +{ + $pg = new graph(); + + table_one(); + $today = Today(); + $title = customer_top($today, 10, 66, $pg); + customer_trans($today); + table_two(); + source_graphic($today, $title, _("Customer"), $pg); + customer_recurrent_invoices($today); + table_end(); +} + function display_supplier_topten() { $pg = new graph(); @@ -161,11 +165,6 @@ function display_all() table_end(); } -function display_title($title, $colspan=2) -{ - echo "$title\n"; -} - function customer_top($today, $limit=10, $width="33", &$pg=null) { $begin = begin_fiscalyear(); -- 2.30.2