Updated with JCB v2.9.14

This commit is contained in:
Llewellyn van der Merwe 2019-04-04 13:51:37 +02:00
parent 46408b8b5b
commit c0a088dd00
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
449 changed files with 6800 additions and 15313 deletions

View File

@ -1,4 +1,4 @@
# Cost Benefit Projection (3.4.3)
# Cost Benefit Projection (3.4.x)
This is a [Joomla 3.x](http://www.joomla.org/) component.
@ -22,12 +22,12 @@ max_input_vars = 5000
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
+ *First Build*: 15th June, 2012
+ *Last Build*: 17th May, 2018
+ *Version*: 3.4.3
+ *Last Build*: 4th April, 2019
+ *Version*: 3.4.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **91317**
+ *File count*: **584**
+ *Line count*: **82804**
+ *File count*: **585**
+ *Folder count*: **103**
> This **component** was build with a Joomla [Automated Component Builder](https://www.vdm.io/joomla-component-builder).

View File

@ -1,4 +1,4 @@
# Cost Benefit Projection (3.4.3)
# Cost Benefit Projection (3.4.x)
This is a [Joomla 3.x](http://www.joomla.org/) component.
@ -22,12 +22,12 @@ max_input_vars = 5000
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Cost Benefit Projection](https://www.staffhealthcbp.com/)
+ *First Build*: 15th June, 2012
+ *Last Build*: 17th May, 2018
+ *Version*: 3.4.3
+ *Last Build*: 4th April, 2019
+ *Version*: 3.4.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **91317**
+ *File count*: **584**
+ *Line count*: **82804**
+ *File count*: **585**
+ *Folder count*: **103**
> This **component** was build with a Joomla [Automated Component Builder](https://www.vdm.io/joomla-component-builder).

View File

@ -173,9 +173,9 @@
<action name="company.edit.country" title="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY" description="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY_DESC" />
<action name="company.edit.service_provider" title="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER" description="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER_DESC" />
<action name="company.edit.per" title="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER" description="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER_DESC" />
<action name="company.edit.datayear" title="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR" description="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR_DESC" />
<action name="company.edit.causesrisks" title="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS" description="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS_DESC" />
<action name="company.edit.percentfemale" title="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE" description="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE_DESC" />
<action name="company.edit.datayear" title="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR" description="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR_DESC" />
<action name="company.edit.percentmale" title="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE" description="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE_DESC" />
<action name="company.version" title="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_VERSION" description="COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_VERSION_DESC" />
</section>

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage admin.css

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 24 of this MVC
@build 17th May, 2018
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 24 of this MVC
@build 17th May, 2018
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causesrisks.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 22 of this MVC
@build 14th October, 2017
@created 3rd October, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage combinedresults.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 101 of this MVC
@build 29th June, 2016
@created 15th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companies.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 101 of this MVC
@build 29th June, 2016
@created 15th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage company.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 60 of this MVC
@build 14th October, 2017
@created 13th August, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companyresults.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 54 of this MVC
@build 17th May, 2018
@created 25th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage countries.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 54 of this MVC
@build 17th May, 2018
@created 25th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage country.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 20 of this MVC
@build 17th May, 2018
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage currencies.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 20 of this MVC
@build 17th May, 2018
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage currency.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage dashboard.css

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 110 of this MVC
@build 17th May, 2018
@created 15th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 110 of this MVC
@build 17th May, 2018
@created 15th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_sets.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 20 of this MVC
@build 13th April, 2018
@created 13th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help_document.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 20 of this MVC
@build 13th April, 2018
@created 13th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help_documents.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 71 of this MVC
@build 12th November, 2016
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage intervention.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 71 of this MVC
@build 12th November, 2016
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 21 of this MVC
@build 16th August, 2016
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factor.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 21 of this MVC
@build 16th August, 2016
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factors.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 35 of this MVC
@build 22nd March, 2016
@created 25th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_provider.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,9 +2,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 35 of this MVC
@build 22nd March, 2016
@created 25th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_providers.css
@author Llewellyn van der Merwe <http://www.vdm.io>

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage admin.js

View File

@ -100,7 +100,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_LINK_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_LINK_DESC"
size="60"
default="https://www.swisstph.ch/en/staff/profile/people/patrick-hanlon/"
default="http://www.swisstph.ch/about-us/staff/detailview.html?tx_x4epersdb_pi1[showUid]=2267&amp;cHash=1b1c5db0808e04d3f1afe0f3a3f67998"
/>
<field name="useContributor1"
type="list"
@ -132,28 +132,28 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_DESC"
size="60"
default="GIZ EWP CBA"
default="Development Advisor"
/>
<field name="nameContributor2"
type="text"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_NAME_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_NAME_DESC"
size="60"
default="Swiss TPH"
default="Matthew Black"
/>
<field name="emailContributor2"
type="email"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_EMAIL_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_EMAIL_DESC"
size="60"
default=""
default="matthew.black@giz.de"
/>
<field name="linkContributor2"
type="url"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_LINK_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_LINK_DESC"
size="60"
default="https://www.swisstph.ch/en/projects/project-detail/project/cost-benefit-projection-tool-for-employee-health-programmes/"
default="http://www.giz.de"
/>
<field name="useContributor2"
type="list"
@ -185,21 +185,21 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_DESC"
size="60"
default="Development Advisor"
default="Associate Expert"
/>
<field name="nameContributor3"
type="text"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_NAME_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_NAME_DESC"
size="60"
default="Matthew Black"
default="Dr. Pascal Geldsetzer"
/>
<field name="emailContributor3"
type="email"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_EMAIL_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_EMAIL_DESC"
size="60"
default="matthew.black@giz.de"
default="pascal.geldsetzer@giz.de"
/>
<field name="linkContributor3"
type="url"
@ -238,32 +238,32 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_DESC"
size="60"
default="Associate Expert"
default=""
/>
<field name="nameContributor4"
type="text"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_NAME_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_NAME_DESC"
size="60"
default="Dr. Pascal Geldsetzer"
default=""
/>
<field name="emailContributor4"
type="email"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_EMAIL_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_EMAIL_DESC"
size="60"
default="pascal.geldsetzer@giz.de"
default=""
/>
<field name="linkContributor4"
type="url"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_LINK_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_LINK_DESC"
size="60"
default="http://www.giz.de"
default=""
/>
<field name="useContributor4"
type="list"
default="2"
default="0"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_DESC">
<option value="0">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_NONE</option>
@ -272,7 +272,7 @@
</field>
<field name="showContributor4"
type="list"
default="1"
default="0"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_DESC">
<option value="0">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_NONE</option>
@ -333,59 +333,6 @@
<option value="2">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_FRONT</option>
<option value="3">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_ALL</option>
</field>
<field type="spacer" name="spacerContributor6" hr="true" />
<field name="contributor6"
type="spacer"
class="text"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SIX"
/>
<field name="titleContributor6"
type="text"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_DESC"
size="60"
default=""
/>
<field name="nameContributor6"
type="text"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_NAME_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_NAME_DESC"
size="60"
default=""
/>
<field name="emailContributor6"
type="email"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_EMAIL_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_EMAIL_DESC"
size="60"
default=""
/>
<field name="linkContributor6"
type="url"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_LINK_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_LINK_DESC"
size="60"
default=""
/>
<field name="useContributor6"
type="list"
default="0"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_DESC">
<option value="0">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_NONE</option>
<option value="1">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_EMAIL</option>
<option value="2">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_USE_WWW</option>
</field>
<field name="showContributor6"
type="list"
default="0"
label="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_DESC">
<option value="0">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_NONE</option>
<option value="1">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_BACK</option>
<option value="2">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_FRONT</option>
<option value="3">COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_ALL</option>
</field>
</fieldset>
<fieldset
name="group_config"
@ -716,7 +663,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_ENCRYPTION_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_ENCRYPTION_DESC">
<field type="note" name="whmcs_key_note" class="alert alert-info" label="COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_NOTE_LABEL" description="COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_NOTE_DESC" />
<field name="advanced_key"
<field name="whmcs_key"
type="text"
label="COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_DESC"
@ -731,6 +678,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_RESULTPATH_LABEL"
size="10"
maxlength="150"
default=""
description="COM_COSTBENEFITPROJECTION_CONFIG_RESULTPATH_DESCRIPTION"
class="text_area"
required="true"

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage controller.php
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controller library
jimport('joomla.application.component.controller');
/**
* General Controller of Costbenefitprojection component
*/

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage ajax.json.php
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controller');
/**
* Costbenefitprojection Ajax Controller
*/

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 24 of this MVC
@build 17th May, 2018
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controllerform');
/**
* Causerisk Controller
*/
@ -37,6 +34,13 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'Causesrisks'; // safeguard for setting the return view listing to the main view.
@ -54,14 +58,17 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = JFactory::getUser()->authorise('causerisk.access', 'com_costbenefitprojection');
$access = $user->authorise('causerisk.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('causerisk.create', $this->option);
return $user->authorise('causerisk.create', $this->option);
}
/**
@ -135,42 +142,25 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$tmpl = $this->input->get('tmpl');
$layout = $this->input->get('layout', 'edit', 'string');
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// Setup redirect info.
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append = '';
if ($refid)
// set the referral options
if ($refid && $ref)
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append .= '&ref='.(string)$ref;
}
if ($tmpl)
{
$append .= '&tmpl=' . $tmpl;
}
if ($layout)
{
$append .= '&layout=' . $layout;
}
if ($recordId)
{
$append .= '&' . $urlVar . '=' . $recordId;
$append = '&ref='. (string)$ref . $append;
}
return $append;
@ -209,15 +199,27 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
*/
public function cancel($key = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key);
if ($cancel)
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
if ($this->refid)
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -239,16 +241,6 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
)
);
}
}
else
{
// Redirect to the items screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
)
);
}
return $cancel;
}
@ -264,11 +256,15 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
*/
public function save($key = null, $urlVar = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
if ($this->ref || $this->refid)
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
@ -276,7 +272,20 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
$saved = parent::save($key, $urlVar);
if ($this->refid && $saved)
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -287,7 +296,7 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
)
);
}
elseif ($this->ref && $saved)
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 24 of this MVC
@build 17th May, 2018
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causesrisks.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,24 +20,33 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Causesrisks Controller
*/
class CostbenefitprojectionControllerCausesrisks extends JControllerAdmin
{
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_CAUSESRISKS';
/**
* Proxy for getModel.
* @since 2.5
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
public function getModel($name = 'Causerisk', $prefix = 'CostbenefitprojectionModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_CAUSESRISKS';
return $model;
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Causerisk', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 22 of this MVC
@build 14th October, 2017
@created 3rd October, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage combinedresults.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Combinedresults Controller
*/

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 101 of this MVC
@build 29th June, 2016
@created 15th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companies.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,24 +20,33 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Companies Controller
*/
class CostbenefitprojectionControllerCompanies extends JControllerAdmin
{
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COMPANIES';
/**
* Proxy for getModel.
* @since 2.5
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
public function getModel($name = 'Company', $prefix = 'CostbenefitprojectionModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COMPANIES';
return $model;
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Company', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 101 of this MVC
@build 29th June, 2016
@created 15th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage company.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controllerform');
/**
* Company Controller
*/
@ -37,6 +34,13 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'Companies'; // safeguard for setting the return view listing to the main view.
@ -54,14 +58,17 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = JFactory::getUser()->authorise('company.access', 'com_costbenefitprojection');
$access = $user->authorise('company.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('company.create', $this->option);
return $user->authorise('company.create', $this->option);
}
/**
@ -150,42 +157,25 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$tmpl = $this->input->get('tmpl');
$layout = $this->input->get('layout', 'edit', 'string');
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// Setup redirect info.
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append = '';
if ($refid)
// set the referral options
if ($refid && $ref)
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append .= '&ref='.(string)$ref;
}
if ($tmpl)
{
$append .= '&tmpl=' . $tmpl;
}
if ($layout)
{
$append .= '&layout=' . $layout;
}
if ($recordId)
{
$append .= '&' . $urlVar . '=' . $recordId;
$append = '&ref='. (string)$ref . $append;
}
return $append;
@ -224,15 +214,27 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
*/
public function cancel($key = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key);
if ($cancel)
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
if ($this->refid)
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -254,16 +256,6 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
)
);
}
}
else
{
// Redirect to the items screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
)
);
}
return $cancel;
}
@ -279,11 +271,15 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
*/
public function save($key = null, $urlVar = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
if ($this->ref || $this->refid)
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
@ -291,7 +287,20 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
$saved = parent::save($key, $urlVar);
if ($this->refid && $saved)
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -302,7 +311,7 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
)
);
}
elseif ($this->ref && $saved)
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 60 of this MVC
@build 14th October, 2017
@created 13th August, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companyresults.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controller');
/**
* Costbenefitprojection Companyresults Controller
*/

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Costbenefitprojection Controller
*/

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 54 of this MVC
@build 17th May, 2018
@created 25th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage countries.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,24 +20,33 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Countries Controller
*/
class CostbenefitprojectionControllerCountries extends JControllerAdmin
{
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COUNTRIES';
/**
* Proxy for getModel.
* @since 2.5
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
public function getModel($name = 'Country', $prefix = 'CostbenefitprojectionModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COUNTRIES';
return $model;
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Country', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 54 of this MVC
@build 17th May, 2018
@created 25th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage country.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controllerform');
/**
* Country Controller
*/
@ -37,6 +34,13 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'Countries'; // safeguard for setting the return view listing to the main view.
@ -54,14 +58,17 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = JFactory::getUser()->authorise('country.access', 'com_costbenefitprojection');
$access = $user->authorise('country.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('country.create', $this->option);
return $user->authorise('country.create', $this->option);
}
/**
@ -144,42 +151,25 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$tmpl = $this->input->get('tmpl');
$layout = $this->input->get('layout', 'edit', 'string');
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// Setup redirect info.
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append = '';
if ($refid)
// set the referral options
if ($refid && $ref)
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append .= '&ref='.(string)$ref;
}
if ($tmpl)
{
$append .= '&tmpl=' . $tmpl;
}
if ($layout)
{
$append .= '&layout=' . $layout;
}
if ($recordId)
{
$append .= '&' . $urlVar . '=' . $recordId;
$append = '&ref='. (string)$ref . $append;
}
return $append;
@ -218,15 +208,27 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
*/
public function cancel($key = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key);
if ($cancel)
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
if ($this->refid)
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -248,16 +250,6 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
)
);
}
}
else
{
// Redirect to the items screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
)
);
}
return $cancel;
}
@ -273,11 +265,15 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
*/
public function save($key = null, $urlVar = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
if ($this->ref || $this->refid)
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
@ -285,7 +281,20 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
$saved = parent::save($key, $urlVar);
if ($this->refid && $saved)
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -296,7 +305,7 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
)
);
}
elseif ($this->ref && $saved)
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 20 of this MVC
@build 17th May, 2018
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage currencies.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,24 +20,33 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Currencies Controller
*/
class CostbenefitprojectionControllerCurrencies extends JControllerAdmin
{
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_CURRENCIES';
/**
* Proxy for getModel.
* @since 2.5
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
public function getModel($name = 'Currency', $prefix = 'CostbenefitprojectionModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_CURRENCIES';
return $model;
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Currency', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 20 of this MVC
@build 17th May, 2018
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage currency.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controllerform');
/**
* Currency Controller
*/
@ -37,6 +34,13 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'Currencies'; // safeguard for setting the return view listing to the main view.
@ -54,14 +58,17 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = JFactory::getUser()->authorise('currency.access', 'com_costbenefitprojection');
$access = $user->authorise('currency.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('currency.create', $this->option);
return $user->authorise('currency.create', $this->option);
}
/**
@ -135,42 +142,25 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$tmpl = $this->input->get('tmpl');
$layout = $this->input->get('layout', 'edit', 'string');
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// Setup redirect info.
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append = '';
if ($refid)
// set the referral options
if ($refid && $ref)
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append .= '&ref='.(string)$ref;
}
if ($tmpl)
{
$append .= '&tmpl=' . $tmpl;
}
if ($layout)
{
$append .= '&layout=' . $layout;
}
if ($recordId)
{
$append .= '&' . $urlVar . '=' . $recordId;
$append = '&ref='. (string)$ref . $append;
}
return $append;
@ -209,15 +199,27 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
*/
public function cancel($key = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key);
if ($cancel)
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
if ($this->refid)
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -239,16 +241,6 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
)
);
}
}
else
{
// Redirect to the items screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
)
);
}
return $cancel;
}
@ -264,11 +256,15 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
*/
public function save($key = null, $urlVar = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
if ($this->ref || $this->refid)
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
@ -276,7 +272,20 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
$saved = parent::save($key, $urlVar);
if ($this->refid && $saved)
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -287,7 +296,7 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
)
);
}
elseif ($this->ref && $saved)
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 110 of this MVC
@build 17th May, 2018
@created 15th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controllerform');
/**
* Health_data Controller
*/
@ -37,6 +34,13 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'Health_data_sets'; // safeguard for setting the return view listing to the main view.
@ -54,14 +58,17 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = JFactory::getUser()->authorise('health_data.access', 'com_costbenefitprojection');
$access = $user->authorise('health_data.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('health_data.create', $this->option);
return $user->authorise('health_data.create', $this->option);
}
/**
@ -145,42 +152,25 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$tmpl = $this->input->get('tmpl');
$layout = $this->input->get('layout', 'edit', 'string');
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// Setup redirect info.
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append = '';
if ($refid)
// set the referral options
if ($refid && $ref)
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append .= '&ref='.(string)$ref;
}
if ($tmpl)
{
$append .= '&tmpl=' . $tmpl;
}
if ($layout)
{
$append .= '&layout=' . $layout;
}
if ($recordId)
{
$append .= '&' . $urlVar . '=' . $recordId;
$append = '&ref='. (string)$ref . $append;
}
return $append;
@ -219,15 +209,27 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
*/
public function cancel($key = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key);
if ($cancel)
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
if ($this->refid)
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -249,16 +251,6 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
)
);
}
}
else
{
// Redirect to the items screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
)
);
}
return $cancel;
}
@ -274,11 +266,15 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
*/
public function save($key = null, $urlVar = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
if ($this->ref || $this->refid)
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
@ -286,7 +282,20 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
$saved = parent::save($key, $urlVar);
if ($this->refid && $saved)
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -297,7 +306,7 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
)
);
}
elseif ($this->ref && $saved)
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 110 of this MVC
@build 17th May, 2018
@created 15th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_sets.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,24 +20,33 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Health_data_sets Controller
*/
class CostbenefitprojectionControllerHealth_data_sets extends JControllerAdmin
{
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS';
/**
* Proxy for getModel.
* @since 2.5
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
public function getModel($name = 'Health_data', $prefix = 'CostbenefitprojectionModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS';
return $model;
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Health_data', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help.php
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controller');
/**
* Costbenefitprojection Help Controller
*/

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 20 of this MVC
@build 13th April, 2018
@created 13th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help_document.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controllerform');
/**
* Help_document Controller
*/
@ -37,6 +34,13 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'Help_documents'; // safeguard for setting the return view listing to the main view.
@ -54,14 +58,17 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = JFactory::getUser()->authorise('help_document.access', 'com_costbenefitprojection');
$access = $user->authorise('help_document.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('help_document.create', $this->option);
return $user->authorise('help_document.create', $this->option);
}
/**
@ -135,42 +142,25 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$tmpl = $this->input->get('tmpl');
$layout = $this->input->get('layout', 'edit', 'string');
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// Setup redirect info.
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append = '';
if ($refid)
// set the referral options
if ($refid && $ref)
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append .= '&ref='.(string)$ref;
}
if ($tmpl)
{
$append .= '&tmpl=' . $tmpl;
}
if ($layout)
{
$append .= '&layout=' . $layout;
}
if ($recordId)
{
$append .= '&' . $urlVar . '=' . $recordId;
$append = '&ref='. (string)$ref . $append;
}
return $append;
@ -209,15 +199,27 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
*/
public function cancel($key = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key);
if ($cancel)
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
if ($this->refid)
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -239,16 +241,6 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
)
);
}
}
else
{
// Redirect to the items screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
)
);
}
return $cancel;
}
@ -264,11 +256,15 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
*/
public function save($key = null, $urlVar = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
if ($this->ref || $this->refid)
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
@ -276,7 +272,20 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
$saved = parent::save($key, $urlVar);
if ($this->refid && $saved)
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -287,7 +296,7 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
)
);
}
elseif ($this->ref && $saved)
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 20 of this MVC
@build 13th April, 2018
@created 13th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help_documents.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,24 +20,33 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Help_documents Controller
*/
class CostbenefitprojectionControllerHelp_documents extends JControllerAdmin
{
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS';
/**
* Proxy for getModel.
* @since 2.5
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
public function getModel($name = 'Help_document', $prefix = 'CostbenefitprojectionModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS';
return $model;
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Help_document', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage import.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage import_health_data_sets.php

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 71 of this MVC
@build 12th November, 2016
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage intervention.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controllerform');
/**
* Intervention Controller
*/
@ -37,6 +34,13 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'Interventions'; // safeguard for setting the return view listing to the main view.
@ -54,14 +58,17 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = JFactory::getUser()->authorise('intervention.access', 'com_costbenefitprojection');
$access = $user->authorise('intervention.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('intervention.create', $this->option);
return $user->authorise('intervention.create', $this->option);
}
/**
@ -150,42 +157,25 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$tmpl = $this->input->get('tmpl');
$layout = $this->input->get('layout', 'edit', 'string');
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// Setup redirect info.
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append = '';
if ($refid)
// set the referral options
if ($refid && $ref)
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append .= '&ref='.(string)$ref;
}
if ($tmpl)
{
$append .= '&tmpl=' . $tmpl;
}
if ($layout)
{
$append .= '&layout=' . $layout;
}
if ($recordId)
{
$append .= '&' . $urlVar . '=' . $recordId;
$append = '&ref='. (string)$ref . $append;
}
return $append;
@ -224,15 +214,27 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
*/
public function cancel($key = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key);
if ($cancel)
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
if ($this->refid)
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -254,16 +256,6 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
)
);
}
}
else
{
// Redirect to the items screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
)
);
}
return $cancel;
}
@ -279,11 +271,15 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
*/
public function save($key = null, $urlVar = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
if ($this->ref || $this->refid)
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
@ -291,7 +287,20 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
$saved = parent::save($key, $urlVar);
if ($this->refid && $saved)
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -302,7 +311,7 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
)
);
}
elseif ($this->ref && $saved)
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 71 of this MVC
@build 12th November, 2016
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,24 +20,33 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Interventions Controller
*/
class CostbenefitprojectionControllerInterventions extends JControllerAdmin
{
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_INTERVENTIONS';
/**
* Proxy for getModel.
* @since 2.5
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
public function getModel($name = 'Intervention', $prefix = 'CostbenefitprojectionModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_INTERVENTIONS';
return $model;
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Intervention', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 21 of this MVC
@build 16th August, 2016
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factor.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controllerform');
/**
* Scaling_factor Controller
*/
@ -37,6 +34,13 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'Scaling_factors'; // safeguard for setting the return view listing to the main view.
@ -54,14 +58,17 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = JFactory::getUser()->authorise('scaling_factor.access', 'com_costbenefitprojection');
$access = $user->authorise('scaling_factor.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('scaling_factor.create', $this->option);
return $user->authorise('scaling_factor.create', $this->option);
}
/**
@ -144,42 +151,25 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$tmpl = $this->input->get('tmpl');
$layout = $this->input->get('layout', 'edit', 'string');
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// Setup redirect info.
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append = '';
if ($refid)
// set the referral options
if ($refid && $ref)
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append .= '&ref='.(string)$ref;
}
if ($tmpl)
{
$append .= '&tmpl=' . $tmpl;
}
if ($layout)
{
$append .= '&layout=' . $layout;
}
if ($recordId)
{
$append .= '&' . $urlVar . '=' . $recordId;
$append = '&ref='. (string)$ref . $append;
}
return $append;
@ -218,15 +208,27 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
*/
public function cancel($key = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key);
if ($cancel)
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
if ($this->refid)
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -248,16 +250,6 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
)
);
}
}
else
{
// Redirect to the items screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
)
);
}
return $cancel;
}
@ -273,11 +265,15 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
*/
public function save($key = null, $urlVar = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
if ($this->ref || $this->refid)
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
@ -285,7 +281,20 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
$saved = parent::save($key, $urlVar);
if ($this->refid && $saved)
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -296,7 +305,7 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
)
);
}
elseif ($this->ref && $saved)
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 21 of this MVC
@build 16th August, 2016
@created 8th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factors.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,24 +20,33 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Scaling_factors Controller
*/
class CostbenefitprojectionControllerScaling_factors extends JControllerAdmin
{
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_SCALING_FACTORS';
/**
* Proxy for getModel.
* @since 2.5
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
public function getModel($name = 'Scaling_factor', $prefix = 'CostbenefitprojectionModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_SCALING_FACTORS';
return $model;
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Scaling_factor', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 35 of this MVC
@build 22nd March, 2016
@created 25th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_provider.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,9 +20,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controllerform library
jimport('joomla.application.component.controllerform');
/**
* Service_provider Controller
*/
@ -37,6 +34,13 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
*/
protected $task;
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_list = 'Service_providers'; // safeguard for setting the return view listing to the main view.
@ -54,14 +58,17 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
*/
protected function allowAdd($data = array())
{
// Get user object.
$user = JFactory::getUser();
// Access check.
$access = JFactory::getUser()->authorise('service_provider.access', 'com_costbenefitprojection');
$access = $user->authorise('service_provider.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('service_provider.create', $this->option);
return $user->authorise('service_provider.create', $this->option);
}
/**
@ -143,42 +150,25 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$tmpl = $this->input->get('tmpl');
$layout = $this->input->get('layout', 'edit', 'string');
// get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int');
// Setup redirect info.
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append = '';
if ($refid)
// set the referral options
if ($refid && $ref)
{
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append .= '&ref='.(string)$ref;
}
if ($tmpl)
{
$append .= '&tmpl=' . $tmpl;
}
if ($layout)
{
$append .= '&layout=' . $layout;
}
if ($recordId)
{
$append .= '&' . $urlVar . '=' . $recordId;
$append = '&ref='. (string)$ref . $append;
}
return $append;
@ -217,15 +207,27 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
*/
public function cancel($key = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key);
if ($cancel)
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
if ($this->refid)
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -247,16 +249,6 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
)
);
}
}
else
{
// Redirect to the items screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
)
);
}
return $cancel;
}
@ -272,11 +264,15 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
*/
public function save($key = null, $urlVar = null)
{
// get the referal details
// get the referral options
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
if ($this->ref || $this->refid)
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
// to make sure the item is checkedin on redirect
$this->task = 'save';
@ -284,7 +280,20 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
$saved = parent::save($key, $urlVar);
if ($this->refid && $saved)
// This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this
if ($canReturn)
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
JRoute::_(
$redirect, false
)
);
}
elseif ($this->refid && $this->ref)
{
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
@ -295,7 +304,7 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
)
);
}
elseif ($this->ref && $saved)
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;

