From 3bdbbc714751e5369cece79cba8d1918b31614a2 Mon Sep 17 00:00:00 2001 From: Nicolas ZABOURI Date: Fri, 26 Jul 2019 17:17:59 +0200 Subject: [PATCH 1/2] NEW list of boxes area --- htdocs/core/class/infobox.class.php | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/infobox.class.php b/htdocs/core/class/infobox.class.php index 1138e3a69ad..c73d32c8301 100644 --- a/htdocs/core/class/infobox.class.php +++ b/htdocs/core/class/infobox.class.php @@ -2,6 +2,7 @@ /* Copyright (C) 2003 Rodolphe Quiedeville * Copyright (C) 2004-2012 Laurent Destailleur * Copyright (C) 2005-2012 Regis Houssin + * Copyright (C) 2019 Nicolas ZABOURI * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,7 +35,33 @@ class InfoBox */ public static function getListOfPagesForBoxes() { - return array(0=>'Home'); + return array(0 => 'Home', + 1 => 'userhome', + 2 => 'membersindex', + 3 => 'thirdpartiesindex', + 4 => 'productindex', + 5 => 'productindex', + 6 => 'mrpindex', + 7 => 'commercialindex', + 8 => 'projectsindex', + 9 => 'invoiceindex', + 10 => 'hrmindex', + 11 => 'ticketsindex', + 12 => 'stockindex', + 13 => 'sendingindex', + 14 => 'receptionindex', + 15 => 'activityindex', + 16 => 'proposalindex', + 17 => 'ordersindex', + 18 => 'orderssuppliersindex', + 19 => 'contractindex', + 20 => 'interventionindex', + 21 => 'suppliersproposalsindex', + 22 => 'donationindex', + 23 => 'specialexpensesindex', + 24 => 'expensereportindex', + 25 => 'mailingindex', + 26 => 'opensurveyindex'); } /** From ac7bcbd1b2cd4d24614bd60cb2fdea79adb80cd8 Mon Sep 17 00:00:00 2001 From: Inovea Conseil Date: Thu, 29 Aug 2019 10:59:36 +0200 Subject: [PATCH 2/2] Add main feature level --- htdocs/core/class/infobox.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/infobox.class.php b/htdocs/core/class/infobox.class.php index c73d32c8301..978501bfd1e 100644 --- a/htdocs/core/class/infobox.class.php +++ b/htdocs/core/class/infobox.class.php @@ -35,7 +35,13 @@ class InfoBox */ public static function getListOfPagesForBoxes() { - return array(0 => 'Home', + global $conf; + + if($conf->global->MAIN_FEATURES_LEVEL < 2) + return array(0 => 'Home'); + else + { + return array(0 => 'Home', 1 => 'userhome', 2 => 'membersindex', 3 => 'thirdpartiesindex', @@ -62,6 +68,7 @@ class InfoBox 24 => 'expensereportindex', 25 => 'mailingindex', 26 => 'opensurveyindex'); + } } /**