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)
+ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
+ *First Build*: 15th June, 2012
+ *Last Build*: 12th June, 2019
+ *Last Build*: 14th August, 2019
+ *Version*: 3.4.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **82923**
+ *Line count*: **84429**
+ *File count*: **585**
+ *Folder count*: **103**

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php
@ -1752,38 +1752,42 @@ abstract class CostbenefitprojectionHelper
/**
* 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
$name = self::safeString($name);
// full path
$fullPath = $path . '/models';
// set prefix
$prefix = $component.'Model';
// full path to models
$fullPathModels = $path . '/models';
// 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
$model = JModelLegacy::getInstance($name, $prefix, $config);
$model = JModelLegacy::getInstance($name, $Component . 'Model', $config);
// if model not found (strange)
if ($model == false)
{
jimport('joomla.filesystem.file');
// get file path
$filePath = $path.'/'.$name.'.php';
$fullPath = $fullPath.'/'.$name.'.php';
$filePath = $path . '/' . $name . '.php';
$fullPathModel = $fullPathModels . '/' . $name . '.php';
// check if it exists
if (JFile::exists($filePath))
{
// get the file
require_once $filePath;
}
elseif (JFile::exists($fullPath))
elseif (JFile::exists($fullPathModel))
{
// get the file
require_once $fullPath;
require_once $fullPathModel;
}
// build class names
$modelClass = $prefix.$name;
$modelClass = $Component . 'Model' . $name;
if (class_exists($modelClass))
{
// initialize the model

View File

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

View File

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

View File

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

View File

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

View File

@ -117,11 +117,11 @@ COM_COSTBENEFITPROJECTION_CLOSE_NEW="Close & New"
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS="Combined results"
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS_DESC="The companies combine results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access Combined Results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access combined results."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE="Combined Results (Site) Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC=" Allows the users in this group to access site combined results."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site combined results."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS_DESC="Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST="Combined Results Dashboard List"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Combined Results"
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_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access Company Results"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access company results."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE="Company results (Site) Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC=" Allows the users in this group to access site company results."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site company results."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS="Company Results Companies Button Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS_DESC="Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS="Company Results Edit Button Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS_DESC=" Allows the users in this group to access the edit button."
COM_COSTBENEFITPROJECTION_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_SCALING_FACTORS="Scaling Factors"
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_LABEL="Admin Settings"
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_AUTHOR="Author Info"
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_LABEL="Chart Area Width"
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_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."
@ -465,7 +465,7 @@ COM_COSTBENEFITPROJECTION_COST_MORTALITY="Cost Mortality"
COM_COSTBENEFITPROJECTION_COST_OF_INTERVENTION="Cost of Intervention"
COM_COSTBENEFITPROJECTION_COST_OF_PROBLEM="Cost of Problem"
COM_COSTBENEFITPROJECTION_COST_PERCENT="Cost Percent"
COM_COSTBENEFITPROJECTION_COST_PER_EMPLOYEE="Cost Per Employee"
COM_COSTBENEFITPROJECTION_COST_PER_EMPLOYEE="Cost per Employee"
COM_COSTBENEFITPROJECTION_COST_PRESENTEEISM_DUE_TO_MORBIDITY="Cost Presenteeism (due to morbidity)"
COM_COSTBENEFITPROJECTION_COST_SUMMARY="Cost Summary"
COM_COSTBENEFITPROJECTION_COUNTRIES="Countries"
@ -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_DATE_DESC="The date this Country was modified."
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_HINT="Name Here"
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_COVERAGE_S="Coverage: %s"
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_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_CURRENCIES="Currencies"
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_LABEL="Created Date"
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_LABEL="Decimal place"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_MESSAGE="Error! Please add currency decimal place here."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL="Decimalsymbol"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_DESCRIPTION=" The symbol used to separate the integer part of a decimal number from its fractional part is called the decimal point."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_DESCRIPTION="The symbol used to separate the integer part of a decimal number from its fractional part is called the decimal point."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_HINT="."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_LABEL="Decimal symbol"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_MESSAGE="Error! Please add currency decimal symbol here."
@ -791,7 +791,7 @@ COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_HINT="N$"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_LABEL="Symbol"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_MESSAGE="Error! Please add currency symbol here."
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS="Thousands"
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_HINT=" "
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_HINT=""
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_LABEL="Thousands separator"
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_MESSAGE="Error! Please add currency thousands separator here."
COM_COSTBENEFITPROJECTION_CURRENCY_VERSION_DESC="A count of the number of times this Currency has been revised."
@ -826,14 +826,14 @@ COM_COSTBENEFITPROJECTION_DURATION_S_YEAR="Duration: %s year"
COM_COSTBENEFITPROJECTION_DURATION_S_YEARS="Duration: %s years"
COM_COSTBENEFITPROJECTION_EDIT="Edit"
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_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_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_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_FEMALES_AGE_GROUP="Females Age Group"
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_DESCRIPTION="Select the help 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_HINT="http://www.example.com"
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_IMPORT_CONTINUE="Continue"
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_FAILED="Import Failed"
COM_COSTBENEFITPROJECTION_IMPORT_FILE_COLUMNS="File Columns"
@ -1264,7 +1264,7 @@ COM_COSTBENEFITPROJECTION_NET_BENEFIT="Net Benefit"
COM_COSTBENEFITPROJECTION_NEW="New"
COM_COSTBENEFITPROJECTION_NEW_ISSUE="New Issue"
COM_COSTBENEFITPROJECTION_NONE_LOADED="None Loaded..."
COM_COSTBENEFITPROJECTION_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
COM_COSTBENEFITPROJECTION_NOT_FOUND_OR_ACCESS_DENIED="Not found, or access denied."
COM_COSTBENEFITPROJECTION_NO_ACCESS_GRANTED="No Access Granted!"
COM_COSTBENEFITPROJECTION_NO_CAUSERISK_SELECTED="No Cause/Risk Selected"
COM_COSTBENEFITPROJECTION_NO_COMPANIES_SELECTED="No companies selected!"
@ -1531,7 +1531,7 @@ COM_COSTBENEFITPROJECTION_USER_COUNTRY_GROUP="User Country Group"
COM_COSTBENEFITPROJECTION_USER_MEMBER_GROUP="User Member Group"
COM_COSTBENEFITPROJECTION_USER_SERVICE_PROVIDER_GROUP="User Service Provider Group"
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_VIEW_MORE_ISSUES_ON_GITHUB="View more issues on Github"
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_DESC="Allows the users in this group to submenu of causerisk"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access Combined Results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access combined results."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE="Combined Results (Site) Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC=" Allows the users in this group to access site combined results."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site combined results."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS_DESC="Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST="Combined Results Dashboard List"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Combined Results"
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_DESC="Allows the users in this group to submenu of company"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access Company Results"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access company results."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE="Company results (Site) Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC=" Allows the users in this group to access site company results."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site company results."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS="Company Results Companies Button Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS_DESC="Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS="Company Results Edit Button Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS_DESC=" Allows the users in this group to access the edit button."
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS_DESC="Allows the users in this group to access the edit button."
COM_COSTBENEFITPROJECTION_CONFIGURATION="Cost Benefit Projection Configuration"
COM_COSTBENEFITPROJECTION_COUNTRIES_ACCESS="Countries Access"
COM_COSTBENEFITPROJECTION_COUNTRIES_ACCESS_DESC="Allows the users in this group to access access countries"
@ -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_DESC="Allows the users in this group to submenu of country"
COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE="cPanel (Site) Access"
COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE_DESC=" Allows the users in this group to access site cpanel."
COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE_DESC="Allows the users in this group to access site cpanel."
COM_COSTBENEFITPROJECTION_CREATE_ACCOUNT_GIZ_ACCESS_SITE="Create Account (giz) (Site) Access"
COM_COSTBENEFITPROJECTION_CREATE_ACCOUNT_GIZ_ACCESS_SITE_DESC=" Allows the users in this group to access site create account giz."
COM_COSTBENEFITPROJECTION_CREATE_ACCOUNT_GIZ_ACCESS_SITE_DESC="Allows the users in this group to access site create account giz."
COM_COSTBENEFITPROJECTION_CURRENCIES_ACCESS="Currencies Access"
COM_COSTBENEFITPROJECTION_CURRENCIES_ACCESS_DESC="Allows the users in this group to access access currencies"
COM_COSTBENEFITPROJECTION_CURRENCIES_BATCH_USE="Currencies Batch Use"
@ -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_DESC="Allows the users in this group to submenu of currency"
COM_COSTBENEFITPROJECTION_EDIT_CREATED_BY="Edit Created By"
COM_COSTBENEFITPROJECTION_EDIT_CREATED_BY_DESC=" Allows users in this group to edit created by."
COM_COSTBENEFITPROJECTION_EDIT_CREATED_BY_DESC="Allows users in this group to edit created by."
COM_COSTBENEFITPROJECTION_EDIT_CREATED_DATE="Edit Created Date"
COM_COSTBENEFITPROJECTION_EDIT_CREATED_DATE_DESC=" Allows users in this group to edit created date."
COM_COSTBENEFITPROJECTION_EDIT_CREATED_DATE_DESC="Allows users in this group to edit created date."
COM_COSTBENEFITPROJECTION_EDIT_VERSIONS="Edit Version"
COM_COSTBENEFITPROJECTION_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions."
COM_COSTBENEFITPROJECTION_EDIT_VERSIONS_DESC="Allows users in this group to edit versions."
COM_COSTBENEFITPROJECTION_EXPORT_DATA="Export Data"
COM_COSTBENEFITPROJECTION_EXPORT_DATA_DESC=" Allows users in this group to export data."
COM_COSTBENEFITPROJECTION_EXPORT_DATA_DESC="Allows users in this group to export data."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_ACCESS="Health Data Sets Access"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_ACCESS_DESC="Allows the users in this group to access access health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_BATCH_USE="Health Data Sets Batch Use"
@ -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_DESC="Allows the users in this group to submenu of help document"
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_DESC="Allows the users in this group to access access interventions"
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_DESC="Allows the users in this group to submenu of service provider"
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
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage batchselection.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'ref',
'alias'
@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_fullwidth.php
@ -20,15 +20,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
@ -20,18 +20,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
@ -20,18 +20,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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_by',
'modified',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'ordering',
'access',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_fullwidth.php
@ -20,15 +20,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_left.php
@ -20,18 +20,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_right.php
@ -20,18 +20,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'cause_risk_selection_note'
);
@ -30,6 +41,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'user',
'department'
@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'email',
'country',
@ -33,9 +44,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'total_salary',
'total_healthcare',
@ -39,9 +50,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_under.php
@ -20,15 +20,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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_by',
'modified',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'ordering',
'access',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_left.php
@ -20,18 +20,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_right.php
@ -20,18 +20,31 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php
@ -20,15 +20,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'alias',
'user'
@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'datayear',
'worldzone',
@ -33,9 +44,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'presenteeism',
'medical_turnovers',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_totals_left.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'maleyld'
);
@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_totals_right.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'femaleyld'
);
@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage public_details_fullwidth.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'publicemail',
'publicnumber',
@ -32,6 +43,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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_by',
'modified',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'ordering',
'access',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'alias'
);
@ -30,6 +41,7 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'numericcode',
'symbol',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'decimalsymbol',
'positivestyle',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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_by',
'modified',
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'ordering',
'access',
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@ -20,15 +20,27 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?>
<?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 endforeach; ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 3.4.x
@build 12th June, 2019
@build 14th August, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
@ -20,9 +20,20 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get the form
$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',
'maleyld'
);
@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
<?php endif; ?>

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