View File

@ -3,9 +3,9 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version @update number 35 of this MVC
@build 22nd March, 2016
@created 25th July, 2015
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_providers.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@ -20,24 +20,33 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controlleradmin library
jimport('joomla.application.component.controlleradmin');
/**
* Service_providers Controller
*/
class CostbenefitprojectionControllerService_providers extends JControllerAdmin
{
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS';
/**
* Proxy for getModel.
* @since 2.5
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
public function getModel($name = 'Service_provider', $prefix = 'CostbenefitprojectionModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS';
return $model;
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Service_provider', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function exportData()

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php
@ -19,29 +19,22 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tabstate');
// Access check.
if (!JFactory::getUser()->authorise('core.manage', 'com_costbenefitprojection'))
{
return JError::raiseWaring(404, JText::_('JERROR_ALERTNOAUTHOR'));
throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403);
};
// Load cms libraries
JLoader::registerPrefix('J', JPATH_PLATFORM . '/cms');
// Load joomla libraries without overwrite
JLoader::registerPrefix('J', JPATH_PLATFORM . '/joomla',false);
// Add CSS file for all pages
$document = JFactory::getDocument();
$document->addStyleSheet('components/com_costbenefitprojection/assets/css/admin.css');
$document->addScript('components/com_costbenefitprojection/assets/js/admin.js');
// require helper files
JLoader::register('CostbenefitprojectionHelper', dirname(__FILE__) . '/helpers/costbenefitprojection.php');
JLoader::register('JHtmlBatch_', dirname(__FILE__) . '/helpers/html/batch_.php');
// import joomla controller library
jimport('joomla.application.component.controller');
JLoader::register('CostbenefitprojectionHelper', __DIR__ . '/helpers/costbenefitprojection.php');
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');
// Get an instance of the controller prefixed by Costbenefitprojection
$controller = JControllerLegacy::getInstance('Costbenefitprojection');

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php
@ -1059,6 +1059,11 @@ abstract class CostbenefitprojectionHelper
'password1' => $password, // First password field
'password2' => $password2, // Confirm password field
'block' => 0 );
// set groups if found
if (isset($new['groups']) && self::checkArray($new['groups']))
{
$data['groups'] = $new['groups'];
}
// register the new user
$done = $model->save($data);
// if user is updated
@ -1487,16 +1492,16 @@ abstract class CostbenefitprojectionHelper
{
if ($external)
{
if ($name = self::getVar(null, $val, $id, $name, '=', $table))
if ($_name = self::getVar(null, $val, $id, $name, '=', $table))
{
$names[] = $name;
$names[] = $_name;
}
}
else
{
if ($name = self::getVar($table, $val, $id, $name))
if ($_name = self::getVar($table, $val, $id, $name))
{
$names[] = $name;
$names[] = $_name;
}
}
}
@ -1552,107 +1557,120 @@ abstract class CostbenefitprojectionHelper
}
/**
* Get the actions permissions
* Get the action permissions
*
* @param string $view The related view name
* @param int $record The item to act upon
* @param string $views The related list view name
* @param mixed $target Only get this permission (like edit, create, delete)
* @param string $component The target component
*
* @return object The JObject of permission/authorised actions
*
**/
public static function getActions($view,&$record = null,$views = null)
public static function getActions($view, &$record = null, $views = null, $target = null, $component = 'costbenefitprojection')
{
jimport('joomla.access.access');
// get the user object
$user = JFactory::getUser();
// load the JObject
$result = new JObject;
// make view name safe (just incase)
$view = self::safeString($view);
if (self::checkString($views))
{
$views = self::safeString($views);
}
// get all actions from component
$actions = JAccess::getActions('com_costbenefitprojection', 'component');
// set acctions only set in component settiongs
$actions = JAccess::getActionsFromFile(
JPATH_ADMINISTRATOR . '/components/com_' . $component . '/access.xml',
"/access/section[@name='component']/"
);
// if non found then return empty JObject
if (empty($actions))
{
return $result;
}
// get created by if not found
if (self::checkObject($record) && !isset($record->created_by) && isset($record->id))
{
$record->created_by = self::getVar($view, $record->id, 'id', 'created_by', '=', $component);
}
// set actions only set in component settings
$componentActions = array('core.admin', 'core.manage', 'core.options', 'core.export');
// check if we have a target
$checkTarget = false;
if ($target)
{
// convert to an array
if (self::checkString($target))
{
$target = array($target);
}
// check if we are good to go
if (self::checkArray($target))
{
$checkTarget = true;
}
}
// loop the actions and set the permissions
foreach ($actions as $action)
{
// check target action filter
if ($checkTarget && self::filterActions($view, $action->name, $target))
{
continue;
}
// set to use component default
$fallback = true;
if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name,$componentActions))
// reset permission per/action
$permission = false;
$catpermission = false;
// set area
$area = 'comp';
// check if the record has an ID and the action is item related (not a component action)
if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name, $componentActions) &&
(strpos($action->name, 'core.') !== false || strpos($action->name, $view . '.') !== false))
{
// we are in item
$area = 'item';
// The record has been set. Check the record permissions.
$permission = $user->authorise($action->name, 'com_costbenefitprojection.'.$view.'.' . (int) $record->id);
if (!$permission) // TODO removed && !is_null($permission)
$permission = $user->authorise($action->name, 'com_' . $component . '.' . $view . '.' . (int) $record->id);
// if no permission found, check edit own
if (!$permission)
{
if ($action->name == 'core.edit' || $action->name == $view.'.edit')
// With edit, if the created_by matches current user then dig deeper.
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
{
if ($user->authorise('core.edit.own', 'com_costbenefitprojection.'.$view.'.' . (int) $record->id))
{
// If the owner matches 'me' then allow.
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
// the correct target
$coreCheck = (array) explode('.', $action->name);
// check that we have both local and global access
if ($user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component . '.' . $view . '.' . (int) $record->id) &&
$user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component))
{
// allow edit
$result->set($action->name, true);
// set not to use component default
// set not to use global default
// because we already validated it
$fallback = false;
}
else
{
// do not allow edit
$result->set($action->name, false);
// set not to use component default
$fallback = false;
}
}
elseif ($user->authorise($view.'edit.own', 'com_costbenefitprojection.'.$view.'.' . (int) $record->id))
{
// If the owner matches 'me' then allow.
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
{
$result->set($action->name, true);
// set not to use component default
$fallback= false;
}
else
{
$result->set($action->name, false);
// set not to use component default
$fallback= false;
}
}
elseif ($user->authorise('core.edit.own', 'com_costbenefitprojection'))
{
// If the owner matches 'me' then allow.
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
{
$result->set($action->name, true);
// set not to use component default
$fallback= false;
}
else
{
$result->set($action->name, false);
// set not to use component default
$fallback= false;
}
}
elseif ($user->authorise($view.'edit.own', 'com_costbenefitprojection'))
{
// If the owner matches 'me' then allow.
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
{
$result->set($action->name, true);
// set not to use component default
$fallback= false;
}
else
{
$result->set($action->name, false);
// set not to use component default
$fallback= false;
}
}
}
}
elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0)
{
// make sure we use the core. action check for the categories
if (strpos($action->name,$view) !== false && strpos($action->name,'core.') === false ) {
// we are in item
$area = 'category';
// set the core check
$coreCheck = explode('.', $action->name);
$core = $coreCheck[0];
// make sure we use the core. action check for the categories
if (strpos($action->name, $view) !== false && strpos($action->name, 'core.') === false )
{
$coreCheck[0] = 'core';
$categoryCheck = implode('.', $coreCheck);
}
@ -1661,88 +1679,76 @@ abstract class CostbenefitprojectionHelper
$categoryCheck = $action->name;
}
// The record has a category. Check the category permissions.
$catpermission = $user->authorise($categoryCheck, 'com_costbenefitprojection.'.$views.'.category.' . (int) $record->catid);
$catpermission = $user->authorise($categoryCheck, 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid);
if (!$catpermission && !is_null($catpermission))
{
if ($action->name == 'core.edit' || $action->name == $view.'.edit')
// With edit, if the created_by matches current user then dig deeper.
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
{
if ($user->authorise('core.edit.own', 'com_costbenefitprojection.'.$views.'.category.' . (int) $record->catid))
{
// If the owner matches 'me' then allow.
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
// check that we have both local and global access
if ($user->authorise('core.edit.own', 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid) &&
$user->authorise($core . '.edit.own', 'com_' . $component))
{
// allow edit
$result->set($action->name, true);
// set not to use component default
// set not to use global default
// because we already validated it
$fallback = false;
}
else
{
// do not allow edit
$result->set($action->name, false);
// set not to use component default
$fallback = false;
}
}
elseif ($user->authorise($view.'edit.own', 'com_costbenefitprojection.'.$views.'.category.' . (int) $record->catid))
{
// If the owner matches 'me' then allow.
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
{
$result->set($action->name, true);
// set not to use component default
$fallback= false;
}
else
{
$result->set($action->name, false);
// set not to use component default
$fallback= false;
}
}
elseif ($user->authorise('core.edit.own', 'com_costbenefitprojection'))
{
// If the owner matches 'me' then allow.
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
{
$result->set($action->name, true);
// set not to use component default
$fallback= false;
}
else
{
$result->set($action->name, false);
// set not to use component default
$fallback= false;
}
}
elseif ($user->authorise($view.'edit.own', 'com_costbenefitprojection'))
{
// If the owner matches 'me' then allow.
if (isset($record->created_by) && $record->created_by > 0 && ($record->created_by == $user->id))
{
$result->set($action->name, true);
// set not to use component default
$fallback= false;
}
else
{
$result->set($action->name, false);
// set not to use component default
$fallback= false;
}
}
}
}
}
}
// if allowed then fallback on component global settings
if ($fallback)
{
$result->set($action->name, $user->authorise($action->name, 'com_costbenefitprojection'));
// if item/category blocks access then don't fall back on global
if ((($area === 'item') && !$permission) || (($area === 'category') && !$catpermission))
{
// do not allow
$result->set($action->name, false);
}
// Finally remember the global settings have the final say. (even if item allow)
// The local item permissions can block, but it can't open and override of global permissions.
// Since items are created by users and global permissions is set by system admin.
else
{
$result->set($action->name, $user->authorise($action->name, 'com_' . $component));
}
}
}
return $result;
}
/**
* Filter the action permissions
*
* @param string $action The action to check
* @param array $targets The array of target actions
*
* @return boolean true if action should be filtered out
*
**/
protected static function filterActions(&$view, &$action, &$targets)
{
foreach ($targets as $target)
{
if (strpos($action, $view . '.' . $target) !== false ||
strpos($action, 'core.' . $target) !== false)
{
return false;
break;
}
}
return true;
}
/**
* Get any component's model
**/
@ -1790,7 +1796,7 @@ abstract class CostbenefitprojectionHelper
/**
* Add to asset Table
*/
public static function setAsset($id,$table)
public static function setAsset($id, $table, $inherit = true)
{
$parent = JTable::getInstance('Asset');
$parent->loadByName('com_costbenefitprojection');
@ -1822,7 +1828,7 @@ abstract class CostbenefitprojectionHelper
$asset->name = $name;
$asset->title = $title;
// get the default asset rules
$rules = self::getDefaultAssetRules('com_costbenefitprojection',$table);
$rules = self::getDefaultAssetRules('com_costbenefitprojection', $table, $inherit);
if ($rules instanceof JAccessRules)
{
$asset->rules = (string) $rules;
@ -1852,7 +1858,12 @@ abstract class CostbenefitprojectionHelper
/**
* Gets the default asset Rules for a component/view.
*/
protected static function getDefaultAssetRules($component,$view)
protected static function getDefaultAssetRules($component, $view, $inherit = true)
{
// if new or inherited
$assetId = 0;
// Only get the actual item rules if not inheriting
if (!$inherit)
{
// Need to find the asset id by the name of the component.
$db = JFactory::getDbo();
@ -1862,10 +1873,14 @@ abstract class CostbenefitprojectionHelper
->where($db->quoteName('name') . ' = ' . $db->quote($component));
$db->setQuery($query);
$db->execute();
if ($db->loadRowList())
// check that there is a value
if ($db->getNumRows())
{
// asset alread set so use saved rules
// asset already set so use saved rules
$assetId = (int) $db->loadResult();
}
}
// get asset rules
$result = JAccess::getAssetRules($assetId);
if ($result instanceof JAccessRules)
{
@ -1879,7 +1894,7 @@ abstract class CostbenefitprojectionHelper
// remove since it is not part of this view
unset($_result->$name);
}
else
elseif ($inherit)
{
// clear the value since we inherit
$rule = array();
@ -1892,14 +1907,12 @@ abstract class CostbenefitprojectionHelper
$_result = array($_result);
// Instantiate and return the JAccessRules object for the asset rules.
$rules = new JAccessRules($_result);
// return filtered rules
return $rules;
}
}
return $result;
}
}
return JAccess::getAssetRules(0);
}
/**
* xmlAppend
@ -1992,6 +2005,46 @@ abstract class CostbenefitprojectionHelper
}
}
/**
* get the field object
*
* @param array $attributes The array of attributes
* @param string $default The default of the field
* @param array $options The options to apply to the XML element
*
* @return object
*
*/
public static function getFieldObject(&$attributes, $default = '', $options = null)
{
// make sure we have attributes and a type value
if (self::checkArray($attributes) && isset($attributes['type']))
{
// make sure the form helper class is loaded
if (!method_exists('JFormHelper', 'loadFieldType'))
{
jimport('joomla.form.form');
}
// get field type
$field = JFormHelper::loadFieldType($attributes['type'],true);
// start field xml
$XML = new SimpleXMLElement('<field/>');
// load the attributes
self::xmlAddAttributes($XML, $attributes);
// check if we have options
if (self::checkArray($options))
{
// load the options
self::xmlAddOptions($XML, $options);
}
// setup the field
$field->setup($XML, $default);
// return the field object
return $field;
}
return false;
}
/**
* Render Bool Button
*
@ -2010,8 +2063,6 @@ abstract class CostbenefitprojectionHelper
$args = func_get_args();
// check if there is additional button class
$additional = isset($args[1]) ? (string) $args[1] : ''; // not used at this time
// start the xml
$buttonXML = new SimpleXMLElement('<field/>');
// button attributes
$buttonAttributes = array(
'type' => 'radio',
@ -2020,22 +2071,12 @@ abstract class CostbenefitprojectionHelper
'class' => 'btn-group',
'filter' => 'INT',
'default' => isset($args[2]) ? (int) $args[2] : 0);
// load the haskey attributes
self::xmlAddAttributes($buttonXML, $buttonAttributes);
// set the button options
$buttonOptions = array(
'1' => isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES',
'0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
// load the button options
self::xmlAddOptions($buttonXML, $buttonOptions);
// get the radio element
$button = JFormHelper::loadFieldType('radio');
// run
$button->setup($buttonXML, $buttonAttributes['default']);
return $button->input;
// return the input
return self::getFieldObject($buttonAttributes, $buttonAttributes['default'], $buttonOptions)->input;
}
/**
@ -2076,11 +2117,11 @@ abstract class CostbenefitprojectionHelper
*
* @input array The array to check
*
* @returns bool true on success
* @returns bool/int number of items in array on success
**/
public static function checkArray($array, $removeEmptyString = false)
{
if (isset($array) && is_array($array) && count($array) > 0)
if (isset($array) && is_array($array) && ($nr = count((array)$array)) > 0)
{
// also make sure the empty strings are removed
if ($removeEmptyString)
@ -2094,7 +2135,7 @@ abstract class CostbenefitprojectionHelper
}
return self::checkArray($array, false);
}
return true;
return $nr;
}
return false;
}
@ -2183,7 +2224,7 @@ abstract class CostbenefitprojectionHelper
{
$initial = strlen($string);
$words = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE);
$words_count = count($words);
$words_count = count((array)$words);
$word_length = 0;
$last_word = 0;
@ -2218,7 +2259,7 @@ abstract class CostbenefitprojectionHelper
*
* @returns string on success
**/
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true)
public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true, $keepOnlyCharacters = true)
{
if ($replaceNumbers === true)
{
@ -2247,7 +2288,16 @@ abstract class CostbenefitprojectionHelper
$string = trim($string);
$string = preg_replace('/'.$spacer.'+/', ' ', $string);
$string = preg_replace('/\s+/', ' ', $string);
// remove all and keep only characters
if ($keepOnlyCharacters)
{
$string = preg_replace("/[^A-Za-z ]/", '', $string);
}
// keep both numbers and characters
else
{
$string = preg_replace("/[^A-Za-z0-9 ]/", '', $string);
}
// select final adaptations
if ($type === 'L' || $type === 'strtolower')
{
@ -2471,7 +2521,7 @@ abstract class CostbenefitprojectionHelper
// WHMCS Encryption Type
if ('whmcs' === $type || 'advanced' === $type)
{
$key = $params->get('advanced_key', $default);
$key = $params->get('whmcs_key', $default);
if (self::checkString($key))
{
// load the file

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage headercheck.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage batch_.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage sum.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage sumcombine.php
@ -103,7 +103,7 @@ class SumCombine
if (CostbenefitprojectionHelper::checkArray($namesnot))
{
$companiesNamesNot = '<b>'.implode(', ',$namesnot).'</b>';
JError::raiseWarning(500, JText::_('Currency mismatch! These were excluded from results: ').$companiesNamesNot);
JError::raiseWarning(500, JText::_('COM_COSTBENEFITPROJECTION_CURRENCY_MISMATCH_THESE_WERE_EXCLUDED_FROM_RESULTS').$companiesNamesNot);
}
if (CostbenefitprojectionHelper::checkArray($names))
{

View File

@ -73,9 +73,9 @@ COM_COSTBENEFITPROJECTION_CAUSESRISKS_BATCH_USE_DESC="Allows users in this group
COM_COSTBENEFITPROJECTION_CAUSESRISKS_CREATE="Causesrisks Create"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_CREATE_DESC="Allows the users in this group to create create causesrisks"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_ADD="Causesrisks Dashboard Add"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_LIST="Causesrisks Dashboard List"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DELETE="Causesrisks Delete"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DELETE_DESC="Allows the users in this group to delete delete causesrisks"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT="Causesrisks Edit"
@ -108,7 +108,7 @@ COM_COSTBENEFITPROJECTION_CAUSESRISKS_N_ITEMS_UNFEATURED_1="%s Cause/Risk unfeat
COM_COSTBENEFITPROJECTION_CAUSESRISKS_N_ITEMS_UNPUBLISHED="%s Causes/Risks unpublished."
COM_COSTBENEFITPROJECTION_CAUSESRISKS_N_ITEMS_UNPUBLISHED_1="%s Cause/Risk unpublished."
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU="Causesrisks Submenu"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU_DESC="Allows the users in this group to update the submenu of the causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU_DESC="Allows the users in this group to submenu of causerisk"
COM_COSTBENEFITPROJECTION_CAUSE_ID="Cause id"
COM_COSTBENEFITPROJECTION_CAUSE_NAME="Cause name"
COM_COSTBENEFITPROJECTION_CHARTS_MENU="Charts Menu"
@ -123,7 +123,7 @@ COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC=" Allows the users i
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST="Combined Results Dashboard List"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the Combined Results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Combined Results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_OF="Combined results of"
COM_COSTBENEFITPROJECTION_COMPANIES="Companies"
COM_COSTBENEFITPROJECTION_COMPANIES_ACCESS="Companies Access"
@ -135,41 +135,41 @@ COM_COSTBENEFITPROJECTION_COMPANIES_BATCH_USE_DESC="Allows users in this group t
COM_COSTBENEFITPROJECTION_COMPANIES_CREATE="Companies Create"
COM_COSTBENEFITPROJECTION_COMPANIES_CREATE_DESC="Allows the users in this group to create create companies"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_ADD="Companies Dashboard Add"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of company"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_LIST="Companies Dashboard List"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of company"
COM_COSTBENEFITPROJECTION_COMPANIES_DELETE="Companies Delete"
COM_COSTBENEFITPROJECTION_COMPANIES_DELETE_DESC="Allows the users in this group to delete delete companies"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT="Companies Edit"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS="Companies Edit Causesrisks"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS_DESC="Allows the users in this group to update the edit causesrisks of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS_DESC="Allows the users in this group to edit causesrisks of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY="Companies Edit Country"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY_DESC="Allows the users in this group to update the edit country of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY_DESC="Allows the users in this group to edit country of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_BY="Companies Edit Created By"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by companies"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_DATE="Companies Edit Created Date"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created companies"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR="Companies Edit Datayear"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR_DESC="Allows the users in this group to update the edit datayear of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR_DESC="Allows the users in this group to edit datayear of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DEPARTMENT="Companies Edit Department"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DEPARTMENT_DESC="Allows the users in this group to update the edit department of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DEPARTMENT_DESC="Allows the users in this group to edit department of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DESC="Allows the users in this group to edit the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_EMAIL="Companies Edit Email"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_EMAIL_DESC="Allows the users in this group to update the edit email of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_EMAIL_DESC="Allows the users in this group to edit email of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_OWN="Companies Edit Own"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_OWN_DESC="Allows the users in this group to edit edit own companies created by them"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER="Companies Edit Per"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE="Companies Edit Percentfemale"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE_DESC="Allows the users in this group to update the edit percentfemale of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE_DESC="Allows the users in this group to edit percentfemale of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE="Companies Edit Percentmale"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE_DESC="Allows the users in this group to update the edit percentmale of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER_DESC="Allows the users in this group to update the edit per of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE_DESC="Allows the users in this group to edit percentmale of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER_DESC="Allows the users in this group to edit per of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER="Companies Edit Service Provider"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER_DESC="Allows the users in this group to update the edit service provider of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER_DESC="Allows the users in this group to edit service provider of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_STATE="Companies Edit State"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_STATE_DESC="Allows the users in this group to update the state of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_USER="Companies Edit User"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_USER_DESC="Allows the users in this group to update the edit user of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_USER_DESC="Allows the users in this group to edit user of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_VERSION="Companies Edit Version"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version companies"
COM_COSTBENEFITPROJECTION_COMPANIES_EXPORT="Companies Export"
@ -194,7 +194,7 @@ COM_COSTBENEFITPROJECTION_COMPANIES_N_ITEMS_UNFEATURED_1="%s Company unfeatured.
COM_COSTBENEFITPROJECTION_COMPANIES_N_ITEMS_UNPUBLISHED="%s Companies unpublished."
COM_COSTBENEFITPROJECTION_COMPANIES_N_ITEMS_UNPUBLISHED_1="%s Company unpublished."
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU="Companies Submenu"
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU_DESC="Allows the users in this group to submenu of company"
COM_COSTBENEFITPROJECTION_COMPANY="Company"
COM_COSTBENEFITPROJECTION_COMPANYRESULTS="Company Results"
COM_COSTBENEFITPROJECTION_COMPANYRESULTS_DESC="The company results"
@ -388,7 +388,6 @@ COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_DESC="Select where you want th
COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_FRONT="Front-end"
COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_LABEL="Show"
COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SHOW_NONE="Hide"
COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_SIX="Contributor Six"
COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_THREE="Contributor Three"
COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_DESC="The job title that best describes the contributor's relationship to this component."
COM_COSTBENEFITPROJECTION_CONFIG_CONTRIBUTOR_TITLE_LABEL="Contributor Job Title"
@ -448,9 +447,9 @@ COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_STYLE_LABEL="css Style"
COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_DESC="Select the vertical axis font color."
COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_LABEL="vAxis Font Color"
COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_DESC="Add the key you recieved from Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb here."
COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_LABEL="WHMCS Key"
COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_NOTE_DESC="When using this (whmcs) encryption you need to get a key from Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb.<br />Never change this key once it is set! <b>DATA WILL GET CORRUPTED IF YOU DO!</b>"
COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_NOTE_LABEL="Field Encryption (whmcs)"
COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_LABEL="Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Key"
COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_NOTE_DESC="You need to get this key from <a href='http://www.vdm.io/access/' target='_blank'>Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb</a>.<br />When using the Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb field encryption you can never change this key once it is set! <b>DATA WILL GET CORRUPTED IF YOU DO!</b>"
COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_NOTE_LABEL="Your Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Field Encryption Key"
COM_COSTBENEFITPROJECTION_CONFIG_YES="Yes"
COM_COSTBENEFITPROJECTION_CONTRIBUTION_TO_COSTS="Contribution to Costs"
COM_COSTBENEFITPROJECTION_CONTRIBUTOR="Contributor"
@ -479,7 +478,7 @@ COM_COSTBENEFITPROJECTION_COUNTRIES_BATCH_USE_DESC="Allows users in this group t
COM_COSTBENEFITPROJECTION_COUNTRIES_CREATE="Countries Create"
COM_COSTBENEFITPROJECTION_COUNTRIES_CREATE_DESC="Allows the users in this group to create create countries"
COM_COSTBENEFITPROJECTION_COUNTRIES_DASHBOARD_LIST="Countries Dashboard List"
COM_COSTBENEFITPROJECTION_COUNTRIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the country"
COM_COSTBENEFITPROJECTION_COUNTRIES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of country"
COM_COSTBENEFITPROJECTION_COUNTRIES_DELETE="Countries Delete"
COM_COSTBENEFITPROJECTION_COUNTRIES_DELETE_DESC="Allows the users in this group to delete delete countries"
COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT="Countries Edit"
@ -512,7 +511,7 @@ COM_COSTBENEFITPROJECTION_COUNTRIES_N_ITEMS_UNFEATURED_1="%s Country unfeatured.
COM_COSTBENEFITPROJECTION_COUNTRIES_N_ITEMS_UNPUBLISHED="%s Countries unpublished."
COM_COSTBENEFITPROJECTION_COUNTRIES_N_ITEMS_UNPUBLISHED_1="%s Country unpublished."
COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU="Countries Submenu"
COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the country"
COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU_DESC="Allows the users in this group to submenu of country"
COM_COSTBENEFITPROJECTION_COUNTRY="Country"
COM_COSTBENEFITPROJECTION_COUNTRY_AGE_GROUPS_PERCENTAGES="Age Groups Percentages"
COM_COSTBENEFITPROJECTION_COUNTRY_AGE_LABEL="Age Group"
@ -694,7 +693,7 @@ COM_COSTBENEFITPROJECTION_CURRENCIES_BATCH_USE_DESC="Allows users in this group
COM_COSTBENEFITPROJECTION_CURRENCIES_CREATE="Currencies Create"
COM_COSTBENEFITPROJECTION_CURRENCIES_CREATE_DESC="Allows the users in this group to create create currencies"
COM_COSTBENEFITPROJECTION_CURRENCIES_DASHBOARD_LIST="Currencies Dashboard List"
COM_COSTBENEFITPROJECTION_CURRENCIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the currency"
COM_COSTBENEFITPROJECTION_CURRENCIES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of currency"
COM_COSTBENEFITPROJECTION_CURRENCIES_DELETE="Currencies Delete"
COM_COSTBENEFITPROJECTION_CURRENCIES_DELETE_DESC="Allows the users in this group to delete delete currencies"
COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT="Currencies Edit"
@ -727,7 +726,7 @@ COM_COSTBENEFITPROJECTION_CURRENCIES_N_ITEMS_UNFEATURED_1="%s Currency unfeature
COM_COSTBENEFITPROJECTION_CURRENCIES_N_ITEMS_UNPUBLISHED="%s Currencies unpublished."
COM_COSTBENEFITPROJECTION_CURRENCIES_N_ITEMS_UNPUBLISHED_1="%s Currency unpublished."
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU="Currencies Submenu"
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the currency"
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU_DESC="Allows the users in this group to submenu of currency"
COM_COSTBENEFITPROJECTION_CURRENCY="Currency"
COM_COSTBENEFITPROJECTION_CURRENCY_ALIAS="Alias"
COM_COSTBENEFITPROJECTION_CURRENCY_ALIAS_HINT="Auto-generated from name"
@ -755,6 +754,7 @@ COM_COSTBENEFITPROJECTION_CURRENCY_DETAILS="Details"
COM_COSTBENEFITPROJECTION_CURRENCY_EDIT="Editing the Currency"
COM_COSTBENEFITPROJECTION_CURRENCY_ERROR_UNIQUE_ALIAS="Another Currency has the same alias."
COM_COSTBENEFITPROJECTION_CURRENCY_ID="Id"
COM_COSTBENEFITPROJECTION_CURRENCY_MISMATCH_THESE_WERE_EXCLUDED_FROM_RESULTS="Currency mismatch! These were excluded from results:"
COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_BY_DESC="The last user that modified this Currency."
COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_BY_LABEL="Modified By"
COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_DATE_DESC="The date this Currency was modified."
@ -897,23 +897,23 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_BATCH_USE_DESC="Allows users in this
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_CREATE="Health Data Sets Create"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_CREATE_DESC="Allows the users in this group to create create health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DASHBOARD_LIST="Health Data Sets Dashboard List"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DELETE="Health Data Sets Delete"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DELETE_DESC="Allows the users in this group to delete delete health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT="Health Data Sets Edit"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_CAUSERISK="Health Data Sets Edit Causerisk"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_CAUSERISK_DESC="Allows the users in this group to update the edit causerisk of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_CAUSERISK_DESC="Allows the users in this group to edit causerisk of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_COUNTRY="Health Data Sets Edit Country"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_COUNTRY_DESC="Allows the users in this group to update the edit country of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_COUNTRY_DESC="Allows the users in this group to edit country of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_DESC="Allows the users in this group to edit the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEDEATH="Health Data Sets Edit Femaledeath"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEDEATH_DESC="Allows the users in this group to update the edit femaledeath of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEDEATH_DESC="Allows the users in this group to edit femaledeath of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEYLD="Health Data Sets Edit Femaleyld"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEYLD_DESC="Allows the users in this group to update the edit femaleyld of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEYLD_DESC="Allows the users in this group to edit femaleyld of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEDEATH="Health Data Sets Edit Maledeath"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEDEATH_DESC="Allows the users in this group to update the edit maledeath of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEDEATH_DESC="Allows the users in this group to edit maledeath of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEYLD="Health Data Sets Edit Maleyld"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEYLD_DESC="Allows the users in this group to update the edit maleyld of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEYLD_DESC="Allows the users in this group to edit maleyld of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_OWN="Health Data Sets Edit Own"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_OWN_DESC="Allows the users in this group to edit edit own health data sets created by them"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_STATE="Health Data Sets Edit State"
@ -921,7 +921,7 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_STATE_DESC="Allows the users in
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_VERSION="Health Data Sets Edit Version"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_YEAR="Health Data Sets Edit Year"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_YEAR_DESC="Allows the users in this group to update the edit year of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_YEAR_DESC="Allows the users in this group to edit year of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EXPORT="Health Data Sets Export"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EXPORT_DESC="Allows the users in this group to export export health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_IMPORT="Health Data Sets Import"
@ -944,7 +944,7 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_N_ITEMS_UNFEATURED_1="%s Health Data
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_N_ITEMS_UNPUBLISHED="%s Health Data Sets unpublished."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_N_ITEMS_UNPUBLISHED_1="%s Health Data unpublished."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_SUBMENU="Health Data Sets Submenu"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_SUBMENU_DESC="Allows the users in this group to update the submenu of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_SUBMENU_DESC="Allows the users in this group to submenu of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SIXTYSIXTY_FOUR="60-64"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_STATUS="Status"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_THIRTYTHIRTY_FOUR="30-34"
@ -981,7 +981,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_BATCH_USE_DESC="Allows users in this gr
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_CREATE="Help Documents Create"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_CREATE_DESC="Allows the users in this group to create create help documents"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DASHBOARD_LIST="Help Documents Dashboard List"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the help document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of help document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE="Help Documents Delete"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE_DESC="Allows the users in this group to delete delete help documents"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT="Help Documents Edit"
@ -1014,7 +1014,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_N_ITEMS_UNFEATURED_1="%s Help Document
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_N_ITEMS_UNPUBLISHED="%s Help Documents unpublished."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_N_ITEMS_UNPUBLISHED_1="%s Help Document unpublished."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the help document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to submenu of help document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN="Admin"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN_VIEW="Admin View"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION="Select the view being target."
@ -1136,9 +1136,9 @@ COM_COSTBENEFITPROJECTION_INTERVENTIONS_BATCH_USE_DESC="Allows users in this gro
COM_COSTBENEFITPROJECTION_INTERVENTIONS_CREATE="Interventions Create"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_CREATE_DESC="Allows the users in this group to create create interventions"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_ADD="Interventions Dashboard Add"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_LIST="Interventions Dashboard List"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DELETE="Interventions Delete"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DELETE_DESC="Allows the users in this group to delete delete interventions"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT="Interventions Edit"
@ -1172,7 +1172,7 @@ COM_COSTBENEFITPROJECTION_INTERVENTIONS_N_ITEMS_UNFEATURED_1="%s Intervention un
COM_COSTBENEFITPROJECTION_INTERVENTIONS_N_ITEMS_UNPUBLISHED="%s Interventions unpublished."
COM_COSTBENEFITPROJECTION_INTERVENTIONS_N_ITEMS_UNPUBLISHED_1="%s Intervention unpublished."
COM_COSTBENEFITPROJECTION_INTERVENTIONS_SUBMENU="Interventions Submenu"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_SUBMENU_DESC="Allows the users in this group to update the submenu of the intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_SUBMENU_DESC="Allows the users in this group to submenu of intervention"
COM_COSTBENEFITPROJECTION_INTERVENTION_ALL_SERVICE_PROVIDERS_AND_ADMIN="All Service Providers and Admin"
COM_COSTBENEFITPROJECTION_INTERVENTION_CAUSERISK="Causerisk"
COM_COSTBENEFITPROJECTION_INTERVENTION_CAUSERISK_LABEL="Cause/Risk"
@ -1302,9 +1302,9 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTORS_BATCH_USE_DESC="Allows users in this g
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_CREATE="Scaling Factors Create"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_CREATE_DESC="Allows the users in this group to create create scaling factors"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_ADD="Scaling Factors Dashboard Add"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_LIST="Scaling Factors Dashboard List"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DELETE="Scaling Factors Delete"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DELETE_DESC="Allows the users in this group to delete delete scaling factors"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT="Scaling Factors Edit"
@ -1337,7 +1337,7 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTORS_N_ITEMS_UNFEATURED_1="%s Scaling Facto
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_N_ITEMS_UNPUBLISHED="%s Scaling Factors unpublished."
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_N_ITEMS_UNPUBLISHED_1="%s Scaling Factor unpublished."
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_SUBMENU="Scaling Factors Submenu"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_SUBMENU_DESC="Allows the users in this group to update the submenu of the scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_SUBMENU_DESC="Allows the users in this group to submenu of scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_CAUSERISK="Causerisk"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_CAUSERISK_LABEL="Cause/Risk"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COMPANY="Company"
@ -1415,9 +1415,9 @@ COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_BATCH_USE_DESC="Allows users in this
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_CREATE="Service Providers Create"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_CREATE_DESC="Allows the users in this group to create create service providers"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_ADD="Service Providers Dashboard Add"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_LIST="Service Providers Dashboard List"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DELETE="Service Providers Delete"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DELETE_DESC="Allows the users in this group to delete delete service providers"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT="Service Providers Edit"
@ -1450,7 +1450,7 @@ COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_N_ITEMS_UNFEATURED_1="%s Service Pro
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_N_ITEMS_UNPUBLISHED="%s Service Providers unpublished."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_N_ITEMS_UNPUBLISHED_1="%s Service Provider unpublished."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU="Service Providers Submenu"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU_DESC="Allows the users in this group to update the submenu of the service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU_DESC="Allows the users in this group to submenu of service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COMPANIES="Companies"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COUNTRY="Country"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COUNTRY_DESCRIPTION="List of available countries"

View File

@ -6,9 +6,9 @@ COM_COSTBENEFITPROJECTION_CAUSESRISKS_BATCH_USE_DESC="Allows users in this group
COM_COSTBENEFITPROJECTION_CAUSESRISKS_CREATE="Causesrisks Create"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_CREATE_DESC="Allows the users in this group to create create causesrisks"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_ADD="Causesrisks Dashboard Add"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_LIST="Causesrisks Dashboard List"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DELETE="Causesrisks Delete"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_DELETE_DESC="Allows the users in this group to delete delete causesrisks"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_EDIT="Causesrisks Edit"
@ -24,7 +24,7 @@ COM_COSTBENEFITPROJECTION_CAUSESRISKS_EXPORT_DESC="Allows the users in this grou
COM_COSTBENEFITPROJECTION_CAUSESRISKS_IMPORT="Causesrisks Import"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_IMPORT_DESC="Allows the users in this group to import import causesrisks"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU="Causesrisks Submenu"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU_DESC="Allows the users in this group to update the submenu of the causerisk"
COM_COSTBENEFITPROJECTION_CAUSESRISKS_SUBMENU_DESC="Allows the users in this group to submenu of causerisk"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS="Combined Results Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_DESC="Allows the users in this group to access Combined Results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE="Combined Results (Site) Access"
@ -32,7 +32,7 @@ COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_ACCESS_SITE_DESC=" Allows the users i
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS="Combined Results Companies Button Access"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_COMPANIES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the companies button."
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST="Combined Results Dashboard List"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the Combined Results"
COM_COSTBENEFITPROJECTION_COMBINED_RESULTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of Combined Results"
COM_COSTBENEFITPROJECTION_COMPANIES_ACCESS="Companies Access"
COM_COSTBENEFITPROJECTION_COMPANIES_ACCESS_DESC="Allows the users in this group to access access companies"
COM_COSTBENEFITPROJECTION_COMPANIES_BATCH_USE="Companies Batch Use"
@ -40,41 +40,41 @@ COM_COSTBENEFITPROJECTION_COMPANIES_BATCH_USE_DESC="Allows users in this group t
COM_COSTBENEFITPROJECTION_COMPANIES_CREATE="Companies Create"
COM_COSTBENEFITPROJECTION_COMPANIES_CREATE_DESC="Allows the users in this group to create create companies"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_ADD="Companies Dashboard Add"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of company"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_LIST="Companies Dashboard List"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of company"
COM_COSTBENEFITPROJECTION_COMPANIES_DELETE="Companies Delete"
COM_COSTBENEFITPROJECTION_COMPANIES_DELETE_DESC="Allows the users in this group to delete delete companies"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT="Companies Edit"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS="Companies Edit Causesrisks"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS_DESC="Allows the users in this group to update the edit causesrisks of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CAUSESRISKS_DESC="Allows the users in this group to edit causesrisks of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY="Companies Edit Country"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY_DESC="Allows the users in this group to update the edit country of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_COUNTRY_DESC="Allows the users in this group to edit country of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_BY="Companies Edit Created By"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by companies"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_DATE="Companies Edit Created Date"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created companies"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR="Companies Edit Datayear"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR_DESC="Allows the users in this group to update the edit datayear of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DATAYEAR_DESC="Allows the users in this group to edit datayear of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DEPARTMENT="Companies Edit Department"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DEPARTMENT_DESC="Allows the users in this group to update the edit department of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DEPARTMENT_DESC="Allows the users in this group to edit department of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_DESC="Allows the users in this group to edit the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_EMAIL="Companies Edit Email"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_EMAIL_DESC="Allows the users in this group to update the edit email of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_EMAIL_DESC="Allows the users in this group to edit email of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_OWN="Companies Edit Own"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_OWN_DESC="Allows the users in this group to edit edit own companies created by them"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER="Companies Edit Per"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE="Companies Edit Percentfemale"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE_DESC="Allows the users in this group to update the edit percentfemale of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTFEMALE_DESC="Allows the users in this group to edit percentfemale of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE="Companies Edit Percentmale"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE_DESC="Allows the users in this group to update the edit percentmale of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER_DESC="Allows the users in this group to update the edit per of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PERCENTMALE_DESC="Allows the users in this group to edit percentmale of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_PER_DESC="Allows the users in this group to edit per of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER="Companies Edit Service Provider"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER_DESC="Allows the users in this group to update the edit service provider of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_SERVICE_PROVIDER_DESC="Allows the users in this group to edit service provider of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_STATE="Companies Edit State"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_STATE_DESC="Allows the users in this group to update the state of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_USER="Companies Edit User"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_USER_DESC="Allows the users in this group to update the edit user of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_USER_DESC="Allows the users in this group to edit user of company"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_VERSION="Companies Edit Version"
COM_COSTBENEFITPROJECTION_COMPANIES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version companies"
COM_COSTBENEFITPROJECTION_COMPANIES_EXPORT="Companies Export"
@ -82,7 +82,7 @@ COM_COSTBENEFITPROJECTION_COMPANIES_EXPORT_DESC="Allows the users in this group
COM_COSTBENEFITPROJECTION_COMPANIES_IMPORT="Companies Import"
COM_COSTBENEFITPROJECTION_COMPANIES_IMPORT_DESC="Allows the users in this group to import import companies"
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU="Companies Submenu"
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the company"
COM_COSTBENEFITPROJECTION_COMPANIES_SUBMENU_DESC="Allows the users in this group to submenu of company"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS="Company Results Access"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_DESC="Allows the users in this group to access Company Results"
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_ACCESS_SITE="Company results (Site) Access"
@ -99,7 +99,7 @@ COM_COSTBENEFITPROJECTION_COUNTRIES_BATCH_USE_DESC="Allows users in this group t
COM_COSTBENEFITPROJECTION_COUNTRIES_CREATE="Countries Create"
COM_COSTBENEFITPROJECTION_COUNTRIES_CREATE_DESC="Allows the users in this group to create create countries"
COM_COSTBENEFITPROJECTION_COUNTRIES_DASHBOARD_LIST="Countries Dashboard List"
COM_COSTBENEFITPROJECTION_COUNTRIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the country"
COM_COSTBENEFITPROJECTION_COUNTRIES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of country"
COM_COSTBENEFITPROJECTION_COUNTRIES_DELETE="Countries Delete"
COM_COSTBENEFITPROJECTION_COUNTRIES_DELETE_DESC="Allows the users in this group to delete delete countries"
COM_COSTBENEFITPROJECTION_COUNTRIES_EDIT="Countries Edit"
@ -115,7 +115,7 @@ COM_COSTBENEFITPROJECTION_COUNTRIES_EXPORT_DESC="Allows the users in this group
COM_COSTBENEFITPROJECTION_COUNTRIES_IMPORT="Countries Import"
COM_COSTBENEFITPROJECTION_COUNTRIES_IMPORT_DESC="Allows the users in this group to import import countries"
COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU="Countries Submenu"
COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the country"
COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU_DESC="Allows the users in this group to submenu of country"
COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE="cPanel (Site) Access"
COM_COSTBENEFITPROJECTION_CPANEL_ACCESS_SITE_DESC=" Allows the users in this group to access site cpanel."
COM_COSTBENEFITPROJECTION_CREATE_ACCOUNT_GIZ_ACCESS_SITE="Create Account (giz) (Site) Access"
@ -127,7 +127,7 @@ COM_COSTBENEFITPROJECTION_CURRENCIES_BATCH_USE_DESC="Allows users in this group
COM_COSTBENEFITPROJECTION_CURRENCIES_CREATE="Currencies Create"
COM_COSTBENEFITPROJECTION_CURRENCIES_CREATE_DESC="Allows the users in this group to create create currencies"
COM_COSTBENEFITPROJECTION_CURRENCIES_DASHBOARD_LIST="Currencies Dashboard List"
COM_COSTBENEFITPROJECTION_CURRENCIES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the currency"
COM_COSTBENEFITPROJECTION_CURRENCIES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of currency"
COM_COSTBENEFITPROJECTION_CURRENCIES_DELETE="Currencies Delete"
COM_COSTBENEFITPROJECTION_CURRENCIES_DELETE_DESC="Allows the users in this group to delete delete currencies"
COM_COSTBENEFITPROJECTION_CURRENCIES_EDIT="Currencies Edit"
@ -143,7 +143,7 @@ COM_COSTBENEFITPROJECTION_CURRENCIES_EXPORT_DESC="Allows the users in this group
COM_COSTBENEFITPROJECTION_CURRENCIES_IMPORT="Currencies Import"
COM_COSTBENEFITPROJECTION_CURRENCIES_IMPORT_DESC="Allows the users in this group to import import currencies"
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU="Currencies Submenu"
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU_DESC="Allows the users in this group to update the submenu of the currency"
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU_DESC="Allows the users in this group to submenu of currency"
COM_COSTBENEFITPROJECTION_EDIT_CREATED_BY="Edit Created By"
COM_COSTBENEFITPROJECTION_EDIT_CREATED_BY_DESC=" Allows users in this group to edit created by."
COM_COSTBENEFITPROJECTION_EDIT_CREATED_DATE="Edit Created Date"
@ -159,23 +159,23 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_BATCH_USE_DESC="Allows users in this
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_CREATE="Health Data Sets Create"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_CREATE_DESC="Allows the users in this group to create create health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DASHBOARD_LIST="Health Data Sets Dashboard List"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DELETE="Health Data Sets Delete"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_DELETE_DESC="Allows the users in this group to delete delete health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT="Health Data Sets Edit"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_CAUSERISK="Health Data Sets Edit Causerisk"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_CAUSERISK_DESC="Allows the users in this group to update the edit causerisk of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_CAUSERISK_DESC="Allows the users in this group to edit causerisk of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_COUNTRY="Health Data Sets Edit Country"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_COUNTRY_DESC="Allows the users in this group to update the edit country of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_COUNTRY_DESC="Allows the users in this group to edit country of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_DESC="Allows the users in this group to edit the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEDEATH="Health Data Sets Edit Femaledeath"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEDEATH_DESC="Allows the users in this group to update the edit femaledeath of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEDEATH_DESC="Allows the users in this group to edit femaledeath of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEYLD="Health Data Sets Edit Femaleyld"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEYLD_DESC="Allows the users in this group to update the edit femaleyld of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_FEMALEYLD_DESC="Allows the users in this group to edit femaleyld of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEDEATH="Health Data Sets Edit Maledeath"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEDEATH_DESC="Allows the users in this group to update the edit maledeath of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEDEATH_DESC="Allows the users in this group to edit maledeath of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEYLD="Health Data Sets Edit Maleyld"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEYLD_DESC="Allows the users in this group to update the edit maleyld of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_MALEYLD_DESC="Allows the users in this group to edit maleyld of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_OWN="Health Data Sets Edit Own"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_OWN_DESC="Allows the users in this group to edit edit own health data sets created by them"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_STATE="Health Data Sets Edit State"
@ -183,13 +183,13 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_STATE_DESC="Allows the users in
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_VERSION="Health Data Sets Edit Version"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_YEAR="Health Data Sets Edit Year"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_YEAR_DESC="Allows the users in this group to update the edit year of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EDIT_YEAR_DESC="Allows the users in this group to edit year of health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EXPORT="Health Data Sets Export"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_EXPORT_DESC="Allows the users in this group to export export health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_IMPORT="Health Data Sets Import"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_IMPORT_DESC="Allows the users in this group to import import health data sets"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_SUBMENU="Health Data Sets Submenu"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_SUBMENU_DESC="Allows the users in this group to update the submenu of the health data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS_SUBMENU_DESC="Allows the users in this group to submenu of health data"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_ACCESS="Help Documents Access"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_ACCESS_DESC="Allows the users in this group to access access help documents"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_BATCH_USE="Help Documents Batch Use"
@ -197,7 +197,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_BATCH_USE_DESC="Allows users in this gr
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_CREATE="Help Documents Create"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_CREATE_DESC="Allows the users in this group to create create help documents"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DASHBOARD_LIST="Help Documents Dashboard List"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the help document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of help document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE="Help Documents Delete"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE_DESC="Allows the users in this group to delete delete help documents"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT="Help Documents Edit"
@ -213,7 +213,7 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EXPORT_DESC="Allows the users in this g
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_IMPORT="Help Documents Import"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_IMPORT_DESC="Allows the users in this group to import import help documents"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the help document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to submenu of help document"
COM_COSTBENEFITPROJECTION_IMPORT_DATA="Import Data"
COM_COSTBENEFITPROJECTION_IMPORT_DATA_DESC=" Allows users in this group to import data."
COM_COSTBENEFITPROJECTION_INTERVENTIONS_ACCESS="Interventions Access"
@ -223,9 +223,9 @@ COM_COSTBENEFITPROJECTION_INTERVENTIONS_BATCH_USE_DESC="Allows users in this gro
COM_COSTBENEFITPROJECTION_INTERVENTIONS_CREATE="Interventions Create"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_CREATE_DESC="Allows the users in this group to create create interventions"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_ADD="Interventions Dashboard Add"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_LIST="Interventions Dashboard List"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DELETE="Interventions Delete"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_DELETE_DESC="Allows the users in this group to delete delete interventions"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_EDIT="Interventions Edit"
@ -241,7 +241,7 @@ COM_COSTBENEFITPROJECTION_INTERVENTIONS_EXPORT_DESC="Allows the users in this gr
COM_COSTBENEFITPROJECTION_INTERVENTIONS_IMPORT="Interventions Import"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_IMPORT_DESC="Allows the users in this group to import import interventions"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_SUBMENU="Interventions Submenu"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_SUBMENU_DESC="Allows the users in this group to update the submenu of the intervention"
COM_COSTBENEFITPROJECTION_INTERVENTIONS_SUBMENU_DESC="Allows the users in this group to submenu of intervention"
COM_COSTBENEFITPROJECTION_MENU="&#187; Cost Benefit Projection"
COM_COSTBENEFITPROJECTION_MENU_COMPANIES="Companies"
COM_COSTBENEFITPROJECTION_MENU_CPANEL_DESC="The cpanel fo the front end"
@ -260,9 +260,9 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTORS_BATCH_USE_DESC="Allows users in this g
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_CREATE="Scaling Factors Create"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_CREATE_DESC="Allows the users in this group to create create scaling factors"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_ADD="Scaling Factors Dashboard Add"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_LIST="Scaling Factors Dashboard List"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DELETE="Scaling Factors Delete"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_DELETE_DESC="Allows the users in this group to delete delete scaling factors"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EDIT="Scaling Factors Edit"
@ -278,7 +278,7 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTORS_EXPORT_DESC="Allows the users in this
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_IMPORT="Scaling Factors Import"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_IMPORT_DESC="Allows the users in this group to import import scaling factors"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_SUBMENU="Scaling Factors Submenu"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_SUBMENU_DESC="Allows the users in this group to update the submenu of the scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_SUBMENU_DESC="Allows the users in this group to submenu of scaling factor"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_ACCESS="Service Providers Access"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_ACCESS_DESC="Allows the users in this group to access access service providers"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_BATCH_USE="Service Providers Batch Use"
@ -286,9 +286,9 @@ COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_BATCH_USE_DESC="Allows users in this
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_CREATE="Service Providers Create"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_CREATE_DESC="Allows the users in this group to create create service providers"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_ADD="Service Providers Dashboard Add"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_LIST="Service Providers Dashboard List"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DELETE="Service Providers Delete"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_DELETE_DESC="Allows the users in this group to delete delete service providers"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EDIT="Service Providers Edit"
@ -304,6 +304,6 @@ COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_EXPORT_DESC="Allows the users in thi
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_IMPORT="Service Providers Import"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_IMPORT_DESC="Allows the users in this group to import import service providers"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU="Service Providers Submenu"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU_DESC="Allows the users in this group to update the submenu of the service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU_DESC="Allows the users in this group to submenu of service provider"
COM_COSTBENEFITPROJECTION_USE_BATCH="Use Batch"
COM_COSTBENEFITPROJECTION_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method."

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage batchselection.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@ -18,20 +18,24 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = array(
$fields = $displayData->get('fields') ?: array(
'name',
'ref',
'alias'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field){
echo $form->renderField($field);
} ?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_fullwidth.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -27,16 +26,14 @@ $fields = $displayData->get('fields') ?: array(
'description'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<div class="control-group">
<div class="control-label">
<?php echo $form->getLabel($field); ?>
</div>
<div class="controls">
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -29,20 +28,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -29,20 +28,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
@ -18,10 +18,8 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@ -33,20 +31,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
@ -18,10 +18,8 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@ -35,20 +33,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_fullwidth.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -27,16 +26,14 @@ $fields = $displayData->get('fields') ?: array(
'age_groups_note'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<div class="control-group">
<div class="control-label">
<?php echo $form->getLabel($field); ?>
</div>
<div class="controls">
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_left.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -29,20 +28,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_right.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -29,20 +28,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -28,16 +27,14 @@ $fields = $displayData->get('fields') ?: array(
'cause_risk_selection_note'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<div class="control-group">
<div class="control-label">
<?php echo $form->getLabel($field); ?>
</div>
<div class="controls">
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@ -18,20 +18,24 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = array(
$fields = $displayData->get('fields') ?: array(
'name',
'user',
'department'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field){
echo $form->renderField($field);
} ?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -33,20 +32,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -39,20 +38,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_under.php
@ -18,18 +18,22 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = array(
$fields = $displayData->get('fields') ?: array(
'not_required'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field){
echo $form->renderField($field);
} ?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions_fullwidth.php
@ -18,16 +18,35 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->vwdinterventions;
$user = JFactory::getUser();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
// set a return value
$return = ($id) ? "index.php?option=com_costbenefitprojection&view=company&layout=edit&id=" . $id : "";
// check for a return value
$jinput = JFactory::getApplication()->input;
if ($_return = $jinput->get('return', null, 'base64'))
{
$return .= "&return=" . $_return;
}
// check if return value was set
if (CostbenefitprojectionHelper::checkString($return))
{
// set the referral values
$ref = ($id) ? "&ref=company&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
}
else
{
$ref = ($id) ? "&ref=company&refid=" . $id : "";
$new = "index.php?option=com_costbenefitprojection&view=intervention&layout=edit".$ref;
}
// set the create new URL
$new = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit" . $ref;
// load the action object
$can = CostbenefitprojectionHelper::getActions('intervention');
?>
@ -73,14 +92,14 @@ $can = CostbenefitprojectionHelper::getActions('intervention');
$canDo = CostbenefitprojectionHelper::getActions('intervention',$item,'interventions');
?>
<tr>
<td class="nowrap">
<td>
<?php if ($canDo->get('intervention.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=company&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo $displayData->escape($item->name); ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'interventions.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<div class="name"><?php echo $displayData->escape($item->name); ?></div>
<?php echo $displayData->escape($item->name); ?>
<?php endif; ?>
</td>
<td>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
@ -18,10 +18,8 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@ -33,20 +31,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
@ -18,10 +18,8 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@ -35,20 +33,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factors_fullwidth.php
@ -18,14 +18,32 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->vwcscaling_factors;
$user = JFactory::getUser();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
// set a return value
$return = ($id) ? "index.php?option=com_costbenefitprojection&view=company&layout=edit&id=" . $id : "";
// check for a return value
$jinput = JFactory::getApplication()->input;
if ($_return = $jinput->get('return', null, 'base64'))
{
$return .= "&return=" . $_return;
}
// check if return value was set
if (CostbenefitprojectionHelper::checkString($return))
{
// set the referral values
$ref = ($id) ? "&ref=company&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
}
else
{
$ref = ($id) ? "&ref=company&refid=" . $id : "";
}
?>
<div class="form-vertical">
@ -73,14 +91,14 @@ $edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=sc
$canDo = CostbenefitprojectionHelper::getActions('scaling_factor',$item,'scaling_factors');
?>
<tr>
<td class="nowrap">
<td>
<?php if ($canDo->get('scaling_factor.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=company&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->causerisk_name); ?></a>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo $displayData->escape($item->causerisk_name); ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'scaling_factors.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<div class="name"><?php echo $displayData->escape($item->causerisk_name); ?></div>
<?php echo $displayData->escape($item->causerisk_name); ?>
<?php endif; ?>
</td>
<td>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_left.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -29,20 +28,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_right.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -29,20 +28,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -27,16 +26,14 @@ $fields = $displayData->get('fields') ?: array(
'causesrisks'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<div class="control-group">
<div class="control-label">
<?php echo $form->getLabel($field); ?>
</div>
<div class="controls">
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companies_fullwidth.php
@ -18,16 +18,35 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->vwhcompanies;
$user = JFactory::getUser();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
// set a return value
$return = ($id) ? "index.php?option=com_costbenefitprojection&view=country&layout=edit&id=" . $id : "";
// check for a return value
$jinput = JFactory::getApplication()->input;
if ($_return = $jinput->get('return', null, 'base64'))
{
$return .= "&return=" . $_return;
}
// check if return value was set
if (CostbenefitprojectionHelper::checkString($return))
{
// set the referral values
$ref = ($id) ? "&ref=country&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
}
else
{
$ref = ($id) ? "&ref=country&refid=" . $id : "";
$new = "index.php?option=com_costbenefitprojection&view=company&layout=edit".$ref;
}
// set the create new URL
$new = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit" . $ref;
// load the action object
$can = CostbenefitprojectionHelper::getActions('company');
?>
@ -73,29 +92,28 @@ $can = CostbenefitprojectionHelper::getActions('company');
$canDo = CostbenefitprojectionHelper::getActions('company',$item,'companies');
?>
<tr>
<td class="nowrap">
<td>
<?php if ($canDo->get('company.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=country&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo $displayData->escape($item->name); ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'companies.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<div class="name"><?php echo $displayData->escape($item->name); ?></div>
<?php echo $displayData->escape($item->name); ?>
<?php endif; ?>
<div class="btn-group">
<?php if ($canDo->get('companyresults.access')): ?>
<a class="hasTooltip btn btn-mini" href="index.php?option=com_costbenefitprojection&view=companyresults&id=<?php echo $item->id; ?>&ref=country&refid=<?php echo $id; ?>" title="<?php echo JText::_('COM_COSTBENEFITPROJECTION_COMPANYRESULTS'); ?>" ><span class="icon-chart"></span></a>
<a class="hasTooltip btn btn-mini" href="index.php?option=com_costbenefitprojection&view=companyresults&id=<?php echo $item->id; ?><?php echo $ref; ?>" title="<?php echo JText::_('COM_COSTBENEFITPROJECTION_COMPANYRESULTS'); ?>" ><span class="icon-chart"></span></a>
<?php else: ?>
<a class="hasTooltip btn btn-mini disabled" href="#" title="<?php echo JText::_('COM_COSTBENEFITPROJECTION_COMPANYRESULTS'); ?>"><span class="icon-chart"></span></a>
<?php endif; ?>
</div>
</td>
<?php $_user = JFactory::getUser($item->user); ?>
<td class="nowrap">
<td>
<?php if ($user->authorise('core.edit', 'com_users')): ?>
<a href="index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->user ?>"><?php echo $_user->name; ?></a>
<a href="index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->user ?>"><?php echo JFactory::getUser((int)$item->user)->name; ?></a>
<?php else: ?>
<?php echo $_user->name; ?>
<?php echo JFactory::getUser((int)$item->user)->name; ?>
<?php endif; ?>
</td>
<td>
@ -104,11 +122,11 @@ $can = CostbenefitprojectionHelper::getActions('company');
<td>
<?php echo $displayData->escape($item->country_name); ?>
</td>
<td class="nowrap">
<td>
<?php if ($user->authorise('service_provider.edit', 'com_costbenefitprojection.service_provider.' . (int)$item->service_provider)): ?>
<a href="index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit&id=<?php echo $item->service_provider; ?>&ref=country&refid=<?php echo $id; ?>"><?php echo JFactory::getUser((int)$item->service_provider_user)->name; ?></a>
<a href="index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit&id=<?php echo $item->service_provider; ?><?php echo $ref; ?>"><?php echo JFactory::getUser((int)$item->service_provider_user)->name; ?></a>
<?php else: ?>
<div class="name"><?php echo JFactory::getUser((int)$item->service_provider_user)->name; ?></div>
<?php echo JFactory::getUser((int)$item->service_provider_user)->name; ?>
<?php endif; ?>
</td>
<td>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@ -18,20 +18,24 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = array(
$fields = $displayData->get('fields') ?: array(
'name',
'alias',
'user'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field){
echo $form->renderField($field);
} ?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -33,20 +32,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -34,20 +33,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_totals_left.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -30,20 +29,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_totals_right.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -30,20 +29,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions_fullwidth.php
@ -18,16 +18,35 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->vwfinterventions;
$user = JFactory::getUser();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
// set a return value
$return = ($id) ? "index.php?option=com_costbenefitprojection&view=country&layout=edit&id=" . $id : "";
// check for a return value
$jinput = JFactory::getApplication()->input;
if ($_return = $jinput->get('return', null, 'base64'))
{
$return .= "&return=" . $_return;
}
// check if return value was set
if (CostbenefitprojectionHelper::checkString($return))
{
// set the referral values
$ref = ($id) ? "&ref=country&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
}
else
{
$ref = ($id) ? "&ref=country&refid=" . $id : "";
$new = "index.php?option=com_costbenefitprojection&view=intervention&layout=edit".$ref;
}
// set the create new URL
$new = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit" . $ref;
// load the action object
$can = CostbenefitprojectionHelper::getActions('intervention');
?>
@ -73,21 +92,21 @@ $can = CostbenefitprojectionHelper::getActions('intervention');
$canDo = CostbenefitprojectionHelper::getActions('intervention',$item,'interventions');
?>
<tr>
<td class="nowrap">
<td>
<?php if ($canDo->get('intervention.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=country&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo $displayData->escape($item->name); ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'interventions.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<div class="name"><?php echo $displayData->escape($item->name); ?></div>
<?php echo $displayData->escape($item->name); ?>
<?php endif; ?>
</td>
<td class="nowrap">
<td>
<?php if ($user->authorise('company.edit', 'com_costbenefitprojection.company.' . (int)$item->company)): ?>
<a href="index.php?option=com_costbenefitprojection&view=companies&task=company.edit&id=<?php echo $item->company; ?>&ref=country&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->company_name); ?></a>
<a href="index.php?option=com_costbenefitprojection&view=companies&task=company.edit&id=<?php echo $item->company; ?><?php echo $ref; ?>"><?php echo $displayData->escape($item->company_name); ?></a>
<?php else: ?>
<div class="name"><?php echo $displayData->escape($item->company_name); ?></div>
<?php echo $displayData->escape($item->company_name); ?>
<?php endif; ?>
</td>
<td>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage public_details_fullwidth.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -30,16 +29,14 @@ $fields = $displayData->get('fields') ?: array(
'publicaddress'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-vertical">
<?php foreach($fields as $field): ?>
<div class="control-group">
<div class="control-label">
<?php echo $form->getLabel($field); ?>
</div>
<div class="controls">
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
@ -18,10 +18,8 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@ -33,20 +31,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
@ -18,10 +18,8 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@ -35,20 +33,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_providers_fullwidth.php
@ -18,16 +18,35 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->vwgservice_providers;
$user = JFactory::getUser();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit";
// set a return value
$return = ($id) ? "index.php?option=com_costbenefitprojection&view=country&layout=edit&id=" . $id : "";
// check for a return value
$jinput = JFactory::getApplication()->input;
if ($_return = $jinput->get('return', null, 'base64'))
{
$return .= "&return=" . $_return;
}
// check if return value was set
if (CostbenefitprojectionHelper::checkString($return))
{
// set the referral values
$ref = ($id) ? "&ref=country&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
}
else
{
$ref = ($id) ? "&ref=country&refid=" . $id : "";
$new = "index.php?option=com_costbenefitprojection&view=service_provider&layout=edit".$ref;
}
// set the create new URL
$new = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit" . $ref;
// load the action object
$can = CostbenefitprojectionHelper::getActions('service_provider');
?>
@ -73,14 +92,14 @@ $can = CostbenefitprojectionHelper::getActions('service_provider');
$canDo = CostbenefitprojectionHelper::getActions('service_provider',$item,'service_providers');
?>
<tr>
<td class="nowrap">
<td>
<?php if ($canDo->get('service_provider.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=country&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->user_name); ?></a>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo JFactory::getUser((int)$item->user)->name; ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'service_providers.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<div class="name"><?php echo $displayData->escape($item->user_name); ?></div>
<?php echo JFactory::getUser((int)$item->user)->name; ?>
<?php endif; ?>
</td>
<td>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@ -18,19 +18,23 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = array(
$fields = $displayData->get('fields') ?: array(
'name',
'alias'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?>
<div class="form-inline form-inline-header">
<?php foreach($fields as $field){
echo $form->renderField($field);
} ?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -32,20 +31,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
@ -32,20 +31,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php
@ -18,10 +18,8 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@ -33,20 +31,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php
@ -18,10 +18,8 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@ -35,20 +33,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field)
{
$field = is_array($field) ? $field : array($field);
foreach ($field as $f)
{
if ($form->getField($f))
{
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}
?>
<?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.4.3
@build 17th May, 2018
@version 3.4.x
@build 4th April, 2019
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage databreakdownmalefemale.php
@ -18,7 +18,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_BASE') or die('Restricted access');
$builder = array(

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