Updated with JCB v2.10.0
This commit is contained in:
parent
e0ca73380e
commit
587166aa30
|
@ -22,11 +22,11 @@ max_input_vars = 5000
|
||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
|
+ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
|
||||||
+ *First Build*: 15th June, 2012
|
+ *First Build*: 15th June, 2012
|
||||||
+ *Last Build*: 12th June, 2019
|
+ *Last Build*: 14th August, 2019
|
||||||
+ *Version*: 3.4.x
|
+ *Version*: 3.4.x
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
+ *Line count*: **82923**
|
+ *Line count*: **84429**
|
||||||
+ *File count*: **585**
|
+ *File count*: **585**
|
||||||
+ *Folder count*: **103**
|
+ *Folder count*: **103**
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,11 @@ max_input_vars = 5000
|
||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
|
+ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
|
||||||
+ *First Build*: 15th June, 2012
|
+ *First Build*: 15th June, 2012
|
||||||
+ *Last Build*: 12th June, 2019
|
+ *Last Build*: 14th August, 2019
|
||||||
+ *Version*: 3.4.x
|
+ *Version*: 3.4.x
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
+ *Line count*: **82923**
|
+ *Line count*: **84429**
|
||||||
+ *File count*: **585**
|
+ *File count*: **585**
|
||||||
+ *Folder count*: **103**
|
+ *Folder count*: **103**
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage admin.css
|
@subpackage admin.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage causerisk.css
|
@subpackage causerisk.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage causesrisks.css
|
@subpackage causesrisks.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage combinedresults.css
|
@subpackage combinedresults.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage companies.css
|
@subpackage companies.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage company.css
|
@subpackage company.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage companyresults.css
|
@subpackage companyresults.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage countries.css
|
@subpackage countries.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage country.css
|
@subpackage country.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage currencies.css
|
@subpackage currencies.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage currency.css
|
@subpackage currency.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage dashboard.css
|
@subpackage dashboard.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage health_data.css
|
@subpackage health_data.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage health_data_sets.css
|
@subpackage health_data_sets.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage help_document.css
|
@subpackage help_document.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage help_documents.css
|
@subpackage help_documents.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage intervention.css
|
@subpackage intervention.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage interventions.css
|
@subpackage interventions.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage scaling_factor.css
|
@subpackage scaling_factor.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage scaling_factors.css
|
@subpackage scaling_factors.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage service_provider.css
|
@subpackage service_provider.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage service_providers.css
|
@subpackage service_providers.css
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage admin.js
|
@subpackage admin.js
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage controller.php
|
@subpackage controller.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage ajax.json.php
|
@subpackage ajax.json.php
|
||||||
|
@ -47,7 +47,7 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
|
||||||
// Check Token!
|
// Check Token!
|
||||||
$token = JSession::getFormToken();
|
$token = JSession::getFormToken();
|
||||||
$call_token = $jinput->get('token', 0, 'ALNUM');
|
$call_token = $jinput->get('token', 0, 'ALNUM');
|
||||||
if($token == $call_token)
|
if($jinput->get($token, 0, 'ALNUM') || $token === $call_token)
|
||||||
{
|
{
|
||||||
$task = $this->getTask();
|
$task = $this->getTask();
|
||||||
switch($task)
|
switch($task)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage causerisk.php
|
@subpackage causerisk.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage causesrisks.php
|
@subpackage causesrisks.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage combinedresults.php
|
@subpackage combinedresults.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage companies.php
|
@subpackage companies.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage company.php
|
@subpackage company.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage companyresults.php
|
@subpackage companyresults.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage costbenefitprojection.php
|
@subpackage costbenefitprojection.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage countries.php
|
@subpackage countries.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage country.php
|
@subpackage country.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage currencies.php
|
@subpackage currencies.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage currency.php
|
@subpackage currency.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage health_data.php
|
@subpackage health_data.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage health_data_sets.php
|
@subpackage health_data_sets.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage help.php
|
@subpackage help.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage help_document.php
|
@subpackage help_document.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage help_documents.php
|
@subpackage help_documents.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage import.php
|
@subpackage import.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage import_health_data_sets.php
|
@subpackage import_health_data_sets.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage intervention.php
|
@subpackage intervention.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage interventions.php
|
@subpackage interventions.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage scaling_factor.php
|
@subpackage scaling_factor.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage scaling_factors.php
|
@subpackage scaling_factors.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage service_provider.php
|
@subpackage service_provider.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage service_providers.php
|
@subpackage service_providers.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage costbenefitprojection.php
|
@subpackage costbenefitprojection.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage costbenefitprojection.php
|
@subpackage costbenefitprojection.php
|
||||||
|
@ -1752,38 +1752,42 @@ abstract class CostbenefitprojectionHelper
|
||||||
/**
|
/**
|
||||||
* Get any component's model
|
* Get any component's model
|
||||||
**/
|
**/
|
||||||
public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $component = 'Costbenefitprojection', $config = array())
|
public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $Component = 'Costbenefitprojection', $config = array())
|
||||||
{
|
{
|
||||||
// fix the name
|
// fix the name
|
||||||
$name = self::safeString($name);
|
$name = self::safeString($name);
|
||||||
// full path
|
// full path to models
|
||||||
$fullPath = $path . '/models';
|
$fullPathModels = $path . '/models';
|
||||||
// set prefix
|
|
||||||
$prefix = $component.'Model';
|
|
||||||
// load the model file
|
// load the model file
|
||||||
JModelLegacy::addIncludePath($fullPath, $prefix);
|
JModelLegacy::addIncludePath($fullPathModels, $Component . 'Model');
|
||||||
|
// make sure the table path is loaded
|
||||||
|
if (!isset($config['table_path']) || !self::checkString($config['table_path']))
|
||||||
|
{
|
||||||
|
// This is the JCB default path to tables in Joomla 3.x
|
||||||
|
$config['table_path'] = JPATH_ADMINISTRATOR . '/components/com_' . strtolower($Component) . '/tables';
|
||||||
|
}
|
||||||
// get instance
|
// get instance
|
||||||
$model = JModelLegacy::getInstance($name, $prefix, $config);
|
$model = JModelLegacy::getInstance($name, $Component . 'Model', $config);
|
||||||
// if model not found (strange)
|
// if model not found (strange)
|
||||||
if ($model == false)
|
if ($model == false)
|
||||||
{
|
{
|
||||||
jimport('joomla.filesystem.file');
|
jimport('joomla.filesystem.file');
|
||||||
// get file path
|
// get file path
|
||||||
$filePath = $path . '/' . $name . '.php';
|
$filePath = $path . '/' . $name . '.php';
|
||||||
$fullPath = $fullPath.'/'.$name.'.php';
|
$fullPathModel = $fullPathModels . '/' . $name . '.php';
|
||||||
// check if it exists
|
// check if it exists
|
||||||
if (JFile::exists($filePath))
|
if (JFile::exists($filePath))
|
||||||
{
|
{
|
||||||
// get the file
|
// get the file
|
||||||
require_once $filePath;
|
require_once $filePath;
|
||||||
}
|
}
|
||||||
elseif (JFile::exists($fullPath))
|
elseif (JFile::exists($fullPathModel))
|
||||||
{
|
{
|
||||||
// get the file
|
// get the file
|
||||||
require_once $fullPath;
|
require_once $fullPathModel;
|
||||||
}
|
}
|
||||||
// build class names
|
// build class names
|
||||||
$modelClass = $prefix.$name;
|
$modelClass = $Component . 'Model' . $name;
|
||||||
if (class_exists($modelClass))
|
if (class_exists($modelClass))
|
||||||
{
|
{
|
||||||
// initialize the model
|
// initialize the model
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage headercheck.php
|
@subpackage headercheck.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage batch_.php
|
@subpackage batch_.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage sum.php
|
@subpackage sum.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage sumcombine.php
|
@subpackage sumcombine.php
|
||||||
|
|
|
@ -117,7 +117,7 @@ COM_COSTBENEFITPROJECTION_CLOSE_NEW="Close & New"
|
||||||
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS="Combined results"
|
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS="Combined results"
|
||||||
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS_DESC="The companies combine results"
|
COM_COSTBENEFITPROJECTION_COMBINEDRESULTS_DESC="The companies combine results"
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access"
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access"
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access Combined Results"
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access combined results."
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE="Combined Results (Site) Access"
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE="Combined Results (Site) Access"
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site combined results."
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site combined results."
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
|
||||||
|
@ -292,7 +292,7 @@ COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_LABEL="Medical Turnover Co
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_MESSAGE="Error! Please add medical turnover cost factor here."
|
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_MESSAGE="Error! Please add medical turnover cost factor here."
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_PUBLISHING="Publishing"
|
COM_COSTBENEFITPROJECTION_COMPANY_PUBLISHING="Publishing"
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access"
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access"
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access Company Results"
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access company results."
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE="Company results (Site) Access"
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE="Company results (Site) Access"
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site company results."
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site company results."
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS="Company Results Companies Button Access"
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS="Company Results Companies Button Access"
|
||||||
|
@ -465,7 +465,7 @@ COM_COSTBENEFITPROJECTION_COST_MORTALITY="Cost Mortality"
|
||||||
COM_COSTBENEFITPROJECTION_COST_OF_INTERVENTION="Cost of Intervention"
|
COM_COSTBENEFITPROJECTION_COST_OF_INTERVENTION="Cost of Intervention"
|
||||||
COM_COSTBENEFITPROJECTION_COST_OF_PROBLEM="Cost of Problem"
|
COM_COSTBENEFITPROJECTION_COST_OF_PROBLEM="Cost of Problem"
|
||||||
COM_COSTBENEFITPROJECTION_COST_PERCENT="Cost Percent"
|
COM_COSTBENEFITPROJECTION_COST_PERCENT="Cost Percent"
|
||||||
COM_COSTBENEFITPROJECTION_COST_PER_EMPLOYEE="Cost Per Employee"
|
COM_COSTBENEFITPROJECTION_COST_PER_EMPLOYEE="Cost per Employee"
|
||||||
COM_COSTBENEFITPROJECTION_COST_PRESENTEEISM_DUE_TO_MORBIDITY="Cost Presenteeism (due to morbidity)"
|
COM_COSTBENEFITPROJECTION_COST_PRESENTEEISM_DUE_TO_MORBIDITY="Cost Presenteeism (due to morbidity)"
|
||||||
COM_COSTBENEFITPROJECTION_COST_SUMMARY="Cost Summary"
|
COM_COSTBENEFITPROJECTION_COST_SUMMARY="Cost Summary"
|
||||||
COM_COSTBENEFITPROJECTION_COUNTRIES="Countries"
|
COM_COSTBENEFITPROJECTION_COUNTRIES="Countries"
|
||||||
|
@ -583,7 +583,7 @@ COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_BY_DESC="The last user that modified
|
||||||
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_BY_LABEL="Modified By"
|
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_BY_LABEL="Modified By"
|
||||||
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_DATE_DESC="The date this Country was modified."
|
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_DATE_DESC="The date this Country was modified."
|
||||||
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_DATE_LABEL="Modified Date"
|
COM_COSTBENEFITPROJECTION_COUNTRY_MODIFIED_DATE_LABEL="Modified Date"
|
||||||
COM_COSTBENEFITPROJECTION_COUNTRY_NAME="Name"
|
COM_COSTBENEFITPROJECTION_COUNTRY_NAME="Country Name"
|
||||||
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_DESCRIPTION="Enter Name Here"
|
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_DESCRIPTION="Enter Name Here"
|
||||||
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_HINT="Name Here"
|
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_HINT="Name Here"
|
||||||
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_LABEL="Name"
|
COM_COSTBENEFITPROJECTION_COUNTRY_NAME_LABEL="Name"
|
||||||
|
@ -1071,7 +1071,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_MESSAGE="Error! Please add title h
|
||||||
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE="Type"
|
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE="Type"
|
||||||
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_DESCRIPTION="Select the help type."
|
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_DESCRIPTION="Select the help type."
|
||||||
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_LABEL="Type"
|
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_LABEL="Type"
|
||||||
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL="Url"
|
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL="URL"
|
||||||
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_DESCRIPTION="Enter url"
|
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_DESCRIPTION="Enter url"
|
||||||
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_HINT="http://www.example.com"
|
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_HINT="http://www.example.com"
|
||||||
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_LABEL="URL"
|
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL_LABEL="URL"
|
||||||
|
@ -1264,7 +1264,7 @@ COM_COSTBENEFITPROJECTION_NET_BENEFIT="Net Benefit"
|
||||||
COM_COSTBENEFITPROJECTION_NEW="New"
|
COM_COSTBENEFITPROJECTION_NEW="New"
|
||||||
COM_COSTBENEFITPROJECTION_NEW_ISSUE="New Issue"
|
COM_COSTBENEFITPROJECTION_NEW_ISSUE="New Issue"
|
||||||
COM_COSTBENEFITPROJECTION_NONE_LOADED="None Loaded..."
|
COM_COSTBENEFITPROJECTION_NONE_LOADED="None Loaded..."
|
||||||
COM_COSTBENEFITPROJECTION_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
|
COM_COSTBENEFITPROJECTION_NOT_FOUND_OR_ACCESS_DENIED="Not found, or access denied."
|
||||||
COM_COSTBENEFITPROJECTION_NO_ACCESS_GRANTED="No Access Granted!"
|
COM_COSTBENEFITPROJECTION_NO_ACCESS_GRANTED="No Access Granted!"
|
||||||
COM_COSTBENEFITPROJECTION_NO_CAUSERISK_SELECTED="No Cause/Risk Selected"
|
COM_COSTBENEFITPROJECTION_NO_CAUSERISK_SELECTED="No Cause/Risk Selected"
|
||||||
COM_COSTBENEFITPROJECTION_NO_COMPANIES_SELECTED="No companies selected!"
|
COM_COSTBENEFITPROJECTION_NO_COMPANIES_SELECTED="No companies selected!"
|
||||||
|
|
|
@ -26,7 +26,7 @@ COM_COSTBENEFITPROJECTION_CAUSESRISKS_IMPORT_DESC="Allows the users in this grou
|
||||||
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU="Causesrisks Submenu"
|
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU="Causesrisks Submenu"
|
||||||
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU_DESC="Allows the users in this group to submenu of causerisk"
|
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU_DESC="Allows the users in this group to submenu of causerisk"
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access"
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access"
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access Combined Results"
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access combined results."
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE="Combined Results (Site) Access"
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE="Combined Results (Site) Access"
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site combined results."
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site combined results."
|
||||||
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
|
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
|
||||||
|
@ -84,7 +84,7 @@ COM_COSTBENEFITPROJECTION_COMPANIES_IMPORT_DESC="Allows the users in this group
|
||||||
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU="Companies Submenu"
|
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU="Companies Submenu"
|
||||||
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU_DESC="Allows the users in this group to submenu of company"
|
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU_DESC="Allows the users in this group to submenu of company"
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access"
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access"
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access Company Results"
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access company results."
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE="Company results (Site) Access"
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE="Company results (Site) Access"
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site company results."
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE_DESC="Allows the users in this group to access site company results."
|
||||||
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS="Company Results Companies Button Access"
|
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_COMPANIES_BUTTON_ACCESS="Company Results Companies Button Access"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage batchselection.php
|
@subpackage batchselection.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'name',
|
'name',
|
||||||
'ref',
|
'ref',
|
||||||
'alias'
|
'alias'
|
||||||
|
@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -39,3 +51,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
|
@ -20,15 +20,27 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'description'
|
'description'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -20,18 +20,31 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'importname'
|
'importname'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -20,18 +20,31 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'import_id'
|
'import_id'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
'modified',
|
'modified',
|
||||||
|
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'published',
|
'published',
|
||||||
'ordering',
|
'ordering',
|
||||||
'access',
|
'access',
|
||||||
|
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage age_groups_percentages_fullwidth.php
|
@subpackage age_groups_percentages_fullwidth.php
|
||||||
|
@ -20,15 +20,27 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'age_groups_note'
|
'age_groups_note'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage age_groups_percentages_left.php
|
@subpackage age_groups_percentages_left.php
|
||||||
|
@ -20,18 +20,31 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'percentmale'
|
'percentmale'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage age_groups_percentages_right.php
|
@subpackage age_groups_percentages_right.php
|
||||||
|
@ -20,18 +20,31 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'percentfemale'
|
'percentfemale'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage causerisk_selection_fullwidth.php
|
@subpackage causerisk_selection_fullwidth.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'causesrisks',
|
'causesrisks',
|
||||||
'cause_risk_selection_note'
|
'cause_risk_selection_note'
|
||||||
);
|
);
|
||||||
|
@ -30,6 +41,7 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -38,3 +50,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'name',
|
'name',
|
||||||
'user',
|
'user',
|
||||||
'department'
|
'department'
|
||||||
|
@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -39,3 +51,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'per',
|
'per',
|
||||||
'email',
|
'email',
|
||||||
'country',
|
'country',
|
||||||
|
@ -33,9 +44,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'working_days',
|
'working_days',
|
||||||
'total_salary',
|
'total_salary',
|
||||||
'total_healthcare',
|
'total_healthcare',
|
||||||
|
@ -39,9 +50,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
|
@ -20,15 +20,27 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'not_required'
|
'not_required'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage interventions_fullwidth.php
|
@subpackage interventions_fullwidth.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
'modified',
|
'modified',
|
||||||
|
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'published',
|
'published',
|
||||||
'ordering',
|
'ordering',
|
||||||
'access',
|
'access',
|
||||||
|
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage scaling_factors_fullwidth.php
|
@subpackage scaling_factors_fullwidth.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage age_groups_percentages_left.php
|
@subpackage age_groups_percentages_left.php
|
||||||
|
@ -20,18 +20,31 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'percentmale'
|
'percentmale'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage age_groups_percentages_right.php
|
@subpackage age_groups_percentages_right.php
|
||||||
|
@ -20,18 +20,31 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'percentfemale'
|
'percentfemale'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage causerisk_selection_fullwidth.php
|
@subpackage causerisk_selection_fullwidth.php
|
||||||
|
@ -20,15 +20,27 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'causesrisks'
|
'causesrisks'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage companies_fullwidth.php
|
@subpackage companies_fullwidth.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'name',
|
'name',
|
||||||
'alias',
|
'alias',
|
||||||
'user'
|
'user'
|
||||||
|
@ -31,6 +42,7 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -39,3 +51,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'currency',
|
'currency',
|
||||||
'datayear',
|
'datayear',
|
||||||
'worldzone',
|
'worldzone',
|
||||||
|
@ -33,9 +44,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'working_days',
|
'working_days',
|
||||||
'presenteeism',
|
'presenteeism',
|
||||||
'medical_turnovers',
|
'medical_turnovers',
|
||||||
|
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage health_data_totals_left.php
|
@subpackage health_data_totals_left.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'maledeath',
|
'maledeath',
|
||||||
'maleyld'
|
'maleyld'
|
||||||
);
|
);
|
||||||
|
@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage health_data_totals_right.php
|
@subpackage health_data_totals_right.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'femaledeath',
|
'femaledeath',
|
||||||
'femaleyld'
|
'femaleyld'
|
||||||
);
|
);
|
||||||
|
@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage interventions_fullwidth.php
|
@subpackage interventions_fullwidth.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage public_details_fullwidth.php
|
@subpackage public_details_fullwidth.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'publicname',
|
'publicname',
|
||||||
'publicemail',
|
'publicemail',
|
||||||
'publicnumber',
|
'publicnumber',
|
||||||
|
@ -32,6 +43,7 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -40,3 +52,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
'modified',
|
'modified',
|
||||||
|
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'published',
|
'published',
|
||||||
'ordering',
|
'ordering',
|
||||||
'access',
|
'access',
|
||||||
|
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage service_providers_fullwidth.php
|
@subpackage service_providers_fullwidth.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'name',
|
'name',
|
||||||
'alias'
|
'alias'
|
||||||
);
|
);
|
||||||
|
@ -30,6 +41,7 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -38,3 +50,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'codethree',
|
'codethree',
|
||||||
'numericcode',
|
'numericcode',
|
||||||
'symbol',
|
'symbol',
|
||||||
|
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'decimalplace',
|
'decimalplace',
|
||||||
'decimalsymbol',
|
'decimalsymbol',
|
||||||
'positivestyle',
|
'positivestyle',
|
||||||
|
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
'modified',
|
'modified',
|
||||||
|
@ -32,9 +43,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'published',
|
'published',
|
||||||
'ordering',
|
'ordering',
|
||||||
'access',
|
'access',
|
||||||
|
@ -34,9 +45,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage databreakdownmalefemale.php
|
@subpackage databreakdownmalefemale.php
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -20,15 +20,27 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'causerisk'
|
'causerisk'
|
||||||
);
|
);
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
|
@ -37,3 +49,4 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 3.4.x
|
@version 3.4.x
|
||||||
@build 12th June, 2019
|
@build 14th August, 2019
|
||||||
@created 15th June, 2012
|
@created 15th June, 2012
|
||||||
@package Cost Benefit Projection
|
@package Cost Benefit Projection
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -20,9 +20,20 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
// get the form
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
// get the layout fields override method name (from layout path/ID)
|
||||||
|
$layout_path_array = explode('.', $this->getLayoutId());
|
||||||
|
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||||
|
// this name combination of tab and layout in the method name is the only work around
|
||||||
|
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||||
|
// example of layout name: details_left.php
|
||||||
|
// example of method name: getFields_details_left()
|
||||||
|
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
|
// get the fields
|
||||||
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
'maledeath',
|
'maledeath',
|
||||||
'maleyld'
|
'maleyld'
|
||||||
);
|
);
|
||||||
|
@ -30,9 +41,11 @@ $fields = $displayData->get('fields') ?: array(
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<?php if ($fields && count((array) $fields)) :?>
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user