New dashboard and Graphics Engine Class, that also includes the SVG Vector Graphics...
[fa-stable.git] / reporting / includes / reports_classes.inc
index 38973243e0de386d9c8aaa47c03636c943d5bda3..c4a476ed66cec4cba15da90253a87fc8dc91b875 100644 (file)
@@ -170,7 +170,9 @@ class BoxReports
        {
                global $path_to_root, $SysPrefs,
                        $type_shortcuts;
-               $day_range = (isset($SysPrefs->max_days_in_docs) ? $SysPrefs->max_days_in_docs : 180);
+               $day_range = get_company_pref("max_days_in_docs");
+               if (!$day_range)
+                       $day_range = 180;
                $st = '';
                        switch ($type)
                        {
@@ -251,7 +253,7 @@ class BoxReports
 
                                case 'GRAPHIC':
                                        $sel = array(_("No Graphics"), _("Vertical bars"), _("Horizontal bars"), 
-                                                               _("Dots"), _("Lines"), _("Pie"), _("Donut"));
+                                                               _("Dots"), _("Lines"), _("Pie"), _("Donut"), _("Half donut"), _("Spline"));
                                        return array_selector($name, null, $sel);
 
                                case 'SYS_TYPES':