diff --git a/README.md b/README.md
index 0fc59067..b39c5503 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
-# Cost Benefit Projection (3.4.2)
+# Cost Benefit Projection (3.4.3)
-This is a [Joomla 3.x] (http://www.joomla.org/) component.
+This is a [Joomla 3.x](http://www.joomla.org/) component.
- ![Cost Benefit Projection image] (https://raw.githubusercontent.com/namibia/CBP-Joomla-3-Component/master/admin/assets/images/component-300.png "The Cost Benefit Projection")
+ ![Cost Benefit Projection image](https://raw.githubusercontent.com/namibia/CBP-Joomla-3-Component/master/admin/assets/images/vdm-component.png "The Cost Benefit Projection")
-[Create Epidemiological Profiles] (https://www.staffhealthcbp.com/) for diseases and risks affecting your company. Detailed information on projected work days lost and costs. Create and edit activities and wellness responses for your workplace. Access to Small Business Modelling. Results displayed by gender. Network with other companies and wellness professionals.
+Create Epidemiological Profiles for diseases and risks affecting your company. Detailed information on projected work days lost and costs. Create and edit activities and wellness responses for your workplace. Access to Small Business Modeling. Results displayed by gender. Network with other companies and wellness professionals.
Having seen the health priorities for your workforce, the tool outputs projections for how the interventions – which you have designed - are expected to benefit the company financially.
@@ -18,17 +18,17 @@ max_input_vars = 5000
```
# Build Details
-+ *Company*: [Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb] (https://www.staffhealthcbp.com/)
-+ *Author*: [Llewellyn van der Merwe] (mailto:llewellyn@vdm.io)
-+ *Name*: [Cost Benefit Projection] (https://www.staffhealthcbp.com/)
++ *Company*: [Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb](https://www.staffhealthcbp.com/)
++ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
++ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
+ *First Build*: 15th June, 2012
-+ *Last Build*: 16th August, 2016
-+ *Version*: 3.4.2
++ *Last Build*: 5th May, 2018
++ *Version*: 3.4.3
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-+ *Line count*: **91716**
-+ *File count*: **572**
++ *Line count*: **91257**
++ *File count*: **584**
+ *Folder count*: **103**
-> This **component** was build with a Joomla [Automated Component Builder] (https://www.vdm.io/joomla-component-builder).
-> Developed by [Llewellyn van der Merwe] (mailto:joomla@vdm.io)
\ No newline at end of file
+> This **component** was build with a Joomla [Automated Component Builder](https://www.vdm.io/joomla-component-builder).
+> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
\ No newline at end of file
diff --git a/admin/README.txt b/admin/README.txt
new file mode 100644
index 00000000..b39c5503
--- /dev/null
+++ b/admin/README.txt
@@ -0,0 +1,34 @@
+# Cost Benefit Projection (3.4.3)
+
+This is a [Joomla 3.x](http://www.joomla.org/) component.
+
+ ![Cost Benefit Projection image](https://raw.githubusercontent.com/namibia/CBP-Joomla-3-Component/master/admin/assets/images/vdm-component.png "The Cost Benefit Projection")
+
+Create Epidemiological Profiles for diseases and risks affecting your company. Detailed information on projected work days lost and costs. Create and edit activities and wellness responses for your workplace. Access to Small Business Modeling. Results displayed by gender. Network with other companies and wellness professionals.
+
+Having seen the health priorities for your workforce, the tool outputs projections for how the interventions – which you have designed - are expected to benefit the company financially.
+
+Benefits are calculated based on the model projecting reductions in workdays lost due to sickness, presenteeism and death.
+
+# Requirements
+
+Due to the size of the permissional structure, you will need to increase max_input_vars until the permissions are able to save.
+```
+max_input_vars = 5000
+```
+# Build Details
+
++ *Company*: [Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb](https://www.staffhealthcbp.com/)
++ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
++ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
++ *First Build*: 15th June, 2012
++ *Last Build*: 5th May, 2018
++ *Version*: 3.4.3
++ *Copyright*: Copyright (C) 2015. All Rights Reserved
++ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
++ *Line count*: **91257**
++ *File count*: **584**
++ *Folder count*: **103**
+
+> This **component** was build with a Joomla [Automated Component Builder](https://www.vdm.io/joomla-component-builder).
+> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
\ No newline at end of file
diff --git a/admin/access.xml b/admin/access.xml
index 0dfdd180..55c4427e 100644
--- a/admin/access.xml
+++ b/admin/access.xml
@@ -131,7 +131,6 @@
-
@@ -174,8 +173,8 @@
-
+
@@ -217,10 +216,10 @@
+
-
diff --git a/admin/assets/css/admin.css b/admin/assets/css/admin.css
index 52097495..9a2ac6ba 100644
--- a/admin/assets/css/admin.css
+++ b/admin/assets/css/admin.css
@@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage admin.css
diff --git a/admin/assets/css/causerisk.css b/admin/assets/css/causerisk.css
index 13b0e59d..20e87dea 100644
--- a/admin/assets/css/causerisk.css
+++ b/admin/assets/css/causerisk.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage causerisk.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/causesrisks.css b/admin/assets/css/causesrisks.css
index 09ed5fb8..eba19096 100644
--- a/admin/assets/css/causesrisks.css
+++ b/admin/assets/css/causesrisks.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage causesrisks.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/combinedresults.css b/admin/assets/css/combinedresults.css
index 30f7858f..bb546951 100644
--- a/admin/assets/css/combinedresults.css
+++ b/admin/assets/css/combinedresults.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 22 of this MVC
+ @build 14th October, 2017
+ @created 3rd October, 2015
@package Cost Benefit Projection
@subpackage combinedresults.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/companies.css b/admin/assets/css/companies.css
index 88826678..57e751ea 100644
--- a/admin/assets/css/companies.css
+++ b/admin/assets/css/companies.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 101 of this MVC
+ @build 29th June, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage companies.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/company.css b/admin/assets/css/company.css
index 3953d4a6..7242db84 100644
--- a/admin/assets/css/company.css
+++ b/admin/assets/css/company.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 101 of this MVC
+ @build 29th June, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage company.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/companyresults.css b/admin/assets/css/companyresults.css
index e8f55a42..2a330afd 100644
--- a/admin/assets/css/companyresults.css
+++ b/admin/assets/css/companyresults.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 60 of this MVC
+ @build 14th October, 2017
+ @created 13th August, 2015
@package Cost Benefit Projection
@subpackage companyresults.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/countries.css b/admin/assets/css/countries.css
index b6c9b669..5e492cd1 100644
--- a/admin/assets/css/countries.css
+++ b/admin/assets/css/countries.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 52 of this MVC
+ @build 25th October, 2017
+ @created 25th July, 2015
@package Cost Benefit Projection
@subpackage countries.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/country.css b/admin/assets/css/country.css
index 2de562f1..950f2df6 100644
--- a/admin/assets/css/country.css
+++ b/admin/assets/css/country.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 52 of this MVC
+ @build 25th October, 2017
+ @created 25th July, 2015
@package Cost Benefit Projection
@subpackage country.css
@author Llewellyn van der Merwe
@@ -18,4 +18,7 @@
/* CSS Document */
-
+
+input[type="checkbox"] {
+ margin: 0 !important;
+}
diff --git a/admin/assets/css/currencies.css b/admin/assets/css/currencies.css
index 67ca9ffd..6a7779f9 100644
--- a/admin/assets/css/currencies.css
+++ b/admin/assets/css/currencies.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 19 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage currencies.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/currency.css b/admin/assets/css/currency.css
index 7233b12a..70db0563 100644
--- a/admin/assets/css/currency.css
+++ b/admin/assets/css/currency.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 19 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage currency.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/dashboard.css b/admin/assets/css/dashboard.css
index 12e7095f..aa8b1226 100644
--- a/admin/assets/css/dashboard.css
+++ b/admin/assets/css/dashboard.css
@@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage dashboard.css
diff --git a/admin/assets/css/health_data.css b/admin/assets/css/health_data.css
index 3db229e1..b3e625b7 100644
--- a/admin/assets/css/health_data.css
+++ b/admin/assets/css/health_data.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 109 of this MVC
+ @build 23rd May, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage health_data.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/health_data_sets.css b/admin/assets/css/health_data_sets.css
index ad8de120..5070568f 100644
--- a/admin/assets/css/health_data_sets.css
+++ b/admin/assets/css/health_data_sets.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 109 of this MVC
+ @build 23rd May, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage health_data_sets.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/help_document.css b/admin/assets/css/help_document.css
index d291d57f..72b1e085 100644
--- a/admin/assets/css/help_document.css
+++ b/admin/assets/css/help_document.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 13th April, 2018
+ @created 13th July, 2015
@package Cost Benefit Projection
@subpackage help_document.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/help_documents.css b/admin/assets/css/help_documents.css
index 870e80bf..0e3ee30c 100644
--- a/admin/assets/css/help_documents.css
+++ b/admin/assets/css/help_documents.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 13th April, 2018
+ @created 13th July, 2015
@package Cost Benefit Projection
@subpackage help_documents.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/intervention.css b/admin/assets/css/intervention.css
index 504fecca..3e0249a6 100644
--- a/admin/assets/css/intervention.css
+++ b/admin/assets/css/intervention.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 71 of this MVC
+ @build 12th November, 2016
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage intervention.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/interventions.css b/admin/assets/css/interventions.css
index 42feb907..0ca279be 100644
--- a/admin/assets/css/interventions.css
+++ b/admin/assets/css/interventions.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 71 of this MVC
+ @build 12th November, 2016
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage interventions.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/scaling_factor.css b/admin/assets/css/scaling_factor.css
index 5f5c4272..916b18b8 100644
--- a/admin/assets/css/scaling_factor.css
+++ b/admin/assets/css/scaling_factor.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
+ @version @update number 21 of this MVC
@build 16th August, 2016
- @created 15th June, 2012
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage scaling_factor.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/scaling_factors.css b/admin/assets/css/scaling_factors.css
index 26b4b756..20d1844c 100644
--- a/admin/assets/css/scaling_factors.css
+++ b/admin/assets/css/scaling_factors.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
+ @version @update number 21 of this MVC
@build 16th August, 2016
- @created 15th June, 2012
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage scaling_factors.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/service_provider.css b/admin/assets/css/service_provider.css
index 1c8ceb87..9367deb1 100644
--- a/admin/assets/css/service_provider.css
+++ b/admin/assets/css/service_provider.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 35 of this MVC
+ @build 22nd March, 2016
+ @created 25th July, 2015
@package Cost Benefit Projection
@subpackage service_provider.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/css/service_providers.css b/admin/assets/css/service_providers.css
index 1c9ab29a..3d38cbe5 100644
--- a/admin/assets/css/service_providers.css
+++ b/admin/assets/css/service_providers.css
@@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 35 of this MVC
+ @build 22nd March, 2016
+ @created 25th July, 2015
@package Cost Benefit Projection
@subpackage service_providers.css
@author Llewellyn van der Merwe
diff --git a/admin/assets/images/component-300.png b/admin/assets/images/vdm-component.png
similarity index 100%
rename from admin/assets/images/component-300.png
rename to admin/assets/images/vdm-component.png
diff --git a/admin/assets/js/admin.js b/admin/assets/js/admin.js
index e69de29b..d266b102 100644
--- a/admin/assets/js/admin.js
+++ b/admin/assets/js/admin.js
@@ -0,0 +1,19 @@
+/*----------------------------------------------------------------------------------| www.giz.de |----/
+ Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
+/-------------------------------------------------------------------------------------------------------/
+
+ @version 3.4.3
+ @build 5th May, 2018
+ @created 15th June, 2012
+ @package Cost Benefit Projection
+ @subpackage admin.js
+ @author Llewellyn van der Merwe
+ @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
+ @copyright Copyright (C) 2015. All Rights Reserved
+ @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+
+/-------------------------------------------------------------------------------------------------------/
+ Cost Benefit Projection Tool.
+/------------------------------------------------------------------------------------------------------*/
+
+/* JS Document */
diff --git a/admin/config.xml b/admin/config.xml
index 306389f0..d8eb1c71 100644
--- a/admin/config.xml
+++ b/admin/config.xml
@@ -64,7 +64,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_AUTHOR_EMAIL_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_AUTHOR_EMAIL_DESC"
size="60"
- default="llewellyn@vdm.io"
+ default="joomla@vdm.io"
readonly="true"
class="readonly"
/>
@@ -364,7 +364,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_MEMBERBASICGROUP_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_MEMBERBASICGROUP_DESCRIPTION"
multiple="true"
- />
+ />
-
+
@@ -682,7 +682,7 @@
class="text_area"
required="true"
filter="PATH"
- message="Error! Please add the path where the result json should be sotred here."
+ message="COM_COSTBENEFITPROJECTION_CONFIG_RESULTPATH_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_CONFIG_RESULTPATH_HINT"
/>
@@ -701,7 +701,7 @@
class="text_area"
filter="url"
validated="url"
- message="Error! Please add information url here."
+ message="COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_HINT"
/>
diff --git a/admin/controller.php b/admin/controller.php
index 87cc52a0..f2a0a9fe 100644
--- a/admin/controller.php
+++ b/admin/controller.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage controller.php
@@ -28,60 +28,79 @@ jimport('joomla.application.component.controller');
*/
class CostbenefitprojectionController extends JControllerLegacy
{
+ /**
+ * Constructor.
+ *
+ * @param array $config An optional associative array of configuration settings.
+ * Recognized key values include 'name', 'default_task', 'model_path', and
+ * 'view_path' (this list is not meant to be comprehensive).
+ *
+ * @since 3.0
+ */
+ public function __construct($config = array())
+ {
+ // set the default view
+ $config['default_view'] = 'costbenefitprojection';
+
+ parent::__construct($config);
+ }
+
/**
* display task
*
* @return void
*/
- function display($cachable = false, $urlparams = false)
+ function display($cachable = false, $urlparams = false)
{
// set default view if not set
- $view = $this->input->getCmd('view', 'Costbenefitprojection');
+ $view = $this->input->getCmd('view', 'costbenefitprojection');
$data = $this->getViewRelation($view);
$layout = $this->input->get('layout', null, 'WORD');
$id = $this->input->getInt('id');
// Check for edit form.
- if(CostbenefitprojectionHelper::checkArray($data))
- {
- if ($data['edit'] && $layout == 'edit' && !$this->checkEditId('com_costbenefitprojection.edit.'.$data['view'], $id))
- {
- // Somehow the person just went to the form - we don't allow that.
- $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));
- $this->setMessage($this->getError(), 'error');
- // check if item was opend from other then its own list view
- $ref = $this->input->getCmd('ref', 0);
- $refid = $this->input->getInt('refid', 0);
- // set redirect
- if ($refid > 0 && CostbenefitprojectionHelper::checkString($ref))
- {
- // redirect to item of ref
- $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false));
- }
- elseif (CostbenefitprojectionHelper::checkString($ref))
- {
+ if(CostbenefitprojectionHelper::checkArray($data))
+ {
+ if ($data['edit'] && $layout == 'edit' && !$this->checkEditId('com_costbenefitprojection.edit.'.$data['view'], $id))
+ {
+ // Somehow the person just went to the form - we don't allow that.
+ $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));
+ $this->setMessage($this->getError(), 'error');
+ // check if item was opend from other then its own list view
+ $ref = $this->input->getCmd('ref', 0);
+ $refid = $this->input->getInt('refid', 0);
+ // set redirect
+ if ($refid > 0 && CostbenefitprojectionHelper::checkString($ref))
+ {
+ // redirect to item of ref
+ $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false));
+ }
+ elseif (CostbenefitprojectionHelper::checkString($ref))
+ {
- // redirect to ref
- $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.(string)$ref, false));
- }
- else
- {
- // normal redirect back to the list view
- $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.$data['views'], false));
- }
+ // redirect to ref
+ $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.(string)$ref, false));
+ }
+ else
+ {
+ // normal redirect back to the list view
+ $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.$data['views'], false));
+ }
- return false;
- }
- }
+ return false;
+ }
+ }
return parent::display($cachable, $urlparams);
}
protected function getViewRelation($view)
{
- if (CostbenefitprojectionHelper::checkString($view))
- {
- $views = array(
+ // check the we have a value
+ if (CostbenefitprojectionHelper::checkString($view))
+ {
+ // the view relationships
+ $views = array(
'company' => 'companies',
'service_provider' => 'service_providers',
'country' => 'countries',
@@ -91,18 +110,20 @@ class CostbenefitprojectionController extends JControllerLegacy
'intervention' => 'interventions',
'currency' => 'currencies',
'help_document' => 'help_documents'
- );
- // check if this is a list view
- if (in_array($view,$views))
- {
- return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view);
- }
- // check if it is an edit view
- elseif (array_key_exists($view,$views))
- {
- return array('edit' => true, 'view' => $view, 'views' => $views[$view]);
- }
- }
+ );
+ // check if this is a list view
+ if (in_array($view, $views))
+ {
+ // this is a list view
+ return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view);
+ }
+ // check if it is an edit view
+ elseif (array_key_exists($view, $views))
+ {
+ // this is a edit view
+ return array('edit' => true, 'view' => $view, 'views' => $views[$view]);
+ }
+ }
return false;
}
}
diff --git a/admin/controllers/ajax.json.php b/admin/controllers/ajax.json.php
index 58259484..0d973372 100644
--- a/admin/controllers/ajax.json.php
+++ b/admin/controllers/ajax.json.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage ajax.json.php
@@ -38,7 +38,9 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
// load the tasks
$this->registerTask('calculatedResult', 'ajax');
$this->registerTask('interventionBuildTable', 'ajax');
- $this->registerTask('getClusterData', 'ajax');
+ $this->registerTask('getClusterData', 'ajax');
+ $this->registerTask('isNew', 'ajax');
+ $this->registerTask('isRead', 'ajax');
}
public function ajax()
@@ -49,17 +51,17 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
$token = JSession::getFormToken();
$call_token = $jinput->get('token', 0, 'ALNUM');
if($token == $call_token)
- {
+ {
$task = $this->getTask();
switch($task)
- {
+ {
case 'calculatedResult':
try
{
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
$idValue = $jinput->get('id', NULL, 'INT');
$dataValue = $jinput->get('data', NULL, 'BASE64');
- if($idValue && $dataValue && $user->id != 0)
+ if($idValue && $dataValue)
{
$result = $this->getModel('ajax')->getCalculatedResult($idValue, $dataValue);
}
@@ -170,17 +172,93 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
echo "(".json_encode($e).");";
}
}
+ break;
+ case 'isNew':
+ try
+ {
+ $returnRaw = $jinput->get('raw', false, 'BOOLEAN');
+ $noticeValue = $jinput->get('notice', NULL, 'STRING');
+ if($noticeValue && $user->id != 0)
+ {
+ $result = $this->getModel('ajax')->isNew($noticeValue);
+ }
+ else
+ {
+ $result = false;
+ }
+ if($callback = $jinput->get('callback', null, 'CMD'))
+ {
+ echo $callback . "(".json_encode($result).");";
+ }
+ elseif($returnRaw)
+ {
+ echo json_encode($result);
+ }
+ else
+ {
+ echo "(".json_encode($result).");";
+ }
+ }
+ catch(Exception $e)
+ {
+ if($callback = $jinput->get('callback', null, 'CMD'))
+ {
+ echo $callback."(".json_encode($e).");";
+ }
+ else
+ {
+ echo "(".json_encode($e).");";
+ }
+ }
+ break;
+ case 'isRead':
+ try
+ {
+ $returnRaw = $jinput->get('raw', false, 'BOOLEAN');
+ $noticeValue = $jinput->get('notice', NULL, 'STRING');
+ if($noticeValue && $user->id != 0)
+ {
+ $result = $this->getModel('ajax')->isRead($noticeValue);
+ }
+ else
+ {
+ $result = false;
+ }
+ if($callback = $jinput->get('callback', null, 'CMD'))
+ {
+ echo $callback . "(".json_encode($result).");";
+ }
+ elseif($returnRaw)
+ {
+ echo json_encode($result);
+ }
+ else
+ {
+ echo "(".json_encode($result).");";
+ }
+ }
+ catch(Exception $e)
+ {
+ if($callback = $jinput->get('callback', null, 'CMD'))
+ {
+ echo $callback."(".json_encode($e).");";
+ }
+ else
+ {
+ echo "(".json_encode($e).");";
+ }
+ }
break;
}
}
- else
- {
+ else
+ {
if($callback = $jinput->get('callback', null, 'CMD'))
- {
+ {
echo $callback."(".json_encode(false).");";
}
- else
- {
+ else
+ {
echo "(".json_encode(false).");";
}
}
diff --git a/admin/controllers/causerisk.php b/admin/controllers/causerisk.php
index 9f3cd7c0..677f6600 100644
--- a/admin/controllers/causerisk.php
+++ b/admin/controllers/causerisk.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage causerisk.php
@author Llewellyn van der Merwe
@@ -93,7 +93,7 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('causerisk.edit', 'com_costbenefitprojection.causerisk.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('causerisk.edit.own', 'com_costbenefitprojection.causerisk.' . $recordId))
{
@@ -153,10 +153,10 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
}
- elseif ($ref)
- {
+ elseif ($ref)
+ {
$append .= '&ref='.(string)$ref;
- }
+ }
if ($tmpl)
{
@@ -268,11 +268,11 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
- if ($this->ref || $this->refid)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
+ if ($this->ref || $this->refid)
+ {
+ // to make sure the item is checkedin on redirect
+ $this->task = 'save';
+ }
$saved = parent::save($key, $urlVar);
diff --git a/admin/controllers/causesrisks.php b/admin/controllers/causesrisks.php
index 4cdc3bc7..3d1c6e59 100644
--- a/admin/controllers/causesrisks.php
+++ b/admin/controllers/causesrisks.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage causesrisks.php
@author Llewellyn van der Merwe
@@ -101,5 +101,5 @@ class CostbenefitprojectionControllerCausesrisks extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=causesrisks', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/controllers/combinedresults.php b/admin/controllers/combinedresults.php
index 14a80518..9661f5eb 100644
--- a/admin/controllers/combinedresults.php
+++ b/admin/controllers/combinedresults.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 22 of this MVC
+ @build 14th October, 2017
+ @created 3rd October, 2015
@package Cost Benefit Projection
@subpackage combinedresults.php
@author Llewellyn van der Merwe
diff --git a/admin/controllers/companies.php b/admin/controllers/companies.php
index 8b7a0627..ad2e8079 100644
--- a/admin/controllers/companies.php
+++ b/admin/controllers/companies.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 101 of this MVC
+ @build 29th June, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage companies.php
@author Llewellyn van der Merwe
@@ -125,5 +125,5 @@ class CostbenefitprojectionControllerCompanies extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_ACCESS_TO_COMBINEDRESULTS_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/controllers/company.php b/admin/controllers/company.php
index 4e9dc7ec..25e3f92f 100644
--- a/admin/controllers/company.php
+++ b/admin/controllers/company.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 101 of this MVC
+ @build 29th June, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage company.php
@author Llewellyn van der Merwe
@@ -108,7 +108,7 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('company.edit', 'com_costbenefitprojection.company.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('company.edit.own', 'com_costbenefitprojection.company.' . $recordId))
{
@@ -168,10 +168,10 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
}
- elseif ($ref)
- {
+ elseif ($ref)
+ {
$append .= '&ref='.(string)$ref;
- }
+ }
if ($tmpl)
{
@@ -283,11 +283,11 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
- if ($this->ref || $this->refid)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
+ if ($this->ref || $this->refid)
+ {
+ // to make sure the item is checkedin on redirect
+ $this->task = 'save';
+ }
$saved = parent::save($key, $urlVar);
diff --git a/admin/controllers/companyresults.php b/admin/controllers/companyresults.php
index d0e90087..24914299 100644
--- a/admin/controllers/companyresults.php
+++ b/admin/controllers/companyresults.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 60 of this MVC
+ @build 14th October, 2017
+ @created 13th August, 2015
@package Cost Benefit Projection
@subpackage companyresults.php
@author Llewellyn van der Merwe
@@ -33,7 +33,7 @@ class CostbenefitprojectionControllerCompanyresults extends JControllerLegacy
parent::__construct($config);
}
- public function dashboard()
+ public function dashboard()
{
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection', false));
return;
diff --git a/admin/controllers/costbenefitprojection.php b/admin/controllers/costbenefitprojection.php
index 8d783a4d..126072a1 100644
--- a/admin/controllers/costbenefitprojection.php
+++ b/admin/controllers/costbenefitprojection.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php
diff --git a/admin/controllers/countries.php b/admin/controllers/countries.php
index 47a650bb..cd83341b 100644
--- a/admin/controllers/countries.php
+++ b/admin/controllers/countries.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 52 of this MVC
+ @build 25th October, 2017
+ @created 25th July, 2015
@package Cost Benefit Projection
@subpackage countries.php
@author Llewellyn van der Merwe
@@ -101,5 +101,5 @@ class CostbenefitprojectionControllerCountries extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=countries', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/controllers/country.php b/admin/controllers/country.php
index af878f31..2f0733ec 100644
--- a/admin/controllers/country.php
+++ b/admin/controllers/country.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 52 of this MVC
+ @build 25th October, 2017
+ @created 25th July, 2015
@package Cost Benefit Projection
@subpackage country.php
@author Llewellyn van der Merwe
@@ -102,7 +102,7 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('country.edit', 'com_costbenefitprojection.country.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('country.edit.own', 'com_costbenefitprojection.country.' . $recordId))
{
@@ -162,10 +162,10 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
}
- elseif ($ref)
- {
+ elseif ($ref)
+ {
$append .= '&ref='.(string)$ref;
- }
+ }
if ($tmpl)
{
@@ -277,11 +277,11 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
- if ($this->ref || $this->refid)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
+ if ($this->ref || $this->refid)
+ {
+ // to make sure the item is checkedin on redirect
+ $this->task = 'save';
+ }
$saved = parent::save($key, $urlVar);
diff --git a/admin/controllers/currencies.php b/admin/controllers/currencies.php
index 7c3e5968..7d483429 100644
--- a/admin/controllers/currencies.php
+++ b/admin/controllers/currencies.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 19 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage currencies.php
@author Llewellyn van der Merwe
@@ -101,5 +101,5 @@ class CostbenefitprojectionControllerCurrencies extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=currencies', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/controllers/currency.php b/admin/controllers/currency.php
index c7f30507..13743751 100644
--- a/admin/controllers/currency.php
+++ b/admin/controllers/currency.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 19 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage currency.php
@author Llewellyn van der Merwe
@@ -93,7 +93,7 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('currency.edit', 'com_costbenefitprojection.currency.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('currency.edit.own', 'com_costbenefitprojection.currency.' . $recordId))
{
@@ -153,10 +153,10 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
}
- elseif ($ref)
- {
+ elseif ($ref)
+ {
$append .= '&ref='.(string)$ref;
- }
+ }
if ($tmpl)
{
@@ -268,11 +268,11 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
- if ($this->ref || $this->refid)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
+ if ($this->ref || $this->refid)
+ {
+ // to make sure the item is checkedin on redirect
+ $this->task = 'save';
+ }
$saved = parent::save($key, $urlVar);
diff --git a/admin/controllers/health_data.php b/admin/controllers/health_data.php
index 288ecad6..270fa419 100644
--- a/admin/controllers/health_data.php
+++ b/admin/controllers/health_data.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 109 of this MVC
+ @build 23rd May, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage health_data.php
@author Llewellyn van der Merwe
@@ -103,7 +103,7 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('health_data.edit', 'com_costbenefitprojection.health_data.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('health_data.edit.own', 'com_costbenefitprojection.health_data.' . $recordId))
{
@@ -163,10 +163,10 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
}
- elseif ($ref)
- {
+ elseif ($ref)
+ {
$append .= '&ref='.(string)$ref;
- }
+ }
if ($tmpl)
{
@@ -278,11 +278,11 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
- if ($this->ref || $this->refid)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
+ if ($this->ref || $this->refid)
+ {
+ // to make sure the item is checkedin on redirect
+ $this->task = 'save';
+ }
$saved = parent::save($key, $urlVar);
diff --git a/admin/controllers/health_data_sets.php b/admin/controllers/health_data_sets.php
index 4ceb2f2a..903eefac 100644
--- a/admin/controllers/health_data_sets.php
+++ b/admin/controllers/health_data_sets.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 109 of this MVC
+ @build 23rd May, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage health_data_sets.php
@author Llewellyn van der Merwe
@@ -101,5 +101,5 @@ class CostbenefitprojectionControllerHealth_data_sets extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=health_data_sets', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/controllers/help.php b/admin/controllers/help.php
index a09534db..5573ca56 100644
--- a/admin/controllers/help.php
+++ b/admin/controllers/help.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help.php
@@ -42,7 +42,8 @@ class CostbenefitprojectionControllerHelp extends JControllerLegacy
// Check Token!
$token = JSession::getFormToken();
$call_token = $jinput->get('token', 0, 'ALNUM');
- if($user->id != 0 && $token == $call_token){
+ if($user->id != 0 && $token == $call_token)
+ {
$task = $this->getTask();
switch($task){
case 'getText':
@@ -58,25 +59,25 @@ class CostbenefitprojectionControllerHelp extends JControllerLegacy
$result = '';
}
echo $result;
- // stop execution gracefully
- jexit();
+ // stop execution gracefully
+ jexit();
}
- catch(Exception $e)
+ catch(Exception $e)
{
- // stop execution gracefully
+ // stop execution gracefully
jexit();
}
break;
}
}
- else
- {
- // stop execution gracefully
+ else
+ {
+ // stop execution gracefully
jexit();
}
}
- protected function getHelpDocumentText($id)
+ protected function getHelpDocumentText($id)
{
$db = JFactory::getDbo();
$query = $db->getQuery(true);
diff --git a/admin/controllers/help_document.php b/admin/controllers/help_document.php
index 144b8c67..ad1cee93 100644
--- a/admin/controllers/help_document.php
+++ b/admin/controllers/help_document.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 13th April, 2018
+ @created 13th July, 2015
@package Cost Benefit Projection
@subpackage help_document.php
@author Llewellyn van der Merwe
@@ -93,7 +93,7 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('help_document.edit', 'com_costbenefitprojection.help_document.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('help_document.edit.own', 'com_costbenefitprojection.help_document.' . $recordId))
{
@@ -153,10 +153,10 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
}
- elseif ($ref)
- {
+ elseif ($ref)
+ {
$append .= '&ref='.(string)$ref;
- }
+ }
if ($tmpl)
{
@@ -268,11 +268,11 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
- if ($this->ref || $this->refid)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
+ if ($this->ref || $this->refid)
+ {
+ // to make sure the item is checkedin on redirect
+ $this->task = 'save';
+ }
$saved = parent::save($key, $urlVar);
diff --git a/admin/controllers/help_documents.php b/admin/controllers/help_documents.php
index 04b755ad..e5bc38df 100644
--- a/admin/controllers/help_documents.php
+++ b/admin/controllers/help_documents.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 13th April, 2018
+ @created 13th July, 2015
@package Cost Benefit Projection
@subpackage help_documents.php
@author Llewellyn van der Merwe
@@ -101,5 +101,5 @@ class CostbenefitprojectionControllerHelp_documents extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=help_documents', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/controllers/import.php b/admin/controllers/import.php
index c288115e..2cfd8549 100644
--- a/admin/controllers/import.php
+++ b/admin/controllers/import.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage import.php
diff --git a/admin/controllers/import_health_data_sets.php b/admin/controllers/import_health_data_sets.php
index 6ab11abb..d2c50e77 100644
--- a/admin/controllers/import_health_data_sets.php
+++ b/admin/controllers/import_health_data_sets.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage import_health_data_sets.php
diff --git a/admin/controllers/intervention.php b/admin/controllers/intervention.php
index a36cde4d..6b013fdb 100644
--- a/admin/controllers/intervention.php
+++ b/admin/controllers/intervention.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 71 of this MVC
+ @build 12th November, 2016
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage intervention.php
@author Llewellyn van der Merwe
@@ -108,7 +108,7 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('intervention.edit', 'com_costbenefitprojection.intervention.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('intervention.edit.own', 'com_costbenefitprojection.intervention.' . $recordId))
{
@@ -168,10 +168,10 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
}
- elseif ($ref)
- {
+ elseif ($ref)
+ {
$append .= '&ref='.(string)$ref;
- }
+ }
if ($tmpl)
{
@@ -283,11 +283,11 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
- if ($this->ref || $this->refid)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
+ if ($this->ref || $this->refid)
+ {
+ // to make sure the item is checkedin on redirect
+ $this->task = 'save';
+ }
$saved = parent::save($key, $urlVar);
diff --git a/admin/controllers/interventions.php b/admin/controllers/interventions.php
index 1d898cb1..7df78972 100644
--- a/admin/controllers/interventions.php
+++ b/admin/controllers/interventions.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 71 of this MVC
+ @build 12th November, 2016
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage interventions.php
@author Llewellyn van der Merwe
@@ -101,5 +101,5 @@ class CostbenefitprojectionControllerInterventions extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=interventions', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/controllers/scaling_factor.php b/admin/controllers/scaling_factor.php
index 6e58f860..d039aebf 100644
--- a/admin/controllers/scaling_factor.php
+++ b/admin/controllers/scaling_factor.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
+ @version @update number 21 of this MVC
@build 16th August, 2016
- @created 15th June, 2012
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage scaling_factor.php
@author Llewellyn van der Merwe
@@ -102,7 +102,7 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('scaling_factor.edit', 'com_costbenefitprojection.scaling_factor.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('scaling_factor.edit.own', 'com_costbenefitprojection.scaling_factor.' . $recordId))
{
@@ -162,10 +162,10 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
}
- elseif ($ref)
- {
+ elseif ($ref)
+ {
$append .= '&ref='.(string)$ref;
- }
+ }
if ($tmpl)
{
@@ -277,11 +277,11 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
- if ($this->ref || $this->refid)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
+ if ($this->ref || $this->refid)
+ {
+ // to make sure the item is checkedin on redirect
+ $this->task = 'save';
+ }
$saved = parent::save($key, $urlVar);
diff --git a/admin/controllers/scaling_factors.php b/admin/controllers/scaling_factors.php
index 584ac82a..6fb1899e 100644
--- a/admin/controllers/scaling_factors.php
+++ b/admin/controllers/scaling_factors.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
+ @version @update number 21 of this MVC
@build 16th August, 2016
- @created 15th June, 2012
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage scaling_factors.php
@author Llewellyn van der Merwe
@@ -101,5 +101,5 @@ class CostbenefitprojectionControllerScaling_factors extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=scaling_factors', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/controllers/service_provider.php b/admin/controllers/service_provider.php
index 04ae9777..73ef90db 100644
--- a/admin/controllers/service_provider.php
+++ b/admin/controllers/service_provider.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 35 of this MVC
+ @build 22nd March, 2016
+ @created 25th July, 2015
@package Cost Benefit Projection
@subpackage service_provider.php
@author Llewellyn van der Merwe
@@ -101,7 +101,7 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('service_provider.edit', 'com_costbenefitprojection.service_provider.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('service_provider.edit.own', 'com_costbenefitprojection.service_provider.' . $recordId))
{
@@ -161,10 +161,10 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
}
- elseif ($ref)
- {
+ elseif ($ref)
+ {
$append .= '&ref='.(string)$ref;
- }
+ }
if ($tmpl)
{
@@ -276,11 +276,11 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
- if ($this->ref || $this->refid)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
+ if ($this->ref || $this->refid)
+ {
+ // to make sure the item is checkedin on redirect
+ $this->task = 'save';
+ }
$saved = parent::save($key, $urlVar);
diff --git a/admin/controllers/service_providers.php b/admin/controllers/service_providers.php
index 7f2f74e1..fe340446 100644
--- a/admin/controllers/service_providers.php
+++ b/admin/controllers/service_providers.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 35 of this MVC
+ @build 22nd March, 2016
+ @created 25th July, 2015
@package Cost Benefit Projection
@subpackage service_providers.php
@author Llewellyn van der Merwe
@@ -101,5 +101,5 @@ class CostbenefitprojectionControllerService_providers extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=service_providers', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/costbenefitprojection.php b/admin/costbenefitprojection.php
index fd324ada..746cec72 100644
--- a/admin/costbenefitprojection.php
+++ b/admin/costbenefitprojection.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php
diff --git a/admin/helpers/aes.php b/admin/helpers/aes.php
new file mode 100644
index 00000000..d340dee0
--- /dev/null
+++ b/admin/helpers/aes.php
@@ -0,0 +1,239 @@
+_keyString = $key;
+
+ switch ($strength)
+ {
+ case 256:
+ default:
+ $this->_cipherType = MCRYPT_RIJNDAEL_256;
+ break;
+
+ case 192:
+ $this->_cipherType = MCRYPT_RIJNDAEL_192;
+ break;
+
+ case 128:
+ $this->_cipherType = MCRYPT_RIJNDAEL_128;
+ break;
+ }
+
+ switch (strtoupper($mode))
+ {
+ case 'ECB':
+ $this->_cipherMode = MCRYPT_MODE_ECB;
+ break;
+
+ case 'CBC':
+ $this->_cipherMode = MCRYPT_MODE_CBC;
+ break;
+ }
+ }
+
+ /**
+ * Encrypts a string using AES
+ *
+ * @param string $stringToEncrypt The plaintext to encrypt
+ * @param bool $base64encoded Should I Base64-encode the result?
+ *
+ * @return string The cryptotext. Please note that the first 16 bytes of
+ * the raw string is the IV (initialisation vector) which
+ * is necessary for decoding the string.
+ */
+ public function encryptString($stringToEncrypt, $base64encoded = true)
+ {
+ if (strlen($this->_keyString) != 32)
+ {
+ $key = hash('sha256', $this->_keyString, true);
+ }
+ else
+ {
+ $key = $this->_keyString;
+ }
+
+ // Set up the IV (Initialization Vector)
+ $iv_size = mcrypt_get_iv_size($this->_cipherType, $this->_cipherMode);
+ $iv = mcrypt_create_iv($iv_size, MCRYPT_DEV_URANDOM);
+
+ if (empty($iv))
+ {
+ $iv = mcrypt_create_iv($iv_size, MCRYPT_DEV_RANDOM);
+ }
+
+ if (empty($iv))
+ {
+ $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
+ }
+
+ // Encrypt the data
+ $cipherText = mcrypt_encrypt($this->_cipherType, $key, $stringToEncrypt, $this->_cipherMode, $iv);
+
+ // Prepend the IV to the ciphertext
+ $cipherText = $iv . $cipherText;
+
+ // Optionally pass the result through Base64 encoding
+ if ($base64encoded)
+ {
+ $cipherText = base64_encode($cipherText);
+ }
+
+ // Return the result
+ return $cipherText;
+ }
+
+ /**
+ * Decrypts a ciphertext into a plaintext string using AES
+ *
+ * @param string $stringToDecrypt The ciphertext to decrypt. The first 16 bytes of the raw string must contain the IV (initialisation vector).
+ * @param bool $base64encoded Should I Base64-decode the data before decryption?
+ *
+ * @return string The plain text string
+ */
+ public function decryptString($stringToDecrypt, $base64encoded = true)
+ {
+ if (strlen($this->_keyString) != 32)
+ {
+ $key = hash('sha256', $this->_keyString, true);
+ }
+ else
+ {
+ $key = $this->_keyString;
+ }
+
+ if ($base64encoded)
+ {
+ $stringToDecrypt = base64_decode($stringToDecrypt);
+ }
+
+ // Calculate the IV size
+ $iv_size = mcrypt_get_iv_size($this->_cipherType, $this->_cipherMode);
+
+ // Extract IV
+ $iv = substr($stringToDecrypt, 0, $iv_size);
+ $stringToDecrypt = substr($stringToDecrypt, $iv_size);
+
+ // Decrypt the data
+ $plainText = mcrypt_decrypt($this->_cipherType, $key, $stringToDecrypt, $this->_cipherMode, $iv);
+
+ return $plainText;
+ }
+
+ /**
+ * Is AES encryption supported by this PHP installation?
+ *
+ * @return boolean
+ */
+ public static function isSupported()
+ {
+ if (!function_exists('mcrypt_get_key_size'))
+ {
+ return false;
+ }
+
+ if (!function_exists('mcrypt_get_iv_size'))
+ {
+ return false;
+ }
+
+ if (!function_exists('mcrypt_create_iv'))
+ {
+ return false;
+ }
+
+ if (!function_exists('mcrypt_encrypt'))
+ {
+ return false;
+ }
+
+ if (!function_exists('mcrypt_decrypt'))
+ {
+ return false;
+ }
+
+ if (!function_exists('mcrypt_list_algorithms'))
+ {
+ return false;
+ }
+
+ if (!function_exists('hash'))
+ {
+ return false;
+ }
+
+ if (!function_exists('hash_algos'))
+ {
+ return false;
+ }
+
+ if (!function_exists('base64_encode'))
+ {
+ return false;
+ }
+
+ if (!function_exists('base64_decode'))
+ {
+ return false;
+ }
+
+ $algorightms = mcrypt_list_algorithms();
+
+ if (!in_array('rijndael-128', $algorightms))
+ {
+ return false;
+ }
+
+ if (!in_array('rijndael-192', $algorightms))
+ {
+ return false;
+ }
+
+ if (!in_array('rijndael-256', $algorightms))
+ {
+ return false;
+ }
+
+ $algorightms = hash_algos();
+
+ if (!in_array('sha256', $algorightms))
+ {
+ return false;
+ }
+
+ return true;
+ }
+}
diff --git a/admin/helpers/costbenefitprojection.php b/admin/helpers/costbenefitprojection.php
index d8040333..8ffed85f 100644
--- a/admin/helpers/costbenefitprojection.php
+++ b/admin/helpers/costbenefitprojection.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php
@@ -720,13 +720,66 @@ abstract class CostbenefitprojectionHelper
}
return false;
}
+
+ /**
+ * The user notice info File Name
+ **/
+ protected static $usernotice = false;
+
+ public static function getFilePath($type, $name = 'listing', $key = '', $fileType = '.json', $PATH = JPATH_COMPONENT_SITE)
+ {
+ if (!self::checkString(self::${$type.$name}))
+ {
+ // Get local key
+ $localkey = self::getLocalKey();
+ // set the name
+ $fileName = md5($type.$name.$localkey.$key);
+ // set file path
+ self::${$type.$name} = $PATH.'/helpers/'.$fileName.$fileType;
+ }
+ // return the path
+ return self::${$type.$name};
+ }
+
+ /**
+ * get the localkey
+ **/
+ protected static $localkey = false;
+
+ public static function getLocalKey()
+ {
+ if (!self::$localkey)
+ {
+ // get the main key
+ self::$localkey = md5(JComponentHelper::getParams('com_costbenefitprojection')->get('basic', 'localKey34fdWEkl'));
+ }
+ return self::$localkey;
+ }
/**
* Load the Component xml manifest.
**/
- public static function manifest()
+ public static function manifest()
{
- $manifestUrl = JPATH_ADMINISTRATOR."/components/com_costbenefitprojection/costbenefitprojection.xml";
- return simplexml_load_file($manifestUrl);
+ $manifestUrl = JPATH_ADMINISTRATOR."/components/com_costbenefitprojection/costbenefitprojection.xml";
+ return simplexml_load_file($manifestUrl);
+ }
+
+ /**
+ * Joomla version object
+ **/
+ protected static $JVersion;
+
+ /**
+ * set/get Joomla version
+ **/
+ public static function jVersion()
+ {
+ // check if set
+ if (!self::checkObject(self::$JVersion))
+ {
+ self::$JVersion = new JVersion();
+ }
+ return self::$JVersion;
}
/**
@@ -741,22 +794,22 @@ abstract class CostbenefitprojectionHelper
// get all Contributors (max 20)
$searchArray = range('0','20');
foreach($searchArray as $nr)
- {
+ {
if ((NULL !== $params->get("showContributor".$nr)) && ($params->get("showContributor".$nr) == 1 || $params->get("showContributor".$nr) == 3))
- {
+ {
// set link based of selected option
if($params->get("useContributor".$nr) == 1)
- {
+ {
$link_front = '';
$link_back = '';
}
- elseif($params->get("useContributor".$nr) == 2)
- {
+ elseif($params->get("useContributor".$nr) == 2)
+ {
$link_front = '';
$link_back = '';
}
- else
- {
+ else
+ {
$link_front = '';
$link_back = '';
}
@@ -844,45 +897,45 @@ abstract class CostbenefitprojectionHelper
**/
public static function addSubmenu($submenu)
{
- // load user for access menus
- $user = JFactory::getUser();
- // load the submenus to sidebar
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_DASHBOARD'), 'index.php?option=com_costbenefitprojection&view=costbenefitprojection', $submenu == 'costbenefitprojection');
+ // load user for access menus
+ $user = JFactory::getUser();
+ // load the submenus to sidebar
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_DASHBOARD'), 'index.php?option=com_costbenefitprojection&view=costbenefitprojection', $submenu === 'costbenefitprojection');
if ($user->authorise('company.access', 'com_costbenefitprojection') && $user->authorise('company.submenu', 'com_costbenefitprojection'))
{
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_COMPANIES'), 'index.php?option=com_costbenefitprojection&view=companies', $submenu == 'companies');
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_COMPANIES'), 'index.php?option=com_costbenefitprojection&view=companies', $submenu === 'companies');
}
if ($user->authorise('service_provider.access', 'com_costbenefitprojection') && $user->authorise('service_provider.submenu', 'com_costbenefitprojection'))
{
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_SERVICE_PROVIDERS'), 'index.php?option=com_costbenefitprojection&view=service_providers', $submenu == 'service_providers');
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_SERVICE_PROVIDERS'), 'index.php?option=com_costbenefitprojection&view=service_providers', $submenu === 'service_providers');
}
if ($user->authorise('country.access', 'com_costbenefitprojection') && $user->authorise('country.submenu', 'com_costbenefitprojection'))
{
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_COUNTRIES'), 'index.php?option=com_costbenefitprojection&view=countries', $submenu == 'countries');
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_COUNTRIES'), 'index.php?option=com_costbenefitprojection&view=countries', $submenu === 'countries');
}
if ($user->authorise('causerisk.access', 'com_costbenefitprojection') && $user->authorise('causerisk.submenu', 'com_costbenefitprojection'))
{
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_CAUSESRISKS'), 'index.php?option=com_costbenefitprojection&view=causesrisks', $submenu == 'causesrisks');
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_CAUSESRISKS'), 'index.php?option=com_costbenefitprojection&view=causesrisks', $submenu === 'causesrisks');
}
if ($user->authorise('health_data.access', 'com_costbenefitprojection') && $user->authorise('health_data.submenu', 'com_costbenefitprojection'))
{
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_HEALTH_DATA_SETS'), 'index.php?option=com_costbenefitprojection&view=health_data_sets', $submenu == 'health_data_sets');
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_HEALTH_DATA_SETS'), 'index.php?option=com_costbenefitprojection&view=health_data_sets', $submenu === 'health_data_sets');
}
if ($user->authorise('scaling_factor.access', 'com_costbenefitprojection') && $user->authorise('scaling_factor.submenu', 'com_costbenefitprojection'))
{
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_SCALING_FACTORS'), 'index.php?option=com_costbenefitprojection&view=scaling_factors', $submenu == 'scaling_factors');
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_SCALING_FACTORS'), 'index.php?option=com_costbenefitprojection&view=scaling_factors', $submenu === 'scaling_factors');
}
if ($user->authorise('intervention.access', 'com_costbenefitprojection') && $user->authorise('intervention.submenu', 'com_costbenefitprojection'))
{
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_INTERVENTIONS'), 'index.php?option=com_costbenefitprojection&view=interventions', $submenu == 'interventions');
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_INTERVENTIONS'), 'index.php?option=com_costbenefitprojection&view=interventions', $submenu === 'interventions');
}
if ($user->authorise('currency.access', 'com_costbenefitprojection') && $user->authorise('currency.submenu', 'com_costbenefitprojection'))
{
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_CURRENCIES'), 'index.php?option=com_costbenefitprojection&view=currencies', $submenu == 'currencies');
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_CURRENCIES'), 'index.php?option=com_costbenefitprojection&view=currencies', $submenu === 'currencies');
}
if ($user->authorise('help_document.access', 'com_costbenefitprojection') && $user->authorise('help_document.submenu', 'com_costbenefitprojection'))
{
- JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_HELP_DOCUMENTS'), 'index.php?option=com_costbenefitprojection&view=help_documents', $submenu == 'help_documents');
+ JHtmlSidebar::addEntry(JText::_('COM_COSTBENEFITPROJECTION_SUBMENU_HELP_DOCUMENTS'), 'index.php?option=com_costbenefitprojection&view=help_documents', $submenu === 'help_documents');
}
}
@@ -917,14 +970,10 @@ abstract class CostbenefitprojectionHelper
$password = self::randomkey(8);
$password2 = $password;
}
- // set username
- if (isset($new['username']) && self::checkString($new['username']))
+ // set username if not set
+ if (!isset($new['username']) || !self::checkString($new['username']))
{
- $new['username'] = self::safeString($new['username']);
- }
- else
- {
- $new['username'] = self::safeString($new['name']);
+ $new['username'] = self::safeString($new['name']);
}
// linup new user data
$data = array(
@@ -1210,7 +1259,7 @@ abstract class CostbenefitprojectionHelper
$objPHPExcel->getActiveSheet()->getColumnDimension($a)->setAutoSize(true);
$objPHPExcel->getActiveSheet()->getStyle($a.$i)->applyFromArray($headerStyles);
$objPHPExcel->getActiveSheet()->getStyle($a.$i)->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
- } elseif ($a == 'A'){
+ } elseif ($a === 'A'){
$objPHPExcel->getActiveSheet()->getStyle($a.$i)->applyFromArray($sideStyles);
} else {
$objPHPExcel->getActiveSheet()->getStyle($a.$i)->applyFromArray($normalStyles);
@@ -1300,6 +1349,19 @@ abstract class CostbenefitprojectionHelper
return false;
}
+ /**
+ * Get a Variable
+ *
+ * @param string $table The table from which to get the variable
+ * @param string $where The value where
+ * @param string $whereString The target/field string where/name
+ * @param string $what The return field
+ * @param string $operator The operator between $whereString/field and $where/value
+ * @param string $main The component in which the table is found
+ *
+ * @return mix string/int/float
+ *
+ */
public static function getVar($table, $where = null, $whereString = 'user', $what = 'id', $operator = '=', $main = 'costbenefitprojection')
{
if(!$where)
@@ -1340,6 +1402,20 @@ abstract class CostbenefitprojectionHelper
return false;
}
+ /**
+ * Get array of variables
+ *
+ * @param string $table The table from which to get the variables
+ * @param string $where The value where
+ * @param string $whereString The target/field string where/name
+ * @param string $what The return field
+ * @param string $operator The operator between $whereString/field and $where/value
+ * @param string $main The component in which the table is found
+ * @param bool $unique The switch to return a unique array
+ *
+ * @return array
+ *
+ */
public static function getVars($table, $where = null, $whereString = 'user', $what = 'id', $operator = 'IN', $main = 'costbenefitprojection', $unique = true)
{
if(!$where)
@@ -1354,13 +1430,25 @@ abstract class CostbenefitprojectionHelper
if (self::checkArray($where))
{
+ // prep main <-- why? well if $main='' is empty then $table can be categories or users
+ if (self::checkString($main))
+ {
+ $main = '_'.ltrim($main, '_');
+ }
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array($what)));
- $query->from($db->quoteName('#__'.$main.'_'.$table));
+ if (empty($table))
+ {
+ $query->from($db->quoteName('#__'.$main));
+ }
+ else
+ {
+ $query->from($db->quoteName('#_'.$main.'_'.$table));
+ }
$query->where($db->quoteName($whereString) . ' '.$operator.' (' . implode(',',$where) . ')');
$db->setQuery($query);
$db->execute();
@@ -1376,11 +1464,18 @@ abstract class CostbenefitprojectionHelper
return false;
}
- public static function jsonToString($value, $sperator = ", ", $table = null)
+ public static function jsonToString($value, $sperator = ", ", $table = null, $id = 'id', $name = 'name')
{
- // check if string is JSON
- $result = json_decode($value, true);
- if (json_last_error() === JSON_ERROR_NONE)
+ // do some table foot work
+ $external = false;
+ if (strpos($table, '#__') !== false)
+ {
+ $external = true;
+ $table = str_replace('#__', '', $table);
+ }
+ // check if string is JSON
+ $result = json_decode($value, true);
+ if (json_last_error() === JSON_ERROR_NONE)
{
// is JSON
if (self::checkArray($result))
@@ -1390,9 +1485,19 @@ abstract class CostbenefitprojectionHelper
$names = array();
foreach ($result as $val)
{
- if ($name = self::getVar($table, $val, 'id', 'name'))
+ if ($external)
{
- $names[] = $name;
+ if ($name = self::getVar(null, $val, $id, $name, '=', $table))
+ {
+ $names[] = $name;
+ }
+ }
+ else
+ {
+ if ($name = self::getVar($table, $val, $id, $name))
+ {
+ $names[] = $name;
+ }
}
}
if (self::checkArray($names))
@@ -1402,15 +1507,15 @@ abstract class CostbenefitprojectionHelper
}
return (string) implode($sperator,$result);
}
- return (string) json_decode($value);
- }
- return $value;
- }
+ return (string) json_decode($value);
+ }
+ return $value;
+ }
public static function isPublished($id,$type)
{
if ($type == 'raw')
- {
+ {
$type = 'item';
}
$db = JFactory::getDbo();
@@ -1423,7 +1528,7 @@ abstract class CostbenefitprojectionHelper
$db->execute();
$found = $db->getNumRows();
if($found)
- {
+ {
return true;
}
return false;
@@ -1440,40 +1545,40 @@ abstract class CostbenefitprojectionHelper
$db->execute();
$found = $db->getNumRows();
if($found)
- {
+ {
return $db->loadResult();
}
return $id;
}
- /**
+ /**
* Get the actions permissions
**/
- public static function getActions($view,&$record = null,$views = null)
+ public static function getActions($view,&$record = null,$views = null)
{
jimport('joomla.access.access');
$user = JFactory::getUser();
$result = new JObject;
$view = self::safeString($view);
- if (self::checkString($views))
- {
+ if (self::checkString($views))
+ {
$views = self::safeString($views);
- }
+ }
// get all actions from component
$actions = JAccess::getActions('com_costbenefitprojection', 'component');
- // set acctions only set in component settiongs
- $componentActions = array('core.admin','core.manage','core.options','core.export');
+ // set acctions only set in component settiongs
+ $componentActions = array('core.admin','core.manage','core.options','core.export');
// loop the actions and set the permissions
foreach ($actions as $action)
- {
+ {
// set to use component default
$fallback= true;
if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name,$componentActions))
{
// The record has been set. Check the record permissions.
$permission = $user->authorise($action->name, 'com_costbenefitprojection.'.$view.'.' . (int) $record->id);
- if (!$permission && !is_null($permission))
+ if (!$permission) // TODO removed && !is_null($permission)
{
if ($action->name == 'core.edit' || $action->name == $view.'.edit')
{
@@ -1545,17 +1650,17 @@ abstract class CostbenefitprojectionHelper
}
elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0)
{
- // make sure we use the core. action check for the categories
- if (strpos($action->name,$view) !== false && strpos($action->name,'core.') === false ) {
- $coreCheck = explode('.',$action->name);
- $coreCheck[0] = 'core';
- $categoryCheck = implode('.',$coreCheck);
- }
- else
- {
- $categoryCheck = $action->name;
- }
- // The record has a category. Check the category permissions.
+ // make sure we use the core. action check for the categories
+ if (strpos($action->name,$view) !== false && strpos($action->name,'core.') === false ) {
+ $coreCheck = explode('.',$action->name);
+ $coreCheck[0] = 'core';
+ $categoryCheck = implode('.',$coreCheck);
+ }
+ else
+ {
+ $categoryCheck = $action->name;
+ }
+ // The record has a category. Check the category permissions.
$catpermission = $user->authorise($categoryCheck, 'com_costbenefitprojection.'.$views.'.category.' . (int) $record->catid);
if (!$catpermission && !is_null($catpermission))
{
@@ -1641,16 +1746,47 @@ abstract class CostbenefitprojectionHelper
/**
* Get any component's model
**/
- public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $component = 'costbenefitprojection')
+ public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $component = 'Costbenefitprojection', $config = array())
{
- // load some joomla helpers
- JLoader::import('joomla.application.component.model');
+ // fix the name
+ $name = self::safeString($name);
+ // full path
+ $fullPath = $path . '/models';
+ // set prefix
+ $prefix = $component.'Model';
// load the model file
- JLoader::import( $name, $path . '/models' );
- // return instance
- return JModelLegacy::getInstance( $name, $component.'Model' );
+ JModelLegacy::addIncludePath($fullPath, $prefix);
+ // get instance
+ $model = JModelLegacy::getInstance($name, $prefix, $config);
+ // if model not found (strange)
+ if ($model == false)
+ {
+ jimport('joomla.filesystem.file');
+ // get file path
+ $filePath = $path.'/'.$name.'.php';
+ $fullPath = $fullPath.'/'.$name.'.php';
+ // check if it exists
+ if (JFile::exists($filePath))
+ {
+ // get the file
+ require_once $filePath;
+ }
+ elseif (JFile::exists($fullPath))
+ {
+ // get the file
+ require_once $fullPath;
+ }
+ // build class names
+ $modelClass = $prefix.$name;
+ if (class_exists($modelClass))
+ {
+ // initialize the model
+ return new $modelClass($config);
+ }
+ }
+ return $model;
}
-
+
/**
* Add to asset Table
*/
@@ -1712,7 +1848,7 @@ abstract class CostbenefitprojectionHelper
}
return false;
}
-
+
/**
* Gets the default asset Rules for a component/view.
*/
@@ -1765,30 +1901,150 @@ abstract class CostbenefitprojectionHelper
return JAccess::getAssetRules(0);
}
+ /**
+ * xmlAppend
+ *
+ * @param SimpleXMLElement $xml The XML element reference in which to inject a comment
+ * @param mixed $node A SimpleXMLElement node to append to the XML element reference, or a stdClass object containing a comment attribute to be injected before the XML node and a fieldXML attribute containing a SimpleXMLElement
+ *
+ * @return null
+ *
+ */
+ public static function xmlAppend(&$xml, $node)
+ {
+ if (!$node)
+ {
+ // element was not returned
+ return;
+ }
+ switch (get_class($node))
+ {
+ case 'stdClass':
+ if (property_exists($node, 'comment'))
+ {
+ self::xmlComment($xml, $node->comment);
+ }
+ if (property_exists($node, 'fieldXML'))
+ {
+ self::xmlAppend($xml, $node->fieldXML);
+ }
+ break;
+ case 'SimpleXMLElement':
+ $domXML = dom_import_simplexml($xml);
+ $domNode = dom_import_simplexml($node);
+ $domXML->appendChild($domXML->ownerDocument->importNode($domNode, true));
+ $xml = simplexml_import_dom($domXML);
+ break;
+ }
+ }
+
+ /**
+ * xmlComment
+ *
+ * @param SimpleXMLElement $xml The XML element reference in which to inject a comment
+ * @param string $comment The comment to inject
+ *
+ * @return null
+ *
+ */
+ public static function xmlComment(&$xml, $comment)
+ {
+ $domXML = dom_import_simplexml($xml);
+ $domComment = new DOMComment($comment);
+ $nodeTarget = $domXML->ownerDocument->importNode($domComment, true);
+ $domXML->appendChild($nodeTarget);
+ $xml = simplexml_import_dom($domXML);
+ }
+
+ /**
+ * xmlAddAttributes
+ *
+ * @param SimpleXMLElement $xml The XML element reference in which to inject a comment
+ * @param array $attributes The attributes to apply to the XML element
+ *
+ * @return null
+ *
+ */
+ public static function xmlAddAttributes(&$xml, $attributes = array())
+ {
+ foreach ($attributes as $key => $value)
+ {
+ $xml->addAttribute($key, $value);
+ }
+ }
+
+ /**
+ * xmlAddOptions
+ *
+ * @param SimpleXMLElement $xml The XML element reference in which to inject a comment
+ * @param array $options The options to apply to the XML element
+ *
+ * @return void
+ *
+ */
+ public static function xmlAddOptions(&$xml, $options = array())
+ {
+ foreach ($options as $key => $value)
+ {
+ $addOption = $xml->addChild('option');
+ $addOption->addAttribute('value', $key);
+ $addOption[] = $value;
+ }
+ }
+
+ /**
+ * Render Bool Button
+ *
+ * @param array $args All the args for the button
+ * 0) name
+ * 1) additional (options class) // not used at this time
+ * 2) default
+ * 3) yes (name)
+ * 4) no (name)
+ *
+ * @return string The input html of the button
+ *
+ */
public static function renderBoolButton()
{
$args = func_get_args();
+ // check if there is additional button class
+ $additional = isset($args[1]) ? (string) $args[1] : ''; // not used at this time
+ // start the xml
+ $buttonXML = new SimpleXMLElement('');
+ // button attributes
+ $buttonAttributes = array(
+ 'type' => 'radio',
+ 'name' => isset($args[0]) ? self::htmlEscape($args[0]) : 'bool_button',
+ 'label' => isset($args[0]) ? self::safeString(self::htmlEscape($args[0]), 'Ww') : 'Bool Button', // not seen anyway
+ 'class' => 'btn-group',
+ 'filter' => 'INT',
+ 'default' => isset($args[2]) ? (int) $args[2] : 0);
+ // load the haskey attributes
+ self::xmlAddAttributes($buttonXML, $buttonAttributes);
+ // set the button options
+ $buttonOptions = array(
+ '1' => isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES',
+ '0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
+ // load the button options
+ self::xmlAddOptions($buttonXML, $buttonOptions);
// get the radio element
$button = JFormHelper::loadFieldType('radio');
- // setup the properties
- $name = self::htmlEscape($args[0]);
- $additional = isset($args[1]) ? (string) $args[1] : '';
- $value = $args[2];
- $yes = isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES';
- $no = isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO';
-
- // prepare the xml
- $element = new SimpleXMLElement('');
-
// run
- $button->setup($element, $value);
+ $button->setup($buttonXML, $buttonAttributes['default']);
return $button->input;
-
}
-
+
+ /**
+ * Check if have an json string
+ *
+ * @input string The json string to check
+ *
+ * @returns bool true on success
+ **/
public static function checkJson($string)
{
if (self::checkString($string))
@@ -1799,24 +2055,57 @@ abstract class CostbenefitprojectionHelper
return false;
}
+ /**
+ * Check if have an object with a length
+ *
+ * @input object The object to check
+ *
+ * @returns bool true on success
+ **/
public static function checkObject($object)
{
- if (isset($object) && is_object($object) && count($object) > 0)
+ if (isset($object) && is_object($object))
{
- return true;
+ return count((array)$object) > 0;
}
return false;
}
- public static function checkArray($array)
+ /**
+ * Check if have an array with a length
+ *
+ * @input array The array to check
+ *
+ * @returns bool true on success
+ **/
+ public static function checkArray($array, $removeEmptyString = false)
{
if (isset($array) && is_array($array) && count($array) > 0)
{
+ // also make sure the empty strings are removed
+ if ($removeEmptyString)
+ {
+ foreach ($array as $key => $string)
+ {
+ if (empty($string))
+ {
+ unset($array[$key]);
+ }
+ }
+ return self::checkArray($array, false);
+ }
return true;
}
return false;
}
+ /**
+ * Check if have a string with a length
+ *
+ * @input string The string to check
+ *
+ * @returns bool true on success
+ **/
public static function checkString($string)
{
if (isset($string) && is_string($string) && strlen($string) > 0)
@@ -1826,6 +2115,38 @@ abstract class CostbenefitprojectionHelper
return false;
}
+ /**
+ * Check if we are connected
+ * Thanks https://stackoverflow.com/a/4860432/1429677
+ *
+ * @returns bool true on success
+ **/
+ public static function isConnected()
+ {
+ // If example.com is down, then probably the whole internet is down, since IANA maintains the domain. Right?
+ $connected = @fsockopen("www.example.com", 80);
+ // website, port (try 80 or 443)
+ if ($connected)
+ {
+ //action when connected
+ $is_conn = true;
+ fclose($connected);
+ }
+ else
+ {
+ //action in connection failure
+ $is_conn = false;
+ }
+ return $is_conn;
+ }
+
+ /**
+ * Merge an array of array's
+ *
+ * @input array The arrays you would like to merge
+ *
+ * @returns array on success
+ **/
public static function mergeArrays($arrays)
{
if(self::checkArray($arrays))
@@ -1843,10 +2164,23 @@ abstract class CostbenefitprojectionHelper
return false;
}
+ // typo sorry!
public static function sorten($string, $length = 40, $addTip = true)
+ {
+ return self::shorten($string, $length, $addTip);
+ }
+
+ /**
+ * Shorten a string
+ *
+ * @input string The you would like to shorten
+ *
+ * @returns string on success
+ **/
+ public static function shorten($string, $length = 40, $addTip = true)
{
if (self::checkString($string))
- {
+ {
$initial = strlen($string);
$words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE);
$words_count = count($words);
@@ -1866,7 +2200,7 @@ abstract class CostbenefitprojectionHelper
$final = strlen($newString);
if ($initial != $final && $addTip)
{
- $title = self::sorten($string, 400 , false);
+ $title = self::shorten($string, 400 , false);
return ''.trim($newString).'...';
}
elseif ($initial != $final && !$addTip)
@@ -1877,80 +2211,117 @@ abstract class CostbenefitprojectionHelper
return $string;
}
- public static function safeString($string, $type = 'L', $spacer = '_')
+ /**
+ * Making strings safe (various ways)
+ *
+ * @input string The you would like to make safe
+ *
+ * @returns string on success
+ **/
+ public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true)
{
- // remove all numbers and replace with english text version (works well only up to a thousand)
- $string = self::replaceNumbers($string);
-
- if (self::checkString($string))
- {
- // remove all other characters
- $string = trim($string);
- $string = preg_replace('/'.$spacer.'+/', ' ', $string);
- $string = preg_replace('/\s+/', ' ', $string);
- $string = preg_replace("/[^A-Za-z ]/", '', $string);
- // return a string with all first letter of each word uppercase(no undersocre)
- if ($type == 'W')
- {
- return ucwords(strtolower($string));
- }
- elseif ($type == 'w')
- {
- return strtolower($string);
- }
- elseif ($type == 'Ww')
- {
- return ucfirst(strtolower($string));
- }
- elseif ($type == 'WW')
- {
- return strtoupper($string);
- }
- elseif ($type == 'U')
- {
- // replace white space with underscore
- $string = preg_replace('/\s+/', $spacer, $string);
- // return all upper
- return strtoupper($string);
- }
- elseif ($type == 'F')
- {
- // replace white space with underscore
- $string = preg_replace('/\s+/', $spacer, $string);
- // return with first caracter to upper
- return ucfirst(strtolower($string));
- }
- elseif ($type == 'L')
- {
- // replace white space with underscore
- $string = preg_replace('/\s+/', $spacer, $string);
- // default is to return lower
- return strtolower($string);
- }
-
- // return string
- return $string;
- }
- // not a string
- return '';
+ if ($replaceNumbers === true)
+ {
+ // remove all numbers and replace with english text version (works well only up to millions)
+ $string = self::replaceNumbers($string);
+ }
+ // 0nly continue if we have a string
+ if (self::checkString($string))
+ {
+ // create file name without the extention that is safe
+ if ($type === 'filename')
+ {
+ // make sure VDM is not in the string
+ $string = str_replace('VDM', 'vDm', $string);
+ // Remove anything which isn't a word, whitespace, number
+ // or any of the following caracters -_()
+ // If you don't need to handle multi-byte characters
+ // you can use preg_replace rather than mb_ereg_replace
+ // Thanks @Łukasz Rysiak!
+ // $string = mb_ereg_replace("([^\w\s\d\-_\(\)])", '', $string);
+ $string = preg_replace("([^\w\s\d\-_\(\)])", '', $string);
+ // http://stackoverflow.com/a/2021729/1429677
+ return preg_replace('/\s+/', ' ', $string);
+ }
+ // remove all other characters
+ $string = trim($string);
+ $string = preg_replace('/'.$spacer.'+/', ' ', $string);
+ $string = preg_replace('/\s+/', ' ', $string);
+ $string = preg_replace("/[^A-Za-z ]/", '', $string);
+ // select final adaptations
+ if ($type === 'L' || $type === 'strtolower')
+ {
+ // replace white space with underscore
+ $string = preg_replace('/\s+/', $spacer, $string);
+ // default is to return lower
+ return strtolower($string);
+ }
+ elseif ($type === 'W')
+ {
+ // return a string with all first letter of each word uppercase(no undersocre)
+ return ucwords(strtolower($string));
+ }
+ elseif ($type === 'w' || $type === 'word')
+ {
+ // return a string with all lowercase(no undersocre)
+ return strtolower($string);
+ }
+ elseif ($type === 'Ww' || $type === 'Word')
+ {
+ // return a string with first letter of the first word uppercase and all the rest lowercase(no undersocre)
+ return ucfirst(strtolower($string));
+ }
+ elseif ($type === 'WW' || $type === 'WORD')
+ {
+ // return a string with all the uppercase(no undersocre)
+ return strtoupper($string);
+ }
+ elseif ($type === 'U' || $type === 'strtoupper')
+ {
+ // replace white space with underscore
+ $string = preg_replace('/\s+/', $spacer, $string);
+ // return all upper
+ return strtoupper($string);
+ }
+ elseif ($type === 'F' || $type === 'ucfirst')
+ {
+ // replace white space with underscore
+ $string = preg_replace('/\s+/', $spacer, $string);
+ // return with first caracter to upper
+ return ucfirst(strtolower($string));
+ }
+ elseif ($type === 'cA' || $type === 'cAmel' || $type === 'camelcase')
+ {
+ // convert all words to first letter uppercase
+ $string = ucwords(strtolower($string));
+ // remove white space
+ $string = preg_replace('/\s+/', '', $string);
+ // now return first letter lowercase
+ return lcfirst($string);
+ }
+ // return string
+ return $string;
+ }
+ // not a string
+ return '';
}
- public static function htmlEscape($var, $charset = 'UTF-8', $sorten = false, $length = 40)
+ public static function htmlEscape($var, $charset = 'UTF-8', $shorten = false, $length = 40)
{
if (self::checkString($var))
{
$filter = new JFilterInput();
$string = $filter->clean(html_entity_decode(htmlentities($var, ENT_COMPAT, $charset)), 'HTML');
- if ($sorten)
+ if ($shorten)
{
- return self::sorten($string,$length);
+ return self::shorten($string,$length);
}
return $string;
- }
+ }
else
{
return '';
- }
+ }
}
public static function replaceNumbers($string)
@@ -1974,7 +2345,7 @@ abstract class CostbenefitprojectionHelper
// return the string with no numbers remaining.
return $string;
}
-
+
/**
* Convert an integer into an English word string
* Thanks to Tom Nicholson
@@ -2084,23 +2455,34 @@ abstract class CostbenefitprojectionHelper
return implode($key);
}
- public static function getCryptKey($type)
+ /**
+ * Get The Encryption Keys
+ *
+ * @param string $type The type of key
+ * @param string/bool $default The return value if no key was found
+ *
+ * @return string On success
+ *
+ **/
+ public static function getCryptKey($type, $default = false)
{
- if ('advanced' == $type)
+ // Get the global params
+ $params = JComponentHelper::getParams('com_costbenefitprojection', true);
+ // WHMCS Encryption Type
+ if ('whmcs' === $type || 'advanced' === $type)
{
- // Get the global params
- $params = JComponentHelper::getParams('com_costbenefitprojection', true);
- $advanced_key = $params->get('advanced_key', null);
- if ($advanced_key)
+ $key = $params->get('advanced_key', $default);
+ if (self::checkString($key))
{
// load the file
- JLoader::import( 'vdm', JPATH_COMPONENT_ADMINISTRATOR);
+ JLoader::import( 'whmcs', JPATH_COMPONENT_ADMINISTRATOR);
- $the = new VDM($advanced_key);
+ $the = new WHMCS($key);
return $the->_key;
}
}
- return false;
+
+ return $default;
}
}
diff --git a/admin/helpers/headercheck.php b/admin/helpers/headercheck.php
new file mode 100644
index 00000000..3b24ae1b
--- /dev/null
+++ b/admin/helpers/headercheck.php
@@ -0,0 +1,79 @@
+
+ @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
+ @copyright Copyright (C) 2015. All Rights Reserved
+ @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+
+/-------------------------------------------------------------------------------------------------------/
+ Cost Benefit Projection Tool.
+/------------------------------------------------------------------------------------------------------*/
+
+// No direct access to this file
+defined('_JEXEC') or die('Restricted access');
+
+class costbenefitprojectionHeaderCheck
+{
+ function js_loaded($script_name)
+ {
+ // UIkit check point
+ if (strpos($script_name,'uikit') !== false)
+ {
+ $app = JFactory::getApplication();
+ $getTemplateName = $app->getTemplate('template')->template;
+
+ if (strpos($getTemplateName,'yoo') !== false)
+ {
+ return true;
+ }
+ }
+
+ $document = JFactory::getDocument();
+ $head_data = $document->getHeadData();
+ foreach (array_keys($head_data['scripts']) as $script)
+ {
+ if (stristr($script, $script_name))
+ {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ function css_loaded($script_name)
+ {
+ // UIkit check point
+ if (strpos($script_name,'uikit') !== false)
+ {
+ $app = JFactory::getApplication();
+ $getTemplateName = $app->getTemplate('template')->template;
+
+ if (strpos($getTemplateName,'yoo') !== false)
+ {
+ return true;
+ }
+ }
+
+ $document = JFactory::getDocument();
+ $head_data = $document->getHeadData();
+
+ foreach (array_keys($head_data['styleSheets']) as $script)
+ {
+ if (stristr($script, $script_name))
+ {
+ return true;
+ }
+ }
+
+ return false;
+ }
+}
\ No newline at end of file
diff --git a/admin/helpers/html/batch_.php b/admin/helpers/html/batch_.php
index 957231db..450252e7 100644
--- a/admin/helpers/html/batch_.php
+++ b/admin/helpers/html/batch_.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage batch_.php
diff --git a/admin/helpers/sum.php b/admin/helpers/sum.php
index cf6da728..69261649 100644
--- a/admin/helpers/sum.php
+++ b/admin/helpers/sum.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage sum.php
diff --git a/admin/helpers/sumcombine.php b/admin/helpers/sumcombine.php
index 9f18dab9..2c72494d 100644
--- a/admin/helpers/sumcombine.php
+++ b/admin/helpers/sumcombine.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage sumcombine.php
diff --git a/admin/language/en-GB/en-GB.com_costbenefitprojection.ini b/admin/language/en-GB/en-GB.com_costbenefitprojection.ini
index f772683d..1cdae03b 100644
--- a/admin/language/en-GB/en-GB.com_costbenefitprojection.ini
+++ b/admin/language/en-GB/en-GB.com_costbenefitprojection.ini
@@ -1,10 +1,16 @@
COM_COSTBENEFITPROJECTION="Cost Benefit Projection"
+COM_COSTBENEFITPROJECTION_ACCESS_DENIED="Access denied!"
COM_COSTBENEFITPROJECTION_ACCESS_TO_COMBINEDRESULTS_FAILED="Access to combinedresults was denied."
COM_COSTBENEFITPROJECTION_ADVANCED_METHOD="Advanced Method"
COM_COSTBENEFITPROJECTION_AGE_ID="Age id"
COM_COSTBENEFITPROJECTION_AGE_NAME="Age name"
+COM_COSTBENEFITPROJECTION_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER="All is good, please check again latter."
COM_COSTBENEFITPROJECTION_ALL_NUMBERS_IN_BRACKETS_ARE_THE_RELATED_EMPLOYEES="All numbers in brackets are the related employees."
+COM_COSTBENEFITPROJECTION_ARCHIVED="Archived"
COM_COSTBENEFITPROJECTION_AUTHOR="Author"
+COM_COSTBENEFITPROJECTION_A_COUNTRY="A Country"
+COM_COSTBENEFITPROJECTION_A_FEW_CLOSED_ISSUES_FROM_GITHUB_IS_LOADING="A few closed issues from Github is loading"
+COM_COSTBENEFITPROJECTION_A_FEW_OPEN_ISSUES_FROM_GITHUB_IS_LOADING="A few open issues from Github is loading"
COM_COSTBENEFITPROJECTION_BACK="Back"
COM_COSTBENEFITPROJECTION_BASIC_METHOD="Basic Method"
COM_COSTBENEFITPROJECTION_BENEFIT="Benefit"
@@ -30,9 +36,11 @@ COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME="Importname"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_DESCRIPTION="Enter Import Name Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_HINT="Import Name Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_LABEL="Import Name"
+COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_MESSAGE="Error! Please add import name here."
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID="Import Id"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID_DESCRIPTION="This is the id that is used during import of the health data."
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID_LABEL="Import ID"
+COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID_MESSAGE="Error! Please add some the import ID here."
COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_BY_DESC="The last user that modified this Cause/Risk."
COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_BY_LABEL="Modified By"
COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_DATE_DESC="The date this Cause/Risk was modified."
@@ -41,6 +49,7 @@ COM_COSTBENEFITPROJECTION_CAUSERISK_NAME="Name"
COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_DESCRIPTION="Enter Name Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_HINT="Name Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_LABEL="Name"
+COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_MESSAGE="Error! Please add name here."
COM_COSTBENEFITPROJECTION_CAUSERISK_NEW="A New Cause/Risk"
COM_COSTBENEFITPROJECTION_CAUSERISK_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_CAUSERISK_PERMISSION="Permissions"
@@ -49,6 +58,7 @@ COM_COSTBENEFITPROJECTION_CAUSERISK_REF="Ref"
COM_COSTBENEFITPROJECTION_CAUSERISK_REF_DESCRIPTION="The reference number for this cause/risk"
COM_COSTBENEFITPROJECTION_CAUSERISK_REF_HINT="Ref Number Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_REF_LABEL="Ref Nr"
+COM_COSTBENEFITPROJECTION_CAUSERISK_REF_MESSAGE="Error! Please add the reference number here."
COM_COSTBENEFITPROJECTION_CAUSERISK_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Cause/Risk to customise the alias."
COM_COSTBENEFITPROJECTION_CAUSERISK_STATUS="Status"
COM_COSTBENEFITPROJECTION_CAUSERISK_VERSION_DESC="A count of the number of times this Cause/Risk has been revised."
@@ -103,10 +113,11 @@ COM_COSTBENEFITPROJECTION_CAUSE_ID="Cause id"
COM_COSTBENEFITPROJECTION_CAUSE_NAME="Cause name"
COM_COSTBENEFITPROJECTION_CHARTS_MENU="Charts Menu"
COM_COSTBENEFITPROJECTION_CHARTS_QUICK_LINKS="Charts ›› Quick Links"
+COM_COSTBENEFITPROJECTION_CLOSE_NEW="Close & New"
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS="Combined results"
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS_DESC="The companies combine results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access"
-COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC=" Allows the users in this group to access combined results."
+COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access Combined Results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE="Combined Results (Site) Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC=" Allows the users in this group to access site combined results."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
@@ -216,11 +227,13 @@ COM_COSTBENEFITPROJECTION_COMPANY_EMAIL="Email"
COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_DESCRIPTION="Enter Email"
COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_HINT="demo@example.com"
COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_LABEL="Email"
+COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_MESSAGE="Error! Please add email address here."
COM_COSTBENEFITPROJECTION_COMPANY_ERROR_UNIQUE_ALIAS="Another Company has the same alias."
COM_COSTBENEFITPROJECTION_COMPANY_FEMALES="Females"
COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_DESCRIPTION="The Total Number of Female Employees."
COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_HINT="Just A Number"
COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_LABEL="Total Female Employees"
+COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_MESSAGE="Error! Please add total female employees here."
COM_COSTBENEFITPROJECTION_COMPANY_FIFTEENNINETEEN="15-19"
COM_COSTBENEFITPROJECTION_COMPANY_FIFTYFIFTY_FOUR="50-54"
COM_COSTBENEFITPROJECTION_COMPANY_FIFTY_FIVEFIFTY_NINE="55-59"
@@ -233,14 +246,17 @@ COM_COSTBENEFITPROJECTION_COMPANY_MALES="Males"
COM_COSTBENEFITPROJECTION_COMPANY_MALES_DESCRIPTION="The Total Number of Male Employees."
COM_COSTBENEFITPROJECTION_COMPANY_MALES_HINT="Just A Number"
COM_COSTBENEFITPROJECTION_COMPANY_MALES_LABEL="Total Male Employees"
+COM_COSTBENEFITPROJECTION_COMPANY_MALES_MESSAGE="Error! Please add total male employees here."
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES="Medical Turnovers Females"
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_DESCRIPTION="The total number of medical turnovers for females per/year."
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_LABEL="Total Number Medical Turnovers Female"
+COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_MESSAGE="Error! Please add total number of medical turnovers for females here."
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES="Medical Turnovers Males"
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_DESCRIPTION="The total number of medical turnovers for males per/year."
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_LABEL="Total Number Medical Turnovers Male"
+COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_MESSAGE="Error! Please add total number of medical turnovers for males here."
COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_BY_DESC="The last user that modified this Company."
COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_BY_LABEL="Modified By"
COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_DATE_DESC="The date this Company was modified."
@@ -249,6 +265,7 @@ COM_COSTBENEFITPROJECTION_COMPANY_NAME="Name"
COM_COSTBENEFITPROJECTION_COMPANY_NAME_DESCRIPTION="Enter Company Name Here"
COM_COSTBENEFITPROJECTION_COMPANY_NAME_HINT="Company Name Here"
COM_COSTBENEFITPROJECTION_COMPANY_NAME_LABEL="Company Name"
+COM_COSTBENEFITPROJECTION_COMPANY_NAME_MESSAGE="Error! Please add company name here."
COM_COSTBENEFITPROJECTION_COMPANY_NEW="A New Company"
COM_COSTBENEFITPROJECTION_COMPANY_NOT_REQUIRED="Not Required"
COM_COSTBENEFITPROJECTION_COMPANY_OPEN="Open"
@@ -256,12 +273,15 @@ COM_COSTBENEFITPROJECTION_COMPANY_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_COMPANY_PER="Per"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE="Percentfemale"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_DESCRIPTION="Here you can add females age groups percent."
+COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_LABEL="Set Females Age Groups Percent"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE="Percentmale"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_DESCRIPTION="Here you can add males age groups percent."
+COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_LABEL="Set Males Age Groups Percent"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_HINT="Percent Here"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_LABEL="Percent"
+COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_MESSAGE="Error! Please add percent here."
COM_COSTBENEFITPROJECTION_COMPANY_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_COMPANY_PER_DESCRIPTION="Select your profile access status"
COM_COSTBENEFITPROJECTION_COMPANY_PER_LABEL="Profile Status"
@@ -269,9 +289,10 @@ COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES="Productivity Losses"
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_DESCRIPTION="The proportion of annual salary that it costs to replace an employee for medical reasons."
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_HINT="0.05"
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_LABEL="Medical Turnover Cost Factor"
+COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_MESSAGE="Error! Please add medical turnover cost factor here."
COM_COSTBENEFITPROJECTION_COMPANY_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access"
-COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC=" Allows the users in this group to access company results."
+COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access Company Results"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE="Company results (Site) Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC=" Allows the users in this group to access site company results."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS="Company Results Companies Button Access"
@@ -286,10 +307,12 @@ COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES="Sick Leave Females"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_DESCRIPTION="The total number of sick leave days for females per/year."
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_LABEL="Total Number Sick Leave Days Females"
+COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_MESSAGE="Error! Please add total number of sick leave days for females here."
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES="Sick Leave Males"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_DESCRIPTION="The total number of sick leave days for males per/year."
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_LABEL="Total Number Sick Leave Days Males"
+COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_MESSAGE="Error! Please add total number of sick leave days for males here."
COM_COSTBENEFITPROJECTION_COMPANY_SIXTYSIXTY_FOUR="60-64"
COM_COSTBENEFITPROJECTION_COMPANY_STATUS="Status"
COM_COSTBENEFITPROJECTION_COMPANY_THIRTYTHIRTY_FOUR="30-34"
@@ -298,10 +321,12 @@ COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE="Total Healthcare"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_DESCRIPTION="The total healthcare payed per/year"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_LABEL="Total Healthcare Costs"
+COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_MESSAGE="Error! Please add total healthcare costs here."
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY="Total Salary"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_DESCRIPTION="The total salary payed per/year"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_LABEL="Total Salary"
+COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_MESSAGE="Error! Please add total salary here."
COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT="Turnover Comment"
COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_DESCRIPTION="Here you can explain how many deaths your company has had over any given period. This will help us understand how you came to the numbers used above in the male and female medical turnovers."
COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_HINT="You can make a comment here to indicate how you arrived at the given numbers above for male and female medical turnovers."
@@ -374,7 +399,7 @@ COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_NONE="None"
COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_WWW="Website"
COM_COSTBENEFITPROJECTION_CONFIG_CPANEL="cPanel"
COM_COSTBENEFITPROJECTION_CONFIG_DONT_LOAD="Not"
-COM_COSTBENEFITPROJECTION_CONFIG_ENCRYPTION_DESC="The encription key for the field encryption is set here."
+COM_COSTBENEFITPROJECTION_CONFIG_ENCRYPTION_DESC="The encryption key for the field encryption is set here."
COM_COSTBENEFITPROJECTION_CONFIG_ENCRYPTION_LABEL="Encryption Settings"
COM_COSTBENEFITPROJECTION_CONFIG_FLAT_LOAD="Flat"
COM_COSTBENEFITPROJECTION_CONFIG_FORCE_LOAD="Force"
@@ -390,6 +415,7 @@ COM_COSTBENEFITPROJECTION_CONFIG_HAXISTITLETEXTSTYLEFONTCOLOR_LABEL="hAxis Title
COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_DESCRIPTION="Enter the URL where more information is found about the CPB tool."
COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_HINT="http://www.yourwebsite.com/"
COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_LABEL="Information URL"
+COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_MESSAGE="Error! Please add information url here."
COM_COSTBENEFITPROJECTION_CONFIG_LEGENDTEXTSTYLEFONTCOLOR_DESC="Select the legend font color."
COM_COSTBENEFITPROJECTION_CONFIG_LEGENDTEXTSTYLEFONTCOLOR_LABEL="Legend Font Color"
COM_COSTBENEFITPROJECTION_CONFIG_LEGENDTEXTSTYLEFONTSIZE_DESC="Set in pixels the font size of the legend"
@@ -405,12 +431,13 @@ COM_COSTBENEFITPROJECTION_CONFIG_ONLY_EXTRA="Only Extra"
COM_COSTBENEFITPROJECTION_CONFIG_RESULTPATH_DESCRIPTION="Please set the path where the result json files should be stored, make sure it is outside the public folder."
COM_COSTBENEFITPROJECTION_CONFIG_RESULTPATH_HINT="/home/username/temp"
COM_COSTBENEFITPROJECTION_CONFIG_RESULTPATH_LABEL="Result Path"
+COM_COSTBENEFITPROJECTION_CONFIG_RESULTPATH_MESSAGE="Error! Please add the path where the result json should be sotred here."
COM_COSTBENEFITPROJECTION_CONFIG_SITE_CHART_NOTE_DESC="The following settings are used on the front-end of the site called (site)."
COM_COSTBENEFITPROJECTION_CONFIG_SITE_CHART_NOTE_LABEL="Site Settings"
COM_COSTBENEFITPROJECTION_CONFIG_TARGET_GROUP_DESC="Set the group/s being targeted by this user type."
COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_DESC="The Parameters for the uikit are set here. Uikit is a lightweight and modular front-end framework
-for developing fast and powerful web interfaces. For more info visit http://getuikit.com/"
-COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_LABEL="Uikit Settings"
+for developing fast and powerful web interfaces. For more info visit https://getuikit.com/v2/"
+COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_LABEL="Uikit2 Settings"
COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_LOAD_DESC="Set the uikit loading option."
COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_LOAD_LABEL="Loading Options"
COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_MIN_DESC="Should the minified version of uikit files be loaded?"
@@ -419,10 +446,10 @@ COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_STYLE_DESC="Set the css style that should
COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_STYLE_LABEL="css Style"
COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_DESC="Select the vertical axis font color."
COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_LABEL="vAxis Font Color"
-COM_COSTBENEFITPROJECTION_CONFIG_VDM_KEY_DESC="Add the advanced key here."
-COM_COSTBENEFITPROJECTION_CONFIG_VDM_KEY_LABEL="Advanced Key (advanced encryption)"
-COM_COSTBENEFITPROJECTION_CONFIG_VDM_KEY_NOTE_DESC="When using the advanced encryption you need to get an advanced key from Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb. Never change this advanced key once it is set! DATA WILL GET CORRUPTED IF YOU DO!"
-COM_COSTBENEFITPROJECTION_CONFIG_VDM_KEY_NOTE_LABEL="Advanced Encryption"
+COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_DESC="Add the key you recieved from Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb here."
+COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_LABEL="WHMCS Key"
+COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_NOTE_DESC="When using this (whmcs) encryption you need to get a key from Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb. Never change this key once it is set! DATA WILL GET CORRUPTED IF YOU DO!"
+COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_NOTE_LABEL="Field Encryption (whmcs)"
COM_COSTBENEFITPROJECTION_CONFIG_YES="Yes"
COM_COSTBENEFITPROJECTION_CONTRIBUTION_TO_COSTS="Contribution to Costs"
COM_COSTBENEFITPROJECTION_CONTRIBUTOR="Contributor"
@@ -438,7 +465,7 @@ COM_COSTBENEFITPROJECTION_COST_MORTALITY="Cost Mortality"
COM_COSTBENEFITPROJECTION_COST_OF_INTERVENTION="Cost of Intervention"
COM_COSTBENEFITPROJECTION_COST_OF_PROBLEM="Cost of Problem"
COM_COSTBENEFITPROJECTION_COST_PERCENT="Cost Percent"
-COM_COSTBENEFITPROJECTION_COST_PER_EMPLOYEE="Cost per Employee"
+COM_COSTBENEFITPROJECTION_COST_PER_EMPLOYEE="Cost Per Employee"
COM_COSTBENEFITPROJECTION_COST_PRESENTEEISM_DUE_TO_MORBIDITY="Cost Presenteeism (due to morbidity)"
COM_COSTBENEFITPROJECTION_COST_SUMMARY="Cost Summary"
COM_COSTBENEFITPROJECTION_COUNTRIES="Countries"
@@ -498,10 +525,12 @@ COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE="Codethree"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_DESCRIPTION="ISO 3166-1 alpha-3 codes are three-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest."
COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_HINT="NAM"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_LABEL="Code Three"
+COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_MESSAGE="Error! Please add three-letter country code here."
COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO="Codetwo"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_DESCRIPTION="ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest."
COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_HINT="NA"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_LABEL="Code Two"
+COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_MESSAGE="Error! Please add two-letter country code here."
COM_COSTBENEFITPROJECTION_COUNTRY_COMPANIES="Companies"
COM_COSTBENEFITPROJECTION_COUNTRY_CREATED_BY_DESC="The user that created this Country."
COM_COSTBENEFITPROJECTION_COUNTRY_CREATED_BY_LABEL="Created By"
@@ -518,9 +547,11 @@ COM_COSTBENEFITPROJECTION_COUNTRY_EDIT="Editing the Country"
COM_COSTBENEFITPROJECTION_COUNTRY_ERROR_UNIQUE_ALIAS="Another Country has the same alias."
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH="Femaledeath"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH_DESCRIPTION="Here you can add total females death data."
+COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH_LABEL="Set Females Total Deaths"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD="Femaleyld"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD_DESCRIPTION="Here you can add females total YLD data."
+COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD_LABEL="Set Females Total YLDs"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_FIFTEENNINETEEN="15-19"
COM_COSTBENEFITPROJECTION_COUNTRY_FIFTYFIFTY_FOUR="50-54"
@@ -531,19 +562,23 @@ COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE="Healthcare"
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_DESCRIPTION="The healthcare costs as a % of total salary costs. This figure is used for the calculations as default."
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_HINT="10"
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_LABEL="Default Healthcare Costs"
+COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_MESSAGE="Error! Please add healthcare cost here."
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTH_DATA_TOTALS="Health Data Totals"
COM_COSTBENEFITPROJECTION_COUNTRY_ID="Id"
COM_COSTBENEFITPROJECTION_COUNTRY_INTERVENTIONS="Interventions"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH="Maledeath"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH_DESCRIPTION="Here you can add males total death data."
+COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH_LABEL="Set Males Total Deaths"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD="Maleyld"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD_DESCRIPTION="Here you can add males total YLD data."
+COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD_LABEL="Set Males Total YLDs"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS="Medical Turnovers"
COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_DESCRIPTION="The average medical turnover per/100,000."
COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_HINT="12"
COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_LABEL="Default Ave. Medical Turnover"
+COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_MESSAGE="Error! Please add ave. medical turnover here."
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_BY_DESC="The last user that modified this Country."
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_BY_LABEL="Modified By"
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_DATE_DESC="The date this Country was modified."
@@ -552,41 +587,51 @@ COM_COSTBENEFITPROJECTION_COUNTRY_NAME="Name"
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_DESCRIPTION="Enter Name Here"
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_HINT="Name Here"
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_LABEL="Name"
+COM_COSTBENEFITPROJECTION_COUNTRY_NAME_MESSAGE="Error! Please add name here."
COM_COSTBENEFITPROJECTION_COUNTRY_NEW="A New Country"
COM_COSTBENEFITPROJECTION_COUNTRY_NUMBER_HINT="Number Here"
COM_COSTBENEFITPROJECTION_COUNTRY_NUMBER_LABEL="Number"
+COM_COSTBENEFITPROJECTION_COUNTRY_NUMBER_MESSAGE="Error! Please add number here."
COM_COSTBENEFITPROJECTION_COUNTRY_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE="Percentfemale"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE_DESCRIPTION="Here you can add females age groups percent."
+COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE_LABEL="Set Females Age Groups Percent"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE="Percentmale"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE_DESCRIPTION="Here you can add males age groups percent."
+COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE_LABEL="Set Males Age Groups Percent"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENT_HINT="Percent Here"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENT_LABEL="Percent"
+COM_COSTBENEFITPROJECTION_COUNTRY_PERCENT_MESSAGE="Error! Please add percent here."
COM_COSTBENEFITPROJECTION_COUNTRY_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM="Presenteeism"
COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_DESCRIPTION="The presenteeism constant."
COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_HINT="0.25"
COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_LABEL="Presenteeism Constant"
+COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_MESSAGE="Error! Please add presenteeism constant here."
COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES="Productivity Losses"
COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_DESCRIPTION="The interim number between 0 and 1 reflecting the amount of a year in lost productivity due to medical retirement/death of an employee. This figure is used for the default."
COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_HINT="0.5"
COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_LABEL="Default Productivity Losses"
+COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_MESSAGE="Error! Please add productivity losses here."
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICADDRESS="Publicaddress"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICADDRESS_LABEL="Public Address"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL="Publicemail"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_DESCRIPTION="The email we may use publicly"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_HINT="Public Email Here"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_LABEL="Public Email"
+COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_MESSAGE="Error! Please public email address here."
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME="Publicname"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_DESCRIPTION="The name we may use publicly"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_HINT="Public Name Here"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_LABEL="Public Name"
+COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_MESSAGE="Error! Please add public name here."
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER="Publicnumber"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_DESCRIPTION="The phone number we may use publicly"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_HINT="Public Phone Here"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_LABEL="Public Phone"
+COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_MESSAGE="Error! Please add public phone number here."
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLIC_DETAILS="Public Details"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_COUNTRY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Country to customise the alias."
@@ -596,6 +641,7 @@ COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE="Sick Leave"
COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_DESCRIPTION="The average sick leave days per/person."
COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_HINT="12"
COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_LABEL="Default Ave. Sick Leave"
+COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_MESSAGE="Error! Please add ave. sick leave here."
COM_COSTBENEFITPROJECTION_COUNTRY_SIXTYSIXTY_FOUR="60-64"
COM_COSTBENEFITPROJECTION_COUNTRY_STATUS="Status"
COM_COSTBENEFITPROJECTION_COUNTRY_THIRTYTHIRTY_FOUR="30-34"
@@ -629,6 +675,7 @@ COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE="Worldzone"
COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_DESCRIPTION="The zone this country belongs to"
COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_HINT="only number"
COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_LABEL="Worldzone"
+COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_MESSAGE="Error! Please add zone code here."
COM_COSTBENEFITPROJECTION_COUNTRY_YEAR_LABEL="Data Year"
COM_COSTBENEFITPROJECTION_COVERAGE_S="Coverage: %s"
COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE="cPanel (Site) Access"
@@ -688,6 +735,7 @@ COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE="Codethree"
COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_DESCRIPTION="The following is a list of active codes of official ISO 4217 currency names."
COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_HINT="NAD"
COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_LABEL="Code Three"
+COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_MESSAGE="Error! Please add three-letter currency code here."
COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_BY_DESC="The user that created this Currency."
COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_BY_LABEL="Created By"
COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_DATE_DESC="The date this Currency was created."
@@ -696,10 +744,12 @@ COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE="Decimalplace"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_DESCRIPTION=" The position of a digit to the right of a decimal point, usually identified by successive ascending ordinal numbers with the digit immediately to the right of the decimal point being first: a figure accurate to the third decimal place."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_HINT="2"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_LABEL="Decimal place"
+COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_MESSAGE="Error! Please add currency decimal place here."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL="Decimalsymbol"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_DESCRIPTION=" The symbol used to separate the integer part of a decimal number from its fractional part is called the decimal point."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_HINT="."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_LABEL="Decimal symbol"
+COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_MESSAGE="Error! Please add currency decimal symbol here."
COM_COSTBENEFITPROJECTION_CURRENCY_DETAILS="Details"
COM_COSTBENEFITPROJECTION_CURRENCY_EDIT="Editing the Currency"
COM_COSTBENEFITPROJECTION_CURRENCY_ERROR_UNIQUE_ALIAS="Another Currency has the same alias."
@@ -712,21 +762,25 @@ COM_COSTBENEFITPROJECTION_CURRENCY_NAME="Name"
COM_COSTBENEFITPROJECTION_CURRENCY_NAME_DESCRIPTION="Enter Name Here"
COM_COSTBENEFITPROJECTION_CURRENCY_NAME_HINT="Name Here"
COM_COSTBENEFITPROJECTION_CURRENCY_NAME_LABEL="Name"
+COM_COSTBENEFITPROJECTION_CURRENCY_NAME_MESSAGE="Error! Please add name here."
COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE="Negativestyle"
COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_DESCRIPTION="Please use the following placeholders {sign}{number} {symbol} to build the currency negative style."
COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_HINT="{sign}{number} {symbol}"
COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_LABEL="Negative style"
+COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_MESSAGE="Error! Please add currency negative style here."
COM_COSTBENEFITPROJECTION_CURRENCY_NEW="A New Currency"
COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE="Numericcode"
COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_DESCRIPTION="There is also a three-digit code number assigned to each currency, in the same manner as there is also a three-digit code number assigned to each country as part of ISO 3166. This numeric code is usually the same as the ISO 3166-1 numeric code. For example, USD (United States dollar) has code 840 which is also the numeric code for the US (United States)."
COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_HINT="516"
COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_LABEL="Numeric Code"
+COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_MESSAGE="Error! Please add numeric code here."
COM_COSTBENEFITPROJECTION_CURRENCY_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_CURRENCY_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE="Positivestyle"
COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_DESCRIPTION="Please use the following placeholders {number} {symbol} to build the currency positive style."
COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_HINT="{number} {symbol}"
COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_LABEL="Positive style"
+COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_MESSAGE="Error! Please add currency positive style here."
COM_COSTBENEFITPROJECTION_CURRENCY_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_CURRENCY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Currency to customise the alias."
COM_COSTBENEFITPROJECTION_CURRENCY_STATUS="Status"
@@ -734,9 +788,11 @@ COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL="Symbol"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_DESCRIPTION="A currency symbol is a graphic symbol used as a shorthand for a currency's name, especially in reference to amounts of money."
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_HINT="N$"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_LABEL="Symbol"
+COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_MESSAGE="Error! Please add currency symbol here."
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS="Thousands"
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_HINT=" "
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_LABEL="Thousands separator"
+COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_MESSAGE="Error! Please add currency thousands separator here."
COM_COSTBENEFITPROJECTION_CURRENCY_VERSION_DESC="A count of the number of times this Currency has been revised."
COM_COSTBENEFITPROJECTION_CURRENCY_VERSION_LABEL="Revision"
COM_COSTBENEFITPROJECTION_DASH="Dashboard"
@@ -797,9 +853,11 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_EDIT="Editing the Health Data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_ERROR_UNIQUE_ALIAS="Another Health Data has the same alias."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH="Femaledeath"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH_DESCRIPTION="Here you can add females death data."
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH_LABEL="Set Females Death"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD="Femaleyld"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD_DESCRIPTION="Here you can add females YLD data."
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD_LABEL="Set Females YLD"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FIFTEENNINETEEN="15-19"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FIFTYFIFTY_FOUR="50-54"
@@ -809,9 +867,11 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_FORTY_FIVEFORTY_NINE="45-49"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_ID="Id"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH="Maledeath"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH_DESCRIPTION="Here you can add males death data."
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH_LABEL="Set Males Death"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD="Maleyld"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD_DESCRIPTION="Here you can add males YLD data."
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD_LABEL="Set Males YLD"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MODIFIED_BY_DESC="The last user that modified this Health Data."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MODIFIED_BY_LABEL="Modified By"
@@ -820,6 +880,7 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_MODIFIED_DATE_LABEL="Modified Date"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_NEW="A New Health Data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_NUMBER_HINT="Number Here"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_NUMBER_LABEL="Number"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_NUMBER_MESSAGE="Error! Please add number here."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_PUBLISHING="Publishing"
@@ -955,7 +1016,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the help document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN="Admin"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN_VIEW="Admin View"
-COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION="Select the view being targeted"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION="Select the view being target."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN_VIEW_LABEL="Admin Views"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ALIAS="Alias"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ALIAS_HINT="Auto-generated from name"
@@ -993,7 +1054,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SAVE_WARNING="Alias already existed so a
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SELECT_AN_OPTION="Select an option"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE="Site"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE_VIEW="Site View"
-COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION="Select the view being targeted"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION="Select the view being target."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE_VIEW_LABEL="Site Views"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SOME="Some"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_STATUS="Status"
@@ -1005,6 +1066,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE="Title"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_DESCRIPTION="Enter Title Here"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_HINT="Title Here"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_LABEL="Title"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_MESSAGE="Error! Please add title here."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE="Type"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_DESCRIPTION="Select the help type."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_LABEL="Type"
@@ -1012,6 +1074,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL="Url"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_DESCRIPTION="Enter url"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_HINT="http://www.example.com"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_LABEL="URL"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_MESSAGE="Error! Please add url here."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_VERSION_DESC="A count of the number of times this Help Document has been revised."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_VERSION_LABEL="Revision"
COM_COSTBENEFITPROJECTION_HELP_MANAGER="Help"
@@ -1060,6 +1123,7 @@ COM_COSTBENEFITPROJECTION_IMPORT_TITLE="Data Importer"
COM_COSTBENEFITPROJECTION_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE="Package to import not found."
COM_COSTBENEFITPROJECTION_IMPORT_UPDATE_DATA="Import Data"
COM_COSTBENEFITPROJECTION_IMPORT_UPLOAD_BOTTON="Upload File"
+COM_COSTBENEFITPROJECTION_INACTIVE="Inactive"
COM_COSTBENEFITPROJECTION_INTERVENTION="Intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS="Interventions"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_ACCESS="Interventions Access"
@@ -1142,6 +1206,7 @@ COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTION="Intervention"
COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTIONS="Interventions"
COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTIONS_LABEL="Interventions"
COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTION_DESCRIPTION="Here you can add & edit interventions."
+COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTION_LABEL="Set Intervention"
COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTION_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_INTERVENTION_MBR_DESCRIPTION="Percentage estimate"
COM_COSTBENEFITPROJECTION_INTERVENTION_MBR_LABEL="Morbidity Reduction"
@@ -1155,6 +1220,7 @@ COM_COSTBENEFITPROJECTION_INTERVENTION_NAME="Name"
COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_DESCRIPTION="Enter Intervention Name Here"
COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_HINT="Name Here"
COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_LABEL="Name"
+COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_MESSAGE="Error! Please add intervention name here."
COM_COSTBENEFITPROJECTION_INTERVENTION_NET_BENEFIT="Intervention Net Benefit"
COM_COSTBENEFITPROJECTION_INTERVENTION_NEW="A New Intervention"
COM_COSTBENEFITPROJECTION_INTERVENTION_NOT_REQUIRED="Not Required"
@@ -1195,25 +1261,30 @@ COM_COSTBENEFITPROJECTION_MORTALITY_REDUCTION="Mortality Reduction"
COM_COSTBENEFITPROJECTION_NBSPNBSPLARRNBSPEASYBRNBSPNBSPNBSPNBSPNAVIGATIONBRNBSPNBSPNBSPNBSPMENU=" ← easy navigation menu"
COM_COSTBENEFITPROJECTION_NET_BENEFIT="Net Benefit"
COM_COSTBENEFITPROJECTION_NEW="New"
+COM_COSTBENEFITPROJECTION_NEW_ISSUE="New Issue"
COM_COSTBENEFITPROJECTION_NONE_LOADED="None Loaded..."
-COM_COSTBENEFITPROJECTION_NOT_FOUND_OR_ACCESS_DENIED="Not found, or access denied."
+COM_COSTBENEFITPROJECTION_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
COM_COSTBENEFITPROJECTION_NO_ACCESS_GRANTED="No Access Granted!"
COM_COSTBENEFITPROJECTION_NO_CAUSERISK_SELECTED="No Cause/Risk Selected"
+COM_COSTBENEFITPROJECTION_NO_COMPANIES_SELECTED="No companies selected!"
COM_COSTBENEFITPROJECTION_NO_DISEASERISK_SELECTED="No Disease/Risk Selected"
COM_COSTBENEFITPROJECTION_NO_INTERVENTION_SELECTED="No Intervention Selected"
COM_COSTBENEFITPROJECTION_NUMBER_OF_WORK_DAYS_LOST="Number of work days lost"
COM_COSTBENEFITPROJECTION_ONLY_USE_THE_ADVANCED_IMPORT_WHEN_IMPORTING_THE_CSV_FILES_FROM_HTTPGHDXHEALTHDATAORG="Only use the advanced import when importing the CSV files from http://ghdx.healthdata.org"
+COM_COSTBENEFITPROJECTION_OPENED_BY="opened by"
COM_COSTBENEFITPROJECTION_PERCENT_OF_BESTIMATED_BURDENB_BEING_TARGETED_BY_THIS_DISEASERISK_SELECTION="Percent of Estimated Burden being targeted by this Disease/Risk selection"
COM_COSTBENEFITPROJECTION_PERCENT_OF_TOTAL_COST="Percent of Total Cost"
COM_COSTBENEFITPROJECTION_PERCENT_OF_TOTAL_DAYS_LOST="Percent of Total Days Lost"
+COM_COSTBENEFITPROJECTION_PLEASE_CHECK_AGAIN_LATTER="Please check again latter."
COM_COSTBENEFITPROJECTION_PLEASE_NOTE_THAT_ADVANCE_IMPORT_ONLY_WORKS_WITH_THE_FOLLOWING_FORMAT="Please note that advance import only works with the following format:"
COM_COSTBENEFITPROJECTION_PLEASE_WAIT="please wait"
COM_COSTBENEFITPROJECTION_PRESENTEEISM_MORBIDITY="Presenteeism (morbidity)"
-COM_COSTBENEFITPROJECTION_PUBLIC_RESULTS_ACCESS_SITE="Public results (Site) Access"
-COM_COSTBENEFITPROJECTION_PUBLIC_RESULTS_ACCESS_SITE_DESC=" Allows the users in this group to access site public results."
+COM_COSTBENEFITPROJECTION_PUBLISHED="Published"
COM_COSTBENEFITPROJECTION_REDUCTION_IN_MORBIDITY_COSTS="Reduction in Morbidity Costs"
COM_COSTBENEFITPROJECTION_REDUCTION_IN_MORTALITY_COST="Reduction in Mortality Cost"
+COM_COSTBENEFITPROJECTION_RESPOND_TO_THIS_ISSUE_ON_GITHUB="Respond to this issue on Github"
COM_COSTBENEFITPROJECTION_RESULTS_MENU="Results Menu"
+COM_COSTBENEFITPROJECTION_REVIEW_THIS_ISSUE_ON_GITHUB="Review this issue on Github"
COM_COSTBENEFITPROJECTION_RISK_ID="Risk id"
COM_COSTBENEFITPROJECTION_RISK_NAME="Risk name"
COM_COSTBENEFITPROJECTION_RT_MEAN_VALUE="rt mean - value"
@@ -1284,6 +1355,7 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR="Health Scaling F
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_DESCRIPTION="Health scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_LABEL="Health Scaling"
+COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_MESSAGE="Error! Please add scaling factor for health here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_ID="Id"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MODIFIED_BY_DESC="The last user that modified this Scaling Factor."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MODIFIED_BY_LABEL="Modified By"
@@ -1293,10 +1365,12 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES="Morta
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_DESCRIPTION="Mortality scaling factor for females"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_LABEL="Mortality Scaling Female"
+COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_MESSAGE="Error! Please add scaling factor for females here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES="Mortality Scaling Factor Males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_DESCRIPTION="Mortality scaling factor for males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_LABEL="Mortality Scaling Male"
+COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_MESSAGE="Error! Please add scaling factor for males here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_NEW="A New Scaling Factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PERMISSION="Permissions"
@@ -1304,10 +1378,12 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES="Pr
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_DESCRIPTION="Presenteeism scaling factor for females"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_LABEL="Presenteeism Scaling Female"
+COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_MESSAGE="Error! Please add scaling factor for females here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES="Presenteeism Scaling Factor Males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_DESCRIPTION="Presenteeism scaling factor for Males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_LABEL="Presenteeism Scaling Male"
+COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_MESSAGE="Error! Please add scaling factor for males here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE="Reference"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE_DESCRIPTION="Please give reference to the source of your data used in the scaling factors."
@@ -1321,10 +1397,12 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES="Yld Scaling
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_DESCRIPTION="Absenteeism scaling factor for females"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_LABEL="Absenteeism Scaling Female"
+COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_MESSAGE="Error! Please add scaling factor for females here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES="Yld Scaling Factor Males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_DESCRIPTION="Absenteeism scaling factor for males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_LABEL="Absenteeism Scaling Male"
+COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_MESSAGE="Error! Please add scaling factor for males here."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER="Service Provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS="Service Providers"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_ACCESS="Service Providers Access"
@@ -1397,14 +1475,17 @@ COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL="Publicemail"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_DESCRIPTION="The email we may use publicly"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_HINT="Public Email Here"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_LABEL="Public Email"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_MESSAGE="Error! Please public email address here."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME="Publicname"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_DESCRIPTION="The name we may use publicly"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_HINT="Public Name Here"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_LABEL="Public Name"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_MESSAGE="Error! Please add public name here."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER="Publicnumber"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_DESCRIPTION="The phone number we may use publicly"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_HINT="Public Phone Here"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_LABEL="Public Phone"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_MESSAGE="Error! Please add public phone number here."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLIC_DETAILS_NOTE_DESCRIPTION="Your Public Contact Details"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Service Provider to customise the alias."
@@ -1429,7 +1510,10 @@ COM_COSTBENEFITPROJECTION_SUBMENU_SCALING_FACTORS="Scaling Factors"
COM_COSTBENEFITPROJECTION_SUBMENU_SERVICE_PROVIDERS="Service Providers"
COM_COSTBENEFITPROJECTION_TABLES_MENU="Tables Menu"
COM_COSTBENEFITPROJECTION_TABLES_QUICK_LINKS="Tables ›› Quick Links"
+COM_COSTBENEFITPROJECTION_THE_NOTICE_BOARD_IS_LOADING="The notice board is loading"
+COM_COSTBENEFITPROJECTION_THE_README_IS_LOADING="The readme is loading"
COM_COSTBENEFITPROJECTION_THE_STATISTICAL_DATA_COULD_NOT_BE_RETURNED_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR="The statistical data could not be returned. Please contact your system administrator."
+COM_COSTBENEFITPROJECTION_THE_WIKI_IS_LOADING="The wiki is loading"
COM_COSTBENEFITPROJECTION_TOTAL="Total"
COM_COSTBENEFITPROJECTION_TOTAL_COST="Total Cost"
COM_COSTBENEFITPROJECTION_TOTAL_COSTS="Total Costs"
@@ -1440,6 +1524,7 @@ COM_COSTBENEFITPROJECTION_TOTAL_DAYS_LOST_AND_CONTRIBUTION_OF_MORBIDITY_MORTALIT
COM_COSTBENEFITPROJECTION_TOTAL_DAYS_LOST_PER_DISEASERISK_FACTOR="Total Days Lost Per Disease/Risk Factor"
COM_COSTBENEFITPROJECTION_TOTAL_EMPLOYEESBR_IN_RELATION_TO_THIS_NUMBER="total employees in relation to this number."
COM_COSTBENEFITPROJECTION_TOTAL_EMPLOYEESBR_IN_RELATION_TO_THIS_TOTAL="total employees in relation to this total."
+COM_COSTBENEFITPROJECTION_TRASHED="Trashed"
COM_COSTBENEFITPROJECTION_UNAVAILABLE_AT_THIS_TIME="Unavailable at this time."
COM_COSTBENEFITPROJECTION_USER_COUNTRY_GROUP="User Country Group"
COM_COSTBENEFITPROJECTION_USER_MEMBER_GROUP="User Member Group"
@@ -1447,6 +1532,7 @@ COM_COSTBENEFITPROJECTION_USER_SERVICE_PROVIDER_GROUP="User Service Provider Gro
COM_COSTBENEFITPROJECTION_USE_BATCH="Use Batch"
COM_COSTBENEFITPROJECTION_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method."
COM_COSTBENEFITPROJECTION_VERSION="Version"
+COM_COSTBENEFITPROJECTION_VIEW_MORE_ISSUES_ON_GITHUB="View more issues on Github"
COM_COSTBENEFITPROJECTION_WARNING="Warning"
COM_COSTBENEFITPROJECTION_WEBSITE="Website"
COM_COSTBENEFITPROJECTION_WORK_DAYS_LOST="Work Days Lost"
@@ -1455,4 +1541,4 @@ COM_COSTBENEFITPROJECTION_WORK_DAYS_LOST_SUMMARY="Work Days Lost Summary"
COM_COSTBENEFITPROJECTION_WORK_DAY_LOST_PERCENT="Work Day Lost Percent"
COM_COSTBENEFITPROJECTION_YEAR="Year"
COM_COSTBENEFITPROJECTION__OF_ALL_HEALTHCARE_COSTS_CAUSED_BY_THE_CAUSERISK_FACTOR="% of all healthcare costs caused by the cause/risk factor"
-COM_COSTBENEFITPROJECTION__OF_WORK_DAYS_LOST_DUE_TO_THE_CAUSERISK_FACTOR="% of work days lost due to the cause/risk factor"
+COM_COSTBENEFITPROJECTION__OF_WORK_DAYS_LOST_DUE_TO_THE_CAUSERISK_FACTOR="% of work days lost due to the cause/risk factor"
\ No newline at end of file
diff --git a/admin/language/en-GB/en-GB.com_costbenefitprojection.sys.ini b/admin/language/en-GB/en-GB.com_costbenefitprojection.sys.ini
index dbb8b25d..84071f77 100644
--- a/admin/language/en-GB/en-GB.com_costbenefitprojection.sys.ini
+++ b/admin/language/en-GB/en-GB.com_costbenefitprojection.sys.ini
@@ -1,5 +1,247 @@
COM_COSTBENEFITPROJECTION="Cost Benefit Projection"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_ACCESS="Causesrisks Access"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_ACCESS_DESC="Allows the users in this group to access access causesrisks"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_BATCH_USE="Causesrisks Batch Use"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch causesrisks"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_CREATE="Causesrisks Create"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_CREATE_DESC="Allows the users in this group to create create causesrisks"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_ADD="Causesrisks Dashboard Add"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the causerisk"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_LIST="Causesrisks Dashboard List"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the causerisk"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_DELETE="Causesrisks Delete"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_DELETE_DESC="Allows the users in this group to delete delete causesrisks"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT="Causesrisks Edit"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT_DESC="Allows the users in this group to edit the causerisk"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT_OWN="Causesrisks Edit Own"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT_OWN_DESC="Allows the users in this group to edit edit own causesrisks created by them"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT_STATE="Causesrisks Edit State"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT_STATE_DESC="Allows the users in this group to update the state of the causerisk"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT_VERSION="Causesrisks Edit Version"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version causesrisks"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EXPORT="Causesrisks Export"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_EXPORT_DESC="Allows the users in this group to export export causesrisks"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_IMPORT="Causesrisks Import"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_IMPORT_DESC="Allows the users in this group to import import causesrisks"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU="Causesrisks Submenu"
+COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU_DESC="Allows the users in this group to update the submenu of the causerisk"
+COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access"
+COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access Combined Results"
+COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE="Combined Results (Site) Access"
+COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC=" Allows the users in this group to access site combined results."
+COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
+COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the companies button."
+COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST="Combined Results Dashboard List"
+COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the Combined Results"
+COM_COSTBENEFITPROJECTION_COMPANIES_ACCESS="Companies Access"
+COM_COSTBENEFITPROJECTION_COMPANIES_ACCESS_DESC="Allows the users in this group to access access companies"
+COM_COSTBENEFITPROJECTION_COMPANIES_BATCH_USE="Companies Batch Use"
+COM_COSTBENEFITPROJECTION_COMPANIES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch companies"
+COM_COSTBENEFITPROJECTION_COMPANIES_CREATE="Companies Create"
+COM_COSTBENEFITPROJECTION_COMPANIES_CREATE_DESC="Allows the users in this group to create create companies"
+COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_ADD="Companies Dashboard Add"
+COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_LIST="Companies Dashboard List"
+COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_DELETE="Companies Delete"
+COM_COSTBENEFITPROJECTION_COMPANIES_DELETE_DESC="Allows the users in this group to delete delete companies"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT="Companies Edit"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS="Companies Edit Causesrisks"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS_DESC="Allows the users in this group to update the edit causesrisks of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY="Companies Edit Country"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY_DESC="Allows the users in this group to update the edit country of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_BY="Companies Edit Created By"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by companies"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_DATE="Companies Edit Created Date"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created companies"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR="Companies Edit Datayear"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR_DESC="Allows the users in this group to update the edit datayear of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DEPARTMENT="Companies Edit Department"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DEPARTMENT_DESC="Allows the users in this group to update the edit department of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DESC="Allows the users in this group to edit the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_EMAIL="Companies Edit Email"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_EMAIL_DESC="Allows the users in this group to update the edit email of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_OWN="Companies Edit Own"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_OWN_DESC="Allows the users in this group to edit edit own companies created by them"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER="Companies Edit Per"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE="Companies Edit Percentfemale"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE_DESC="Allows the users in this group to update the edit percentfemale of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE="Companies Edit Percentmale"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE_DESC="Allows the users in this group to update the edit percentmale of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER_DESC="Allows the users in this group to update the edit per of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER="Companies Edit Service Provider"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER_DESC="Allows the users in this group to update the edit service provider of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_STATE="Companies Edit State"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_STATE_DESC="Allows the users in this group to update the state of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_USER="Companies Edit User"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_USER_DESC="Allows the users in this group to update the edit user of the company"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_VERSION="Companies Edit Version"
+COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version companies"
+COM_COSTBENEFITPROJECTION_COMPANIES_EXPORT="Companies Export"
+COM_COSTBENEFITPROJECTION_COMPANIES_EXPORT_DESC="Allows the users in this group to export export companies"
+COM_COSTBENEFITPROJECTION_COMPANIES_IMPORT="Companies Import"
+COM_COSTBENEFITPROJECTION_COMPANIES_IMPORT_DESC="Allows the users in this group to import import companies"
+COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU="Companies Submenu"
+COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the company"
+COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access"
+COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access Company Results"
+COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE="Company results (Site) Access"
+COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC=" Allows the users in this group to access site company results."
+COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS="Company Results Companies Button Access"
+COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the companies button."
+COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS="Company Results Edit Button Access"
+COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS_DESC=" Allows the users in this group to access the edit button."
COM_COSTBENEFITPROJECTION_CONFIGURATION="Cost Benefit Projection Configuration"
+COM_COSTBENEFITPROJECTION_COUNTRIES_ACCESS="Countries Access"
+COM_COSTBENEFITPROJECTION_COUNTRIES_ACCESS_DESC="Allows the users in this group to access access countries"
+COM_COSTBENEFITPROJECTION_COUNTRIES_BATCH_USE="Countries Batch Use"
+COM_COSTBENEFITPROJECTION_COUNTRIES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch countries"
+COM_COSTBENEFITPROJECTION_COUNTRIES_CREATE="Countries Create"
+COM_COSTBENEFITPROJECTION_COUNTRIES_CREATE_DESC="Allows the users in this group to create create countries"
+COM_COSTBENEFITPROJECTION_COUNTRIES_DASHBOARD_LIST="Countries Dashboard List"
+COM_COSTBENEFITPROJECTION_COUNTRIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the country"
+COM_COSTBENEFITPROJECTION_COUNTRIES_DELETE="Countries Delete"
+COM_COSTBENEFITPROJECTION_COUNTRIES_DELETE_DESC="Allows the users in this group to delete delete countries"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT="Countries Edit"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT_DESC="Allows the users in this group to edit the country"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT_OWN="Countries Edit Own"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT_OWN_DESC="Allows the users in this group to edit edit own countries created by them"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT_STATE="Countries Edit State"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT_STATE_DESC="Allows the users in this group to update the state of the country"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT_VERSION="Countries Edit Version"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version countries"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EXPORT="Countries Export"
+COM_COSTBENEFITPROJECTION_COUNTRIES_EXPORT_DESC="Allows the users in this group to export export countries"
+COM_COSTBENEFITPROJECTION_COUNTRIES_IMPORT="Countries Import"
+COM_COSTBENEFITPROJECTION_COUNTRIES_IMPORT_DESC="Allows the users in this group to import import countries"
+COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU="Countries Submenu"
+COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the country"
+COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE="cPanel (Site) Access"
+COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE_DESC=" Allows the users in this group to access site cpanel."
+COM_COSTBENEFITPROJECTION_CREATE_ACCOUNT_GIZ_ACCESS_SITE="Create Account (giz) (Site) Access"
+COM_COSTBENEFITPROJECTION_CREATE_ACCOUNT_GIZ_ACCESS_SITE_DESC=" Allows the users in this group to access site create account giz."
+COM_COSTBENEFITPROJECTION_CURRENCIES_ACCESS="Currencies Access"
+COM_COSTBENEFITPROJECTION_CURRENCIES_ACCESS_DESC="Allows the users in this group to access access currencies"
+COM_COSTBENEFITPROJECTION_CURRENCIES_BATCH_USE="Currencies Batch Use"
+COM_COSTBENEFITPROJECTION_CURRENCIES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch currencies"
+COM_COSTBENEFITPROJECTION_CURRENCIES_CREATE="Currencies Create"
+COM_COSTBENEFITPROJECTION_CURRENCIES_CREATE_DESC="Allows the users in this group to create create currencies"
+COM_COSTBENEFITPROJECTION_CURRENCIES_DASHBOARD_LIST="Currencies Dashboard List"
+COM_COSTBENEFITPROJECTION_CURRENCIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the currency"
+COM_COSTBENEFITPROJECTION_CURRENCIES_DELETE="Currencies Delete"
+COM_COSTBENEFITPROJECTION_CURRENCIES_DELETE_DESC="Allows the users in this group to delete delete currencies"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT="Currencies Edit"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT_DESC="Allows the users in this group to edit the currency"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT_OWN="Currencies Edit Own"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT_OWN_DESC="Allows the users in this group to edit edit own currencies created by them"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT_STATE="Currencies Edit State"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT_STATE_DESC="Allows the users in this group to update the state of the currency"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT_VERSION="Currencies Edit Version"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version currencies"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EXPORT="Currencies Export"
+COM_COSTBENEFITPROJECTION_CURRENCIES_EXPORT_DESC="Allows the users in this group to export export currencies"
+COM_COSTBENEFITPROJECTION_CURRENCIES_IMPORT="Currencies Import"
+COM_COSTBENEFITPROJECTION_CURRENCIES_IMPORT_DESC="Allows the users in this group to import import currencies"
+COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU="Currencies Submenu"
+COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the currency"
+COM_COSTBENEFITPROJECTION_EDIT_CREATED_BY="Edit Created By"
+COM_COSTBENEFITPROJECTION_EDIT_CREATED_BY_DESC=" Allows users in this group to edit created by."
+COM_COSTBENEFITPROJECTION_EDIT_CREATED_DATE="Edit Created Date"
+COM_COSTBENEFITPROJECTION_EDIT_CREATED_DATE_DESC=" Allows users in this group to edit created date."
+COM_COSTBENEFITPROJECTION_EDIT_VERSIONS="Edit Version"
+COM_COSTBENEFITPROJECTION_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions."
+COM_COSTBENEFITPROJECTION_EXPORT_DATA="Export Data"
+COM_COSTBENEFITPROJECTION_EXPORT_DATA_DESC=" Allows users in this group to export data."
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_ACCESS="Health Data Sets Access"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_ACCESS_DESC="Allows the users in this group to access access health data sets"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_BATCH_USE="Health Data Sets Batch Use"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch health data sets"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_CREATE="Health Data Sets Create"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_CREATE_DESC="Allows the users in this group to create create health data sets"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DASHBOARD_LIST="Health Data Sets Dashboard List"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DELETE="Health Data Sets Delete"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DELETE_DESC="Allows the users in this group to delete delete health data sets"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT="Health Data Sets Edit"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_CAUSERISK="Health Data Sets Edit Causerisk"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_CAUSERISK_DESC="Allows the users in this group to update the edit causerisk of the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_COUNTRY="Health Data Sets Edit Country"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_COUNTRY_DESC="Allows the users in this group to update the edit country of the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_DESC="Allows the users in this group to edit the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEDEATH="Health Data Sets Edit Femaledeath"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEDEATH_DESC="Allows the users in this group to update the edit femaledeath of the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEYLD="Health Data Sets Edit Femaleyld"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEYLD_DESC="Allows the users in this group to update the edit femaleyld of the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEDEATH="Health Data Sets Edit Maledeath"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEDEATH_DESC="Allows the users in this group to update the edit maledeath of the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEYLD="Health Data Sets Edit Maleyld"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEYLD_DESC="Allows the users in this group to update the edit maleyld of the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_OWN="Health Data Sets Edit Own"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_OWN_DESC="Allows the users in this group to edit edit own health data sets created by them"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_STATE="Health Data Sets Edit State"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_STATE_DESC="Allows the users in this group to update the state of the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_VERSION="Health Data Sets Edit Version"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version health data sets"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_YEAR="Health Data Sets Edit Year"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_YEAR_DESC="Allows the users in this group to update the edit year of the health data"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EXPORT="Health Data Sets Export"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EXPORT_DESC="Allows the users in this group to export export health data sets"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_IMPORT="Health Data Sets Import"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_IMPORT_DESC="Allows the users in this group to import import health data sets"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_SUBMENU="Health Data Sets Submenu"
+COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_SUBMENU_DESC="Allows the users in this group to update the submenu of the health data"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_ACCESS="Help Documents Access"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_ACCESS_DESC="Allows the users in this group to access access help documents"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_BATCH_USE="Help Documents Batch Use"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch help documents"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_CREATE="Help Documents Create"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_CREATE_DESC="Allows the users in this group to create create help documents"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DASHBOARD_LIST="Help Documents Dashboard List"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the help document"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE="Help Documents Delete"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE_DESC="Allows the users in this group to delete delete help documents"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT="Help Documents Edit"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_DESC="Allows the users in this group to edit the help document"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_OWN="Help Documents Edit Own"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_OWN_DESC="Allows the users in this group to edit edit own help documents created by them"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_STATE="Help Documents Edit State"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the help document"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_VERSION="Help Documents Edit Version"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version help documents"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EXPORT="Help Documents Export"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EXPORT_DESC="Allows the users in this group to export export help documents"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_IMPORT="Help Documents Import"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_IMPORT_DESC="Allows the users in this group to import import help documents"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
+COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the help document"
+COM_COSTBENEFITPROJECTION_IMPORT_DATA="Import Data"
+COM_COSTBENEFITPROJECTION_IMPORT_DATA_DESC=" Allows users in this group to import data."
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_ACCESS="Interventions Access"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_ACCESS_DESC="Allows the users in this group to access access interventions"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_BATCH_USE="Interventions Batch Use"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch interventions"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_CREATE="Interventions Create"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_CREATE_DESC="Allows the users in this group to create create interventions"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_ADD="Interventions Dashboard Add"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the intervention"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_LIST="Interventions Dashboard List"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the intervention"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_DELETE="Interventions Delete"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_DELETE_DESC="Allows the users in this group to delete delete interventions"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT="Interventions Edit"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT_DESC="Allows the users in this group to edit the intervention"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT_OWN="Interventions Edit Own"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT_OWN_DESC="Allows the users in this group to edit edit own interventions created by them"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT_STATE="Interventions Edit State"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT_STATE_DESC="Allows the users in this group to update the state of the intervention"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT_VERSION="Interventions Edit Version"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version interventions"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EXPORT="Interventions Export"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_EXPORT_DESC="Allows the users in this group to export export interventions"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_IMPORT="Interventions Import"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_IMPORT_DESC="Allows the users in this group to import import interventions"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_SUBMENU="Interventions Submenu"
+COM_COSTBENEFITPROJECTION_INTERVENTIONS_SUBMENU_DESC="Allows the users in this group to update the submenu of the intervention"
COM_COSTBENEFITPROJECTION_MENU="» Cost Benefit Projection"
COM_COSTBENEFITPROJECTION_MENU_COMPANIES="Companies"
COM_COSTBENEFITPROJECTION_MENU_CPANEL_DESC="The cpanel fo the front end"
@@ -11,3 +253,57 @@ COM_COSTBENEFITPROJECTION_MENU_CREATEACCOUNT_TITLE="Create Account (giz)"
COM_COSTBENEFITPROJECTION_MENU_INTERVENTIONS="Interventions"
COM_COSTBENEFITPROJECTION_MENU_SCALING_FACTORS="Scaling Factors"
COM_COSTBENEFITPROJECTION_MENU_SERVICE_PROVIDERS="Service Providers"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_ACCESS="Scaling Factors Access"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_ACCESS_DESC="Allows the users in this group to access access scaling factors"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_BATCH_USE="Scaling Factors Batch Use"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch scaling factors"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_CREATE="Scaling Factors Create"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_CREATE_DESC="Allows the users in this group to create create scaling factors"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_ADD="Scaling Factors Dashboard Add"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the scaling factor"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_LIST="Scaling Factors Dashboard List"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the scaling factor"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DELETE="Scaling Factors Delete"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DELETE_DESC="Allows the users in this group to delete delete scaling factors"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT="Scaling Factors Edit"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT_DESC="Allows the users in this group to edit the scaling factor"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT_OWN="Scaling Factors Edit Own"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT_OWN_DESC="Allows the users in this group to edit edit own scaling factors created by them"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT_STATE="Scaling Factors Edit State"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT_STATE_DESC="Allows the users in this group to update the state of the scaling factor"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT_VERSION="Scaling Factors Edit Version"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version scaling factors"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EXPORT="Scaling Factors Export"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EXPORT_DESC="Allows the users in this group to export export scaling factors"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_IMPORT="Scaling Factors Import"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_IMPORT_DESC="Allows the users in this group to import import scaling factors"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_SUBMENU="Scaling Factors Submenu"
+COM_COSTBENEFITPROJECTION_SCALING_FACTORS_SUBMENU_DESC="Allows the users in this group to update the submenu of the scaling factor"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_ACCESS="Service Providers Access"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_ACCESS_DESC="Allows the users in this group to access access service providers"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_BATCH_USE="Service Providers Batch Use"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch service providers"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_CREATE="Service Providers Create"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_CREATE_DESC="Allows the users in this group to create create service providers"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_ADD="Service Providers Dashboard Add"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the service provider"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_LIST="Service Providers Dashboard List"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the service provider"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DELETE="Service Providers Delete"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DELETE_DESC="Allows the users in this group to delete delete service providers"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT="Service Providers Edit"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT_DESC="Allows the users in this group to edit the service provider"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT_OWN="Service Providers Edit Own"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT_OWN_DESC="Allows the users in this group to edit edit own service providers created by them"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT_STATE="Service Providers Edit State"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT_STATE_DESC="Allows the users in this group to update the state of the service provider"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT_VERSION="Service Providers Edit Version"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version service providers"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EXPORT="Service Providers Export"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EXPORT_DESC="Allows the users in this group to export export service providers"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_IMPORT="Service Providers Import"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_IMPORT_DESC="Allows the users in this group to import import service providers"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU="Service Providers Submenu"
+COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU_DESC="Allows the users in this group to update the submenu of the service provider"
+COM_COSTBENEFITPROJECTION_USE_BATCH="Use Batch"
+COM_COSTBENEFITPROJECTION_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method."
\ No newline at end of file
diff --git a/admin/layouts/batchselection.php b/admin/layouts/batchselection.php
index eacad6e5..86412769 100644
--- a/admin/layouts/batchselection.php
+++ b/admin/layouts/batchselection.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage batchselection.php
diff --git a/admin/layouts/causerisk/details_above.php b/admin/layouts/causerisk/details_above.php
index 07f0d95f..54b11c9e 100644
--- a/admin/layouts/causerisk/details_above.php
+++ b/admin/layouts/causerisk/details_above.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
diff --git a/admin/layouts/causerisk/details_fullwidth.php b/admin/layouts/causerisk/details_fullwidth.php
index f4e58817..2a9b76aa 100644
--- a/admin/layouts/causerisk/details_fullwidth.php
+++ b/admin/layouts/causerisk/details_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_fullwidth.php
diff --git a/admin/layouts/causerisk/details_left.php b/admin/layouts/causerisk/details_left.php
index db4d88a0..fdf2cd80 100644
--- a/admin/layouts/causerisk/details_left.php
+++ b/admin/layouts/causerisk/details_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
diff --git a/admin/layouts/causerisk/details_right.php b/admin/layouts/causerisk/details_right.php
index 19dd88af..22a885f8 100644
--- a/admin/layouts/causerisk/details_right.php
+++ b/admin/layouts/causerisk/details_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
diff --git a/admin/layouts/causerisk/publishing.php b/admin/layouts/causerisk/publishing.php
index 0bab590a..bd611980 100644
--- a/admin/layouts/causerisk/publishing.php
+++ b/admin/layouts/causerisk/publishing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
diff --git a/admin/layouts/causerisk/publlshing.php b/admin/layouts/causerisk/publlshing.php
index da4e61db..af4e1b74 100644
--- a/admin/layouts/causerisk/publlshing.php
+++ b/admin/layouts/causerisk/publlshing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
diff --git a/admin/layouts/company/age_groups_percentages_fullwidth.php b/admin/layouts/company/age_groups_percentages_fullwidth.php
index 3253e732..0b132f62 100644
--- a/admin/layouts/company/age_groups_percentages_fullwidth.php
+++ b/admin/layouts/company/age_groups_percentages_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_fullwidth.php
diff --git a/admin/layouts/company/age_groups_percentages_left.php b/admin/layouts/company/age_groups_percentages_left.php
index 8599f9ff..f7bd638b 100644
--- a/admin/layouts/company/age_groups_percentages_left.php
+++ b/admin/layouts/company/age_groups_percentages_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_left.php
diff --git a/admin/layouts/company/age_groups_percentages_right.php b/admin/layouts/company/age_groups_percentages_right.php
index f38bb5d2..f3dfac49 100644
--- a/admin/layouts/company/age_groups_percentages_right.php
+++ b/admin/layouts/company/age_groups_percentages_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_right.php
diff --git a/admin/layouts/company/causerisk_selection_fullwidth.php b/admin/layouts/company/causerisk_selection_fullwidth.php
index 89431956..e6961afd 100644
--- a/admin/layouts/company/causerisk_selection_fullwidth.php
+++ b/admin/layouts/company/causerisk_selection_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php
diff --git a/admin/layouts/company/details_above.php b/admin/layouts/company/details_above.php
index fd8fba41..b4d83db7 100644
--- a/admin/layouts/company/details_above.php
+++ b/admin/layouts/company/details_above.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
diff --git a/admin/layouts/company/details_left.php b/admin/layouts/company/details_left.php
index 3abcf06c..e04c0611 100644
--- a/admin/layouts/company/details_left.php
+++ b/admin/layouts/company/details_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
diff --git a/admin/layouts/company/details_right.php b/admin/layouts/company/details_right.php
index 0c7ccb4e..b85ba31a 100644
--- a/admin/layouts/company/details_right.php
+++ b/admin/layouts/company/details_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
diff --git a/admin/layouts/company/details_under.php b/admin/layouts/company/details_under.php
index 0cb8b104..baf794a2 100644
--- a/admin/layouts/company/details_under.php
+++ b/admin/layouts/company/details_under.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_under.php
diff --git a/admin/layouts/company/interventions_fullwidth.php b/admin/layouts/company/interventions_fullwidth.php
index 1beda9a4..2d1eccc9 100644
--- a/admin/layouts/company/interventions_fullwidth.php
+++ b/admin/layouts/company/interventions_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions_fullwidth.php
@@ -25,10 +25,10 @@ defined('_JEXEC') or die('Restricted access');
$items = $displayData->vwdinterventions;
$user = JFactory::getUser();
$id = $displayData->item->id;
-$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
-$ref = ($id) ? "&ref=company&refid=".$id : "";
-$new = "index.php?option=com_costbenefitprojection&view=intervention&layout=edit".$ref;
-$can = CostbenefitprojectionHelper::getActions('intervention');
+$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
+$ref = ($id) ? "&ref=company&refid=".$id : "";
+$new = "index.php?option=com_costbenefitprojection&view=intervention&layout=edit".$ref;
+$can = CostbenefitprojectionHelper::getActions('intervention');
?>
@@ -100,26 +100,26 @@ $can = CostbenefitprojectionHelper::getActions('intervention');
published == 1):?>
-
-
+
+
published == 0):?>
-
-
+
+
published == 2):?>
-
-
+
+
published == -2):?>
-
-
+
+
diff --git a/admin/layouts/company/publishing.php b/admin/layouts/company/publishing.php
index 0bab590a..bd611980 100644
--- a/admin/layouts/company/publishing.php
+++ b/admin/layouts/company/publishing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
diff --git a/admin/layouts/company/publlshing.php b/admin/layouts/company/publlshing.php
index da4e61db..af4e1b74 100644
--- a/admin/layouts/company/publlshing.php
+++ b/admin/layouts/company/publlshing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
diff --git a/admin/layouts/company/scaling_factors_fullwidth.php b/admin/layouts/company/scaling_factors_fullwidth.php
index a1330057..56c91155 100644
--- a/admin/layouts/company/scaling_factors_fullwidth.php
+++ b/admin/layouts/company/scaling_factors_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factors_fullwidth.php
@@ -25,7 +25,7 @@ defined('_JEXEC') or die('Restricted access');
$items = $displayData->vwcscaling_factors;
$user = JFactory::getUser();
$id = $displayData->item->id;
-$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
+$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
?>
@@ -106,26 +106,26 @@ $edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=sc
published == 1):?>
-
-
+
+
published == 0):?>
-
-
+
+
published == 2):?>
-
-
+
+
published == -2):?>
-
-
+
+
diff --git a/admin/layouts/country/age_groups_percentages_left.php b/admin/layouts/country/age_groups_percentages_left.php
index 8599f9ff..f7bd638b 100644
--- a/admin/layouts/country/age_groups_percentages_left.php
+++ b/admin/layouts/country/age_groups_percentages_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_left.php
diff --git a/admin/layouts/country/age_groups_percentages_right.php b/admin/layouts/country/age_groups_percentages_right.php
index f38bb5d2..f3dfac49 100644
--- a/admin/layouts/country/age_groups_percentages_right.php
+++ b/admin/layouts/country/age_groups_percentages_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_right.php
diff --git a/admin/layouts/country/causerisk_selection_fullwidth.php b/admin/layouts/country/causerisk_selection_fullwidth.php
index 362996a1..0e361722 100644
--- a/admin/layouts/country/causerisk_selection_fullwidth.php
+++ b/admin/layouts/country/causerisk_selection_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php
diff --git a/admin/layouts/country/companies_fullwidth.php b/admin/layouts/country/companies_fullwidth.php
index 3edc0e39..d56447b6 100644
--- a/admin/layouts/country/companies_fullwidth.php
+++ b/admin/layouts/country/companies_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companies_fullwidth.php
@@ -25,10 +25,10 @@ defined('_JEXEC') or die('Restricted access');
$items = $displayData->vwhcompanies;
$user = JFactory::getUser();
$id = $displayData->item->id;
-$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
-$ref = ($id) ? "&ref=country&refid=".$id : "";
-$new = "index.php?option=com_costbenefitprojection&view=company&layout=edit".$ref;
-$can = CostbenefitprojectionHelper::getActions('company');
+$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
+$ref = ($id) ? "&ref=country&refid=".$id : "";
+$new = "index.php?option=com_costbenefitprojection&view=company&layout=edit".$ref;
+$can = CostbenefitprojectionHelper::getActions('company');
?>
@@ -116,26 +116,26 @@ $can = CostbenefitprojectionHelper::getActions('company');
published == 1):?>
-
-
+
+
published == 0):?>
-
-
+
+
published == 2):?>
-
-
+
+
published == -2):?>
-
-
+
+
diff --git a/admin/layouts/country/details_above.php b/admin/layouts/country/details_above.php
index 2f9905bb..323eda98 100644
--- a/admin/layouts/country/details_above.php
+++ b/admin/layouts/country/details_above.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
diff --git a/admin/layouts/country/details_left.php b/admin/layouts/country/details_left.php
index 532a7756..41e0fff5 100644
--- a/admin/layouts/country/details_left.php
+++ b/admin/layouts/country/details_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
diff --git a/admin/layouts/country/details_right.php b/admin/layouts/country/details_right.php
index 0986a9f4..2d09fda7 100644
--- a/admin/layouts/country/details_right.php
+++ b/admin/layouts/country/details_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
diff --git a/admin/layouts/country/health_data_totals_left.php b/admin/layouts/country/health_data_totals_left.php
index d5851480..c02fcdec 100644
--- a/admin/layouts/country/health_data_totals_left.php
+++ b/admin/layouts/country/health_data_totals_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_totals_left.php
diff --git a/admin/layouts/country/health_data_totals_right.php b/admin/layouts/country/health_data_totals_right.php
index 28f56169..5ee54b40 100644
--- a/admin/layouts/country/health_data_totals_right.php
+++ b/admin/layouts/country/health_data_totals_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_totals_right.php
diff --git a/admin/layouts/country/interventions_fullwidth.php b/admin/layouts/country/interventions_fullwidth.php
index a6ba3396..31c4964c 100644
--- a/admin/layouts/country/interventions_fullwidth.php
+++ b/admin/layouts/country/interventions_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions_fullwidth.php
@@ -25,10 +25,10 @@ defined('_JEXEC') or die('Restricted access');
$items = $displayData->vwfinterventions;
$user = JFactory::getUser();
$id = $displayData->item->id;
-$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
-$ref = ($id) ? "&ref=country&refid=".$id : "";
-$new = "index.php?option=com_costbenefitprojection&view=intervention&layout=edit".$ref;
-$can = CostbenefitprojectionHelper::getActions('intervention');
+$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
+$ref = ($id) ? "&ref=country&refid=".$id : "";
+$new = "index.php?option=com_costbenefitprojection&view=intervention&layout=edit".$ref;
+$can = CostbenefitprojectionHelper::getActions('intervention');
?>
@@ -104,26 +104,26 @@ $can = CostbenefitprojectionHelper::getActions('intervention');
published == 1):?>
-
-
+
+
published == 0):?>
-
-
+
+
published == 2):?>
-
-
+
+
published == -2):?>
-
-
+
+
diff --git a/admin/layouts/country/public_details_fullwidth.php b/admin/layouts/country/public_details_fullwidth.php
index af969343..04300d3a 100644
--- a/admin/layouts/country/public_details_fullwidth.php
+++ b/admin/layouts/country/public_details_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage public_details_fullwidth.php
diff --git a/admin/layouts/country/publishing.php b/admin/layouts/country/publishing.php
index 0bab590a..bd611980 100644
--- a/admin/layouts/country/publishing.php
+++ b/admin/layouts/country/publishing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
diff --git a/admin/layouts/country/publlshing.php b/admin/layouts/country/publlshing.php
index da4e61db..af4e1b74 100644
--- a/admin/layouts/country/publlshing.php
+++ b/admin/layouts/country/publlshing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
diff --git a/admin/layouts/country/service_providers_fullwidth.php b/admin/layouts/country/service_providers_fullwidth.php
index 31ace14c..fe3c7498 100644
--- a/admin/layouts/country/service_providers_fullwidth.php
+++ b/admin/layouts/country/service_providers_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_providers_fullwidth.php
@@ -25,10 +25,10 @@ defined('_JEXEC') or die('Restricted access');
$items = $displayData->vwgservice_providers;
$user = JFactory::getUser();
$id = $displayData->item->id;
-$edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit";
-$ref = ($id) ? "&ref=country&refid=".$id : "";
-$new = "index.php?option=com_costbenefitprojection&view=service_provider&layout=edit".$ref;
-$can = CostbenefitprojectionHelper::getActions('service_provider');
+$edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit";
+$ref = ($id) ? "&ref=country&refid=".$id : "";
+$new = "index.php?option=com_costbenefitprojection&view=service_provider&layout=edit".$ref;
+$can = CostbenefitprojectionHelper::getActions('service_provider');
?>
@@ -100,26 +100,26 @@ $can = CostbenefitprojectionHelper::getActions('service_provider');
published == 1):?>
-
-
+
+
published == 0):?>
-
-
+
+
published == 2):?>
-
-
+
+
published == -2):?>
-
-
+
+
diff --git a/admin/layouts/currency/details_above.php b/admin/layouts/currency/details_above.php
index 10f2adc3..dce7aef8 100644
--- a/admin/layouts/currency/details_above.php
+++ b/admin/layouts/currency/details_above.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
diff --git a/admin/layouts/currency/details_left.php b/admin/layouts/currency/details_left.php
index 1113d00a..e23a8095 100644
--- a/admin/layouts/currency/details_left.php
+++ b/admin/layouts/currency/details_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
diff --git a/admin/layouts/currency/details_right.php b/admin/layouts/currency/details_right.php
index b670f001..c78ee846 100644
--- a/admin/layouts/currency/details_right.php
+++ b/admin/layouts/currency/details_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
diff --git a/admin/layouts/currency/publishing.php b/admin/layouts/currency/publishing.php
index 0bab590a..bd611980 100644
--- a/admin/layouts/currency/publishing.php
+++ b/admin/layouts/currency/publishing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
diff --git a/admin/layouts/currency/publlshing.php b/admin/layouts/currency/publlshing.php
index da4e61db..af4e1b74 100644
--- a/admin/layouts/currency/publlshing.php
+++ b/admin/layouts/currency/publlshing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
diff --git a/admin/layouts/databreakdownmalefemale.php b/admin/layouts/databreakdownmalefemale.php
index 7d02b3e1..84c9e99e 100644
--- a/admin/layouts/databreakdownmalefemale.php
+++ b/admin/layouts/databreakdownmalefemale.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage databreakdownmalefemale.php
diff --git a/admin/layouts/health_data/details_above.php b/admin/layouts/health_data/details_above.php
index a1bab4cf..a6ced890 100644
--- a/admin/layouts/health_data/details_above.php
+++ b/admin/layouts/health_data/details_above.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
diff --git a/admin/layouts/health_data/details_left.php b/admin/layouts/health_data/details_left.php
index 861a9eab..e3d0962b 100644
--- a/admin/layouts/health_data/details_left.php
+++ b/admin/layouts/health_data/details_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
diff --git a/admin/layouts/health_data/details_right.php b/admin/layouts/health_data/details_right.php
index a19f6558..ec5f51ef 100644
--- a/admin/layouts/health_data/details_right.php
+++ b/admin/layouts/health_data/details_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
diff --git a/admin/layouts/health_data/details_rightside.php b/admin/layouts/health_data/details_rightside.php
index 1b5f4f38..bdf99a75 100644
--- a/admin/layouts/health_data/details_rightside.php
+++ b/admin/layouts/health_data/details_rightside.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_rightside.php
diff --git a/admin/layouts/health_data/publishing.php b/admin/layouts/health_data/publishing.php
index 0bab590a..bd611980 100644
--- a/admin/layouts/health_data/publishing.php
+++ b/admin/layouts/health_data/publishing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
diff --git a/admin/layouts/health_data/publlshing.php b/admin/layouts/health_data/publlshing.php
index da4e61db..af4e1b74 100644
--- a/admin/layouts/health_data/publlshing.php
+++ b/admin/layouts/health_data/publlshing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
diff --git a/admin/layouts/help_document/details_above.php b/admin/layouts/help_document/details_above.php
index b38da1e3..bb38a026 100644
--- a/admin/layouts/help_document/details_above.php
+++ b/admin/layouts/help_document/details_above.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
diff --git a/admin/layouts/help_document/details_fullwidth.php b/admin/layouts/help_document/details_fullwidth.php
index d0f0aa28..1a194128 100644
--- a/admin/layouts/help_document/details_fullwidth.php
+++ b/admin/layouts/help_document/details_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_fullwidth.php
diff --git a/admin/layouts/help_document/details_left.php b/admin/layouts/help_document/details_left.php
index 4e8c0c45..87ed0857 100644
--- a/admin/layouts/help_document/details_left.php
+++ b/admin/layouts/help_document/details_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
diff --git a/admin/layouts/help_document/details_right.php b/admin/layouts/help_document/details_right.php
index f12b46b3..e81df7fe 100644
--- a/admin/layouts/help_document/details_right.php
+++ b/admin/layouts/help_document/details_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
diff --git a/admin/layouts/help_document/details_under.php b/admin/layouts/help_document/details_under.php
index 0cb8b104..baf794a2 100644
--- a/admin/layouts/help_document/details_under.php
+++ b/admin/layouts/help_document/details_under.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_under.php
diff --git a/admin/layouts/help_document/publishing.php b/admin/layouts/help_document/publishing.php
index 0bab590a..bd611980 100644
--- a/admin/layouts/help_document/publishing.php
+++ b/admin/layouts/help_document/publishing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
diff --git a/admin/layouts/help_document/publlshing.php b/admin/layouts/help_document/publlshing.php
index caf3950e..3387c5c2 100644
--- a/admin/layouts/help_document/publlshing.php
+++ b/admin/layouts/help_document/publlshing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
diff --git a/admin/layouts/intervention/details_above.php b/admin/layouts/intervention/details_above.php
index 550b120e..5e82795b 100644
--- a/admin/layouts/intervention/details_above.php
+++ b/admin/layouts/intervention/details_above.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
diff --git a/admin/layouts/intervention/details_fullwidth.php b/admin/layouts/intervention/details_fullwidth.php
index 9e04a877..e4e2cd89 100644
--- a/admin/layouts/intervention/details_fullwidth.php
+++ b/admin/layouts/intervention/details_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_fullwidth.php
diff --git a/admin/layouts/intervention/details_under.php b/admin/layouts/intervention/details_under.php
index 0cb8b104..baf794a2 100644
--- a/admin/layouts/intervention/details_under.php
+++ b/admin/layouts/intervention/details_under.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_under.php
diff --git a/admin/layouts/intervention/publishing.php b/admin/layouts/intervention/publishing.php
index 0bab590a..bd611980 100644
--- a/admin/layouts/intervention/publishing.php
+++ b/admin/layouts/intervention/publishing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
diff --git a/admin/layouts/intervention/publlshing.php b/admin/layouts/intervention/publlshing.php
index caf3950e..3387c5c2 100644
--- a/admin/layouts/intervention/publlshing.php
+++ b/admin/layouts/intervention/publlshing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
diff --git a/admin/layouts/intervention/settings_fullwidth.php b/admin/layouts/intervention/settings_fullwidth.php
index 58c7800d..7f283f37 100644
--- a/admin/layouts/intervention/settings_fullwidth.php
+++ b/admin/layouts/intervention/settings_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage settings_fullwidth.php
diff --git a/admin/layouts/intervention/settings_left.php b/admin/layouts/intervention/settings_left.php
index 83c75c81..a401d6f6 100644
--- a/admin/layouts/intervention/settings_left.php
+++ b/admin/layouts/intervention/settings_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage settings_left.php
diff --git a/admin/layouts/scaling_factor/details_above.php b/admin/layouts/scaling_factor/details_above.php
index d55535c4..cc358de0 100644
--- a/admin/layouts/scaling_factor/details_above.php
+++ b/admin/layouts/scaling_factor/details_above.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
diff --git a/admin/layouts/scaling_factor/details_left.php b/admin/layouts/scaling_factor/details_left.php
index 0bfcde55..f340810a 100644
--- a/admin/layouts/scaling_factor/details_left.php
+++ b/admin/layouts/scaling_factor/details_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
diff --git a/admin/layouts/scaling_factor/details_right.php b/admin/layouts/scaling_factor/details_right.php
index 860edab5..597acccb 100644
--- a/admin/layouts/scaling_factor/details_right.php
+++ b/admin/layouts/scaling_factor/details_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
diff --git a/admin/layouts/scaling_factor/publishing.php b/admin/layouts/scaling_factor/publishing.php
index 0bab590a..bd611980 100644
--- a/admin/layouts/scaling_factor/publishing.php
+++ b/admin/layouts/scaling_factor/publishing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
diff --git a/admin/layouts/scaling_factor/publlshing.php b/admin/layouts/scaling_factor/publlshing.php
index caf3950e..3387c5c2 100644
--- a/admin/layouts/scaling_factor/publlshing.php
+++ b/admin/layouts/scaling_factor/publlshing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
diff --git a/admin/layouts/service_provider/companies_fullwidth.php b/admin/layouts/service_provider/companies_fullwidth.php
index 9e9d0895..780b317f 100644
--- a/admin/layouts/service_provider/companies_fullwidth.php
+++ b/admin/layouts/service_provider/companies_fullwidth.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companies_fullwidth.php
@@ -25,10 +25,10 @@ defined('_JEXEC') or die('Restricted access');
$items = $displayData->vwecompanies;
$user = JFactory::getUser();
$id = $displayData->item->id;
-$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
-$ref = ($id) ? "&ref=service_provider&refid=".$id : "";
-$new = "index.php?option=com_costbenefitprojection&view=company&layout=edit".$ref;
-$can = CostbenefitprojectionHelper::getActions('company');
+$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
+$ref = ($id) ? "&ref=service_provider&refid=".$id : "";
+$new = "index.php?option=com_costbenefitprojection&view=company&layout=edit".$ref;
+$can = CostbenefitprojectionHelper::getActions('company');
?>
@@ -116,26 +116,26 @@ $can = CostbenefitprojectionHelper::getActions('company');
published == 1):?>
-
-
+
+
published == 0):?>
-
-
+
+
published == 2):?>
-
-
+
+
published == -2):?>
-
-
+
+
diff --git a/admin/layouts/service_provider/details_above.php b/admin/layouts/service_provider/details_above.php
index 26df25ed..ecc04028 100644
--- a/admin/layouts/service_provider/details_above.php
+++ b/admin/layouts/service_provider/details_above.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
diff --git a/admin/layouts/service_provider/details_left.php b/admin/layouts/service_provider/details_left.php
index 7aa21305..4c3abc9c 100644
--- a/admin/layouts/service_provider/details_left.php
+++ b/admin/layouts/service_provider/details_left.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
diff --git a/admin/layouts/service_provider/details_right.php b/admin/layouts/service_provider/details_right.php
index dc371a4d..c6fe0825 100644
--- a/admin/layouts/service_provider/details_right.php
+++ b/admin/layouts/service_provider/details_right.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
diff --git a/admin/layouts/service_provider/publishing.php b/admin/layouts/service_provider/publishing.php
index 0bab590a..bd611980 100644
--- a/admin/layouts/service_provider/publishing.php
+++ b/admin/layouts/service_provider/publishing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
diff --git a/admin/layouts/service_provider/publlshing.php b/admin/layouts/service_provider/publlshing.php
index caf3950e..3387c5c2 100644
--- a/admin/layouts/service_provider/publlshing.php
+++ b/admin/layouts/service_provider/publlshing.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
diff --git a/admin/models/ajax.php b/admin/models/ajax.php
index 51fdf547..5da238bf 100644
--- a/admin/models/ajax.php
+++ b/admin/models/ajax.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage ajax.php
@@ -235,4 +235,52 @@ public function getInterventionBuildTable($idName,$oject,$cluster)
}
return $new;
}
+
+ /**
+ * Check and if a vdm notice is new (per/user)
+ **/
+ public function isNew($notice)
+ {
+ // first get the file path
+ $path_filename = CostbenefitprojectionHelper::getFilePath('user', 'notice', JFactory::getUser()->username, $fileType = '.md', JPATH_COMPONENT_ADMINISTRATOR);
+ // check if the file is set
+ if (($content = @file_get_contents($path_filename)) !== FALSE)
+ {
+ if ($notice == $content)
+ {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ /**
+ * set That a notice has been read (per/user)
+ **/
+ public function isRead($notice)
+ {
+ // first get the file path
+ $path_filename = CostbenefitprojectionHelper::getFilePath('user', 'notice', JFactory::getUser()->username, $fileType = '.md', JPATH_COMPONENT_ADMINISTRATOR);
+ // set as read if not already set
+ if (($content = @file_get_contents($path_filename)) !== FALSE)
+ {
+ if ($notice == $content)
+ {
+ return true;
+ }
+ }
+ return $this->saveFile($notice,$path_filename);
+ }
+
+ protected function saveFile($data,$path_filename)
+ {
+ if (CostbenefitprojectionHelper::checkString($data))
+ {
+ $fp = fopen($path_filename, 'w');
+ fwrite($fp, $data);
+ fclose($fp);
+ return true;
+ }
+ return false;
+ }
}
diff --git a/admin/models/causerisk.php b/admin/models/causerisk.php
index 4a28bdfa..075055fb 100644
--- a/admin/models/causerisk.php
+++ b/admin/models/causerisk.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage causerisk.php
@author Llewellyn van der Merwe
@@ -73,7 +73,7 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
{
if ($item = parent::getItem($pk))
{
- if (!empty($item->params))
+ if (!empty($item->params) && !is_array($item->params))
{
// Convert the params field to an array.
$registry = new Registry;
@@ -110,7 +110,8 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
- { // Get the form.
+ {
+ // Get the form.
$form = $this->loadForm('com_costbenefitprojection.causerisk', 'causerisk', array('control' => 'jform', 'load_data' => $loadData));
if (empty($form))
@@ -373,6 +374,26 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
return true;
}
+
+ /**
+ * Method to change the published state of one or more records.
+ *
+ * @param array &$pks A list of the primary keys to change.
+ * @param integer $value The value of the published state.
+ *
+ * @return boolean True on success.
+ *
+ * @since 12.2
+ */
+ public function publish(&$pks, $value = 1)
+ {
+ if (!parent::publish($pks, $value))
+ {
+ return false;
+ }
+
+ return true;
+ }
/**
* Method to perform batch operations on an item or a set of items.
@@ -489,8 +510,6 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
- $this->contentType = new JUcmType;
- $this->type = $this->contentType->getTypeByTable($this->tableClassName);
$this->canDo = CostbenefitprojectionHelper::getActions('causerisk');
}
@@ -515,7 +534,6 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
}
$newIds = array();
-
// Parent exists so let's proceed
while (!empty($pks))
{
@@ -525,17 +543,11 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
$this->table->reset();
// only allow copy if user may edit this item.
-
if (!$this->user->authorise('causerisk.edit', $contexts[$pk]))
-
{
-
// Not fatal error
-
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
-
continue;
-
}
// Check that the row actually exists
@@ -545,7 +557,6 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
{
// Fatal error
$this->setError($error);
-
return false;
}
else
@@ -555,7 +566,6 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
continue;
}
}
-
list($this->table->name, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->name);
// insert all set values
@@ -638,8 +648,6 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
- $this->contentType = new JUcmType;
- $this->type = $this->contentType->getTypeByTable($this->tableClassName);
$this->canDo = CostbenefitprojectionHelper::getActions('causerisk');
}
@@ -663,7 +671,6 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
if (!$this->user->authorise('causerisk.edit', $contexts[$pk]))
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT'));
-
return false;
}
@@ -674,7 +681,6 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
{
// Fatal error
$this->setError($error);
-
return false;
}
else
@@ -691,7 +697,7 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
foreach ($values as $key => $value)
{
// Do special action for access.
- if ('access' == $key && strlen($value) > 0)
+ if ('access' === $key && strlen($value) > 0)
{
$this->table->$key = $value;
}
@@ -764,7 +770,7 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
}
// Alter the name for save as copy
- if ($input->get('task') == 'save2copy')
+ if ($input->get('task') === 'save2copy')
{
$origTable = clone $this->getTable();
$origTable->load($input->getInt('id'));
@@ -789,7 +795,7 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
// Automatic handling of alias for empty fields
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
{
- if ($data['alias'] == null)
+ if ($data['alias'] == null || empty($data['alias']))
{
if (JFactory::getConfig()->get('unicodeslugs') == 1)
{
@@ -807,8 +813,7 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
$msg = JText::_('COM_COSTBENEFITPROJECTION_CAUSERISK_SAVE_WARNING');
}
- list($name, $alias) = $this->_generateNewTitle($data['alias'], $data['name']);
- $data['alias'] = $alias;
+ $data['alias'] = $this->_generateNewTitle($data['alias']);
if (isset($msg))
{
@@ -818,7 +823,7 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
}
// Alter the uniqe field for save as copy
- if ($input->get('task') == 'save2copy')
+ if ($input->get('task') === 'save2copy')
{
// Automatic handling of other uniqe fields
$uniqeFields = $this->getUniqeFields();
@@ -863,26 +868,49 @@ class CostbenefitprojectionModelCauserisk extends JModelAdmin
}
/**
- * Method to change the title & alias.
+ * Method to change the title/s & alias.
*
- * @param string $alias The alias.
- * @param string $title The title.
+ * @param string $alias The alias.
+ * @param string/array $title The title.
*
- * @return array Contains the modified title and alias.
+ * @return array/string Contains the modified title/s and/or alias.
*
*/
- protected function _generateNewTitle($alias, $title)
+ protected function _generateNewTitle($alias, $title = null)
{
- // Alter the title & alias
+ // Alter the title/s & alias
$table = $this->getTable();
while ($table->load(array('alias' => $alias)))
{
- $title = JString::increment($title);
+ // Check if this is an array of titles
+ if (CostbenefitprojectionHelper::checkArray($title))
+ {
+ foreach($title as $nr => &$_title)
+ {
+ $_title = JString::increment($_title);
+ }
+ }
+ // Make sure we have a title
+ elseif ($title)
+ {
+ $title = JString::increment($title);
+ }
$alias = JString::increment($alias, 'dash');
}
-
- return array($title, $alias);
+ // Check if this is an array of titles
+ if (CostbenefitprojectionHelper::checkArray($title))
+ {
+ $title[] = $alias;
+ return $title;
+ }
+ // Make sure we have a title
+ elseif ($title)
+ {
+ return array($title, $alias);
+ }
+ // We only had an alias
+ return $alias;
}
}
diff --git a/admin/models/causesrisks.php b/admin/models/causesrisks.php
index 77c8b94a..9e68f4ec 100644
--- a/admin/models/causesrisks.php
+++ b/admin/models/causesrisks.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 20 of this MVC
+ @build 25th October, 2017
+ @created 8th July, 2015
@package Cost Benefit Projection
@subpackage causesrisks.php
@author Llewellyn van der Merwe
@@ -116,7 +116,7 @@ class CostbenefitprojectionModelCausesrisks extends JModelList
}
}
- }
+ }
// return items
return $items;
@@ -176,7 +176,7 @@ class CostbenefitprojectionModelCausesrisks extends JModelList
}
else
{
- $search = $db->quote('%' . $db->escape($search, true) . '%');
+ $search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.name LIKE '.$search.' OR a.ref LIKE '.$search.' OR a.importname LIKE '.$search.' OR a.description LIKE '.$search.' OR a.alias LIKE '.$search.')');
}
}
diff --git a/admin/models/combinedresults.php b/admin/models/combinedresults.php
index bb0307bd..f6440bca 100644
--- a/admin/models/combinedresults.php
+++ b/admin/models/combinedresults.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 22 of this MVC
+ @build 14th October, 2017
+ @created 3rd October, 2015
@package Cost Benefit Projection
@subpackage combinedresults.php
@author Llewellyn van der Merwe
@@ -28,16 +28,16 @@ jimport('joomla.application.component.modellist');
*/
class CostbenefitprojectionModelCombinedresults extends JModelList
{
- /**
+ /**
* Model user data.
*
- * @var strings
+ * @var strings
*/
- protected $user;
- protected $userId;
- protected $guest;
- protected $groups;
- protected $levels;
+ protected $user;
+ protected $userId;
+ protected $guest;
+ protected $groups;
+ protected $levels;
protected $app;
protected $input;
protected $uikitComp;
@@ -49,16 +49,16 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
*/
protected function getListQuery()
{
- // Get the current user for authorisation checks
- $this->user = JFactory::getUser();
- $this->userId = $this->user->get('id');
- $this->guest = $this->user->get('guest');
- $this->groups = $this->user->get('groups');
- $this->authorisedGroups = $this->user->getAuthorisedGroups();
- $this->levels = $this->user->getAuthorisedViewLevels();
- $this->app = JFactory::getApplication();
- $this->input = $this->app->input;
- $this->initSet = true;
+ // Get the current user for authorisation checks
+ $this->user = JFactory::getUser();
+ $this->userId = $this->user->get('id');
+ $this->guest = $this->user->get('guest');
+ $this->groups = $this->user->get('groups');
+ $this->authorisedGroups = $this->user->getAuthorisedGroups();
+ $this->levels = $this->user->getAuthorisedViewLevels();
+ $this->app = JFactory::getApplication();
+ $this->input = $this->app->input;
+ $this->initSet = true;
// Make sure all records load, since no pagination allowed.
$this->setState('list.limit', 0);
// Get a db connection.
@@ -68,6 +68,7 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
$query = $db->getQuery(true);
// Filtering.
+
$ids = (array) array_map('intval',explode('_', $this->input->get('cid', null, 'CMD')));
if (!$this->user->authorise('core.options', 'com_costbenefitprojection') && CostbenefitprojectionHelper::checkArray($ids))
{
@@ -86,7 +87,7 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
if (!CostbenefitprojectionHelper::checkArray($ids))
{
// redirect away if not a correct (TODO for now we go to default view)
- JError::raiseWarning(500, JText::_('No companies selected!'));
+ JError::raiseWarning(500, JText::_('COM_COSTBENEFITPROJECTION_NO_COMPANIES_SELECTED'));
$app = JFactory::getApplication();
if ($app->isAdmin())
{
@@ -137,108 +138,117 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
*/
public function getItems()
{
- $user = JFactory::getUser();
- // check if this user has permission to access items
- if (!$user->authorise('combinedresults.access', 'com_costbenefitprojection'))
- {
+ $user = JFactory::getUser();
+ // check if this user has permission to access items
+ if (!$user->authorise('combinedresults.access', 'com_costbenefitprojection'))
+ {
$app = JFactory::getApplication();
$app->enqueueMessage(JText::_('Not authorised!'), 'error');
// redirect away if not a correct (TODO for now we go to default view)
$app->redirect('index.php?option=com_costbenefitprojection');
return false;
- }
+ }
// load parent items
$items = parent::getItems();
// Get the global params
$globalParams = JComponentHelper::getParams('com_costbenefitprojection', true);
- // Get the advanced encription.
- $advancedkey = CostbenefitprojectionHelper::getCryptKey('advanced');
- // Get the encription object.
- $advanced = new FOFEncryptAes($advancedkey, 256);
+ // Get the whmcs encryption.
+ $whmcskey = CostbenefitprojectionHelper::getCryptKey('whmcs');
+ // Get the encryption object.
+ $whmcs = new FOFEncryptAes($whmcskey);
- // Convert the parameter fields into objects.
- foreach ($items as $nr => &$item)
+ // Insure all item fields are adapted where needed.
+ if (CostbenefitprojectionHelper::checkArray($items))
{
- // Always create a slug for sef URL's
- $item->slug = (isset($item->alias)) ? $item->id.':'.$item->alias : $item->id;
- if (!empty($item->medical_turnovers_females) && $advancedkey && !is_numeric($item->medical_turnovers_females) && $item->medical_turnovers_females === base64_encode(base64_decode($item->medical_turnovers_females, true)))
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
+ foreach ($items as $nr => &$item)
{
- // Decode medical_turnovers_females
- $item->medical_turnovers_females = rtrim($advanced->decryptString($item->medical_turnovers_females), "\0");
+ // Always create a slug for sef URL's
+ $item->slug = (isset($item->alias) && isset($item->id)) ? $item->id.':'.$item->alias : $item->id;
+ if (!empty($item->medical_turnovers_males) && $whmcskey && !is_numeric($item->medical_turnovers_males) && $item->medical_turnovers_males === base64_encode(base64_decode($item->medical_turnovers_males, true)))
+ {
+ // Decode medical_turnovers_males
+ $item->medical_turnovers_males = rtrim($whmcs->decryptString($item->medical_turnovers_males), "\0");
+ }
+ if (!empty($item->females) && $whmcskey && !is_numeric($item->females) && $item->females === base64_encode(base64_decode($item->females, true)))
+ {
+ // Decode females
+ $item->females = rtrim($whmcs->decryptString($item->females), "\0");
+ }
+ if (CostbenefitprojectionHelper::checkJson($item->causesrisks))
+ {
+ // Decode causesrisks
+ $item->causesrisks = json_decode($item->causesrisks, true);
+ }
+ if (!empty($item->sick_leave_males) && $whmcskey && !is_numeric($item->sick_leave_males) && $item->sick_leave_males === base64_encode(base64_decode($item->sick_leave_males, true)))
+ {
+ // Decode sick_leave_males
+ $item->sick_leave_males = rtrim($whmcs->decryptString($item->sick_leave_males), "\0");
+ }
+ if (!empty($item->medical_turnovers_females) && $whmcskey && !is_numeric($item->medical_turnovers_females) && $item->medical_turnovers_females === base64_encode(base64_decode($item->medical_turnovers_females, true)))
+ {
+ // Decode medical_turnovers_females
+ $item->medical_turnovers_females = rtrim($whmcs->decryptString($item->medical_turnovers_females), "\0");
+ }
+ if (!empty($item->sick_leave_females) && $whmcskey && !is_numeric($item->sick_leave_females) && $item->sick_leave_females === base64_encode(base64_decode($item->sick_leave_females, true)))
+ {
+ // Decode sick_leave_females
+ $item->sick_leave_females = rtrim($whmcs->decryptString($item->sick_leave_females), "\0");
+ }
+ if (!empty($item->total_salary) && $whmcskey && !is_numeric($item->total_salary) && $item->total_salary === base64_encode(base64_decode($item->total_salary, true)))
+ {
+ // Decode total_salary
+ $item->total_salary = rtrim($whmcs->decryptString($item->total_salary), "\0");
+ }
+ if (!empty($item->total_healthcare) && $whmcskey && !is_numeric($item->total_healthcare) && $item->total_healthcare === base64_encode(base64_decode($item->total_healthcare, true)))
+ {
+ // Decode total_healthcare
+ $item->total_healthcare = rtrim($whmcs->decryptString($item->total_healthcare), "\0");
+ }
+ if (!empty($item->males) && $whmcskey && !is_numeric($item->males) && $item->males === base64_encode(base64_decode($item->males, true)))
+ {
+ // Decode males
+ $item->males = rtrim($whmcs->decryptString($item->males), "\0");
+ }
+ if (CostbenefitprojectionHelper::checkJson($item->country_causesrisks))
+ {
+ // Decode country_causesrisks
+ $item->country_causesrisks = json_decode($item->country_causesrisks, true);
+ }
+ // Make sure the content prepare plugins fire on country_publicaddress
+ $_country_publicaddress = new stdClass();
+ $_country_publicaddress->text =& $item->country_publicaddress; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (country_publicaddress) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.combinedresults.country_publicaddress', &$_country_publicaddress, &$this->params, 0));
+ // Checking if country_publicaddress has uikit components that must be loaded.
+ $this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->country_publicaddress,$this->uikitComp);
+ // set the global causesrisks value.
+ $this->a_causesrisks = $item->causesrisks;
+ // set the global datayear value.
+ $this->a_datayear = $item->datayear;
+ // set the global datayear value.
+ $this->e_datayear = $item->country_datayear;
+ // set the global causesrisks value.
+ $this->e_causesrisks = $item->country_causesrisks;
+ // set countryCountryHealth_dataB to the $item object.
+ $item->countryCountryHealth_dataB = $this->getCountryCountryHealth_dataBcbb_B($item->country);
+ // set idCompanyScaling_factorC to the $item object.
+ $item->idCompanyScaling_factorC = $this->getIdCompanyScaling_factorBcbb_C($item->id);
+ // set idCompanyInterventionD to the $item object.
+ $item->idCompanyInterventionD = $this->getIdCompanyInterventionBcbb_D($item->id);
+ // set causesrisksIdCauseriskG to the $item object.
+ $item->causesrisksIdCauseriskG = $this->getCausesrisksIdCauseriskBcbb_G($item->causesrisks);
+ // set countryCountryHealth_dataBB to the $item object.
+ $item->countryCountryHealth_dataBB = $this->getCountryCountryHealth_dataBcbb_BB($item->country);
+ // set causesrisksIdCauseriskGG to the $item object.
+ $item->causesrisksIdCauseriskGG = $this->getCausesrisksIdCauseriskBcbb_GG($item->country_causesrisks);
+ // set countryCountryInterventionDD to the $item object.
+ $item->countryCountryInterventionDD = $this->getCountryCountryInterventionBcbb_DD($item->country);
}
- if (!empty($item->females) && $advancedkey && !is_numeric($item->females) && $item->females === base64_encode(base64_decode($item->females, true)))
- {
- // Decode females
- $item->females = rtrim($advanced->decryptString($item->females), "\0");
- }
- if (!empty($item->sick_leave_males) && $advancedkey && !is_numeric($item->sick_leave_males) && $item->sick_leave_males === base64_encode(base64_decode($item->sick_leave_males, true)))
- {
- // Decode sick_leave_males
- $item->sick_leave_males = rtrim($advanced->decryptString($item->sick_leave_males), "\0");
- }
- if (CostbenefitprojectionHelper::checkString($item->causesrisks))
- {
- // Decode causesrisks
- $item->causesrisks = json_decode($item->causesrisks, true);
- }
- if (!empty($item->medical_turnovers_males) && $advancedkey && !is_numeric($item->medical_turnovers_males) && $item->medical_turnovers_males === base64_encode(base64_decode($item->medical_turnovers_males, true)))
- {
- // Decode medical_turnovers_males
- $item->medical_turnovers_males = rtrim($advanced->decryptString($item->medical_turnovers_males), "\0");
- }
- if (!empty($item->total_salary) && $advancedkey && !is_numeric($item->total_salary) && $item->total_salary === base64_encode(base64_decode($item->total_salary, true)))
- {
- // Decode total_salary
- $item->total_salary = rtrim($advanced->decryptString($item->total_salary), "\0");
- }
- if (!empty($item->sick_leave_females) && $advancedkey && !is_numeric($item->sick_leave_females) && $item->sick_leave_females === base64_encode(base64_decode($item->sick_leave_females, true)))
- {
- // Decode sick_leave_females
- $item->sick_leave_females = rtrim($advanced->decryptString($item->sick_leave_females), "\0");
- }
- if (!empty($item->total_healthcare) && $advancedkey && !is_numeric($item->total_healthcare) && $item->total_healthcare === base64_encode(base64_decode($item->total_healthcare, true)))
- {
- // Decode total_healthcare
- $item->total_healthcare = rtrim($advanced->decryptString($item->total_healthcare), "\0");
- }
- if (!empty($item->males) && $advancedkey && !is_numeric($item->males) && $item->males === base64_encode(base64_decode($item->males, true)))
- {
- // Decode males
- $item->males = rtrim($advanced->decryptString($item->males), "\0");
- }
- if (CostbenefitprojectionHelper::checkString($item->country_causesrisks))
- {
- // Decode country_causesrisks
- $item->country_causesrisks = json_decode($item->country_causesrisks, true);
- }
- // Make sure the content prepare plugins fire on country_publicaddress.
- $item->country_publicaddress = JHtml::_('content.prepare',$item->country_publicaddress);
- // Checking if country_publicaddress has uikit components that must be loaded.
- $this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->country_publicaddress,$this->uikitComp);
- // set the global causesrisks value.
- $this->a_causesrisks = $item->causesrisks;
- // set the global datayear value.
- $this->a_datayear = $item->datayear;
- // set the global datayear value.
- $this->e_datayear = $item->country_datayear;
- // set the global causesrisks value.
- $this->e_causesrisks = $item->country_causesrisks;
- // set countryCountryHealth_dataB to the $item object.
- $item->countryCountryHealth_dataB = $this->getCountryCountryHealth_dataBcbb_B($item->country);
- // set idCompanyScaling_factorC to the $item object.
- $item->idCompanyScaling_factorC = $this->getIdCompanyScaling_factorBcbb_C($item->id);
- // set idCompanyInterventionD to the $item object.
- $item->idCompanyInterventionD = $this->getIdCompanyInterventionBcbb_D($item->id);
- // set causesrisksIdCauseriskG to the $item object.
- $item->causesrisksIdCauseriskG = $this->getCausesrisksIdCauseriskBcbb_G($item->causesrisks);
- // set countryCountryHealth_dataBB to the $item object.
- $item->countryCountryHealth_dataBB = $this->getCountryCountryHealth_dataBcbb_BB($item->country);
- // set causesrisksIdCauseriskGG to the $item object.
- $item->causesrisksIdCauseriskGG = $this->getCausesrisksIdCauseriskBcbb_GG($item->country_causesrisks);
- // set countryCountryInterventionDD to the $item object.
- $item->countryCountryInterventionDD = $this->getCountryCountryInterventionBcbb_DD($item->country);
}
// return items
@@ -275,7 +285,9 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
{
return false;
}
+ // Get where b.published is 1
$query->where('b.published = 1');
+ // Get where b.year is $this->a_datayear
$query->where('b.year = ' . $db->quote($this->a_datayear));
$query->order('b.ordering ASC');
@@ -286,6 +298,9 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
return $db->loadObjectList();
}
return false;
@@ -311,6 +326,7 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
array('id','causerisk','reference','yld_scaling_factor_males','yld_scaling_factor_females','mortality_scaling_factor_males','mortality_scaling_factor_females','presenteeism_scaling_factor_males','presenteeism_scaling_factor_females','health_scaling_factor','published')));
$query->from($db->quoteName('#__costbenefitprojection_scaling_factor', 'c'));
$query->where('c.company = ' . $db->quote($id));
+ // Get where c.published is 1
$query->where('c.published = 1');
$query->order('c.published ASC');
$query->order('c.ordering ASC');
@@ -322,13 +338,19 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
$items = $db->loadObjectList();
// Convert the parameter fields into objects.
foreach ($items as $nr => &$item)
{
- // Make sure the content prepare plugins fire on reference.
- $item->reference = JHtml::_('content.prepare',$item->reference);
+ // Make sure the content prepare plugins fire on reference
+ $_reference = new stdClass();
+ $_reference->text =& $item->reference; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (reference) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.combinedresults.reference', &$_reference, &$this->params, 0));
// Checking if reference has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->reference,$this->uikitComp);
}
@@ -357,6 +379,7 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
array('id','name','type','coverage','duration','share','description','reference','interventions','intervention','published','created_by','modified_by','created','modified')));
$query->from($db->quoteName('#__costbenefitprojection_intervention', 'd'));
$query->where('d.company = ' . $db->quote($id));
+ // Get where d.published is 1
$query->where('d.published = 1');
$query->order('d.ordering ASC');
@@ -367,13 +390,19 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
$items = $db->loadObjectList();
// Convert the parameter fields into objects.
foreach ($items as $nr => &$item)
{
- // Make sure the content prepare plugins fire on reference.
- $item->reference = JHtml::_('content.prepare',$item->reference);
+ // Make sure the content prepare plugins fire on reference
+ $_reference = new stdClass();
+ $_reference->text =& $item->reference; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (reference) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.combinedresults.reference', &$_reference, &$this->params, 0));
// Checking if reference has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->reference,$this->uikitComp);
}
@@ -404,7 +433,7 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
// Check if $causesrisks is an array with values.
$array = $causesrisks;
- if (isset($array) && CostbenefitprojectionHelper::checkArray($array))
+ if (isset($array) && CostbenefitprojectionHelper::checkArray($array, true))
{
$query->where('g.id IN (' . implode(',', $array) . ')');
}
@@ -420,6 +449,9 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
return $db->loadObjectList();
}
return false;
@@ -455,7 +487,9 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
{
return false;
}
+ // Get where bb.published is 1
$query->where('bb.published = 1');
+ // Get where bb.year is $this->e_datayear
$query->where('bb.year = ' . $db->quote($this->e_datayear));
$query->order('bb.ordering ASC');
@@ -466,6 +500,9 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
return $db->loadObjectList();
}
return false;
@@ -493,7 +530,7 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
// Check if $causesrisks is an array with values.
$array = $causesrisks;
- if (isset($array) && CostbenefitprojectionHelper::checkArray($array))
+ if (isset($array) && CostbenefitprojectionHelper::checkArray($array, true))
{
$query->where('gg.id IN (' . implode(',', $array) . ')');
}
@@ -509,13 +546,19 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
$items = $db->loadObjectList();
// Convert the parameter fields into objects.
foreach ($items as $nr => &$item)
{
- // Make sure the content prepare plugins fire on description.
- $item->description = JHtml::_('content.prepare',$item->description);
+ // Make sure the content prepare plugins fire on description
+ $_description = new stdClass();
+ $_description->text =& $item->description; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (description) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.combinedresults.description', &$_description, &$this->params, 0));
// Checking if description has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->description,$this->uikitComp);
}
@@ -544,6 +587,7 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
array('id','name','type','coverage','duration','share','description','reference','interventions','intervention','published','created_by','modified_by','created','modified')));
$query->from($db->quoteName('#__costbenefitprojection_intervention', 'dd'));
$query->where('dd.country = ' . $db->quote($country));
+ // Get where dd.published is 1
$query->where('dd.published = 1');
$query->order('dd.ordering ASC');
@@ -554,22 +598,31 @@ class CostbenefitprojectionModelCombinedresults extends JModelList
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
$items = $db->loadObjectList();
// Convert the parameter fields into objects.
foreach ($items as $nr => &$item)
{
- if (CostbenefitprojectionHelper::checkString($item->interventions))
+ if (CostbenefitprojectionHelper::checkJson($item->interventions))
{
// Decode interventions
$item->interventions = json_decode($item->interventions, true);
}
- // Make sure the content prepare plugins fire on description.
- $item->description = JHtml::_('content.prepare',$item->description);
+ // Make sure the content prepare plugins fire on description
+ $_description = new stdClass();
+ $_description->text =& $item->description; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (description) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.combinedresults.description', &$_description, &$this->params, 0));
+ // Make sure the content prepare plugins fire on reference
+ $_reference = new stdClass();
+ $_reference->text =& $item->reference; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (reference) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.combinedresults.reference', &$_reference, &$this->params, 0));
// Checking if description has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->description,$this->uikitComp);
- // Make sure the content prepare plugins fire on reference.
- $item->reference = JHtml::_('content.prepare',$item->reference);
// Checking if reference has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->reference,$this->uikitComp);
}
diff --git a/admin/models/companies.php b/admin/models/companies.php
index ad1d3d54..9eef0536 100644
--- a/admin/models/companies.php
+++ b/admin/models/companies.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 101 of this MVC
+ @build 29th June, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage companies.php
@author Llewellyn van der Merwe
@@ -145,7 +145,7 @@ class CostbenefitprojectionModelCompanies extends JModelList
$item->per = $this->selectionTranslation($item->per, 'per');
}
}
-
+
// return items
return $items;
@@ -159,7 +159,7 @@ class CostbenefitprojectionModelCompanies extends JModelList
public function selectionTranslation($value,$name)
{
// Array of department language strings
- if ($name == 'department')
+ if ($name === 'department')
{
$departmentArray = array(
1 => 'COM_COSTBENEFITPROJECTION_COMPANY_BASIC',
@@ -172,7 +172,7 @@ class CostbenefitprojectionModelCompanies extends JModelList
}
}
// Array of per language strings
- if ($name == 'per')
+ if ($name === 'per')
{
$perArray = array(
1 => 'COM_COSTBENEFITPROJECTION_COMPANY_OPEN',
@@ -270,7 +270,7 @@ class CostbenefitprojectionModelCompanies extends JModelList
}
else
{
- $search = $db->quote('%' . $db->escape($search, true) . '%');
+ $search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.name LIKE '.$search.' OR a.email LIKE '.$search.' OR a.user LIKE '.$search.' OR g.name LIKE '.$search.' OR a.department LIKE '.$search.' OR a.country LIKE '.$search.' OR h.name LIKE '.$search.' OR a.service_provider LIKE '.$search.' OR i.user LIKE '.$search.' OR a.per LIKE '.$search.')');
}
}
@@ -278,22 +278,22 @@ class CostbenefitprojectionModelCompanies extends JModelList
// Filter by Department.
if ($department = $this->getState('filter.department'))
{
- $query->where('a.department = ' . $db->quote($db->escape($department, true)));
+ $query->where('a.department = ' . $db->quote($db->escape($department)));
}
// Filter by country.
if ($country = $this->getState('filter.country'))
{
- $query->where('a.country = ' . $db->quote($db->escape($country, true)));
+ $query->where('a.country = ' . $db->quote($db->escape($country)));
}
// Filter by service_provider.
if ($service_provider = $this->getState('filter.service_provider'))
{
- $query->where('a.service_provider = ' . $db->quote($db->escape($service_provider, true)));
+ $query->where('a.service_provider = ' . $db->quote($db->escape($service_provider)));
}
// Filter by Per.
if ($per = $this->getState('filter.per'))
{
- $query->where('a.per = ' . $db->quote($db->escape($per, true)));
+ $query->where('a.per = ' . $db->quote($db->escape($per)));
}
// Add the list ordering clause.
@@ -365,10 +365,10 @@ class CostbenefitprojectionModelCompanies extends JModelList
{
$items = $db->loadObjectList();
- // Get the advanced encription key.
- $advancedkey = CostbenefitprojectionHelper::getCryptKey('advanced');
- // Get the encription object.
- $advanced = new FOFEncryptAes($advancedkey, 256);
+ // Get the whmcs encryption key.
+ $whmcskey = CostbenefitprojectionHelper::getCryptKey('whmcs');
+ // Get the encryption object.
+ $whmcs = new FOFEncryptAes($whmcskey);
// set values to display correctly.
if (CostbenefitprojectionHelper::checkArray($items))
@@ -384,45 +384,45 @@ class CostbenefitprojectionModelCompanies extends JModelList
continue;
}
- if ($advancedkey && !is_numeric($item->medical_turnovers_females) && $item->medical_turnovers_females === base64_encode(base64_decode($item->medical_turnovers_females, true)))
- {
- // decrypt medical_turnovers_females
- $item->medical_turnovers_females = $advanced->decryptString($item->medical_turnovers_females);
- }
- if ($advancedkey && !is_numeric($item->females) && $item->females === base64_encode(base64_decode($item->females, true)))
- {
- // decrypt females
- $item->females = $advanced->decryptString($item->females);
- }
- if ($advancedkey && !is_numeric($item->sick_leave_males) && $item->sick_leave_males === base64_encode(base64_decode($item->sick_leave_males, true)))
- {
- // decrypt sick_leave_males
- $item->sick_leave_males = $advanced->decryptString($item->sick_leave_males);
- }
- if ($advancedkey && !is_numeric($item->medical_turnovers_males) && $item->medical_turnovers_males === base64_encode(base64_decode($item->medical_turnovers_males, true)))
+ if ($whmcskey && !is_numeric($item->medical_turnovers_males) && $item->medical_turnovers_males === base64_encode(base64_decode($item->medical_turnovers_males, true)))
{
// decrypt medical_turnovers_males
- $item->medical_turnovers_males = $advanced->decryptString($item->medical_turnovers_males);
+ $item->medical_turnovers_males = $whmcs->decryptString($item->medical_turnovers_males);
}
- if ($advancedkey && !is_numeric($item->total_salary) && $item->total_salary === base64_encode(base64_decode($item->total_salary, true)))
+ if ($whmcskey && !is_numeric($item->females) && $item->females === base64_encode(base64_decode($item->females, true)))
{
- // decrypt total_salary
- $item->total_salary = $advanced->decryptString($item->total_salary);
+ // decrypt females
+ $item->females = $whmcs->decryptString($item->females);
}
- if ($advancedkey && !is_numeric($item->sick_leave_females) && $item->sick_leave_females === base64_encode(base64_decode($item->sick_leave_females, true)))
+ if ($whmcskey && !is_numeric($item->sick_leave_males) && $item->sick_leave_males === base64_encode(base64_decode($item->sick_leave_males, true)))
+ {
+ // decrypt sick_leave_males
+ $item->sick_leave_males = $whmcs->decryptString($item->sick_leave_males);
+ }
+ if ($whmcskey && !is_numeric($item->medical_turnovers_females) && $item->medical_turnovers_females === base64_encode(base64_decode($item->medical_turnovers_females, true)))
+ {
+ // decrypt medical_turnovers_females
+ $item->medical_turnovers_females = $whmcs->decryptString($item->medical_turnovers_females);
+ }
+ if ($whmcskey && !is_numeric($item->sick_leave_females) && $item->sick_leave_females === base64_encode(base64_decode($item->sick_leave_females, true)))
{
// decrypt sick_leave_females
- $item->sick_leave_females = $advanced->decryptString($item->sick_leave_females);
+ $item->sick_leave_females = $whmcs->decryptString($item->sick_leave_females);
}
- if ($advancedkey && !is_numeric($item->total_healthcare) && $item->total_healthcare === base64_encode(base64_decode($item->total_healthcare, true)))
+ if ($whmcskey && !is_numeric($item->total_salary) && $item->total_salary === base64_encode(base64_decode($item->total_salary, true)))
+ {
+ // decrypt total_salary
+ $item->total_salary = $whmcs->decryptString($item->total_salary);
+ }
+ if ($whmcskey && !is_numeric($item->total_healthcare) && $item->total_healthcare === base64_encode(base64_decode($item->total_healthcare, true)))
{
// decrypt total_healthcare
- $item->total_healthcare = $advanced->decryptString($item->total_healthcare);
+ $item->total_healthcare = $whmcs->decryptString($item->total_healthcare);
}
- if ($advancedkey && !is_numeric($item->males) && $item->males === base64_encode(base64_decode($item->males, true)))
+ if ($whmcskey && !is_numeric($item->males) && $item->males === base64_encode(base64_decode($item->males, true)))
{
// decrypt males
- $item->males = $advanced->decryptString($item->males);
+ $item->males = $whmcs->decryptString($item->males);
}
// unset the values we don't want exported.
unset($item->asset_id);
diff --git a/admin/models/company.php b/admin/models/company.php
index 5f7f8f1e..3e330dab 100644
--- a/admin/models/company.php
+++ b/admin/models/company.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 101 of this MVC
+ @build 29th June, 2016
+ @created 15th July, 2015
@package Cost Benefit Projection
@subpackage company.php
@author Llewellyn van der Merwe
@@ -73,7 +73,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
{
if ($item = parent::getItem($pk))
{
- if (!empty($item->params))
+ if (!empty($item->params) && !is_array($item->params))
{
// Convert the params field to an array.
$registry = new Registry;
@@ -89,63 +89,63 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$item->metadata = $registry->toArray();
}
+ // Get the whmcs encryption.
+ $whmcskey = CostbenefitprojectionHelper::getCryptKey('whmcs');
+ // Get the encryption object.
+ $whmcs = new FOFEncryptAes($whmcskey);
+
+ if (!empty($item->medical_turnovers_males) && $whmcskey && !is_numeric($item->medical_turnovers_males) && $item->medical_turnovers_males === base64_encode(base64_decode($item->medical_turnovers_males, true)))
+ {
+ // whmcs decrypt data medical_turnovers_males.
+ $item->medical_turnovers_males = rtrim($whmcs->decryptString($item->medical_turnovers_males), "\0");
+ }
+
+ if (!empty($item->females) && $whmcskey && !is_numeric($item->females) && $item->females === base64_encode(base64_decode($item->females, true)))
+ {
+ // whmcs decrypt data females.
+ $item->females = rtrim($whmcs->decryptString($item->females), "\0");
+ }
+
+ if (!empty($item->sick_leave_males) && $whmcskey && !is_numeric($item->sick_leave_males) && $item->sick_leave_males === base64_encode(base64_decode($item->sick_leave_males, true)))
+ {
+ // whmcs decrypt data sick_leave_males.
+ $item->sick_leave_males = rtrim($whmcs->decryptString($item->sick_leave_males), "\0");
+ }
+
+ if (!empty($item->medical_turnovers_females) && $whmcskey && !is_numeric($item->medical_turnovers_females) && $item->medical_turnovers_females === base64_encode(base64_decode($item->medical_turnovers_females, true)))
+ {
+ // whmcs decrypt data medical_turnovers_females.
+ $item->medical_turnovers_females = rtrim($whmcs->decryptString($item->medical_turnovers_females), "\0");
+ }
+
+ if (!empty($item->sick_leave_females) && $whmcskey && !is_numeric($item->sick_leave_females) && $item->sick_leave_females === base64_encode(base64_decode($item->sick_leave_females, true)))
+ {
+ // whmcs decrypt data sick_leave_females.
+ $item->sick_leave_females = rtrim($whmcs->decryptString($item->sick_leave_females), "\0");
+ }
+
+ if (!empty($item->total_salary) && $whmcskey && !is_numeric($item->total_salary) && $item->total_salary === base64_encode(base64_decode($item->total_salary, true)))
+ {
+ // whmcs decrypt data total_salary.
+ $item->total_salary = rtrim($whmcs->decryptString($item->total_salary), "\0");
+ }
+
+ if (!empty($item->total_healthcare) && $whmcskey && !is_numeric($item->total_healthcare) && $item->total_healthcare === base64_encode(base64_decode($item->total_healthcare, true)))
+ {
+ // whmcs decrypt data total_healthcare.
+ $item->total_healthcare = rtrim($whmcs->decryptString($item->total_healthcare), "\0");
+ }
+
+ if (!empty($item->males) && $whmcskey && !is_numeric($item->males) && $item->males === base64_encode(base64_decode($item->males, true)))
+ {
+ // whmcs decrypt data males.
+ $item->males = rtrim($whmcs->decryptString($item->males), "\0");
+ }
+
if (!empty($item->causesrisks))
{
// JSON Decode causesrisks.
$item->causesrisks = json_decode($item->causesrisks);
- }
-
- // Get the advanced encription key.
- $advancedkey = CostbenefitprojectionHelper::getCryptKey('advanced');
- // Get the encription object.
- $advanced = new FOFEncryptAes($advancedkey, 256);
-
- if (!empty($item->medical_turnovers_females) && $advancedkey && !is_numeric($item->medical_turnovers_females) && $item->medical_turnovers_females === base64_encode(base64_decode($item->medical_turnovers_females, true)))
- {
- // advanced decript data medical_turnovers_females.
- $item->medical_turnovers_females = rtrim($advanced->decryptString($item->medical_turnovers_females), "\0");
- }
-
- if (!empty($item->females) && $advancedkey && !is_numeric($item->females) && $item->females === base64_encode(base64_decode($item->females, true)))
- {
- // advanced decript data females.
- $item->females = rtrim($advanced->decryptString($item->females), "\0");
- }
-
- if (!empty($item->sick_leave_males) && $advancedkey && !is_numeric($item->sick_leave_males) && $item->sick_leave_males === base64_encode(base64_decode($item->sick_leave_males, true)))
- {
- // advanced decript data sick_leave_males.
- $item->sick_leave_males = rtrim($advanced->decryptString($item->sick_leave_males), "\0");
- }
-
- if (!empty($item->medical_turnovers_males) && $advancedkey && !is_numeric($item->medical_turnovers_males) && $item->medical_turnovers_males === base64_encode(base64_decode($item->medical_turnovers_males, true)))
- {
- // advanced decript data medical_turnovers_males.
- $item->medical_turnovers_males = rtrim($advanced->decryptString($item->medical_turnovers_males), "\0");
- }
-
- if (!empty($item->total_salary) && $advancedkey && !is_numeric($item->total_salary) && $item->total_salary === base64_encode(base64_decode($item->total_salary, true)))
- {
- // advanced decript data total_salary.
- $item->total_salary = rtrim($advanced->decryptString($item->total_salary), "\0");
- }
-
- if (!empty($item->sick_leave_females) && $advancedkey && !is_numeric($item->sick_leave_females) && $item->sick_leave_females === base64_encode(base64_decode($item->sick_leave_females, true)))
- {
- // advanced decript data sick_leave_females.
- $item->sick_leave_females = rtrim($advanced->decryptString($item->sick_leave_females), "\0");
- }
-
- if (!empty($item->total_healthcare) && $advancedkey && !is_numeric($item->total_healthcare) && $item->total_healthcare === base64_encode(base64_decode($item->total_healthcare, true)))
- {
- // advanced decript data total_healthcare.
- $item->total_healthcare = rtrim($advanced->decryptString($item->total_healthcare), "\0");
- }
-
- if (!empty($item->males) && $advancedkey && !is_numeric($item->males) && $item->males === base64_encode(base64_decode($item->males, true)))
- {
- // advanced decript data males.
- $item->males = rtrim($advanced->decryptString($item->males), "\0");
}
if (!empty($item->id))
@@ -370,7 +370,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
public function selectionTranslationVwdinterventions($value,$name)
{
// Array of type language strings
- if ($name == 'type')
+ if ($name === 'type')
{
$typeArray = array(
1 => 'COM_COSTBENEFITPROJECTION_INTERVENTION_SINGLE',
@@ -396,7 +396,8 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
- { // Get the form.
+ {
+ // Get the form.
$form = $this->loadForm('com_costbenefitprojection.company', 'company', array('control' => 'jform', 'load_data' => $loadData));
if (empty($form))
@@ -559,6 +560,22 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$form->setFieldAttribute('per', 'required', 'false');
}
}
+ // Modify the form based on Edit Causesrisks access controls.
+ if ($id != 0 && (!$user->authorise('company.edit.causesrisks', 'com_costbenefitprojection.company.' . (int) $id))
+ || ($id == 0 && !$user->authorise('company.edit.causesrisks', 'com_costbenefitprojection')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('causesrisks', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('causesrisks', 'readonly', 'true');
+ if (!$form->getValue('causesrisks'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('causesrisks', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('causesrisks', 'required', 'false');
+ }
+ }
// Modify the form based on Edit Percentfemale access controls.
if ($id != 0 && (!$user->authorise('company.edit.percentfemale', 'com_costbenefitprojection.company.' . (int) $id))
|| ($id == 0 && !$user->authorise('company.edit.percentfemale', 'com_costbenefitprojection')))
@@ -578,22 +595,6 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$form->setFieldAttribute('percentfemale', 'required', 'false');
}
}
- // Modify the form based on Edit Causesrisks access controls.
- if ($id != 0 && (!$user->authorise('company.edit.causesrisks', 'com_costbenefitprojection.company.' . (int) $id))
- || ($id == 0 && !$user->authorise('company.edit.causesrisks', 'com_costbenefitprojection')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('causesrisks', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('causesrisks', 'readonly', 'true');
- if (!$form->getValue('causesrisks'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('causesrisks', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('causesrisks', 'required', 'false');
- }
- }
// Modify the form based on Edit Datayear access controls.
if ($id != 0 && (!$user->authorise('company.edit.datayear', 'com_costbenefitprojection.company.' . (int) $id))
|| ($id == 0 && !$user->authorise('company.edit.datayear', 'com_costbenefitprojection')))
@@ -721,23 +722,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
{
// Check specific edit permission then general edit permission.
$user = JFactory::getUser();
- $recordId = (int) isset($data[$key]) ? $data[$key] : 0;
- if (!$user->authorise('core.options', 'com_costbenefitprojection'))
- {
- // make absolutely sure that this company can be edited
- $companies = CostbenefitprojectionHelper::hisCompanies($user->id);
- if (!CostbenefitprojectionHelper::checkArray($companies) || !in_array($recordId,$companies))
- {
- return false;
- }
- }
- // ensure lockdown
- $userIs = CostbenefitprojectionHelper::userIs($user->id);
- if (1 != $userIs && ! CostbenefitprojectionHelper::accessCompany($recordId))
- {
- // this company is locked
- return false;
- }
+
return $user->authorise('company.edit', 'com_costbenefitprojection.company.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('company.edit', 'com_costbenefitprojection');
}
@@ -885,6 +870,26 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
return true;
}
+
+ /**
+ * Method to change the published state of one or more records.
+ *
+ * @param array &$pks A list of the primary keys to change.
+ * @param integer $value The value of the published state.
+ *
+ * @return boolean True on success.
+ *
+ * @since 12.2
+ */
+ public function publish(&$pks, $value = 1)
+ {
+ if (!parent::publish($pks, $value))
+ {
+ return false;
+ }
+
+ return true;
+ }
/**
* Method to perform batch operations on an item or a set of items.
@@ -1001,8 +1006,6 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
- $this->contentType = new JUcmType;
- $this->type = $this->contentType->getTypeByTable($this->tableClassName);
$this->canDo = CostbenefitprojectionHelper::getActions('company');
}
@@ -1056,7 +1059,6 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
}
$newIds = array();
-
// Parent exists so let's proceed
while (!empty($pks))
{
@@ -1066,17 +1068,11 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$this->table->reset();
// only allow copy if user may edit this item.
-
if (!$this->user->authorise('company.edit', $contexts[$pk]))
-
{
-
// Not fatal error
-
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
-
continue;
-
}
// Check that the row actually exists
@@ -1086,7 +1082,6 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
{
// Fatal error
$this->setError($error);
-
return false;
}
else
@@ -1097,7 +1092,11 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
}
}
- $this->table->name = $this->generateUniqe('name',$this->table->name);
+ // Only for strings
+ if (CostbenefitprojectionHelper::checkString($this->table->name) && !is_numeric($this->table->name))
+ {
+ $this->table->name = $this->generateUniqe('name',$this->table->name);
+ }
// insert all set values
if (CostbenefitprojectionHelper::checkArray($values))
@@ -1179,8 +1178,6 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
- $this->contentType = new JUcmType;
- $this->type = $this->contentType->getTypeByTable($this->tableClassName);
$this->canDo = CostbenefitprojectionHelper::getActions('company');
}
@@ -1233,7 +1230,6 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
if (!$this->user->authorise('company.edit', $contexts[$pk]))
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT'));
-
return false;
}
@@ -1244,7 +1240,6 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
{
// Fatal error
$this->setError($error);
-
return false;
}
else
@@ -1261,7 +1256,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
foreach ($values as $key => $value)
{
// Do special action for access.
- if ('access' == $key && strlen($value) > 0)
+ if ('access' === $key && strlen($value) > 0)
{
$this->table->$key = $value;
}
@@ -1337,57 +1332,57 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$data['causesrisks'] = (string) json_encode($data['causesrisks']);
}
- // Get the advanced encription key.
- $advancedkey = CostbenefitprojectionHelper::getCryptKey('advanced');
- // Get the encription object
- $advanced = new FOFEncryptAes($advancedkey, 256);
+ // Get the whmcs encryption key.
+ $whmcskey = CostbenefitprojectionHelper::getCryptKey('whmcs');
+ // Get the encryption object
+ $whmcs = new FOFEncryptAes($whmcskey);
- // Encript data medical_turnovers_females.
- if (isset($data['medical_turnovers_females']) && $advancedkey)
+ // Encrypt data medical_turnovers_males.
+ if (isset($data['medical_turnovers_males']) && $whmcskey)
{
- $data['medical_turnovers_females'] = $advanced->encryptString($data['medical_turnovers_females']);
+ $data['medical_turnovers_males'] = $whmcs->encryptString($data['medical_turnovers_males']);
}
- // Encript data females.
- if (isset($data['females']) && $advancedkey)
+ // Encrypt data females.
+ if (isset($data['females']) && $whmcskey)
{
- $data['females'] = $advanced->encryptString($data['females']);
+ $data['females'] = $whmcs->encryptString($data['females']);
}
- // Encript data sick_leave_males.
- if (isset($data['sick_leave_males']) && $advancedkey)
+ // Encrypt data sick_leave_males.
+ if (isset($data['sick_leave_males']) && $whmcskey)
{
- $data['sick_leave_males'] = $advanced->encryptString($data['sick_leave_males']);
+ $data['sick_leave_males'] = $whmcs->encryptString($data['sick_leave_males']);
}
- // Encript data medical_turnovers_males.
- if (isset($data['medical_turnovers_males']) && $advancedkey)
+ // Encrypt data medical_turnovers_females.
+ if (isset($data['medical_turnovers_females']) && $whmcskey)
{
- $data['medical_turnovers_males'] = $advanced->encryptString($data['medical_turnovers_males']);
+ $data['medical_turnovers_females'] = $whmcs->encryptString($data['medical_turnovers_females']);
}
- // Encript data total_salary.
- if (isset($data['total_salary']) && $advancedkey)
+ // Encrypt data sick_leave_females.
+ if (isset($data['sick_leave_females']) && $whmcskey)
{
- $data['total_salary'] = $advanced->encryptString($data['total_salary']);
+ $data['sick_leave_females'] = $whmcs->encryptString($data['sick_leave_females']);
}
- // Encript data sick_leave_females.
- if (isset($data['sick_leave_females']) && $advancedkey)
+ // Encrypt data total_salary.
+ if (isset($data['total_salary']) && $whmcskey)
{
- $data['sick_leave_females'] = $advanced->encryptString($data['sick_leave_females']);
+ $data['total_salary'] = $whmcs->encryptString($data['total_salary']);
}
- // Encript data total_healthcare.
- if (isset($data['total_healthcare']) && $advancedkey)
+ // Encrypt data total_healthcare.
+ if (isset($data['total_healthcare']) && $whmcskey)
{
- $data['total_healthcare'] = $advanced->encryptString($data['total_healthcare']);
+ $data['total_healthcare'] = $whmcs->encryptString($data['total_healthcare']);
}
- // Encript data males.
- if (isset($data['males']) && $advancedkey)
+ // Encrypt data males.
+ if (isset($data['males']) && $whmcskey)
{
- $data['males'] = $advanced->encryptString($data['males']);
+ $data['males'] = $whmcs->encryptString($data['males']);
}
// make sure new company does not get locked
@@ -1406,7 +1401,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
}
// Alter the uniqe field for save as copy
- if ($input->get('task') == 'save2copy')
+ if ($input->get('task') === 'save2copy')
{
// Automatic handling of other uniqe fields
$uniqeFields = $this->getUniqeFields();
@@ -1451,9 +1446,9 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
}
/**
- * Method to change the title & alias.
+ * Method to change the title
*
- * @param string $title The title.
+ * @param string $title The title.
*
* @return array Contains the modified title and alias.
*
diff --git a/admin/models/companyresults.php b/admin/models/companyresults.php
index 6b2cc00a..b810748d 100644
--- a/admin/models/companyresults.php
+++ b/admin/models/companyresults.php
@@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
- @created 15th June, 2012
+ @version @update number 60 of this MVC
+ @build 14th October, 2017
+ @created 13th August, 2015
@package Cost Benefit Projection
@subpackage companyresults.php
@author Llewellyn van der Merwe
@@ -40,11 +40,11 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
*
* @var strings
*/
- protected $user;
- protected $userId;
- protected $guest;
- protected $groups;
- protected $levels;
+ protected $user;
+ protected $userId;
+ protected $guest;
+ protected $groups;
+ protected $levels;
protected $app;
protected $input;
protected $uikitComp;
@@ -65,10 +65,10 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
*/
protected function populateState()
{
- $this->app = JFactory::getApplication();
- $this->input = $this->app->input;
+ $this->app = JFactory::getApplication();
+ $this->input = $this->app->input;
// Get the item main id
- $id = $this->input->getInt('id', null);
+ $id = $this->input->getInt('id', null);
$this->setState('companyresults.id', $id);
// Load the parameters.
@@ -85,21 +85,21 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
public function getItem($pk = null)
{
$this->user = JFactory::getUser();
- // check if this user has permission to access item
- if (!$this->user->authorise('companyresults.access', 'com_costbenefitprojection'))
- {
+ // check if this user has permission to access item
+ if (!$this->user->authorise('companyresults.access', 'com_costbenefitprojection'))
+ {
$app = JFactory::getApplication();
$app->enqueueMessage(JText::_('Not authorised!'), 'error');
- // redirect away if not a correct (TODO for now we go to default view)
+ // redirect away if not a correct to cPanel/default view
$app->redirect('index.php?option=com_costbenefitprojection');
return false;
- }
- $this->userId = $this->user->get('id');
- $this->guest = $this->user->get('guest');
- $this->groups = $this->user->get('groups');
- $this->authorisedGroups = $this->user->getAuthorisedGroups();
- $this->levels = $this->user->getAuthorisedViewLevels();
- $this->initSet = true;
+ }
+ $this->userId = $this->user->get('id');
+ $this->guest = $this->user->get('guest');
+ $this->groups = $this->user->get('groups');
+ $this->authorisedGroups = $this->user->getAuthorisedGroups();
+ $this->levels = $this->user->getAuthorisedViewLevels();
+ $this->initSet = true;
$pk = (!empty($pk)) ? $pk : (int) $this->getState('companyresults.id');
@@ -109,7 +109,7 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
$companies = CostbenefitprojectionHelper::hisCompanies($this->userId);
if (!CostbenefitprojectionHelper::checkArray($companies) || !in_array($pk,$companies))
{
- JError::raiseWarning(500, JText::_('Access denied!'));
+ JError::raiseWarning(500, JText::_('COM_COSTBENEFITPROJECTION_ACCESS_DENIED'));
// redirect away if not a correct (TODO for now we go to default view)
$app = JFactory::getApplication();
if ($app->isAdmin())
@@ -134,10 +134,10 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
try
{
- // Get the advanced encription.
- $advancedkey = CostbenefitprojectionHelper::getCryptKey('advanced');
- // Get the encription object.
- $advanced = new FOFEncryptAes($advancedkey, 256);
+ // Get the whmcs encryption.
+ $whmcskey = CostbenefitprojectionHelper::getCryptKey('whmcs');
+ // Get the encryption object.
+ $whmcs = new FOFEncryptAes($whmcskey);
// Get a db connection.
$db = JFactory::getDbo();
@@ -176,58 +176,64 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
$app->redirect('index.php?option=com_costbenefitprojection');
return false;
}
- if (!empty($data->medical_turnovers_females) && $advancedkey && !is_numeric($data->medical_turnovers_females) && $data->medical_turnovers_females === base64_encode(base64_decode($data->medical_turnovers_females, true)))
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
+ if (!empty($data->medical_turnovers_males) && $whmcskey && !is_numeric($data->medical_turnovers_males) && $data->medical_turnovers_males === base64_encode(base64_decode($data->medical_turnovers_males, true)))
{
- // Decode medical_turnovers_females
- $data->medical_turnovers_females = rtrim($advanced->decryptString($data->medical_turnovers_females), "\0");
+ // Decode medical_turnovers_males
+ $data->medical_turnovers_males = rtrim($whmcs->decryptString($data->medical_turnovers_males), "\0");
}
- if (!empty($data->females) && $advancedkey && !is_numeric($data->females) && $data->females === base64_encode(base64_decode($data->females, true)))
+ if (!empty($data->females) && $whmcskey && !is_numeric($data->females) && $data->females === base64_encode(base64_decode($data->females, true)))
{
// Decode females
- $data->females = rtrim($advanced->decryptString($data->females), "\0");
+ $data->females = rtrim($whmcs->decryptString($data->females), "\0");
}
- if (!empty($data->sick_leave_males) && $advancedkey && !is_numeric($data->sick_leave_males) && $data->sick_leave_males === base64_encode(base64_decode($data->sick_leave_males, true)))
- {
- // Decode sick_leave_males
- $data->sick_leave_males = rtrim($advanced->decryptString($data->sick_leave_males), "\0");
- }
- if (CostbenefitprojectionHelper::checkString($data->causesrisks))
+ if (CostbenefitprojectionHelper::checkJson($data->causesrisks))
{
// Decode causesrisks
$data->causesrisks = json_decode($data->causesrisks, true);
}
- if (!empty($data->medical_turnovers_males) && $advancedkey && !is_numeric($data->medical_turnovers_males) && $data->medical_turnovers_males === base64_encode(base64_decode($data->medical_turnovers_males, true)))
+ if (!empty($data->sick_leave_males) && $whmcskey && !is_numeric($data->sick_leave_males) && $data->sick_leave_males === base64_encode(base64_decode($data->sick_leave_males, true)))
{
- // Decode medical_turnovers_males
- $data->medical_turnovers_males = rtrim($advanced->decryptString($data->medical_turnovers_males), "\0");
+ // Decode sick_leave_males
+ $data->sick_leave_males = rtrim($whmcs->decryptString($data->sick_leave_males), "\0");
}
- if (!empty($data->total_salary) && $advancedkey && !is_numeric($data->total_salary) && $data->total_salary === base64_encode(base64_decode($data->total_salary, true)))
+ if (!empty($data->medical_turnovers_females) && $whmcskey && !is_numeric($data->medical_turnovers_females) && $data->medical_turnovers_females === base64_encode(base64_decode($data->medical_turnovers_females, true)))
{
- // Decode total_salary
- $data->total_salary = rtrim($advanced->decryptString($data->total_salary), "\0");
+ // Decode medical_turnovers_females
+ $data->medical_turnovers_females = rtrim($whmcs->decryptString($data->medical_turnovers_females), "\0");
}
- if (!empty($data->sick_leave_females) && $advancedkey && !is_numeric($data->sick_leave_females) && $data->sick_leave_females === base64_encode(base64_decode($data->sick_leave_females, true)))
+ if (!empty($data->sick_leave_females) && $whmcskey && !is_numeric($data->sick_leave_females) && $data->sick_leave_females === base64_encode(base64_decode($data->sick_leave_females, true)))
{
// Decode sick_leave_females
- $data->sick_leave_females = rtrim($advanced->decryptString($data->sick_leave_females), "\0");
+ $data->sick_leave_females = rtrim($whmcs->decryptString($data->sick_leave_females), "\0");
}
- if (!empty($data->total_healthcare) && $advancedkey && !is_numeric($data->total_healthcare) && $data->total_healthcare === base64_encode(base64_decode($data->total_healthcare, true)))
+ if (!empty($data->total_salary) && $whmcskey && !is_numeric($data->total_salary) && $data->total_salary === base64_encode(base64_decode($data->total_salary, true)))
+ {
+ // Decode total_salary
+ $data->total_salary = rtrim($whmcs->decryptString($data->total_salary), "\0");
+ }
+ if (!empty($data->total_healthcare) && $whmcskey && !is_numeric($data->total_healthcare) && $data->total_healthcare === base64_encode(base64_decode($data->total_healthcare, true)))
{
// Decode total_healthcare
- $data->total_healthcare = rtrim($advanced->decryptString($data->total_healthcare), "\0");
+ $data->total_healthcare = rtrim($whmcs->decryptString($data->total_healthcare), "\0");
}
- if (!empty($data->males) && $advancedkey && !is_numeric($data->males) && $data->males === base64_encode(base64_decode($data->males, true)))
+ if (!empty($data->males) && $whmcskey && !is_numeric($data->males) && $data->males === base64_encode(base64_decode($data->males, true)))
{
// Decode males
- $data->males = rtrim($advanced->decryptString($data->males), "\0");
+ $data->males = rtrim($whmcs->decryptString($data->males), "\0");
}
- if (CostbenefitprojectionHelper::checkString($data->country_causesrisks))
+ if (CostbenefitprojectionHelper::checkJson($data->country_causesrisks))
{
// Decode country_causesrisks
$data->country_causesrisks = json_decode($data->country_causesrisks, true);
}
- // Make sure the content prepare plugins fire on country_publicaddress.
- $data->country_publicaddress = JHtml::_('content.prepare',$data->country_publicaddress);
+ // Make sure the content prepare plugins fire on country_publicaddress
+ $_country_publicaddress = new stdClass();
+ $_country_publicaddress->text =& $data->country_publicaddress; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (country_publicaddress) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.companyresults.country_publicaddress', &$_country_publicaddress, &$this->params, 0));
// Checking if country_publicaddress has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($data->country_publicaddress,$this->uikitComp);
// set the global causesrisks value.
@@ -304,7 +310,9 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
{
return false;
}
+ // Get where b.published is 1
$query->where('b.published = 1');
+ // Get where b.year is $this->a_datayear
$query->where('b.year = ' . $db->quote($this->a_datayear));
$query->order('b.ordering ASC');
@@ -315,6 +323,9 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
return $db->loadObjectList();
}
return false;
@@ -340,6 +351,7 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
array('id','causerisk','reference','yld_scaling_factor_males','yld_scaling_factor_females','mortality_scaling_factor_males','mortality_scaling_factor_females','presenteeism_scaling_factor_males','presenteeism_scaling_factor_females','health_scaling_factor','published')));
$query->from($db->quoteName('#__costbenefitprojection_scaling_factor', 'c'));
$query->where('c.company = ' . $db->quote($id));
+ // Get where c.published is 1
$query->where('c.published = 1');
$query->order('c.ordering ASC');
@@ -350,13 +362,19 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
$items = $db->loadObjectList();
// Convert the parameter fields into objects.
foreach ($items as $nr => &$item)
{
- // Make sure the content prepare plugins fire on reference.
- $item->reference = JHtml::_('content.prepare',$item->reference);
+ // Make sure the content prepare plugins fire on reference
+ $_reference = new stdClass();
+ $_reference->text =& $item->reference; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (reference) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.companyresults.reference', &$_reference, &$this->params, 0));
// Checking if reference has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->reference,$this->uikitComp);
}
@@ -385,6 +403,7 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
array('id','name','type','coverage','duration','share','description','reference','intervention','published','created_by','modified_by','created','modified')));
$query->from($db->quoteName('#__costbenefitprojection_intervention', 'd'));
$query->where('d.company = ' . $db->quote($id));
+ // Get where d.published is 1
$query->where('d.published = 1');
$query->order('d.ordering ASC');
@@ -395,13 +414,19 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
$items = $db->loadObjectList();
// Convert the parameter fields into objects.
foreach ($items as $nr => &$item)
{
- // Make sure the content prepare plugins fire on reference.
- $item->reference = JHtml::_('content.prepare',$item->reference);
+ // Make sure the content prepare plugins fire on reference
+ $_reference = new stdClass();
+ $_reference->text =& $item->reference; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (reference) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.companyresults.reference', &$_reference, &$this->params, 0));
// Checking if reference has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->reference,$this->uikitComp);
}
@@ -432,7 +457,7 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
// Check if $causesrisks is an array with values.
$array = $causesrisks;
- if (isset($array) && CostbenefitprojectionHelper::checkArray($array))
+ if (isset($array) && CostbenefitprojectionHelper::checkArray($array, true))
{
$query->where('g.id IN (' . implode(',', $array) . ')');
}
@@ -448,6 +473,9 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
return $db->loadObjectList();
}
return false;
@@ -483,7 +511,9 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
{
return false;
}
+ // Get where bb.published is 1
$query->where('bb.published = 1');
+ // Get where bb.year is $this->e_datayear
$query->where('bb.year = ' . $db->quote($this->e_datayear));
$query->order('bb.ordering ASC');
@@ -494,6 +524,9 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
return $db->loadObjectList();
}
return false;
@@ -521,7 +554,7 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
// Check if $causesrisks is an array with values.
$array = $causesrisks;
- if (isset($array) && CostbenefitprojectionHelper::checkArray($array))
+ if (isset($array) && CostbenefitprojectionHelper::checkArray($array, true))
{
$query->where('gg.id IN (' . implode(',', $array) . ')');
}
@@ -537,13 +570,19 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
$items = $db->loadObjectList();
// Convert the parameter fields into objects.
foreach ($items as $nr => &$item)
{
- // Make sure the content prepare plugins fire on description.
- $item->description = JHtml::_('content.prepare',$item->description);
+ // Make sure the content prepare plugins fire on description
+ $_description = new stdClass();
+ $_description->text =& $item->description; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (description) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.companyresults.description', &$_description, &$this->params, 0));
// Checking if description has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->description,$this->uikitComp);
}
@@ -572,6 +611,7 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
array('id','name','type','coverage','duration','share','description','reference','intervention','published','created_by','modified_by','created','modified')));
$query->from($db->quoteName('#__costbenefitprojection_intervention', 'dd'));
$query->where('dd.country = ' . $db->quote($country));
+ // Get where dd.published is 1
$query->where('dd.published = 1');
// Reset the query using our newly populated query object.
@@ -581,17 +621,26 @@ class CostbenefitprojectionModelCompanyresults extends JModelItem
// check if there was data returned
if ($db->getNumRows())
{
+ // Load the JEvent Dispatcher
+ JPluginHelper::importPlugin('content');
+ $this->_dispatcher = JEventDispatcher::getInstance();
$items = $db->loadObjectList();
// Convert the parameter fields into objects.
foreach ($items as $nr => &$item)
{
- // Make sure the content prepare plugins fire on description.
- $item->description = JHtml::_('content.prepare',$item->description);
+ // Make sure the content prepare plugins fire on description
+ $_description = new stdClass();
+ $_description->text =& $item->description; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (description) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.companyresults.description', &$_description, &$this->params, 0));
+ // Make sure the content prepare plugins fire on reference
+ $_reference = new stdClass();
+ $_reference->text =& $item->reference; // value must be in text
+ // Since all values are now in text (Joomla Limitation), we also add the field name (reference) to context
+ $this->_dispatcher->trigger("onContentPrepare", array('com_costbenefitprojection.companyresults.reference', &$_reference, &$this->params, 0));
// Checking if description has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->description,$this->uikitComp);
- // Make sure the content prepare plugins fire on reference.
- $item->reference = JHtml::_('content.prepare',$item->reference);
// Checking if reference has uikit components that must be loaded.
$this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->reference,$this->uikitComp);
}
diff --git a/admin/models/costbenefitprojection.php b/admin/models/costbenefitprojection.php
index c99f0457..237df016 100644
--- a/admin/models/costbenefitprojection.php
+++ b/admin/models/costbenefitprojection.php
@@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
- @version 3.4.2
- @build 16th August, 2016
+ @version 3.4.3
+ @build 5th May, 2018
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php
@@ -31,16 +31,18 @@ class CostbenefitprojectionModelCostbenefitprojection extends JModelList
{
public function getIcons()
{
- // load user for access menus
- $user = JFactory::getUser();
- // reset icon array
+ // load user for access menus
+ $user = JFactory::getUser();
+ // reset icon array
$icons = array();
- // view groups array
+ // view groups array
$viewGroups = array(
'main' => array('png.company.add', 'png.companies', 'png.service_provider.add', 'png.service_providers', 'png.countries', 'png.causerisk.add', 'png.causesrisks', 'png.health_data_sets', 'png.scaling_factor.add', 'png.scaling_factors', 'png.intervention.add', 'png.interventions', 'png.currencies', 'png.help_documents')
);
// view access array
$viewAccess = array(
+ 'companyresults.access' => 'companyresults.access',
+ 'combinedresults.access' => 'combinedresults.access',
'combinedresults.dashboard_list' => 'combinedresults.dashboard_list',
'company.create' => 'company.create',
'companies.access' => 'company.access',
@@ -92,93 +94,109 @@ class CostbenefitprojectionModelCostbenefitprojection extends JModelList
'help_document.access' => 'help_document.access',
'help_documents.submenu' => 'help_document.submenu',
'help_documents.dashboard_list' => 'help_document.dashboard_list');
+ // loop over the $views
foreach($viewGroups as $group => $views)
- {
+ {
$i = 0;
if (CostbenefitprojectionHelper::checkArray($views))
- {
+ {
foreach($views as $view)
{
$add = false;
- if (strpos($view,'.') !== false)
- {
- $dwd = explode('.', $view);
- if (count($dwd) == 3)
- {
- list($type, $name, $action) = $dwd;
- }
- elseif (count($dwd) == 2)
- {
- list($type, $name) = $dwd;
- $action = false;
- }
- if ($action)
- {
- $viewName = $name;
- switch($action)
- {
- case 'add':
- $url ='index.php?option=com_costbenefitprojection&view='.$name.'&layout=edit';
- $image = $name.'_'.$action.'.'.$type;
- $alt = $name.' '.$action;
- $name = 'COM_COSTBENEFITPROJECTION_DASHBOARD_'.CostbenefitprojectionHelper::safeString($name,'U').'_ADD';
- $add = true;
- break;
- default:
- $url = 'index.php?option=com_categories&view=categories&extension=com_costbenefitprojection.'.$name;
- $image = $name.'_'.$action.'.'.$type;
- $alt = $name.' '.$action;
- $name = 'COM_COSTBENEFITPROJECTION_DASHBOARD_'.CostbenefitprojectionHelper::safeString($name,'U').'_'.CostbenefitprojectionHelper::safeString($action,'U');
- break;
- }
- }
- else
- {
- $viewName = $name;
- $alt = $name;
- $url = 'index.php?option=com_costbenefitprojection&view='.$name;
- $image = $name.'.'.$type;
- $name = 'COM_COSTBENEFITPROJECTION_DASHBOARD_'.CostbenefitprojectionHelper::safeString($name,'U');
- $hover = false;
- }
- }
- else
- {
- $viewName = $view;
- $alt = $view;
- $url = 'index.php?option=com_costbenefitprojection&view='.$view;
- $image = $view.'.png';
- $name = ucwords($view).'