Updated with JCB v2.10.0

This commit is contained in:
Llewellyn van der Merwe 2019-08-14 04:20:32 +02:00
parent e0ca73380e
commit 587166aa30
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
434 changed files with 2229 additions and 723 deletions

View File

@ -22,11 +22,11 @@ max_input_vars = 5000
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/) + *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
+ *First Build*: 15th June, 2012 + *First Build*: 15th June, 2012
+ *Last Build*: 12th June, 2019 + *Last Build*: 14th August, 2019
+ *Version*: 3.4.x + *Version*: 3.4.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **82923** + *Line count*: **84429**
+ *File count*: **585** + *File count*: **585**
+ *Folder count*: **103** + *Folder count*: **103**

View File

@ -22,11 +22,11 @@ max_input_vars = 5000
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/) + *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
+ *First Build*: 15th June, 2012 + *First Build*: 15th June, 2012
+ *Last Build*: 12th June, 2019 + *Last Build*: 14th August, 2019
+ *Version*: 3.4.x + *Version*: 3.4.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **82923** + *Line count*: **84429**
+ *File count*: **585** + *File count*: **585**
+ *Folder count*: **103** + *Folder count*: **103**

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage admin.css @subpackage admin.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causerisk.css @subpackage causerisk.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causesrisks.css @subpackage causesrisks.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage combinedresults.css @subpackage combinedresults.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companies.css @subpackage companies.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage company.css @subpackage company.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companyresults.css @subpackage companyresults.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage countries.css @subpackage countries.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage country.css @subpackage country.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage currencies.css @subpackage currencies.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage currency.css @subpackage currency.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage dashboard.css @subpackage dashboard.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data.css @subpackage health_data.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data_sets.css @subpackage health_data_sets.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help_document.css @subpackage help_document.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help_documents.css @subpackage help_documents.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage intervention.css @subpackage intervention.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage interventions.css @subpackage interventions.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factor.css @subpackage scaling_factor.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factors.css @subpackage scaling_factors.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_provider.css @subpackage service_provider.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_providers.css @subpackage service_providers.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage admin.js @subpackage admin.js

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage controller.php @subpackage controller.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage ajax.json.php @subpackage ajax.json.php
@ -47,7 +47,7 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
// Check Token! // Check Token!
$token = JSession::getFormToken(); $token = JSession::getFormToken();
$call_token = $jinput->get('token', 0, 'ALNUM'); $call_token = $jinput->get('token', 0, 'ALNUM');
if($token == $call_token) if($jinput->get($token, 0, 'ALNUM') || $token === $call_token)
{ {
$task = $this->getTask(); $task = $this->getTask();
switch($task) switch($task)

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causerisk.php @subpackage causerisk.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causesrisks.php @subpackage causesrisks.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage combinedresults.php @subpackage combinedresults.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companies.php @subpackage companies.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage company.php @subpackage company.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companyresults.php @subpackage companyresults.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage costbenefitprojection.php @subpackage costbenefitprojection.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage countries.php @subpackage countries.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage country.php @subpackage country.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage currencies.php @subpackage currencies.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage currency.php @subpackage currency.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data.php @subpackage health_data.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data_sets.php @subpackage health_data_sets.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help.php @subpackage help.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help_document.php @subpackage help_document.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help_documents.php @subpackage help_documents.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage import.php @subpackage import.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage import_health_data_sets.php @subpackage import_health_data_sets.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage intervention.php @subpackage intervention.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage interventions.php @subpackage interventions.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factor.php @subpackage scaling_factor.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factors.php @subpackage scaling_factors.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_provider.php @subpackage service_provider.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_providers.php @subpackage service_providers.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage costbenefitprojection.php @subpackage costbenefitprojection.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage costbenefitprojection.php @subpackage costbenefitprojection.php
@ -1752,38 +1752,42 @@ abstract class CostbenefitprojectionHelper
/** /**
* Get any component's model * Get any component's model
**/ **/
public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $component = 'Costbenefitprojection', $config = array()) public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $Component = 'Costbenefitprojection', $config = array())
{ {
// fix the name // fix the name
$name = self::safeString($name); $name = self::safeString($name);
// full path // full path to models
$fullPath = $path . '/models'; $fullPathModels = $path . '/models';
// set prefix
$prefix = $component.'Model';
// load the model file // load the model file
JModelLegacy::addIncludePath($fullPath, $prefix); JModelLegacy::addIncludePath($fullPathModels, $Component . 'Model');
// make sure the table path is loaded
if (!isset($config['table_path']) || !self::checkString($config['table_path']))
{
// This is the JCB default path to tables in Joomla 3.x
$config['table_path'] = JPATH_ADMINISTRATOR . '/components/com_' . strtolower($Component) . '/tables';
}
// get instance // get instance
$model = JModelLegacy::getInstance($name, $prefix, $config); $model = JModelLegacy::getInstance($name, $Component . 'Model', $config);
// if model not found (strange) // if model not found (strange)
if ($model == false) if ($model == false)
{ {
jimport('joomla.filesystem.file'); jimport('joomla.filesystem.file');
// get file path // get file path
$filePath = $path.'/'.$name.'.php'; $filePath = $path . '/' . $name . '.php';
$fullPath = $fullPath.'/'.$name.'.php'; $fullPathModel = $fullPathModels . '/' . $name . '.php';
// check if it exists // check if it exists
if (JFile::exists($filePath)) if (JFile::exists($filePath))
{ {
// get the file // get the file
require_once $filePath; require_once $filePath;
} }
elseif (JFile::exists($fullPath)) elseif (JFile::exists($fullPathModel))
{ {
// get the file // get the file
require_once $fullPath; require_once $fullPathModel;
} }
// build class names // build class names
$modelClass = $prefix.$name; $modelClass = $Component . 'Model' . $name;
if (class_exists($modelClass)) if (class_exists($modelClass))
{ {
// initialize the model // initialize the model

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage headercheck.php @subpackage headercheck.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage batch_.php @subpackage batch_.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage sum.php @subpackage sum.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage sumcombine.php @subpackage sumcombine.php

View File

@ -117,11 +117,11 @@ COM_COSTBENEFITPROJECTION_CLOSE_NEW="Close & New"
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS="Combined results" COM_COSTBENEFITPROJECTION_COMBINEDRESULTS="Combined results"
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS_DESC="The companies combine results" COM_COSTBENEFITPROJECTION_COMBINEDRESULTS_DESC="The companies combine results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access" 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="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_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="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_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="Combined Results Dashboard List"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Combined Results" COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Combined Results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_OF="Combined results of" COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_OF="Combined results of"
@ -292,13 +292,13 @@ COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_LABEL="Medical Turnover Co
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_MESSAGE="Error! Please add medical turnover cost factor here." COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_MESSAGE="Error! Please add medical turnover cost factor here."
COM_COSTBENEFITPROJECTION_COMPANY_PUBLISHING="Publishing" COM_COSTBENEFITPROJECTION_COMPANY_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access" 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="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_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="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_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="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_COMPANY_RESULTS_EDIT_BUTTON_ACCESS_DESC="Allows the users in this group to access the edit button."
COM_COSTBENEFITPROJECTION_COMPANY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Company to customise the alias." COM_COSTBENEFITPROJECTION_COMPANY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Company to customise the alias."
COM_COSTBENEFITPROJECTION_COMPANY_SCALING_FACTORS="Scaling Factors" COM_COSTBENEFITPROJECTION_COMPANY_SCALING_FACTORS="Scaling Factors"
COM_COSTBENEFITPROJECTION_COMPANY_SERVICE_PROVIDER="Service Provider" COM_COSTBENEFITPROJECTION_COMPANY_SERVICE_PROVIDER="Service Provider"
@ -344,7 +344,7 @@ COM_COSTBENEFITPROJECTION_COMPANY_WORKING_DAYS_LABEL="Work Days"
COM_COSTBENEFITPROJECTION_CONFIG_ADMIN_CHART_NOTE_DESC="The following settings are used on the back-end of the site called (admin)." COM_COSTBENEFITPROJECTION_CONFIG_ADMIN_CHART_NOTE_DESC="The following settings are used on the back-end of the site called (admin)."
COM_COSTBENEFITPROJECTION_CONFIG_ADMIN_CHART_NOTE_LABEL="Admin Settings" COM_COSTBENEFITPROJECTION_CONFIG_ADMIN_CHART_NOTE_LABEL="Admin Settings"
COM_COSTBENEFITPROJECTION_CONFIG_ADVANCEDMEMBERGROUP_DESCRIPTION="Select the member advanced group/s" COM_COSTBENEFITPROJECTION_CONFIG_ADVANCEDMEMBERGROUP_DESCRIPTION="Select the member advanced group/s"
COM_COSTBENEFITPROJECTION_CONFIG_ADVANCEDMEMBERGROUP_LABEL=" User Member Advanced Group" COM_COSTBENEFITPROJECTION_CONFIG_ADVANCEDMEMBERGROUP_LABEL="User Member Advanced Group"
COM_COSTBENEFITPROJECTION_CONFIG_ALMOST_FLAT_LOAD="Almost Flat" COM_COSTBENEFITPROJECTION_CONFIG_ALMOST_FLAT_LOAD="Almost Flat"
COM_COSTBENEFITPROJECTION_CONFIG_AUTHOR="Author Info" COM_COSTBENEFITPROJECTION_CONFIG_AUTHOR="Author Info"
COM_COSTBENEFITPROJECTION_CONFIG_AUTHOR_EMAIL_DESC="The email address of the author of this component." COM_COSTBENEFITPROJECTION_CONFIG_AUTHOR_EMAIL_DESC="The email address of the author of this component."
@ -425,7 +425,7 @@ COM_COSTBENEFITPROJECTION_CONFIG_MAINWIDTH_DESC="Set the width of the entire cha
COM_COSTBENEFITPROJECTION_CONFIG_MAINWIDTH_HINT="1000" COM_COSTBENEFITPROJECTION_CONFIG_MAINWIDTH_HINT="1000"
COM_COSTBENEFITPROJECTION_CONFIG_MAINWIDTH_LABEL="Chart Area Width" COM_COSTBENEFITPROJECTION_CONFIG_MAINWIDTH_LABEL="Chart Area Width"
COM_COSTBENEFITPROJECTION_CONFIG_MEMBERBASICGROUP_DESCRIPTION="Select the member basic group/s" COM_COSTBENEFITPROJECTION_CONFIG_MEMBERBASICGROUP_DESCRIPTION="Select the member basic group/s"
COM_COSTBENEFITPROJECTION_CONFIG_MEMBERBASICGROUP_LABEL=" User Member Basic Group" COM_COSTBENEFITPROJECTION_CONFIG_MEMBERBASICGROUP_LABEL="User Member Basic Group"
COM_COSTBENEFITPROJECTION_CONFIG_NO="No" COM_COSTBENEFITPROJECTION_CONFIG_NO="No"
COM_COSTBENEFITPROJECTION_CONFIG_ONLY_EXTRA="Only Extra" 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_DESCRIPTION="Please set the path where the result json files should be stored, make sure it is outside the public folder."
@ -465,7 +465,7 @@ COM_COSTBENEFITPROJECTION_COST_MORTALITY="Cost Mortality"
COM_COSTBENEFITPROJECTION_COST_OF_INTERVENTION="Cost of Intervention" COM_COSTBENEFITPROJECTION_COST_OF_INTERVENTION="Cost of Intervention"
COM_COSTBENEFITPROJECTION_COST_OF_PROBLEM="Cost of Problem" COM_COSTBENEFITPROJECTION_COST_OF_PROBLEM="Cost of Problem"
COM_COSTBENEFITPROJECTION_COST_PERCENT="Cost Percent" 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_PRESENTEEISM_DUE_TO_MORBIDITY="Cost Presenteeism (due to morbidity)"
COM_COSTBENEFITPROJECTION_COST_SUMMARY="Cost Summary" COM_COSTBENEFITPROJECTION_COST_SUMMARY="Cost Summary"
COM_COSTBENEFITPROJECTION_COUNTRIES="Countries" COM_COSTBENEFITPROJECTION_COUNTRIES="Countries"
@ -583,7 +583,7 @@ COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_BY_DESC="The last user that modified
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_BY_LABEL="Modified By" COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_BY_LABEL="Modified By"
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_DATE_DESC="The date this Country was modified." COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_DATE_DESC="The date this Country was modified."
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_DATE_LABEL="Modified Date" COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_DATE_LABEL="Modified Date"
COM_COSTBENEFITPROJECTION_COUNTRY_NAME="Name" COM_COSTBENEFITPROJECTION_COUNTRY_NAME="Country Name"
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_DESCRIPTION="Enter Name Here" COM_COSTBENEFITPROJECTION_COUNTRY_NAME_DESCRIPTION="Enter Name Here"
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_HINT="Name Here" COM_COSTBENEFITPROJECTION_COUNTRY_NAME_HINT="Name Here"
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_LABEL="Name" COM_COSTBENEFITPROJECTION_COUNTRY_NAME_LABEL="Name"
@ -679,9 +679,9 @@ COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_MESSAGE="Error! Please add zone code
COM_COSTBENEFITPROJECTION_COUNTRY_YEAR_LABEL="Data Year" COM_COSTBENEFITPROJECTION_COUNTRY_YEAR_LABEL="Data Year"
COM_COSTBENEFITPROJECTION_COVERAGE_S="Coverage: %s" COM_COSTBENEFITPROJECTION_COVERAGE_S="Coverage: %s"
COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE="cPanel (Site) Access" 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_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="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_CREATE_ACCOUNT_GIZ_ACCESS_SITE_DESC="Allows the users in this group to access site create account giz."
COM_COSTBENEFITPROJECTION_CREATE_NEW_S="Create New %s" COM_COSTBENEFITPROJECTION_CREATE_NEW_S="Create New %s"
COM_COSTBENEFITPROJECTION_CURRENCIES="Currencies" COM_COSTBENEFITPROJECTION_CURRENCIES="Currencies"
COM_COSTBENEFITPROJECTION_CURRENCIES_ACCESS="Currencies Access" COM_COSTBENEFITPROJECTION_CURRENCIES_ACCESS="Currencies Access"
@ -741,12 +741,12 @@ COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_BY_LABEL="Created By"
COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_DATE_DESC="The date this Currency was created." COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_DATE_DESC="The date this Currency was created."
COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_DATE_LABEL="Created Date" COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_DATE_LABEL="Created Date"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE="Decimalplace" 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_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_HINT="2"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_LABEL="Decimal place" COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_LABEL="Decimal place"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_MESSAGE="Error! Please add currency decimal place here." COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_MESSAGE="Error! Please add currency decimal place here."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL="Decimalsymbol" 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_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_HINT="."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_LABEL="Decimal symbol" COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_LABEL="Decimal symbol"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_MESSAGE="Error! Please add currency decimal symbol here." COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_MESSAGE="Error! Please add currency decimal symbol here."
@ -791,7 +791,7 @@ COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_HINT="N$"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_LABEL="Symbol" COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_LABEL="Symbol"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_MESSAGE="Error! Please add currency symbol here." COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_MESSAGE="Error! Please add currency symbol here."
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS="Thousands" COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS="Thousands"
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_HINT=" " COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_HINT=""
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_LABEL="Thousands separator" COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_LABEL="Thousands separator"
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_MESSAGE="Error! Please add currency thousands separator here." 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_DESC="A count of the number of times this Currency has been revised."
@ -826,14 +826,14 @@ COM_COSTBENEFITPROJECTION_DURATION_S_YEAR="Duration: %s year"
COM_COSTBENEFITPROJECTION_DURATION_S_YEARS="Duration: %s years" COM_COSTBENEFITPROJECTION_DURATION_S_YEARS="Duration: %s years"
COM_COSTBENEFITPROJECTION_EDIT="Edit" COM_COSTBENEFITPROJECTION_EDIT="Edit"
COM_COSTBENEFITPROJECTION_EDIT_CREATED_BY="Edit Created By" 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_BY_DESC="Allows users in this group to edit created by."
COM_COSTBENEFITPROJECTION_EDIT_CREATED_DATE="Edit Created Date" 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_CREATED_DATE_DESC="Allows users in this group to edit created date."
COM_COSTBENEFITPROJECTION_EDIT_S="Edit %s" COM_COSTBENEFITPROJECTION_EDIT_S="Edit %s"
COM_COSTBENEFITPROJECTION_EDIT_VERSIONS="Edit Version" COM_COSTBENEFITPROJECTION_EDIT_VERSIONS="Edit Version"
COM_COSTBENEFITPROJECTION_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions." COM_COSTBENEFITPROJECTION_EDIT_VERSIONS_DESC="Allows users in this group to edit versions."
COM_COSTBENEFITPROJECTION_EXPORT_DATA="Export Data" COM_COSTBENEFITPROJECTION_EXPORT_DATA="Export Data"
COM_COSTBENEFITPROJECTION_EXPORT_DATA_DESC=" Allows users in this group to export data." COM_COSTBENEFITPROJECTION_EXPORT_DATA_DESC="Allows users in this group to export data."
COM_COSTBENEFITPROJECTION_EXPORT_FAILED="Export Failed" COM_COSTBENEFITPROJECTION_EXPORT_FAILED="Export Failed"
COM_COSTBENEFITPROJECTION_FEMALES_AGE_GROUP="Females Age Group" COM_COSTBENEFITPROJECTION_FEMALES_AGE_GROUP="Females Age Group"
COM_COSTBENEFITPROJECTION_GENDER_ID="Gender id" COM_COSTBENEFITPROJECTION_GENDER_ID="Gender id"
@ -1071,7 +1071,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_MESSAGE="Error! Please add title h
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE="Type" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE="Type"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_DESCRIPTION="Select the help type." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_DESCRIPTION="Select the help type."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_LABEL="Type" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_LABEL="Type"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL="Url" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL="URL"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_DESCRIPTION="Enter url" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_DESCRIPTION="Enter url"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_HINT="http://www.example.com" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_HINT="http://www.example.com"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_LABEL="URL" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_LABEL="URL"
@ -1082,7 +1082,7 @@ COM_COSTBENEFITPROJECTION_HELP_MANAGER="Help"
COM_COSTBENEFITPROJECTION_HERE_YOU_CAN_SET_THE_IMPORT_RELATIONSHIPS_TO_ALL_ADVANCED_DATA_MAPPING_AND_RECONSTRUCTION="Here you can set the import relationships to all advanced data mapping and reconstruction." COM_COSTBENEFITPROJECTION_HERE_YOU_CAN_SET_THE_IMPORT_RELATIONSHIPS_TO_ALL_ADVANCED_DATA_MAPPING_AND_RECONSTRUCTION="Here you can set the import relationships to all advanced data mapping and reconstruction."
COM_COSTBENEFITPROJECTION_IMPORT_CONTINUE="Continue" COM_COSTBENEFITPROJECTION_IMPORT_CONTINUE="Continue"
COM_COSTBENEFITPROJECTION_IMPORT_DATA="Import Data" COM_COSTBENEFITPROJECTION_IMPORT_DATA="Import Data"
COM_COSTBENEFITPROJECTION_IMPORT_DATA_DESC=" Allows users in this group to import data." COM_COSTBENEFITPROJECTION_IMPORT_DATA_DESC="Allows users in this group to import data."
COM_COSTBENEFITPROJECTION_IMPORT_ERROR="Import error." COM_COSTBENEFITPROJECTION_IMPORT_ERROR="Import error."
COM_COSTBENEFITPROJECTION_IMPORT_FAILED="Import Failed" COM_COSTBENEFITPROJECTION_IMPORT_FAILED="Import Failed"
COM_COSTBENEFITPROJECTION_IMPORT_FILE_COLUMNS="File Columns" COM_COSTBENEFITPROJECTION_IMPORT_FILE_COLUMNS="File Columns"
@ -1264,7 +1264,7 @@ COM_COSTBENEFITPROJECTION_NET_BENEFIT="Net Benefit"
COM_COSTBENEFITPROJECTION_NEW="New" COM_COSTBENEFITPROJECTION_NEW="New"
COM_COSTBENEFITPROJECTION_NEW_ISSUE="New Issue" COM_COSTBENEFITPROJECTION_NEW_ISSUE="New Issue"
COM_COSTBENEFITPROJECTION_NONE_LOADED="None Loaded..." 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_ACCESS_GRANTED="No Access Granted!"
COM_COSTBENEFITPROJECTION_NO_CAUSERISK_SELECTED="No Cause/Risk Selected" COM_COSTBENEFITPROJECTION_NO_CAUSERISK_SELECTED="No Cause/Risk Selected"
COM_COSTBENEFITPROJECTION_NO_COMPANIES_SELECTED="No companies selected!" COM_COSTBENEFITPROJECTION_NO_COMPANIES_SELECTED="No companies selected!"
@ -1531,7 +1531,7 @@ COM_COSTBENEFITPROJECTION_USER_COUNTRY_GROUP="User Country Group"
COM_COSTBENEFITPROJECTION_USER_MEMBER_GROUP="User Member Group" COM_COSTBENEFITPROJECTION_USER_MEMBER_GROUP="User Member Group"
COM_COSTBENEFITPROJECTION_USER_SERVICE_PROVIDER_GROUP="User Service Provider Group" COM_COSTBENEFITPROJECTION_USER_SERVICE_PROVIDER_GROUP="User Service Provider Group"
COM_COSTBENEFITPROJECTION_USE_BATCH="Use Batch" COM_COSTBENEFITPROJECTION_USE_BATCH="Use Batch"
COM_COSTBENEFITPROJECTION_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method." COM_COSTBENEFITPROJECTION_USE_BATCH_DESC="Allows users in this group to use batch copy/update method."
COM_COSTBENEFITPROJECTION_VERSION="Version" COM_COSTBENEFITPROJECTION_VERSION="Version"
COM_COSTBENEFITPROJECTION_VIEW_MORE_ISSUES_ON_GITHUB="View more issues on Github" COM_COSTBENEFITPROJECTION_VIEW_MORE_ISSUES_ON_GITHUB="View more issues on Github"
COM_COSTBENEFITPROJECTION_WARNING="Warning" COM_COSTBENEFITPROJECTION_WARNING="Warning"

View File

@ -26,11 +26,11 @@ COM_COSTBENEFITPROJECTION_CAUSESRISKS_IMPORT_DESC="Allows the users in this grou
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU="Causesrisks Submenu" COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU="Causesrisks Submenu"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU_DESC="Allows the users in this group to submenu of causerisk" COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU_DESC="Allows the users in this group to submenu of causerisk"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access" 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="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_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="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_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="Combined Results Dashboard List"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Combined Results" COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Combined Results"
COM_COSTBENEFITPROJECTION_COMPANIES_ACCESS="Companies Access" COM_COSTBENEFITPROJECTION_COMPANIES_ACCESS="Companies Access"
@ -84,13 +84,13 @@ COM_COSTBENEFITPROJECTION_COMPANIES_IMPORT_DESC="Allows the users in this group
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU="Companies Submenu" COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU="Companies Submenu"
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU_DESC="Allows the users in this group to submenu of company" COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU_DESC="Allows the users in this group to submenu of company"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access" 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="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_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="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_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="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_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_CONFIGURATION="Cost Benefit Projection Configuration"
COM_COSTBENEFITPROJECTION_COUNTRIES_ACCESS="Countries Access" COM_COSTBENEFITPROJECTION_COUNTRIES_ACCESS="Countries Access"
COM_COSTBENEFITPROJECTION_COUNTRIES_ACCESS_DESC="Allows the users in this group to access access countries" COM_COSTBENEFITPROJECTION_COUNTRIES_ACCESS_DESC="Allows the users in this group to access access countries"
@ -117,9 +117,9 @@ COM_COSTBENEFITPROJECTION_COUNTRIES_IMPORT_DESC="Allows the users in this group
COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU="Countries Submenu" COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU="Countries Submenu"
COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU_DESC="Allows the users in this group to submenu of country" COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU_DESC="Allows the users in this group to submenu of country"
COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE="cPanel (Site) Access" 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_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="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_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="Currencies Access"
COM_COSTBENEFITPROJECTION_CURRENCIES_ACCESS_DESC="Allows the users in this group to access access currencies" 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="Currencies Batch Use"
@ -145,13 +145,13 @@ COM_COSTBENEFITPROJECTION_CURRENCIES_IMPORT_DESC="Allows the users in this group
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU="Currencies Submenu" COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU="Currencies Submenu"
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU_DESC="Allows the users in this group to submenu of currency" COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU_DESC="Allows the users in this group to submenu of currency"
COM_COSTBENEFITPROJECTION_EDIT_CREATED_BY="Edit Created By" 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_BY_DESC="Allows users in this group to edit created by."
COM_COSTBENEFITPROJECTION_EDIT_CREATED_DATE="Edit Created Date" 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_CREATED_DATE_DESC="Allows users in this group to edit created date."
COM_COSTBENEFITPROJECTION_EDIT_VERSIONS="Edit Version" COM_COSTBENEFITPROJECTION_EDIT_VERSIONS="Edit Version"
COM_COSTBENEFITPROJECTION_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions." COM_COSTBENEFITPROJECTION_EDIT_VERSIONS_DESC="Allows users in this group to edit versions."
COM_COSTBENEFITPROJECTION_EXPORT_DATA="Export Data" COM_COSTBENEFITPROJECTION_EXPORT_DATA="Export Data"
COM_COSTBENEFITPROJECTION_EXPORT_DATA_DESC=" Allows users in this group to 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="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_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="Health Data Sets Batch Use"
@ -215,7 +215,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_IMPORT_DESC="Allows the users in this g
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu" COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to submenu of help document" COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to submenu of help document"
COM_COSTBENEFITPROJECTION_IMPORT_DATA="Import Data" COM_COSTBENEFITPROJECTION_IMPORT_DATA="Import Data"
COM_COSTBENEFITPROJECTION_IMPORT_DATA_DESC=" Allows users in this group to 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="Interventions Access"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_ACCESS_DESC="Allows the users in this group to access access interventions" 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="Interventions Batch Use"
@ -306,4 +306,4 @@ COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_IMPORT_DESC="Allows the users in thi
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU="Service Providers Submenu" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU="Service Providers Submenu"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU_DESC="Allows the users in this group to submenu of service provider" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU_DESC="Allows the users in this group to submenu of service provider"
COM_COSTBENEFITPROJECTION_USE_BATCH="Use Batch" COM_COSTBENEFITPROJECTION_USE_BATCH="Use Batch"
COM_COSTBENEFITPROJECTION_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method." COM_COSTBENEFITPROJECTION_USE_BATCH_DESC="Allows users in this group to use batch copy/update method."

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage batchselection.php @subpackage batchselection.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'name', 'name',
'ref', 'ref',
'alias' 'alias'
@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -39,3 +51,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_fullwidth.php @subpackage details_fullwidth.php
@ -20,15 +20,27 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'description' 'description'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_left.php @subpackage details_left.php
@ -20,18 +20,31 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'importname' 'importname'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_right.php @subpackage details_right.php
@ -20,18 +20,31 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'import_id' 'import_id'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publishing.php @subpackage publishing.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'created', 'created',
'created_by', 'created_by',
'modified', 'modified',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publlshing.php @subpackage publlshing.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'published', 'published',
'ordering', 'ordering',
'access', 'access',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_fullwidth.php @subpackage age_groups_percentages_fullwidth.php
@ -20,15 +20,27 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'age_groups_note' 'age_groups_note'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_left.php @subpackage age_groups_percentages_left.php
@ -20,18 +20,31 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'percentmale' 'percentmale'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_right.php @subpackage age_groups_percentages_right.php
@ -20,18 +20,31 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'percentfemale' 'percentfemale'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php @subpackage causerisk_selection_fullwidth.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'causesrisks', 'causesrisks',
'cause_risk_selection_note' 'cause_risk_selection_note'
); );
@ -30,6 +41,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -38,3 +50,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'name', 'name',
'user', 'user',
'department' 'department'
@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -39,3 +51,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_left.php @subpackage details_left.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'per', 'per',
'email', 'email',
'country', 'country',
@ -33,9 +44,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_right.php @subpackage details_right.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'working_days', 'working_days',
'total_salary', 'total_salary',
'total_healthcare', 'total_healthcare',
@ -39,9 +50,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_under.php @subpackage details_under.php
@ -20,15 +20,27 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'not_required' 'not_required'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage interventions_fullwidth.php @subpackage interventions_fullwidth.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publishing.php @subpackage publishing.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'created', 'created',
'created_by', 'created_by',
'modified', 'modified',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publlshing.php @subpackage publlshing.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'published', 'published',
'ordering', 'ordering',
'access', 'access',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factors_fullwidth.php @subpackage scaling_factors_fullwidth.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_left.php @subpackage age_groups_percentages_left.php
@ -20,18 +20,31 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'percentmale' 'percentmale'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_right.php @subpackage age_groups_percentages_right.php
@ -20,18 +20,31 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'percentfemale' 'percentfemale'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php @subpackage causerisk_selection_fullwidth.php
@ -20,15 +20,27 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'causesrisks' 'causesrisks'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companies_fullwidth.php @subpackage companies_fullwidth.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'name', 'name',
'alias', 'alias',
'user' 'user'
@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -39,3 +51,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_left.php @subpackage details_left.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'currency', 'currency',
'datayear', 'datayear',
'worldzone', 'worldzone',
@ -33,9 +44,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_right.php @subpackage details_right.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'working_days', 'working_days',
'presenteeism', 'presenteeism',
'medical_turnovers', 'medical_turnovers',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data_totals_left.php @subpackage health_data_totals_left.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'maledeath', 'maledeath',
'maleyld' 'maleyld'
); );
@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data_totals_right.php @subpackage health_data_totals_right.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'femaledeath', 'femaledeath',
'femaleyld' 'femaleyld'
); );
@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage interventions_fullwidth.php @subpackage interventions_fullwidth.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage public_details_fullwidth.php @subpackage public_details_fullwidth.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'publicname', 'publicname',
'publicemail', 'publicemail',
'publicnumber', 'publicnumber',
@ -32,6 +43,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -40,3 +52,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publishing.php @subpackage publishing.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'created', 'created',
'created_by', 'created_by',
'modified', 'modified',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publlshing.php @subpackage publlshing.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'published', 'published',
'ordering', 'ordering',
'access', 'access',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_providers_fullwidth.php @subpackage service_providers_fullwidth.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'name', 'name',
'alias' 'alias'
); );
@ -30,6 +41,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -38,3 +50,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_left.php @subpackage details_left.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'codethree', 'codethree',
'numericcode', 'numericcode',
'symbol', 'symbol',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_right.php @subpackage details_right.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'decimalplace', 'decimalplace',
'decimalsymbol', 'decimalsymbol',
'positivestyle', 'positivestyle',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publishing.php @subpackage publishing.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'created', 'created',
'created_by', 'created_by',
'modified', 'modified',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publlshing.php @subpackage publlshing.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'published', 'published',
'ordering', 'ordering',
'access', 'access',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage databreakdownmalefemale.php @subpackage databreakdownmalefemale.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@ -20,15 +20,27 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'causerisk' 'causerisk'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 12th June, 2019 @build 14th August, 2019
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_left.php @subpackage details_left.php
@ -20,9 +20,20 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php
// example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
'maledeath', 'maledeath',
'maleyld' 'maleyld'
); );
@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>

Some files were not shown because too many files have changed in this diff Show More