update - v3.4.7

This commit is contained in:
Llewellyn van der Merwe 2022-03-03 04:58:38 +02:00
parent 754b83d003
commit 9bbad05f85
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
469 changed files with 34452 additions and 34771 deletions

View File

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

View File

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

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<access component="com_costbenefitprojection"> <access component="com_costbenefitprojection">
<section name="component"> <section name="component">
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" /> <action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
<action name="core.options" title="JACTION_OPTIONS" description="JACTION_OPTIONS_COMPONENT_DESC" /> <action name="core.options" title="JACTION_OPTIONS" description="JACTION_OPTIONS_COMPONENT_DESC" />
@ -258,5 +258,5 @@
<action name="help_document.delete" title="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE" description="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE_DESC" /> <action name="help_document.delete" title="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE" description="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_DELETE_DESC" />
<action name="help_document.access" title="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_ACCESS" description="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_ACCESS_DESC" /> <action name="help_document.access" title="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_ACCESS" description="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_ACCESS_DESC" />
<action name="help_document.version" title="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_VERSION" description="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_VERSION_DESC" /> <action name="help_document.version" title="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_VERSION" description="COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_EDIT_VERSION_DESC" />
</section> </section>
</access> </access>

View File

@ -1,23 +1,23 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage admin.css @subpackage admin.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */
.no-click { .no-click {
pointer-events: none; pointer-events: none;
} }

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causerisk.css @subpackage causerisk.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causesrisks.css @subpackage causesrisks.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,23 +1,23 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage combinedresults.css @subpackage combinedresults.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */
/* ---- Table ---- */ /* ---- Table ---- */
table { table {
@ -207,4 +207,4 @@ table th.sort-up:after {
position: absolute; position: absolute;
right: -32px; right: -32px;
top: 6px; top: 6px;
} }

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companies.css @subpackage companies.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,24 +1,24 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage company.css @subpackage company.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */
input[type="checkbox"] { input[type="checkbox"] {
margin: 0 !important; margin: 0 !important;
} }

View File

@ -1,23 +1,23 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companyresults.css @subpackage companyresults.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */
/* ---- Table ---- */ /* ---- Table ---- */
table { table {
@ -207,4 +207,4 @@ table th.sort-up:after {
position: absolute; position: absolute;
right: -32px; right: -32px;
top: 6px; top: 6px;
} }

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage countries.css @subpackage countries.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,24 +1,24 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage country.css @subpackage country.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */
input[type="checkbox"] { input[type="checkbox"] {
margin: 0 !important; margin: 0 !important;
} }

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage currencies.css @subpackage currencies.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage currency.css @subpackage currency.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,171 +1,171 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage dashboard.css @subpackage dashboard.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */
.dashboard-container { .dashboard-container {
margin-left: 10px; margin-left: 10px;
margin-top: 10px; margin-top: 10px;
width: 100%; width: 100%;
} }
.dashboard-container [class*="span"] { .dashboard-container [class*="span"] {
display: block; display: block;
float: none; float: none;
margin-left: 0; margin-left: 0;
width: auto; width: auto;
} }
.dashboard-container:before, .dashboard-container:after { .dashboard-container:before, .dashboard-container:after {
content: ""; content: "";
display: table; display: table;
} }
.dashboard-container:after { .dashboard-container:after {
clear: both; clear: both;
} }
.dashboard-container [class*="span"] { .dashboard-container [class*="span"] {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
float: left; float: left;
min-height: 145px; min-height: 145px;
min-width: 96px; min-width: 96px;
width: 100%; width: 100%;
} }
.dashboard-container [class*="span"]:first-child { .dashboard-container [class*="span"]:first-child {
margin-left: 0; margin-left: 0;
} }
.dashboard-wraper { .dashboard-wraper {
background: none repeat scroll 0 0 hsl(0, 0%, 93%); background: none repeat scroll 0 0 hsl(0, 0%, 93%);
border-radius: 5px; border-radius: 5px;
float: left; float: left;
margin: 1%; margin: 1%;
padding: 3px; padding: 3px;
width: 17%; width: 17%;
min-height: 194px; min-height: 194px;
min-width: 96px; min-width: 96px;
} }
.dashboard-content a { .dashboard-content a {
background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 85%); border: 1px solid hsl(0, 0%, 85%);
border-radius: 4px; border-radius: 4px;
box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset; box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
color: hsl(0, 0%, 20%); color: hsl(0, 0%, 20%);
display: block; display: block;
min-height: 89px; min-height: 89px;
padding: 10px; padding: 10px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
} }
.dashboard-content a:hover { .dashboard-content a:hover {
background: linear-gradient(to bottom, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 100%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); background: linear-gradient(to bottom, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 100%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
color: hsl(200, 100%, 30%); color: hsl(200, 100%, 30%);
text-decoration: none; text-decoration: none;
} }
.dashboard-title { .dashboard-title {
display: block; display: block;
padding-top: 5px; padding-top: 5px;
} }
.dashboard-info { .dashboard-info {
background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 85%); border: 1px solid hsl(0, 0%, 85%);
border-radius: 4px; border-radius: 4px;
box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset; box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
color: hsl(0, 0%, 20%); color: hsl(0, 0%, 20%);
display: block; display: block;
font-size: 12px; font-size: 12px;
padding: 10px; padding: 10px;
text-align: center; text-align: center;
} }
.dashboard-info span { .dashboard-info span {
display: block; display: block;
text-align: center; text-align: center;
} }
.dashboard-info img { .dashboard-info img {
margin: 0 auto; margin: 0 auto;
} }
.dashboard-table { .dashboard-table {
border-top: 1px solid hsl(0, 0%, 87%); border-top: 1px solid hsl(0, 0%, 87%);
margin-top: 5px; margin-top: 5px;
width: 100%; width: 100%;
} }
.dashboard-info h5 { .dashboard-info h5 {
font-size: 11px; font-size: 11px;
font-weight: bold; font-weight: bold;
} }
.dashboard-block { .dashboard-block {
background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 76%); border: 1px solid hsl(0, 0%, 76%);
border-radius: 3px; border-radius: 3px;
box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset; box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset;
margin-bottom: 20px; margin-bottom: 20px;
} }
.dashboard-block .dashboard-block-head { .dashboard-block .dashboard-block-head {
background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0); background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border-bottom: 1px solid hsl(0, 0%, 76%); border-bottom: 1px solid hsl(0, 0%, 76%);
border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;
box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset, 0 0 3px hsl(0, 0%, 87%); box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset, 0 0 3px hsl(0, 0%, 87%);
height: 40px; height: 40px;
position: relative; position: relative;
} }
.dashboard-block .dashboard-block-head h5 { .dashboard-block .dashboard-block-head h5 {
font-size: 12px; font-size: 12px;
margin: 0; margin: 0;
padding-left: 10px; padding-left: 10px;
padding-top: 11px; padding-top: 11px;
text-transform: uppercase; text-transform: uppercase;
} }
.dashboard-block .dashboard-block-content { .dashboard-block .dashboard-block-content {
background: none repeat scroll 0 0 hsl(0, 0%, 93%); background: none repeat scroll 0 0 hsl(0, 0%, 93%);
border-radius: 0 0 3px 3px; border-radius: 0 0 3px 3px;
} }
.dashboard-block .dashboard-block-box { .dashboard-block .dashboard-block-box {
background: none repeat scroll 0 0 hsl(0, 0%, 100%); background: none repeat scroll 0 0 hsl(0, 0%, 100%);
border-top: 1px solid hsl(0, 0%, 82%); border-top: 1px solid hsl(0, 0%, 82%);
box-shadow: 0 0 5px hsl(0, 0%, 87%) inset; box-shadow: 0 0 5px hsl(0, 0%, 87%) inset;
} }
.dashboard-block .dashboard-block-content .dashboard-block-box { .dashboard-block .dashboard-block-content .dashboard-block-box {
margin-top: 0 !important; margin-top: 0 !important;
} }
.dashboard-block .dashboard-block-content .dashboard-block-box .dashboard-block-table { .dashboard-block .dashboard-block-content .dashboard-block-box .dashboard-block-table {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
.dashboard-block-table { .dashboard-block-table {
background-color: hsla(0, 0%, 0%, 0); background-color: hsla(0, 0%, 0%, 0);
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
margin-bottom: 20px; margin-bottom: 20px;
max-width: 100%; max-width: 100%;
width: 100%; width: 100%;
} }
.dashboard-block-table th, .dashboard-block-table td { .dashboard-block-table th, .dashboard-block-table td {
border-top: 1px solid hsl(0, 0%, 87%); border-top: 1px solid hsl(0, 0%, 87%);
line-height: 20px; line-height: 20px;
padding: 5px; padding: 5px;
text-align: left; text-align: left;
vertical-align: middle; vertical-align: middle;
} }
.dashboard-badge { .dashboard-badge {
background-color: hsl(0, 0%, 60%); background-color: hsl(0, 0%, 60%);
border-radius: 9px; border-radius: 9px;
color: hsl(0, 0%, 100%); color: hsl(0, 0%, 100%);
font-size: 11.844px; font-size: 11.844px;
font-weight: bold; font-weight: bold;
line-height: 14px; line-height: 14px;
padding: 1px 9px 2px; padding: 1px 9px 2px;
text-shadow: 0 -1px 0 hsla(0, 0%, 0%, 0.25); text-shadow: 0 -1px 0 hsla(0, 0%, 0%, 0.25);
vertical-align: baseline; vertical-align: baseline;
white-space: nowrap; white-space: nowrap;
} }

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data.css @subpackage health_data.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data_sets.css @subpackage health_data_sets.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help_document.css @subpackage help_document.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help_documents.css @subpackage help_documents.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,23 +1,23 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage intervention.css @subpackage intervention.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */
.text_area{ .text_area{
height: 200px; height: 200px;
@ -25,4 +25,4 @@
} }
.causewidth { .causewidth {
width: 100%; width: 100%;
} }

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage interventions.css @subpackage interventions.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,25 +1,25 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factor.css @subpackage scaling_factor.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */
.text_area{ .text_area{
height: 200px; height: 200px;
width: 100%; width: 100%;
} }

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factors.css @subpackage scaling_factors.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_provider.css @subpackage service_provider.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,21 +1,21 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_providers.css @subpackage service_providers.css
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* CSS Document */ /* CSS Document */

View File

@ -1,19 +1,19 @@
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage admin.js @subpackage admin.js
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
/* JS Document */ /* JS Document */

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<config> <config>
<fieldset <fieldset
addrulepath="/administrator/components/com_costbenefitprojection/models/rules" addrulepath="/administrator/components/com_costbenefitprojection/models/rules"
addfieldpath="/administrator/components/com_costbenefitprojection/models/fields" addfieldpath="/administrator/components/com_costbenefitprojection/models/fields"
@ -546,20 +546,20 @@
message="COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_MESSAGE" message="COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_MESSAGE"
hint="COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_HINT" hint="COM_COSTBENEFITPROJECTION_CONFIG_INFORMATION_URL_HINT"
/> />
</fieldset> </fieldset>
<fieldset <fieldset
name="permissions" name="permissions"
label="JCONFIG_PERMISSIONS_LABEL" label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"> description="JCONFIG_PERMISSIONS_DESC">
<field <field
name="rules" name="rules"
type="rules" type="rules"
label="JCONFIG_PERMISSIONS_LABEL" label="JCONFIG_PERMISSIONS_LABEL"
class="inputbox" class="inputbox"
validate="rules" validate="rules"
filter="rules" filter="rules"
component="com_costbenefitprojection" component="com_costbenefitprojection"
section="component" section="component"
/> />
</fieldset> </fieldset>
</config> </config>

View File

@ -1,104 +1,104 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage controller.php @subpackage controller.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* General Controller of Costbenefitprojection component * General Controller of Costbenefitprojection component
*/ */
class CostbenefitprojectionController extends JControllerLegacy class CostbenefitprojectionController extends JControllerLegacy
{ {
/** /**
* Constructor. * Constructor.
* *
* @param array $config An optional associative array of configuration settings. * @param array $config An optional associative array of configuration settings.
* Recognized key values include 'name', 'default_task', 'model_path', and * Recognized key values include 'name', 'default_task', 'model_path', and
* 'view_path' (this list is not meant to be comprehensive). * 'view_path' (this list is not meant to be comprehensive).
* *
* @since 3.0 * @since 3.0
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
// set the default view // set the default view
$config['default_view'] = 'costbenefitprojection'; $config['default_view'] = 'costbenefitprojection';
parent::__construct($config); parent::__construct($config);
} }
/** /**
* display task * display task
* *
* @return void * @return void
*/ */
function display($cachable = false, $urlparams = false) function display($cachable = false, $urlparams = false)
{ {
// set default view if not set // set default view if not set
$view = $this->input->getCmd('view', 'costbenefitprojection'); $view = $this->input->getCmd('view', 'costbenefitprojection');
$data = $this->getViewRelation($view); $data = $this->getViewRelation($view);
$layout = $this->input->get('layout', null, 'WORD'); $layout = $this->input->get('layout', null, 'WORD');
$id = $this->input->getInt('id'); $id = $this->input->getInt('id');
// Check for edit form. // Check for edit form.
if(CostbenefitprojectionHelper::checkArray($data)) if(CostbenefitprojectionHelper::checkArray($data))
{ {
if ($data['edit'] && $layout == 'edit' && !$this->checkEditId('com_costbenefitprojection.edit.'.$data['view'], $id)) if ($data['edit'] && $layout == 'edit' && !$this->checkEditId('com_costbenefitprojection.edit.'.$data['view'], $id))
{ {
// Somehow the person just went to the form - we don't allow that. // Somehow the person just went to the form - we don't allow that.
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));
$this->setMessage($this->getError(), 'error'); $this->setMessage($this->getError(), 'error');
// check if item was opend from other then its own list view // check if item was opend from other then its own list view
$ref = $this->input->getCmd('ref', 0); $ref = $this->input->getCmd('ref', 0);
$refid = $this->input->getInt('refid', 0); $refid = $this->input->getInt('refid', 0);
// set redirect // set redirect
if ($refid > 0 && CostbenefitprojectionHelper::checkString($ref)) if ($refid > 0 && CostbenefitprojectionHelper::checkString($ref))
{ {
// redirect to item of ref // redirect to item of ref
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false));
} }
elseif (CostbenefitprojectionHelper::checkString($ref)) elseif (CostbenefitprojectionHelper::checkString($ref))
{ {
// redirect to ref // redirect to ref
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.(string)$ref, false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.(string)$ref, false));
} }
else else
{ {
// normal redirect back to the list view // normal redirect back to the list view
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.$data['views'], false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view='.$data['views'], false));
} }
return false; return false;
} }
} }
return parent::display($cachable, $urlparams); return parent::display($cachable, $urlparams);
} }
protected function getViewRelation($view) protected function getViewRelation($view)
{ {
// check the we have a value // check the we have a value
if (CostbenefitprojectionHelper::checkString($view)) if (CostbenefitprojectionHelper::checkString($view))
{ {
// the view relationships // the view relationships
$views = array( $views = array(
'company' => 'companies', 'company' => 'companies',
'service_provider' => 'service_providers', 'service_provider' => 'service_providers',
@ -108,21 +108,21 @@ class CostbenefitprojectionController extends JControllerLegacy
'scaling_factor' => 'scaling_factors', 'scaling_factor' => 'scaling_factors',
'intervention' => 'interventions', 'intervention' => 'interventions',
'currency' => 'currencies', 'currency' => 'currencies',
'help_document' => 'help_documents' 'help_document' => 'help_documents'
); );
// check if this is a list view // check if this is a list view
if (in_array($view, $views)) if (in_array($view, $views))
{ {
// this is a list view // this is a list view
return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view); return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view);
} }
// check if it is an edit view // check if it is an edit view
elseif (array_key_exists($view, $views)) elseif (array_key_exists($view, $views))
{ {
// this is a edit view // this is a edit view
return array('edit' => true, 'view' => $view, 'views' => $views[$view]); return array('edit' => true, 'view' => $view, 'views' => $views[$view]);
} }
} }
return false; return false;
} }
} }

View File

@ -1,63 +1,71 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage ajax.json.php @subpackage ajax.json.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Costbenefitprojection Ajax Controller * Costbenefitprojection Ajax Controller
*/ */
class CostbenefitprojectionControllerAjax extends JControllerLegacy class CostbenefitprojectionControllerAjax extends JControllerLegacy
{ {
public function __construct($config) public function __construct($config)
{ {
parent::__construct($config); parent::__construct($config);
// make sure all json stuff are set // make sure all json stuff are set
JFactory::getDocument()->setMimeEncoding( 'application/json' ); JFactory::getDocument()->setMimeEncoding( 'application/json' );
JResponse::setHeader('Content-Disposition','attachment;filename="getajax.json"'); // get the application
JResponse::setHeader("Access-Control-Allow-Origin", "*"); $app = JFactory::getApplication();
$app->setHeader('Content-Disposition','attachment;filename="getajax.json"');
$app->setHeader('Access-Control-Allow-Origin', '*');
// load the tasks // load the tasks
$this->registerTask('calculatedResult', 'ajax'); $this->registerTask('calculatedResult', 'ajax');
$this->registerTask('interventionBuildTable', 'ajax'); $this->registerTask('interventionBuildTable', 'ajax');
$this->registerTask('getClusterData', 'ajax'); $this->registerTask('getClusterData', 'ajax');
$this->registerTask('isNew', 'ajax'); $this->registerTask('isNew', 'ajax');
$this->registerTask('isRead', 'ajax'); $this->registerTask('isRead', 'ajax');
} }
public function ajax() public function ajax()
{ {
$user = JFactory::getUser(); // get the user for later use
$jinput = JFactory::getApplication()->input; $user = JFactory::getUser();
// Check Token! // get the input values
$token = JSession::getFormToken(); $jinput = JFactory::getApplication()->input;
$call_token = $jinput->get('token', 0, 'ALNUM'); // check if we should return raw
if($jinput->get($token, 0, 'ALNUM') || $token === $call_token) $returnRaw = $jinput->get('raw', false, 'BOOLEAN');
{ // return to a callback function
$task = $this->getTask(); $callback = $jinput->get('callback', null, 'CMD');
switch($task) // Check Token!
$token = JSession::getFormToken();
$call_token = $jinput->get('token', 0, 'ALNUM');
if($jinput->get($token, 0, 'ALNUM') || $token === $call_token)
{
// get the task
$task = $this->getTask();
switch($task)
{ {
case 'calculatedResult': case 'calculatedResult':
try try
{ {
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
$idValue = $jinput->get('id', NULL, 'INT'); $idValue = $jinput->get('id', NULL, 'INT');
$dataValue = $jinput->get('data', NULL, 'BASE64'); $dataValue = $jinput->get('data', NULL, 'BASE64');
if($idValue && $dataValue) if($idValue && $dataValue)
@ -68,7 +76,7 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
{ {
$result = false; $result = false;
} }
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback . "(".json_encode($result).");"; echo $callback . "(".json_encode($result).");";
} }
@ -83,10 +91,14 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
} }
catch(Exception $e) catch(Exception $e)
{ {
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback."(".json_encode($e).");"; echo $callback."(".json_encode($e).");";
} }
elseif($returnRaw)
{
echo json_encode($e);
}
else else
{ {
echo "(".json_encode($e).");"; echo "(".json_encode($e).");";
@ -96,7 +108,6 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
case 'interventionBuildTable': case 'interventionBuildTable':
try try
{ {
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
$idNameValue = $jinput->get('idName', NULL, 'CMD'); $idNameValue = $jinput->get('idName', NULL, 'CMD');
$ojectValue = $jinput->get('oject', NULL, 'STRING'); $ojectValue = $jinput->get('oject', NULL, 'STRING');
$clusterValue = $jinput->get('cluster', NULL, 'WORD'); $clusterValue = $jinput->get('cluster', NULL, 'WORD');
@ -108,7 +119,7 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
{ {
$result = false; $result = false;
} }
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback . "(".json_encode($result).");"; echo $callback . "(".json_encode($result).");";
} }
@ -123,10 +134,14 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
} }
catch(Exception $e) catch(Exception $e)
{ {
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback."(".json_encode($e).");"; echo $callback."(".json_encode($e).");";
} }
elseif($returnRaw)
{
echo json_encode($e);
}
else else
{ {
echo "(".json_encode($e).");"; echo "(".json_encode($e).");";
@ -136,7 +151,6 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
case 'getClusterData': case 'getClusterData':
try try
{ {
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
$idNameValue = $jinput->get('idName', NULL, 'CMD'); $idNameValue = $jinput->get('idName', NULL, 'CMD');
$clusterValue = $jinput->get('cluster', NULL, 'STRING'); $clusterValue = $jinput->get('cluster', NULL, 'STRING');
if($idNameValue && $user->id != 0 && $clusterValue) if($idNameValue && $user->id != 0 && $clusterValue)
@ -147,7 +161,7 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
{ {
$result = false; $result = false;
} }
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback . "(".json_encode($result).");"; echo $callback . "(".json_encode($result).");";
} }
@ -162,10 +176,14 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
} }
catch(Exception $e) catch(Exception $e)
{ {
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback."(".json_encode($e).");"; echo $callback."(".json_encode($e).");";
} }
elseif($returnRaw)
{
echo json_encode($e);
}
else else
{ {
echo "(".json_encode($e).");"; echo "(".json_encode($e).");";
@ -175,7 +193,6 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
case 'isNew': case 'isNew':
try try
{ {
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
$noticeValue = $jinput->get('notice', NULL, 'STRING'); $noticeValue = $jinput->get('notice', NULL, 'STRING');
if($noticeValue && $user->id != 0) if($noticeValue && $user->id != 0)
{ {
@ -185,7 +202,7 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
{ {
$result = false; $result = false;
} }
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback . "(".json_encode($result).");"; echo $callback . "(".json_encode($result).");";
} }
@ -200,10 +217,14 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
} }
catch(Exception $e) catch(Exception $e)
{ {
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback."(".json_encode($e).");"; echo $callback."(".json_encode($e).");";
} }
elseif($returnRaw)
{
echo json_encode($e);
}
else else
{ {
echo "(".json_encode($e).");"; echo "(".json_encode($e).");";
@ -213,7 +234,6 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
case 'isRead': case 'isRead':
try try
{ {
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
$noticeValue = $jinput->get('notice', NULL, 'STRING'); $noticeValue = $jinput->get('notice', NULL, 'STRING');
if($noticeValue && $user->id != 0) if($noticeValue && $user->id != 0)
{ {
@ -223,7 +243,7 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
{ {
$result = false; $result = false;
} }
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback . "(".json_encode($result).");"; echo $callback . "(".json_encode($result).");";
} }
@ -238,28 +258,37 @@ class CostbenefitprojectionControllerAjax extends JControllerLegacy
} }
catch(Exception $e) catch(Exception $e)
{ {
if($callback = $jinput->get('callback', null, 'CMD')) if($callback)
{ {
echo $callback."(".json_encode($e).");"; echo $callback."(".json_encode($e).");";
} }
elseif($returnRaw)
{
echo json_encode($e);
}
else else
{ {
echo "(".json_encode($e).");"; echo "(".json_encode($e).");";
} }
} }
break; break;
} }
} }
else else
{ {
if($callback = $jinput->get('callback', null, 'CMD')) // return to a callback function
{ if($callback)
echo $callback."(".json_encode(false).");"; {
} echo $callback."(".json_encode(false).");";
else }
{ elseif($returnRaw)
echo "(".json_encode(false).");"; {
} echo json_encode(false);
} }
} else
} {
echo "(".json_encode(false).");";
}
}
}
}

View File

@ -1,64 +1,64 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causerisk.php @subpackage causerisk.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Causerisk Controller * Causerisk Controller
*/ */
class CostbenefitprojectionControllerCauserisk extends JControllerForm class CostbenefitprojectionControllerCauserisk extends JControllerForm
{ {
/** /**
* Current or most recently performed task. * Current or most recently performed task.
* *
* @var string * @var string
* @since 12.2 * @since 12.2
* @note Replaces _task. * @note Replaces _task.
*/ */
protected $task; protected $task;
/** /**
* Class constructor. * Class constructor.
* *
* @param array $config A named array of configuration variables. * @param array $config A named array of configuration variables.
* *
* @since 1.6 * @since 1.6
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->view_list = 'Causesrisks'; // safeguard for setting the return view listing to the main view. $this->view_list = 'Causesrisks'; // safeguard for setting the return view listing to the main view.
parent::__construct($config); parent::__construct($config);
} }
/** /**
* Method override to check if you can add a new record. * Method override to check if you can add a new record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowAdd($data = array()) protected function allowAdd($data = array())
{ {
// Get user object. // Get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -70,20 +70,20 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
} }
// In the absense of better information, revert to the component permissions. // In the absense of better information, revert to the component permissions.
return $user->authorise('causerisk.create', $this->option); return $user->authorise('causerisk.create', $this->option);
} }
/** /**
* Method override to check if you can edit an existing record. * Method override to check if you can edit an existing record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* @param string $key The name of the key for the primary key. * @param string $key The name of the key for the primary key.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowEdit($data = array(), $key = 'id') protected function allowEdit($data = array(), $key = 'id')
{ {
// get user object. // get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -133,199 +133,199 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
} }
} }
// Since there is no permission, revert to the component permissions. // Since there is no permission, revert to the component permissions.
return $user->authorise('causerisk.edit', $this->option); return $user->authorise('causerisk.edit', $this->option);
} }
/** /**
* Gets the URL arguments to append to an item redirect. * Gets the URL arguments to append to an item redirect.
* *
* @param integer $recordId The primary key id for the item. * @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id. * @param string $urlVar The name of the URL variable for the id.
* *
* @return string The arguments to append to the redirect URL. * @return string The arguments to append to the redirect URL.
* *
* @since 1.6 * @since 1.6
*/ */
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
// 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');
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Causerisk', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=causesrisks' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{ {
return; // 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');
}
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Causerisk', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=causesrisks' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{
return;
}
}

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causesrisks.php @subpackage causesrisks.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Causesrisks Controller * Causesrisks Controller
*/ */
class CostbenefitprojectionControllerCausesrisks extends JControllerAdmin class CostbenefitprojectionControllerCausesrisks extends JControllerAdmin
{ {
/** /**
* The prefix to use with controller messages. * The prefix to use with controller messages.
* *
* @var string * @var string
* @since 1.6 * @since 1.6
*/ */
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_CAUSESRISKS'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_CAUSESRISKS';
/** /**
* Method to get a model object, loading it if required. * Method to get a model object, loading it if required.
* *
* @param string $name The model name. Optional. * @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional. * @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional. * @param array $config Configuration array for model. Optional.
* *
* @return JModelLegacy The model. * @return JModelLegacy The model.
* *
* @since 1.6 * @since 1.6
*/ */
public function getModel($name = 'Causerisk', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true)) public function getModel($name = 'Causerisk', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{ {
return parent::getModel($name, $prefix, $config); return parent::getModel($name, $prefix, $config);
} }
public function exportData() public function exportData()
@ -112,5 +112,5 @@ class CostbenefitprojectionControllerCausesrisks extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED'); $message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=causesrisks', false), $message, 'error'); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=causesrisks', false), $message, 'error');
return; return;
} }
} }

View File

@ -1,48 +1,48 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage combinedresults.php @subpackage combinedresults.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Combinedresults Controller * Combinedresults Controller
*/ */
class CostbenefitprojectionControllerCombinedresults extends JControllerAdmin class CostbenefitprojectionControllerCombinedresults extends JControllerAdmin
{ {
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COMBINEDRESULTS'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COMBINEDRESULTS';
/** /**
* Proxy for getModel. * Proxy for getModel.
* @since 2.5 * @since 2.5
*/ */
public function getModel($name = 'Combinedresults', $prefix = 'CostbenefitprojectionModel', $config = array()) public function getModel($name = 'Combinedresults', $prefix = 'CostbenefitprojectionModel', $config = array())
{ {
$model = parent::getModel($name, $prefix, array('ignore_request' => true)); $model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model; return $model;
} }
public function dashboard() public function dashboard()
{ {
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection', false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection', false));
return; return;
} }
public function gotoCompanies() public function gotoCompanies()
@ -51,5 +51,5 @@ class CostbenefitprojectionControllerCombinedresults extends JControllerAdmin
JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// set the redirecting // set the redirecting
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false));
} }
} }

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companies.php @subpackage companies.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Companies Controller * Companies Controller
*/ */
class CostbenefitprojectionControllerCompanies extends JControllerAdmin class CostbenefitprojectionControllerCompanies extends JControllerAdmin
{ {
/** /**
* The prefix to use with controller messages. * The prefix to use with controller messages.
* *
* @var string * @var string
* @since 1.6 * @since 1.6
*/ */
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COMPANIES'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COMPANIES';
/** /**
* Method to get a model object, loading it if required. * Method to get a model object, loading it if required.
* *
* @param string $name The model name. Optional. * @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional. * @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional. * @param array $config Configuration array for model. Optional.
* *
* @return JModelLegacy The model. * @return JModelLegacy The model.
* *
* @since 1.6 * @since 1.6
*/ */
public function getModel($name = 'Company', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true)) public function getModel($name = 'Company', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{ {
return parent::getModel($name, $prefix, $config); return parent::getModel($name, $prefix, $config);
} }
public function exportData() public function exportData()
@ -136,5 +136,5 @@ class CostbenefitprojectionControllerCompanies extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_ACCESS_TO_COMBINEDRESULTS_FAILED'); $message = JText::_('COM_COSTBENEFITPROJECTION_ACCESS_TO_COMBINEDRESULTS_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false), $message, 'error'); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false), $message, 'error');
return; return;
} }
} }

View File

@ -1,64 +1,64 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage company.php @subpackage company.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Company Controller * Company Controller
*/ */
class CostbenefitprojectionControllerCompany extends JControllerForm class CostbenefitprojectionControllerCompany extends JControllerForm
{ {
/** /**
* Current or most recently performed task. * Current or most recently performed task.
* *
* @var string * @var string
* @since 12.2 * @since 12.2
* @note Replaces _task. * @note Replaces _task.
*/ */
protected $task; protected $task;
/** /**
* Class constructor. * Class constructor.
* *
* @param array $config A named array of configuration variables. * @param array $config A named array of configuration variables.
* *
* @since 1.6 * @since 1.6
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->view_list = 'Companies'; // safeguard for setting the return view listing to the main view. $this->view_list = 'Companies'; // safeguard for setting the return view listing to the main view.
parent::__construct($config); parent::__construct($config);
} }
/** /**
* Method override to check if you can add a new record. * Method override to check if you can add a new record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowAdd($data = array()) protected function allowAdd($data = array())
{ {
// Get user object. // Get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -70,20 +70,20 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
} }
// In the absense of better information, revert to the component permissions. // In the absense of better information, revert to the component permissions.
return $user->authorise('company.create', $this->option); return $user->authorise('company.create', $this->option);
} }
/** /**
* Method override to check if you can edit an existing record. * Method override to check if you can edit an existing record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* @param string $key The name of the key for the primary key. * @param string $key The name of the key for the primary key.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowEdit($data = array(), $key = 'id') protected function allowEdit($data = array(), $key = 'id')
{ {
// get user object. // get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -148,197 +148,197 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
} }
} }
// Since there is no permission, revert to the component permissions. // Since there is no permission, revert to the component permissions.
return $user->authorise('company.edit', $this->option); return $user->authorise('company.edit', $this->option);
} }
/** /**
* Gets the URL arguments to append to an item redirect. * Gets the URL arguments to append to an item redirect.
* *
* @param integer $recordId The primary key id for the item. * @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id. * @param string $urlVar The name of the URL variable for the id.
* *
* @return string The arguments to append to the redirect URL. * @return string The arguments to append to the redirect URL.
* *
* @since 1.6 * @since 1.6
*/ */
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{ {
// get the referral options (old method use return instead see parent) // get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string'); $ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int'); $refid = $this->input->get('refid', 0, 'int');
// get redirect info. // get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar); $append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options // set the referral options
if ($refid && $ref) if ($refid && $ref)
{ {
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append; $append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
} }
elseif ($ref) elseif ($ref)
{ {
$append = '&ref='. (string)$ref . $append; $append = '&ref='. (string)$ref . $append;
} }
return $append; return $append;
} }
/** /**
* Method to run batch operations. * Method to run batch operations.
* *
* @param object $model The model. * @param object $model The model.
* *
* @return boolean True if successful, false otherwise and internal error is set. * @return boolean True if successful, false otherwise and internal error is set.
* *
* @since 2.5 * @since 2.5
*/ */
public function batch($model = null) public function batch($model = null)
{ {
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model // Set the model
$model = $this->getModel('Company', '', array()); $model = $this->getModel('Company', '', array());
// Preset the redirect // Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies' . $this->getRedirectToListAppend(), false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies' . $this->getRedirectToListAppend(), false));
return parent::batch($model); return parent::batch($model);
} }
/** /**
* Method to cancel an edit. * Method to cancel an edit.
* *
* @param string $key The name of the primary key of the URL variable. * @param string $key The name of the primary key of the URL variable.
* *
* @return boolean True if access level checks pass, false otherwise. * @return boolean True if access level checks pass, false otherwise.
* *
* @since 12.2 * @since 12.2
*/ */
public function cancel($key = null) public function cancel($key = null)
{ {
// get the referral options // get the referral options
$this->ref = $this->input->get('ref', 0, 'word'); $this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int'); $this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value // Check if there is a return value
$return = $this->input->get('return', null, 'base64'); $return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key); $cancel = parent::cancel($key);
if (!is_null($return) && JUri::isInternal(base64_decode($return))) if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{ {
$redirect = base64_decode($return); $redirect = base64_decode($return);
// Redirect to the return value. // Redirect to the return value.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
$redirect, false $redirect, false
) )
); );
} }
elseif ($this->refid && $this->ref) elseif ($this->refid && $this->ref)
{ {
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid; $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
// Redirect to the item screen. // Redirect to the item screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
elseif ($this->ref) elseif ($this->ref)
{ {
$redirect = '&view='.(string)$this->ref; $redirect = '&view='.(string)$this->ref;
// Redirect to the list screen. // Redirect to the list screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
return $cancel; return $cancel;
} }
/** /**
* Method to save a record. * Method to save a record.
* *
* @param string $key The name of the primary key of the URL variable. * @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
* *
* @return boolean True if successful, false otherwise. * @return boolean True if successful, false otherwise.
* *
* @since 12.2 * @since 12.2
*/ */
public function save($key = null, $urlVar = null) public function save($key = null, $urlVar = null)
{ {
// get the referral options // get the referral options
$this->ref = $this->input->get('ref', 0, 'word'); $this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int'); $this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value // Check if there is a return value
$return = $this->input->get('return', null, 'base64'); $return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return))); $canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn) if ($this->ref || $this->refid || $canReturn)
{ {
// to make sure the item is checkedin on redirect // to make sure the item is checkedin on redirect
$this->task = 'save'; $this->task = 'save';
} }
$saved = parent::save($key, $urlVar); $saved = parent::save($key, $urlVar);
// This is not needed since parent save already does this // This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this // Due to the ref and refid implementation we need to add this
if ($canReturn) if ($canReturn)
{ {
$redirect = base64_decode($return); $redirect = base64_decode($return);
// Redirect to the return value. // Redirect to the return value.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
$redirect, false $redirect, false
) )
); );
} }
elseif ($this->refid && $this->ref) elseif ($this->refid && $this->ref)
{ {
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid; $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
// Redirect to the item screen. // Redirect to the item screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
elseif ($this->ref) elseif ($this->ref)
{ {
$redirect = '&view=' . (string)$this->ref; $redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen. // Redirect to the list screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
return $saved; return $saved;
} }
/** /**
* Function that allows child controller access to model data * Function that allows child controller access to model data
* after the data has been saved. * after the data has been saved.
* *
* @param JModel &$model The data model object. * @param JModel &$model The data model object.
* @param array $validData The validated data. * @param array $validData The validated data.
* *
* @return void * @return void
* *
* @since 11.1 * @since 11.1
*/ */
protected function postSaveHook(JModelLegacy $model, $validData = array()) protected function postSaveHook(JModelLegacy $model, $validData = array())
{ {
if ($validData['id'] >= 0) if ($validData['id'] >= 0)
{ {
@ -580,7 +580,7 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
} }
} }
return; return;
} }
} }

View File

@ -1,41 +1,41 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companyresults.php @subpackage companyresults.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Costbenefitprojection Companyresults Controller * Costbenefitprojection Companyresults Controller
*/ */
class CostbenefitprojectionControllerCompanyresults extends JControllerLegacy class CostbenefitprojectionControllerCompanyresults extends JControllerLegacy
{ {
public function __construct($config) public function __construct($config)
{ {
parent::__construct($config); parent::__construct($config);
} }
public function dashboard() public function dashboard()
{ {
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection', false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection', false));
return; return;
} }
public function editCompany() public function editCompany()
@ -55,5 +55,5 @@ class CostbenefitprojectionControllerCompanyresults extends JControllerLegacy
JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// set the redirecting // set the redirecting
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false));
} }
} }

View File

@ -1,29 +1,31 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage costbenefitprojection.php @subpackage costbenefitprojection.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
/**
* Costbenefitprojection Controller
*/ /**
class CostbenefitprojectionControllerCostbenefitprojection extends JControllerAdmin * Costbenefitprojection Controller
{ */
class CostbenefitprojectionControllerCostbenefitprojection extends JControllerAdmin
} {
}

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage countries.php @subpackage countries.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Countries Controller * Countries Controller
*/ */
class CostbenefitprojectionControllerCountries extends JControllerAdmin class CostbenefitprojectionControllerCountries extends JControllerAdmin
{ {
/** /**
* The prefix to use with controller messages. * The prefix to use with controller messages.
* *
* @var string * @var string
* @since 1.6 * @since 1.6
*/ */
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COUNTRIES'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COUNTRIES';
/** /**
* Method to get a model object, loading it if required. * Method to get a model object, loading it if required.
* *
* @param string $name The model name. Optional. * @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional. * @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional. * @param array $config Configuration array for model. Optional.
* *
* @return JModelLegacy The model. * @return JModelLegacy The model.
* *
* @since 1.6 * @since 1.6
*/ */
public function getModel($name = 'Country', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true)) public function getModel($name = 'Country', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{ {
return parent::getModel($name, $prefix, $config); return parent::getModel($name, $prefix, $config);
} }
public function exportData() public function exportData()
@ -112,5 +112,5 @@ class CostbenefitprojectionControllerCountries extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED'); $message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=countries', false), $message, 'error'); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=countries', false), $message, 'error');
return; return;
} }
} }

View File

@ -1,64 +1,64 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage country.php @subpackage country.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Country Controller * Country Controller
*/ */
class CostbenefitprojectionControllerCountry extends JControllerForm class CostbenefitprojectionControllerCountry extends JControllerForm
{ {
/** /**
* Current or most recently performed task. * Current or most recently performed task.
* *
* @var string * @var string
* @since 12.2 * @since 12.2
* @note Replaces _task. * @note Replaces _task.
*/ */
protected $task; protected $task;
/** /**
* Class constructor. * Class constructor.
* *
* @param array $config A named array of configuration variables. * @param array $config A named array of configuration variables.
* *
* @since 1.6 * @since 1.6
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->view_list = 'Countries'; // safeguard for setting the return view listing to the main view. $this->view_list = 'Countries'; // safeguard for setting the return view listing to the main view.
parent::__construct($config); parent::__construct($config);
} }
/** /**
* Method override to check if you can add a new record. * Method override to check if you can add a new record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowAdd($data = array()) protected function allowAdd($data = array())
{ {
// Get user object. // Get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -70,20 +70,20 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
} }
// In the absense of better information, revert to the component permissions. // In the absense of better information, revert to the component permissions.
return $user->authorise('country.create', $this->option); return $user->authorise('country.create', $this->option);
} }
/** /**
* Method override to check if you can edit an existing record. * Method override to check if you can edit an existing record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* @param string $key The name of the key for the primary key. * @param string $key The name of the key for the primary key.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowEdit($data = array(), $key = 'id') protected function allowEdit($data = array(), $key = 'id')
{ {
// get user object. // get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -142,197 +142,197 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
} }
} }
// Since there is no permission, revert to the component permissions. // Since there is no permission, revert to the component permissions.
return $user->authorise('country.edit', $this->option); return $user->authorise('country.edit', $this->option);
} }
/** /**
* Gets the URL arguments to append to an item redirect. * Gets the URL arguments to append to an item redirect.
* *
* @param integer $recordId The primary key id for the item. * @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id. * @param string $urlVar The name of the URL variable for the id.
* *
* @return string The arguments to append to the redirect URL. * @return string The arguments to append to the redirect URL.
* *
* @since 1.6 * @since 1.6
*/ */
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{ {
// get the referral options (old method use return instead see parent) // get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string'); $ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int'); $refid = $this->input->get('refid', 0, 'int');
// get redirect info. // get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar); $append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options // set the referral options
if ($refid && $ref) if ($refid && $ref)
{ {
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append; $append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
} }
elseif ($ref) elseif ($ref)
{ {
$append = '&ref='. (string)$ref . $append; $append = '&ref='. (string)$ref . $append;
} }
return $append; return $append;
} }
/** /**
* Method to run batch operations. * Method to run batch operations.
* *
* @param object $model The model. * @param object $model The model.
* *
* @return boolean True if successful, false otherwise and internal error is set. * @return boolean True if successful, false otherwise and internal error is set.
* *
* @since 2.5 * @since 2.5
*/ */
public function batch($model = null) public function batch($model = null)
{ {
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model // Set the model
$model = $this->getModel('Country', '', array()); $model = $this->getModel('Country', '', array());
// Preset the redirect // Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=countries' . $this->getRedirectToListAppend(), false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=countries' . $this->getRedirectToListAppend(), false));
return parent::batch($model); return parent::batch($model);
} }
/** /**
* Method to cancel an edit. * Method to cancel an edit.
* *
* @param string $key The name of the primary key of the URL variable. * @param string $key The name of the primary key of the URL variable.
* *
* @return boolean True if access level checks pass, false otherwise. * @return boolean True if access level checks pass, false otherwise.
* *
* @since 12.2 * @since 12.2
*/ */
public function cancel($key = null) public function cancel($key = null)
{ {
// get the referral options // get the referral options
$this->ref = $this->input->get('ref', 0, 'word'); $this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int'); $this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value // Check if there is a return value
$return = $this->input->get('return', null, 'base64'); $return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key); $cancel = parent::cancel($key);
if (!is_null($return) && JUri::isInternal(base64_decode($return))) if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{ {
$redirect = base64_decode($return); $redirect = base64_decode($return);
// Redirect to the return value. // Redirect to the return value.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
$redirect, false $redirect, false
) )
); );
} }
elseif ($this->refid && $this->ref) elseif ($this->refid && $this->ref)
{ {
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid; $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
// Redirect to the item screen. // Redirect to the item screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
elseif ($this->ref) elseif ($this->ref)
{ {
$redirect = '&view='.(string)$this->ref; $redirect = '&view='.(string)$this->ref;
// Redirect to the list screen. // Redirect to the list screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
return $cancel; return $cancel;
} }
/** /**
* Method to save a record. * Method to save a record.
* *
* @param string $key The name of the primary key of the URL variable. * @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
* *
* @return boolean True if successful, false otherwise. * @return boolean True if successful, false otherwise.
* *
* @since 12.2 * @since 12.2
*/ */
public function save($key = null, $urlVar = null) public function save($key = null, $urlVar = null)
{ {
// get the referral options // get the referral options
$this->ref = $this->input->get('ref', 0, 'word'); $this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int'); $this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value // Check if there is a return value
$return = $this->input->get('return', null, 'base64'); $return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return))); $canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn) if ($this->ref || $this->refid || $canReturn)
{ {
// to make sure the item is checkedin on redirect // to make sure the item is checkedin on redirect
$this->task = 'save'; $this->task = 'save';
} }
$saved = parent::save($key, $urlVar); $saved = parent::save($key, $urlVar);
// This is not needed since parent save already does this // This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this // Due to the ref and refid implementation we need to add this
if ($canReturn) if ($canReturn)
{ {
$redirect = base64_decode($return); $redirect = base64_decode($return);
// Redirect to the return value. // Redirect to the return value.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
$redirect, false $redirect, false
) )
); );
} }
elseif ($this->refid && $this->ref) elseif ($this->refid && $this->ref)
{ {
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid; $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
// Redirect to the item screen. // Redirect to the item screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
elseif ($this->ref) elseif ($this->ref)
{ {
$redirect = '&view=' . (string)$this->ref; $redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen. // Redirect to the list screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
return $saved; return $saved;
} }
/** /**
* Function that allows child controller access to model data * Function that allows child controller access to model data
* after the data has been saved. * after the data has been saved.
* *
* @param JModel &$model The data model object. * @param JModel &$model The data model object.
* @param array $validData The validated data. * @param array $validData The validated data.
* *
* @return void * @return void
* *
* @since 11.1 * @since 11.1
*/ */
protected function postSaveHook(JModelLegacy $model, $validData = array()) protected function postSaveHook(JModelLegacy $model, $validData = array())
{ {
if ($validData['id'] >= 0) if ($validData['id'] >= 0)
{ {
@ -502,7 +502,7 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
} }
} }
return; return;
} }
} }

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage currencies.php @subpackage currencies.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Currencies Controller * Currencies Controller
*/ */
class CostbenefitprojectionControllerCurrencies extends JControllerAdmin class CostbenefitprojectionControllerCurrencies extends JControllerAdmin
{ {
/** /**
* The prefix to use with controller messages. * The prefix to use with controller messages.
* *
* @var string * @var string
* @since 1.6 * @since 1.6
*/ */
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_CURRENCIES'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_CURRENCIES';
/** /**
* Method to get a model object, loading it if required. * Method to get a model object, loading it if required.
* *
* @param string $name The model name. Optional. * @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional. * @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional. * @param array $config Configuration array for model. Optional.
* *
* @return JModelLegacy The model. * @return JModelLegacy The model.
* *
* @since 1.6 * @since 1.6
*/ */
public function getModel($name = 'Currency', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true)) public function getModel($name = 'Currency', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{ {
return parent::getModel($name, $prefix, $config); return parent::getModel($name, $prefix, $config);
} }
public function exportData() public function exportData()
@ -112,5 +112,5 @@ class CostbenefitprojectionControllerCurrencies extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED'); $message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=currencies', false), $message, 'error'); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=currencies', false), $message, 'error');
return; return;
} }
} }

View File

@ -1,64 +1,64 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage currency.php @subpackage currency.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Currency Controller * Currency Controller
*/ */
class CostbenefitprojectionControllerCurrency extends JControllerForm class CostbenefitprojectionControllerCurrency extends JControllerForm
{ {
/** /**
* Current or most recently performed task. * Current or most recently performed task.
* *
* @var string * @var string
* @since 12.2 * @since 12.2
* @note Replaces _task. * @note Replaces _task.
*/ */
protected $task; protected $task;
/** /**
* Class constructor. * Class constructor.
* *
* @param array $config A named array of configuration variables. * @param array $config A named array of configuration variables.
* *
* @since 1.6 * @since 1.6
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->view_list = 'Currencies'; // safeguard for setting the return view listing to the main view. $this->view_list = 'Currencies'; // safeguard for setting the return view listing to the main view.
parent::__construct($config); parent::__construct($config);
} }
/** /**
* Method override to check if you can add a new record. * Method override to check if you can add a new record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowAdd($data = array()) protected function allowAdd($data = array())
{ {
// Get user object. // Get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -70,20 +70,20 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
} }
// In the absense of better information, revert to the component permissions. // In the absense of better information, revert to the component permissions.
return $user->authorise('currency.create', $this->option); return $user->authorise('currency.create', $this->option);
} }
/** /**
* Method override to check if you can edit an existing record. * Method override to check if you can edit an existing record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* @param string $key The name of the key for the primary key. * @param string $key The name of the key for the primary key.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowEdit($data = array(), $key = 'id') protected function allowEdit($data = array(), $key = 'id')
{ {
// get user object. // get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -133,199 +133,199 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
} }
} }
// Since there is no permission, revert to the component permissions. // Since there is no permission, revert to the component permissions.
return $user->authorise('currency.edit', $this->option); return $user->authorise('currency.edit', $this->option);
} }
/** /**
* Gets the URL arguments to append to an item redirect. * Gets the URL arguments to append to an item redirect.
* *
* @param integer $recordId The primary key id for the item. * @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id. * @param string $urlVar The name of the URL variable for the id.
* *
* @return string The arguments to append to the redirect URL. * @return string The arguments to append to the redirect URL.
* *
* @since 1.6 * @since 1.6
*/ */
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
// 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');
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Currency', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=currencies' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{ {
return; // 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');
}
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Currency', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=currencies' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{
return;
}
}

View File

@ -1,64 +1,64 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data.php @subpackage health_data.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Health_data Controller * Health_data Controller
*/ */
class CostbenefitprojectionControllerHealth_data extends JControllerForm class CostbenefitprojectionControllerHealth_data extends JControllerForm
{ {
/** /**
* Current or most recently performed task. * Current or most recently performed task.
* *
* @var string * @var string
* @since 12.2 * @since 12.2
* @note Replaces _task. * @note Replaces _task.
*/ */
protected $task; protected $task;
/** /**
* Class constructor. * Class constructor.
* *
* @param array $config A named array of configuration variables. * @param array $config A named array of configuration variables.
* *
* @since 1.6 * @since 1.6
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->view_list = 'Health_data_sets'; // safeguard for setting the return view listing to the main view. $this->view_list = 'Health_data_sets'; // safeguard for setting the return view listing to the main view.
parent::__construct($config); parent::__construct($config);
} }
/** /**
* Method override to check if you can add a new record. * Method override to check if you can add a new record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowAdd($data = array()) protected function allowAdd($data = array())
{ {
// Get user object. // Get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -70,20 +70,20 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
} }
// In the absense of better information, revert to the component permissions. // In the absense of better information, revert to the component permissions.
return $user->authorise('health_data.create', $this->option); return $user->authorise('health_data.create', $this->option);
} }
/** /**
* Method override to check if you can edit an existing record. * Method override to check if you can edit an existing record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* @param string $key The name of the key for the primary key. * @param string $key The name of the key for the primary key.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowEdit($data = array(), $key = 'id') protected function allowEdit($data = array(), $key = 'id')
{ {
// get user object. // get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -143,199 +143,199 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
} }
} }
// Since there is no permission, revert to the component permissions. // Since there is no permission, revert to the component permissions.
return $user->authorise('health_data.edit', $this->option); return $user->authorise('health_data.edit', $this->option);
} }
/** /**
* Gets the URL arguments to append to an item redirect. * Gets the URL arguments to append to an item redirect.
* *
* @param integer $recordId The primary key id for the item. * @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id. * @param string $urlVar The name of the URL variable for the id.
* *
* @return string The arguments to append to the redirect URL. * @return string The arguments to append to the redirect URL.
* *
* @since 1.6 * @since 1.6
*/ */
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
// 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');
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Health_data', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=health_data_sets' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{ {
return; // 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');
}
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Health_data', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=health_data_sets' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{
return;
}
}

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data_sets.php @subpackage health_data_sets.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Health_data_sets Controller * Health_data_sets Controller
*/ */
class CostbenefitprojectionControllerHealth_data_sets extends JControllerAdmin class CostbenefitprojectionControllerHealth_data_sets extends JControllerAdmin
{ {
/** /**
* The prefix to use with controller messages. * The prefix to use with controller messages.
* *
* @var string * @var string
* @since 1.6 * @since 1.6
*/ */
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_HEALTH_DATA_SETS';
/** /**
* Method to get a model object, loading it if required. * Method to get a model object, loading it if required.
* *
* @param string $name The model name. Optional. * @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional. * @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional. * @param array $config Configuration array for model. Optional.
* *
* @return JModelLegacy The model. * @return JModelLegacy The model.
* *
* @since 1.6 * @since 1.6
*/ */
public function getModel($name = 'Health_data', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true)) public function getModel($name = 'Health_data', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{ {
return parent::getModel($name, $prefix, $config); return parent::getModel($name, $prefix, $config);
} }
public function exportData() public function exportData()
@ -155,5 +155,5 @@ class CostbenefitprojectionControllerHealth_data_sets extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_YOU_DO_NOT_HAVE_PERMISSION_TO_DO_A_BULK_EXPORT_OF_HEALTH_DATA_SETS'); $message = JText::_('COM_COSTBENEFITPROJECTION_YOU_DO_NOT_HAVE_PERMISSION_TO_DO_A_BULK_EXPORT_OF_HEALTH_DATA_SETS');
} }
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=health_data_sets', false), $message, $status); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=health_data_sets', false), $message, $status);
} }
} }

View File

@ -1,123 +1,123 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help.php @subpackage help.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Costbenefitprojection Help Controller * Costbenefitprojection Help Controller
*/ */
class CostbenefitprojectionControllerHelp extends JControllerLegacy class CostbenefitprojectionControllerHelp extends JControllerLegacy
{ {
public function __construct($config) public function __construct($config)
{ {
parent::__construct($config); parent::__construct($config);
// load the tasks // load the tasks
$this->registerTask('getText', 'help'); $this->registerTask('getText', 'help');
} }
public function help() public function help()
{ {
$user = JFactory::getUser(); $user = JFactory::getUser();
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
// Check Token! // Check Token!
$token = JSession::getFormToken(); $token = JSession::getFormToken();
$call_token = $jinput->get('token', 0, 'ALNUM'); $call_token = $jinput->get('token', 0, 'ALNUM');
if($user->id != 0 && $token == $call_token) if($user->id != 0 && $token == $call_token)
{ {
$task = $this->getTask(); $task = $this->getTask();
switch($task){ switch($task){
case 'getText': case 'getText':
try try
{ {
$idValue = $jinput->get('id', 0, 'INT'); $idValue = $jinput->get('id', 0, 'INT');
if($idValue) if($idValue)
{ {
$result = $this->getHelpDocumentText($idValue); $result = $this->getHelpDocumentText($idValue);
} }
else else
{ {
$result = ''; $result = '';
} }
echo $result; echo $result;
// stop execution gracefully // stop execution gracefully
jexit(); jexit();
} }
catch(Exception $e) catch(Exception $e)
{ {
// stop execution gracefully // stop execution gracefully
jexit(); jexit();
} }
break; break;
} }
} }
else else
{ {
// stop execution gracefully // stop execution gracefully
jexit(); jexit();
} }
} }
protected function getHelpDocumentText($id) protected function getHelpDocumentText($id)
{ {
$db = JFactory::getDbo(); $db = JFactory::getDbo();
$query = $db->getQuery(true); $query = $db->getQuery(true);
$query->select(array('a.title','a.content')); $query->select(array('a.title','a.content'));
$query->from('#__costbenefitprojection_help_document AS a'); $query->from('#__costbenefitprojection_help_document AS a');
$query->where('a.id = '.(int) $id); $query->where('a.id = '.(int) $id);
$query->where('a.published = 1'); $query->where('a.published = 1');
$db->setQuery($query); $db->setQuery($query);
$db->execute(); $db->execute();
if($db->getNumRows()) if($db->getNumRows())
{ {
$text = array(); $text = array();
$document = $db->loadObject(); $document = $db->loadObject();
// fix image issue // fix image issue
$images['src="images'] = 'src="'.JURI::root().'images'; $images['src="images'] = 'src="'.JURI::root().'images';
$images["src='images"] = "src='".JURI::root()."images"; $images["src='images"] = "src='".JURI::root()."images";
$images['src="/images'] = 'src="'.JURI::root().'images'; $images['src="/images'] = 'src="'.JURI::root().'images';
$images["src='/images"] = "src='".JURI::root()."images"; $images["src='/images"] = "src='".JURI::root()."images";
// set document template // set document template
$text[] = "<!doctype html>"; $text[] = "<!doctype html>";
$text[] = '<html>'; $text[] = '<html>';
$text[] = "<head>"; $text[] = "<head>";
$text[] = '<meta charset="utf-8">'; $text[] = '<meta charset="utf-8">';
$text[] = "<title>".$document->title."</title>"; $text[] = "<title>".$document->title."</title>";
$text[] = '<link type="text/css" href="'.JURI::root().'media/com_costbenefitprojection/uikit/css/uikit.gradient.min.css" rel="stylesheet"></link>'; $text[] = '<link type="text/css" href="'.JURI::root().'media/com_costbenefitprojection/uikit/css/uikit.gradient.min.css" rel="stylesheet"></link>';
$text[] = '<script type="text/javascript" src="'.JURI::root().'media/com_costbenefitprojection/uikit/js/uikit.min.js"></script>'; $text[] = '<script type="text/javascript" src="'.JURI::root().'media/com_costbenefitprojection/uikit/js/uikit.min.js"></script>';
$text[] = "</head>"; $text[] = "</head>";
$text[] = '<body><br />'; $text[] = '<body><br />';
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">'; $text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">'; $text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
// build the help text // build the help text
$text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>"; $text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>";
$text[] = str_replace(array_keys($images),array_values($images),$document->content); $text[] = str_replace(array_keys($images),array_values($images),$document->content);
// end template // end template
$text[] = '</div><br /><br />'; $text[] = '</div><br /><br />';
$text[] = '</div>'; $text[] = '</div>';
$text[] = "</body>"; $text[] = "</body>";
$text[] = "</html>"; $text[] = "</html>";
return implode("\n",$text); return implode("\n",$text);
} }
return false; return false;
} }
} }

View File

@ -1,64 +1,64 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help_document.php @subpackage help_document.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Help_document Controller * Help_document Controller
*/ */
class CostbenefitprojectionControllerHelp_document extends JControllerForm class CostbenefitprojectionControllerHelp_document extends JControllerForm
{ {
/** /**
* Current or most recently performed task. * Current or most recently performed task.
* *
* @var string * @var string
* @since 12.2 * @since 12.2
* @note Replaces _task. * @note Replaces _task.
*/ */
protected $task; protected $task;
/** /**
* Class constructor. * Class constructor.
* *
* @param array $config A named array of configuration variables. * @param array $config A named array of configuration variables.
* *
* @since 1.6 * @since 1.6
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->view_list = 'Help_documents'; // safeguard for setting the return view listing to the main view. $this->view_list = 'Help_documents'; // safeguard for setting the return view listing to the main view.
parent::__construct($config); parent::__construct($config);
} }
/** /**
* Method override to check if you can add a new record. * Method override to check if you can add a new record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowAdd($data = array()) protected function allowAdd($data = array())
{ {
// Get user object. // Get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -70,20 +70,20 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
} }
// In the absense of better information, revert to the component permissions. // In the absense of better information, revert to the component permissions.
return $user->authorise('help_document.create', $this->option); return $user->authorise('help_document.create', $this->option);
} }
/** /**
* Method override to check if you can edit an existing record. * Method override to check if you can edit an existing record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* @param string $key The name of the key for the primary key. * @param string $key The name of the key for the primary key.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowEdit($data = array(), $key = 'id') protected function allowEdit($data = array(), $key = 'id')
{ {
// get user object. // get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -133,199 +133,199 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
} }
} }
// Since there is no permission, revert to the component permissions. // Since there is no permission, revert to the component permissions.
return $user->authorise('help_document.edit', $this->option); return $user->authorise('help_document.edit', $this->option);
} }
/** /**
* Gets the URL arguments to append to an item redirect. * Gets the URL arguments to append to an item redirect.
* *
* @param integer $recordId The primary key id for the item. * @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id. * @param string $urlVar The name of the URL variable for the id.
* *
* @return string The arguments to append to the redirect URL. * @return string The arguments to append to the redirect URL.
* *
* @since 1.6 * @since 1.6
*/ */
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
// 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');
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Help_document', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=help_documents' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{ {
return; // 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');
}
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Help_document', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=help_documents' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{
return;
}
}

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage help_documents.php @subpackage help_documents.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Help_documents Controller * Help_documents Controller
*/ */
class CostbenefitprojectionControllerHelp_documents extends JControllerAdmin class CostbenefitprojectionControllerHelp_documents extends JControllerAdmin
{ {
/** /**
* The prefix to use with controller messages. * The prefix to use with controller messages.
* *
* @var string * @var string
* @since 1.6 * @since 1.6
*/ */
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS';
/** /**
* Method to get a model object, loading it if required. * Method to get a model object, loading it if required.
* *
* @param string $name The model name. Optional. * @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional. * @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional. * @param array $config Configuration array for model. Optional.
* *
* @return JModelLegacy The model. * @return JModelLegacy The model.
* *
* @since 1.6 * @since 1.6
*/ */
public function getModel($name = 'Help_document', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true)) public function getModel($name = 'Help_document', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{ {
return parent::getModel($name, $prefix, $config); return parent::getModel($name, $prefix, $config);
} }
public function exportData() public function exportData()
@ -112,5 +112,5 @@ class CostbenefitprojectionControllerHelp_documents extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED'); $message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=help_documents', false), $message, 'error'); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=help_documents', false), $message, 'error');
return; return;
} }
} }

View File

@ -1,63 +1,63 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage import.php @subpackage import.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Costbenefitprojection Import Controller * Costbenefitprojection Import Controller
*/ */
class CostbenefitprojectionControllerImport extends JControllerLegacy class CostbenefitprojectionControllerImport extends JControllerLegacy
{ {
/** /**
* Import an spreadsheet. * Import an spreadsheet.
* *
* @return void * @return void
*/ */
public function import() public function import()
{ {
// Check for request forgeries // Check for request forgeries
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
$model = $this->getModel('import'); $model = $this->getModel('import');
if ($model->import()) if ($model->import())
{ {
$cache = JFactory::getCache('mod_menu'); $cache = JFactory::getCache('mod_menu');
$cache->clean(); $cache->clean();
// TODO: Reset the users acl here as well to kill off any missing bits // TODO: Reset the users acl here as well to kill off any missing bits
} }
$app = JFactory::getApplication(); $app = JFactory::getApplication();
$redirect_url = $app->getUserState('com_costbenefitprojection.redirect_url'); $redirect_url = $app->getUserState('com_costbenefitprojection.redirect_url');
if (empty($redirect_url)) if (empty($redirect_url))
{ {
$redirect_url = JRoute::_('index.php?option=com_costbenefitprojection&view=import', false); $redirect_url = JRoute::_('index.php?option=com_costbenefitprojection&view=import', false);
} }
else else
{ {
// wipe out the user state when we're going to redirect // wipe out the user state when we're going to redirect
$app->setUserState('com_costbenefitprojection.redirect_url', ''); $app->setUserState('com_costbenefitprojection.redirect_url', '');
$app->setUserState('com_costbenefitprojection.message', ''); $app->setUserState('com_costbenefitprojection.message', '');
$app->setUserState('com_costbenefitprojection.extension_message', ''); $app->setUserState('com_costbenefitprojection.extension_message', '');
} }
$this->setRedirect($redirect_url); $this->setRedirect($redirect_url);
} }
} }

View File

@ -1,63 +1,63 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage import_health_data_sets.php @subpackage import_health_data_sets.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Costbenefitprojection Import_health_data_sets Controller * Costbenefitprojection Import_health_data_sets Controller
*/ */
class CostbenefitprojectionControllerImport_health_data_sets extends JControllerLegacy class CostbenefitprojectionControllerImport_health_data_sets extends JControllerLegacy
{ {
/** /**
* Import an spreadsheet. * Import an spreadsheet.
* *
* @return void * @return void
*/ */
public function import() public function import()
{ {
// Check for request forgeries // Check for request forgeries
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
$model = $this->getModel('Import_health_data_sets'); $model = $this->getModel('Import_health_data_sets');
if ($model->import()) if ($model->import())
{ {
$cache = JFactory::getCache('mod_menu'); $cache = JFactory::getCache('mod_menu');
$cache->clean(); $cache->clean();
// TODO: Reset the users acl here as well to kill off any missing bits // TODO: Reset the users acl here as well to kill off any missing bits
} }
$app = JFactory::getApplication(); $app = JFactory::getApplication();
$redirect_url = $app->getUserState('com_costbenefitprojection.redirect_url'); $redirect_url = $app->getUserState('com_costbenefitprojection.redirect_url');
if (empty($redirect_url)) if (empty($redirect_url))
{ {
$redirect_url = JRoute::_('index.php?option=com_costbenefitprojection&view=import_health_data_sets', false); $redirect_url = JRoute::_('index.php?option=com_costbenefitprojection&view=import_health_data_sets', false);
} }
else else
{ {
// wipe out the user state when we're going to redirect // wipe out the user state when we're going to redirect
$app->setUserState('com_costbenefitprojection.redirect_url', ''); $app->setUserState('com_costbenefitprojection.redirect_url', '');
$app->setUserState('com_costbenefitprojection.message', ''); $app->setUserState('com_costbenefitprojection.message', '');
$app->setUserState('com_costbenefitprojection.extension_message', ''); $app->setUserState('com_costbenefitprojection.extension_message', '');
} }
$this->setRedirect($redirect_url); $this->setRedirect($redirect_url);
} }
} }

View File

@ -1,64 +1,64 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage intervention.php @subpackage intervention.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Intervention Controller * Intervention Controller
*/ */
class CostbenefitprojectionControllerIntervention extends JControllerForm class CostbenefitprojectionControllerIntervention extends JControllerForm
{ {
/** /**
* Current or most recently performed task. * Current or most recently performed task.
* *
* @var string * @var string
* @since 12.2 * @since 12.2
* @note Replaces _task. * @note Replaces _task.
*/ */
protected $task; protected $task;
/** /**
* Class constructor. * Class constructor.
* *
* @param array $config A named array of configuration variables. * @param array $config A named array of configuration variables.
* *
* @since 1.6 * @since 1.6
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->view_list = 'Interventions'; // safeguard for setting the return view listing to the main view. $this->view_list = 'Interventions'; // safeguard for setting the return view listing to the main view.
parent::__construct($config); parent::__construct($config);
} }
/** /**
* Method override to check if you can add a new record. * Method override to check if you can add a new record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowAdd($data = array()) protected function allowAdd($data = array())
{ {
// Get user object. // Get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -70,20 +70,20 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
} }
// In the absense of better information, revert to the component permissions. // In the absense of better information, revert to the component permissions.
return $user->authorise('intervention.create', $this->option); return $user->authorise('intervention.create', $this->option);
} }
/** /**
* Method override to check if you can edit an existing record. * Method override to check if you can edit an existing record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* @param string $key The name of the key for the primary key. * @param string $key The name of the key for the primary key.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowEdit($data = array(), $key = 'id') protected function allowEdit($data = array(), $key = 'id')
{ {
// get user object. // get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -148,199 +148,199 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
} }
} }
// Since there is no permission, revert to the component permissions. // Since there is no permission, revert to the component permissions.
return $user->authorise('intervention.edit', $this->option); return $user->authorise('intervention.edit', $this->option);
} }
/** /**
* Gets the URL arguments to append to an item redirect. * Gets the URL arguments to append to an item redirect.
* *
* @param integer $recordId The primary key id for the item. * @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id. * @param string $urlVar The name of the URL variable for the id.
* *
* @return string The arguments to append to the redirect URL. * @return string The arguments to append to the redirect URL.
* *
* @since 1.6 * @since 1.6
*/ */
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
// 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');
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Intervention', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=interventions' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{ {
return; // 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');
}
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Intervention', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=interventions' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{
return;
}
}

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage interventions.php @subpackage interventions.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Interventions Controller * Interventions Controller
*/ */
class CostbenefitprojectionControllerInterventions extends JControllerAdmin class CostbenefitprojectionControllerInterventions extends JControllerAdmin
{ {
/** /**
* The prefix to use with controller messages. * The prefix to use with controller messages.
* *
* @var string * @var string
* @since 1.6 * @since 1.6
*/ */
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_INTERVENTIONS'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_INTERVENTIONS';
/** /**
* Method to get a model object, loading it if required. * Method to get a model object, loading it if required.
* *
* @param string $name The model name. Optional. * @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional. * @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional. * @param array $config Configuration array for model. Optional.
* *
* @return JModelLegacy The model. * @return JModelLegacy The model.
* *
* @since 1.6 * @since 1.6
*/ */
public function getModel($name = 'Intervention', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true)) public function getModel($name = 'Intervention', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{ {
return parent::getModel($name, $prefix, $config); return parent::getModel($name, $prefix, $config);
} }
public function exportData() public function exportData()
@ -112,5 +112,5 @@ class CostbenefitprojectionControllerInterventions extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED'); $message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=interventions', false), $message, 'error'); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=interventions', false), $message, 'error');
return; return;
} }
} }

View File

@ -1,64 +1,64 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factor.php @subpackage scaling_factor.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Scaling_factor Controller * Scaling_factor Controller
*/ */
class CostbenefitprojectionControllerScaling_factor extends JControllerForm class CostbenefitprojectionControllerScaling_factor extends JControllerForm
{ {
/** /**
* Current or most recently performed task. * Current or most recently performed task.
* *
* @var string * @var string
* @since 12.2 * @since 12.2
* @note Replaces _task. * @note Replaces _task.
*/ */
protected $task; protected $task;
/** /**
* Class constructor. * Class constructor.
* *
* @param array $config A named array of configuration variables. * @param array $config A named array of configuration variables.
* *
* @since 1.6 * @since 1.6
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->view_list = 'Scaling_factors'; // safeguard for setting the return view listing to the main view. $this->view_list = 'Scaling_factors'; // safeguard for setting the return view listing to the main view.
parent::__construct($config); parent::__construct($config);
} }
/** /**
* Method override to check if you can add a new record. * Method override to check if you can add a new record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowAdd($data = array()) protected function allowAdd($data = array())
{ {
// Get user object. // Get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -70,20 +70,20 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
} }
// In the absense of better information, revert to the component permissions. // In the absense of better information, revert to the component permissions.
return $user->authorise('scaling_factor.create', $this->option); return $user->authorise('scaling_factor.create', $this->option);
} }
/** /**
* Method override to check if you can edit an existing record. * Method override to check if you can edit an existing record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* @param string $key The name of the key for the primary key. * @param string $key The name of the key for the primary key.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowEdit($data = array(), $key = 'id') protected function allowEdit($data = array(), $key = 'id')
{ {
// get user object. // get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -142,199 +142,199 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
} }
} }
// Since there is no permission, revert to the component permissions. // Since there is no permission, revert to the component permissions.
return $user->authorise('scaling_factor.edit', $this->option); return $user->authorise('scaling_factor.edit', $this->option);
} }
/** /**
* Gets the URL arguments to append to an item redirect. * Gets the URL arguments to append to an item redirect.
* *
* @param integer $recordId The primary key id for the item. * @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id. * @param string $urlVar The name of the URL variable for the id.
* *
* @return string The arguments to append to the redirect URL. * @return string The arguments to append to the redirect URL.
* *
* @since 1.6 * @since 1.6
*/ */
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
// 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');
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Scaling_factor', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=scaling_factors' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{ {
return; // 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');
}
// get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options
if ($refid && $ref)
{
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
}
elseif ($ref)
{
$append = '&ref='. (string)$ref . $append;
}
return $append;
}
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Scaling_factor', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=scaling_factors' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
/**
* Method to cancel an edit.
*
* @param string $key The name of the primary key of the URL variable.
*
* @return boolean True if access level checks pass, false otherwise.
*
* @since 12.2
*/
public function cancel($key = null)
{
// 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 (!is_null($return) && JUri::isInternal(base64_decode($return)))
{
$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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view='.(string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $cancel;
}
/**
* Method to save a record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
*
* @return boolean True if successful, false otherwise.
*
* @since 12.2
*/
public function save($key = null, $urlVar = null)
{
// 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');
$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';
}
$saved = parent::save($key, $urlVar);
// 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;
// Redirect to the item screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
elseif ($this->ref)
{
$redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen.
$this->setRedirect(
JRoute::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
return $saved;
}
/**
* Function that allows child controller access to model data
* after the data has been saved.
*
* @param JModel &$model The data model object.
* @param array $validData The validated data.
*
* @return void
*
* @since 11.1
*/
protected function postSaveHook(JModelLegacy $model, $validData = array())
{
return;
}
}

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factors.php @subpackage scaling_factors.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Scaling_factors Controller * Scaling_factors Controller
*/ */
class CostbenefitprojectionControllerScaling_factors extends JControllerAdmin class CostbenefitprojectionControllerScaling_factors extends JControllerAdmin
{ {
/** /**
* The prefix to use with controller messages. * The prefix to use with controller messages.
* *
* @var string * @var string
* @since 1.6 * @since 1.6
*/ */
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_SCALING_FACTORS'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_SCALING_FACTORS';
/** /**
* Method to get a model object, loading it if required. * Method to get a model object, loading it if required.
* *
* @param string $name The model name. Optional. * @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional. * @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional. * @param array $config Configuration array for model. Optional.
* *
* @return JModelLegacy The model. * @return JModelLegacy The model.
* *
* @since 1.6 * @since 1.6
*/ */
public function getModel($name = 'Scaling_factor', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true)) public function getModel($name = 'Scaling_factor', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{ {
return parent::getModel($name, $prefix, $config); return parent::getModel($name, $prefix, $config);
} }
public function exportData() public function exportData()
@ -112,5 +112,5 @@ class CostbenefitprojectionControllerScaling_factors extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED'); $message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=scaling_factors', false), $message, 'error'); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=scaling_factors', false), $message, 'error');
return; return;
} }
} }

View File

@ -1,64 +1,64 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_provider.php @subpackage service_provider.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Service_provider Controller * Service_provider Controller
*/ */
class CostbenefitprojectionControllerService_provider extends JControllerForm class CostbenefitprojectionControllerService_provider extends JControllerForm
{ {
/** /**
* Current or most recently performed task. * Current or most recently performed task.
* *
* @var string * @var string
* @since 12.2 * @since 12.2
* @note Replaces _task. * @note Replaces _task.
*/ */
protected $task; protected $task;
/** /**
* Class constructor. * Class constructor.
* *
* @param array $config A named array of configuration variables. * @param array $config A named array of configuration variables.
* *
* @since 1.6 * @since 1.6
*/ */
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->view_list = 'Service_providers'; // safeguard for setting the return view listing to the main view. $this->view_list = 'Service_providers'; // safeguard for setting the return view listing to the main view.
parent::__construct($config); parent::__construct($config);
} }
/** /**
* Method override to check if you can add a new record. * Method override to check if you can add a new record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowAdd($data = array()) protected function allowAdd($data = array())
{ {
// Get user object. // Get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -70,20 +70,20 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
} }
// In the absense of better information, revert to the component permissions. // In the absense of better information, revert to the component permissions.
return $user->authorise('service_provider.create', $this->option); return $user->authorise('service_provider.create', $this->option);
} }
/** /**
* Method override to check if you can edit an existing record. * Method override to check if you can edit an existing record.
* *
* @param array $data An array of input data. * @param array $data An array of input data.
* @param string $key The name of the key for the primary key. * @param string $key The name of the key for the primary key.
* *
* @return boolean * @return boolean
* *
* @since 1.6 * @since 1.6
*/ */
protected function allowEdit($data = array(), $key = 'id') protected function allowEdit($data = array(), $key = 'id')
{ {
// get user object. // get user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -141,197 +141,197 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
} }
} }
// Since there is no permission, revert to the component permissions. // Since there is no permission, revert to the component permissions.
return $user->authorise('service_provider.edit', $this->option); return $user->authorise('service_provider.edit', $this->option);
} }
/** /**
* Gets the URL arguments to append to an item redirect. * Gets the URL arguments to append to an item redirect.
* *
* @param integer $recordId The primary key id for the item. * @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id. * @param string $urlVar The name of the URL variable for the id.
* *
* @return string The arguments to append to the redirect URL. * @return string The arguments to append to the redirect URL.
* *
* @since 1.6 * @since 1.6
*/ */
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{ {
// get the referral options (old method use return instead see parent) // get the referral options (old method use return instead see parent)
$ref = $this->input->get('ref', 0, 'string'); $ref = $this->input->get('ref', 0, 'string');
$refid = $this->input->get('refid', 0, 'int'); $refid = $this->input->get('refid', 0, 'int');
// get redirect info. // get redirect info.
$append = parent::getRedirectToItemAppend($recordId, $urlVar); $append = parent::getRedirectToItemAppend($recordId, $urlVar);
// set the referral options // set the referral options
if ($refid && $ref) if ($refid && $ref)
{ {
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append; $append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
} }
elseif ($ref) elseif ($ref)
{ {
$append = '&ref='. (string)$ref . $append; $append = '&ref='. (string)$ref . $append;
} }
return $append; return $append;
} }
/** /**
* Method to run batch operations. * Method to run batch operations.
* *
* @param object $model The model. * @param object $model The model.
* *
* @return boolean True if successful, false otherwise and internal error is set. * @return boolean True if successful, false otherwise and internal error is set.
* *
* @since 2.5 * @since 2.5
*/ */
public function batch($model = null) public function batch($model = null)
{ {
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model // Set the model
$model = $this->getModel('Service_provider', '', array()); $model = $this->getModel('Service_provider', '', array());
// Preset the redirect // Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=service_providers' . $this->getRedirectToListAppend(), false)); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=service_providers' . $this->getRedirectToListAppend(), false));
return parent::batch($model); return parent::batch($model);
} }
/** /**
* Method to cancel an edit. * Method to cancel an edit.
* *
* @param string $key The name of the primary key of the URL variable. * @param string $key The name of the primary key of the URL variable.
* *
* @return boolean True if access level checks pass, false otherwise. * @return boolean True if access level checks pass, false otherwise.
* *
* @since 12.2 * @since 12.2
*/ */
public function cancel($key = null) public function cancel($key = null)
{ {
// get the referral options // get the referral options
$this->ref = $this->input->get('ref', 0, 'word'); $this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int'); $this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value // Check if there is a return value
$return = $this->input->get('return', null, 'base64'); $return = $this->input->get('return', null, 'base64');
$cancel = parent::cancel($key); $cancel = parent::cancel($key);
if (!is_null($return) && JUri::isInternal(base64_decode($return))) if (!is_null($return) && JUri::isInternal(base64_decode($return)))
{ {
$redirect = base64_decode($return); $redirect = base64_decode($return);
// Redirect to the return value. // Redirect to the return value.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
$redirect, false $redirect, false
) )
); );
} }
elseif ($this->refid && $this->ref) elseif ($this->refid && $this->ref)
{ {
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid; $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
// Redirect to the item screen. // Redirect to the item screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
elseif ($this->ref) elseif ($this->ref)
{ {
$redirect = '&view='.(string)$this->ref; $redirect = '&view='.(string)$this->ref;
// Redirect to the list screen. // Redirect to the list screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
return $cancel; return $cancel;
} }
/** /**
* Method to save a record. * Method to save a record.
* *
* @param string $key The name of the primary key of the URL variable. * @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
* *
* @return boolean True if successful, false otherwise. * @return boolean True if successful, false otherwise.
* *
* @since 12.2 * @since 12.2
*/ */
public function save($key = null, $urlVar = null) public function save($key = null, $urlVar = null)
{ {
// get the referral options // get the referral options
$this->ref = $this->input->get('ref', 0, 'word'); $this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int'); $this->refid = $this->input->get('refid', 0, 'int');
// Check if there is a return value // Check if there is a return value
$return = $this->input->get('return', null, 'base64'); $return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return))); $canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn) if ($this->ref || $this->refid || $canReturn)
{ {
// to make sure the item is checkedin on redirect // to make sure the item is checkedin on redirect
$this->task = 'save'; $this->task = 'save';
} }
$saved = parent::save($key, $urlVar); $saved = parent::save($key, $urlVar);
// This is not needed since parent save already does this // This is not needed since parent save already does this
// Due to the ref and refid implementation we need to add this // Due to the ref and refid implementation we need to add this
if ($canReturn) if ($canReturn)
{ {
$redirect = base64_decode($return); $redirect = base64_decode($return);
// Redirect to the return value. // Redirect to the return value.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
$redirect, false $redirect, false
) )
); );
} }
elseif ($this->refid && $this->ref) elseif ($this->refid && $this->ref)
{ {
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid; $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
// Redirect to the item screen. // Redirect to the item screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
elseif ($this->ref) elseif ($this->ref)
{ {
$redirect = '&view=' . (string)$this->ref; $redirect = '&view=' . (string)$this->ref;
// Redirect to the list screen. // Redirect to the list screen.
$this->setRedirect( $this->setRedirect(
JRoute::_( JRoute::_(
'index.php?option=' . $this->option . $redirect, false 'index.php?option=' . $this->option . $redirect, false
) )
); );
} }
return $saved; return $saved;
} }
/** /**
* Function that allows child controller access to model data * Function that allows child controller access to model data
* after the data has been saved. * after the data has been saved.
* *
* @param JModel &$model The data model object. * @param JModel &$model The data model object.
* @param array $validData The validated data. * @param array $validData The validated data.
* *
* @return void * @return void
* *
* @since 11.1 * @since 11.1
*/ */
protected function postSaveHook(JModelLegacy $model, $validData = array()) protected function postSaveHook(JModelLegacy $model, $validData = array())
{ {
if ($validData['id'] >= 0) if ($validData['id'] >= 0)
{ {
@ -393,7 +393,7 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
} }
} }
return; return;
} }
} }

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_providers.php @subpackage service_providers.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
/** /**
* Service_providers Controller * Service_providers Controller
*/ */
class CostbenefitprojectionControllerService_providers extends JControllerAdmin class CostbenefitprojectionControllerService_providers extends JControllerAdmin
{ {
/** /**
* The prefix to use with controller messages. * The prefix to use with controller messages.
* *
* @var string * @var string
* @since 1.6 * @since 1.6
*/ */
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS'; protected $text_prefix = 'COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS';
/** /**
* Method to get a model object, loading it if required. * Method to get a model object, loading it if required.
* *
* @param string $name The model name. Optional. * @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional. * @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional. * @param array $config Configuration array for model. Optional.
* *
* @return JModelLegacy The model. * @return JModelLegacy The model.
* *
* @since 1.6 * @since 1.6
*/ */
public function getModel($name = 'Service_provider', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true)) public function getModel($name = 'Service_provider', $prefix = 'CostbenefitprojectionModel', $config = array('ignore_request' => true))
{ {
return parent::getModel($name, $prefix, $config); return parent::getModel($name, $prefix, $config);
} }
public function exportData() public function exportData()
@ -112,5 +112,5 @@ class CostbenefitprojectionControllerService_providers extends JControllerAdmin
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED'); $message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=service_providers', false), $message, 'error'); $this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=service_providers', false), $message, 'error');
return; return;
} }
} }

View File

@ -1,47 +1,47 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage costbenefitprojection.php @subpackage costbenefitprojection.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tabstate');
// Access check. // Access check.
if (!JFactory::getUser()->authorise('core.manage', 'com_costbenefitprojection')) if (!JFactory::getUser()->authorise('core.manage', 'com_costbenefitprojection'))
{ {
throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403); throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403);
}; };
// Add CSS file for all pages // Add CSS file for all pages
$document = JFactory::getDocument(); $document = JFactory::getDocument();
$document->addStyleSheet('components/com_costbenefitprojection/assets/css/admin.css'); $document->addStyleSheet('components/com_costbenefitprojection/assets/css/admin.css');
$document->addScript('components/com_costbenefitprojection/assets/js/admin.js'); $document->addScript('components/com_costbenefitprojection/assets/js/admin.js');
// require helper files // require helper files
JLoader::register('CostbenefitprojectionHelper', __DIR__ . '/helpers/costbenefitprojection.php'); JLoader::register('CostbenefitprojectionHelper', __DIR__ . '/helpers/costbenefitprojection.php');
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php'); JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');
// Get an instance of the controller prefixed by Costbenefitprojection // Get an instance of the controller prefixed by Costbenefitprojection
$controller = JControllerLegacy::getInstance('Costbenefitprojection'); $controller = JControllerLegacy::getInstance('Costbenefitprojection');
// Perform the Request task // Perform the Request task
$controller->execute(JFactory::getApplication()->input->get('task')); $controller->execute(JFactory::getApplication()->input->get('task'));
// Redirect if set by the controller // Redirect if set by the controller
$controller->redirect(); $controller->redirect();

File diff suppressed because it is too large Load Diff

View File

@ -1,79 +1,79 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage headercheck.php @subpackage headercheck.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
class costbenefitprojectionHeaderCheck class costbenefitprojectionHeaderCheck
{ {
function js_loaded($script_name) function js_loaded($script_name)
{ {
// UIkit check point // UIkit check point
if (strpos($script_name,'uikit') !== false) if (strpos($script_name,'uikit') !== false)
{ {
$app = JFactory::getApplication(); $app = JFactory::getApplication();
$getTemplateName = $app->getTemplate('template')->template; $getTemplateName = $app->getTemplate('template')->template;
if (strpos($getTemplateName,'yoo') !== false) if (strpos($getTemplateName,'yoo') !== false)
{ {
return true; return true;
} }
} }
$document = JFactory::getDocument(); $document = JFactory::getDocument();
$head_data = $document->getHeadData(); $head_data = $document->getHeadData();
foreach (array_keys($head_data['scripts']) as $script) foreach (array_keys($head_data['scripts']) as $script)
{ {
if (stristr($script, $script_name)) if (stristr($script, $script_name))
{ {
return true; return true;
} }
} }
return false; return false;
} }
function css_loaded($script_name) function css_loaded($script_name)
{ {
// UIkit check point // UIkit check point
if (strpos($script_name,'uikit') !== false) if (strpos($script_name,'uikit') !== false)
{ {
$app = JFactory::getApplication(); $app = JFactory::getApplication();
$getTemplateName = $app->getTemplate('template')->template; $getTemplateName = $app->getTemplate('template')->template;
if (strpos($getTemplateName,'yoo') !== false) if (strpos($getTemplateName,'yoo') !== false)
{ {
return true; return true;
} }
} }
$document = JFactory::getDocument(); $document = JFactory::getDocument();
$head_data = $document->getHeadData(); $head_data = $document->getHeadData();
foreach (array_keys($head_data['styleSheets']) as $script) foreach (array_keys($head_data['styleSheets']) as $script)
{ {
if (stristr($script, $script_name)) if (stristr($script, $script_name))
{ {
return true; return true;
} }
} }
return false; return false;
} }
} }

View File

@ -1,86 +1,86 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage batch_.php @subpackage batch_.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;
/** /**
* Utility class to render a list view batch selection options * Utility class to render a list view batch selection options
* *
* @since 3.0 * @since 3.0
*/ */
abstract class JHtmlBatch_ abstract class JHtmlBatch_
{ {
/** /**
* ListSelection * ListSelection
* *
* @var array * @var array
* @since 3.0 * @since 3.0
*/ */
protected static $ListSelection = array(); protected static $ListSelection = array();
/** /**
* Render the batch selection options. * Render the batch selection options.
* *
* @return string The necessary HTML to display the batch selection options * @return string The necessary HTML to display the batch selection options
* *
* @since 3.0 * @since 3.0
*/ */
public static function render() public static function render()
{ {
// Collect display data // Collect display data
$data = new stdClass; $data = new stdClass;
$data->ListSelection = static::getListSelection(); $data->ListSelection = static::getListSelection();
// Create a layout object and ask it to render the batch selection options // Create a layout object and ask it to render the batch selection options
$layout = new JLayoutFile('batchselection'); $layout = new JLayoutFile('batchselection');
$batchHtml = $layout->render($data); $batchHtml = $layout->render($data);
return $batchHtml; return $batchHtml;
} }
/** /**
* Method to add a list selection to the batch modal * Method to add a list selection to the batch modal
* *
* @param string $label Label for the menu item. * @param string $label Label for the menu item.
* @param string $name Name for the filter. Also used as id. * @param string $name Name for the filter. Also used as id.
* @param string $options Options for the select field. * @param string $options Options for the select field.
* @param bool $noDefault Don't the label as the empty option * @param bool $noDefault Don't the label as the empty option
* *
* @return void * @return void
* *
* @since 3.0 * @since 3.0
*/ */
public static function addListSelection($label, $name, $options, $noDefault = false) public static function addListSelection($label, $name, $options, $noDefault = false)
{ {
array_push(static::$ListSelection, array('label' => $label, 'name' => $name, 'options' => $options, 'noDefault' => $noDefault)); array_push(static::$ListSelection, array('label' => $label, 'name' => $name, 'options' => $options, 'noDefault' => $noDefault));
} }
/** /**
* Returns an array of all ListSelection * Returns an array of all ListSelection
* *
* @return array * @return array
* *
* @since 3.0 * @since 3.0
*/ */
public static function getListSelection() public static function getListSelection()
{ {
return static::$ListSelection; return static::$ListSelection;
} }
} }

View File

@ -1,20 +1,20 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage sum.php @subpackage sum.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file

View File

@ -1,20 +1,20 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage sumcombine.php @subpackage sumcombine.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file

View File

@ -19,14 +19,12 @@ COM_COSTBENEFITPROJECTION_BULK_EXPORT="Bulk Export"
COM_COSTBENEFITPROJECTION_BULK_EXPORT_OF_HEALTH_DATA_SETS_FAILED_SHOULD_THIS_ISSUE_CONTINUE_PLEASE_INFORM_YOUR_SYSTEM_ADMINISTRATOR="Bulk export of health_data_sets failed should this issue continue, please inform your system administrator." COM_COSTBENEFITPROJECTION_BULK_EXPORT_OF_HEALTH_DATA_SETS_FAILED_SHOULD_THIS_ISSUE_CONTINUE_PLEASE_INFORM_YOUR_SYSTEM_ADMINISTRATOR="Bulk export of health_data_sets failed should this issue continue, please inform your system administrator."
COM_COSTBENEFITPROJECTION_CALCULATED_COSTS_IN_DETAIL="Calculated Costs in Detail" COM_COSTBENEFITPROJECTION_CALCULATED_COSTS_IN_DETAIL="Calculated Costs in Detail"
COM_COSTBENEFITPROJECTION_CAUSERISK="Cause/Risk" COM_COSTBENEFITPROJECTION_CAUSERISK="Cause/Risk"
COM_COSTBENEFITPROJECTION_CAUSERISK_ALIAS="Alias"
COM_COSTBENEFITPROJECTION_CAUSERISK_ALIAS_HINT="Auto-generated from name" COM_COSTBENEFITPROJECTION_CAUSERISK_ALIAS_HINT="Auto-generated from name"
COM_COSTBENEFITPROJECTION_CAUSERISK_ALIAS_LABEL="Alias" COM_COSTBENEFITPROJECTION_CAUSERISK_ALIAS_LABEL="Alias"
COM_COSTBENEFITPROJECTION_CAUSERISK_CREATED_BY_DESC="The user that created this Cause/Risk." COM_COSTBENEFITPROJECTION_CAUSERISK_CREATED_BY_DESC="The user that created this Cause/Risk."
COM_COSTBENEFITPROJECTION_CAUSERISK_CREATED_BY_LABEL="Created By" COM_COSTBENEFITPROJECTION_CAUSERISK_CREATED_BY_LABEL="Created By"
COM_COSTBENEFITPROJECTION_CAUSERISK_CREATED_DATE_DESC="The date this Cause/Risk was created." COM_COSTBENEFITPROJECTION_CAUSERISK_CREATED_DATE_DESC="The date this Cause/Risk was created."
COM_COSTBENEFITPROJECTION_CAUSERISK_CREATED_DATE_LABEL="Created Date" COM_COSTBENEFITPROJECTION_CAUSERISK_CREATED_DATE_LABEL="Created Date"
COM_COSTBENEFITPROJECTION_CAUSERISK_DESCRIPTION="Description"
COM_COSTBENEFITPROJECTION_CAUSERISK_DESCRIPTION_DESCRIPTION="Add Description Here" COM_COSTBENEFITPROJECTION_CAUSERISK_DESCRIPTION_DESCRIPTION="Add Description Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_DESCRIPTION_HINT="Add Description Here" COM_COSTBENEFITPROJECTION_CAUSERISK_DESCRIPTION_HINT="Add Description Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_DESCRIPTION_LABEL="Description" COM_COSTBENEFITPROJECTION_CAUSERISK_DESCRIPTION_LABEL="Description"
@ -35,12 +33,10 @@ COM_COSTBENEFITPROJECTION_CAUSERISK_EDIT="Editing the Cause/Risk"
COM_COSTBENEFITPROJECTION_CAUSERISK_ERROR_UNIQUE_ALIAS="Another Cause/Risk has the same alias." COM_COSTBENEFITPROJECTION_CAUSERISK_ERROR_UNIQUE_ALIAS="Another Cause/Risk has the same alias."
COM_COSTBENEFITPROJECTION_CAUSERISK_FACTOR="Cause/Risk Factor" COM_COSTBENEFITPROJECTION_CAUSERISK_FACTOR="Cause/Risk Factor"
COM_COSTBENEFITPROJECTION_CAUSERISK_ID="Id" COM_COSTBENEFITPROJECTION_CAUSERISK_ID="Id"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME="Importname"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_DESCRIPTION="Enter Import Name Here" COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_DESCRIPTION="Enter Import Name Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_HINT="Import Name Here" COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_HINT="Import Name Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_LABEL="Import Name" COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_LABEL="Import Name"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_MESSAGE="Error! Please add import name here." COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORTNAME_MESSAGE="Error! Please add import name here."
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID="Import Id"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID_DESCRIPTION="This is the id that is used during import of the health data." COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID_DESCRIPTION="This is the id that is used during import of the health data."
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID_LABEL="Import ID" COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID_LABEL="Import ID"
COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID_MESSAGE="Error! Please add some the import ID here." COM_COSTBENEFITPROJECTION_CAUSERISK_IMPORT_ID_MESSAGE="Error! Please add some the import ID here."
@ -48,7 +44,6 @@ COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_BY_DESC="The last user that modifie
COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_BY_LABEL="Modified By" COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_BY_LABEL="Modified By"
COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_DATE_DESC="The date this Cause/Risk was modified." COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_DATE_DESC="The date this Cause/Risk was modified."
COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_DATE_LABEL="Modified Date" COM_COSTBENEFITPROJECTION_CAUSERISK_MODIFIED_DATE_LABEL="Modified Date"
COM_COSTBENEFITPROJECTION_CAUSERISK_NAME="Name"
COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_DESCRIPTION="Enter Name Here" COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_DESCRIPTION="Enter Name Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_HINT="Name Here" COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_HINT="Name Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_LABEL="Name" COM_COSTBENEFITPROJECTION_CAUSERISK_NAME_LABEL="Name"
@ -57,7 +52,6 @@ COM_COSTBENEFITPROJECTION_CAUSERISK_NEW="A New Cause/Risk"
COM_COSTBENEFITPROJECTION_CAUSERISK_ORDERING_LABEL="Ordering" COM_COSTBENEFITPROJECTION_CAUSERISK_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_CAUSERISK_PERMISSION="Permissions" COM_COSTBENEFITPROJECTION_CAUSERISK_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_CAUSERISK_PUBLISHING="Publishing" COM_COSTBENEFITPROJECTION_CAUSERISK_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_CAUSERISK_REF="Ref"
COM_COSTBENEFITPROJECTION_CAUSERISK_REF_DESCRIPTION="The reference number for this cause/risk" COM_COSTBENEFITPROJECTION_CAUSERISK_REF_DESCRIPTION="The reference number for this cause/risk"
COM_COSTBENEFITPROJECTION_CAUSERISK_REF_HINT="Ref Number Here" COM_COSTBENEFITPROJECTION_CAUSERISK_REF_HINT="Ref Number Here"
COM_COSTBENEFITPROJECTION_CAUSERISK_REF_LABEL="Ref Nr" COM_COSTBENEFITPROJECTION_CAUSERISK_REF_LABEL="Ref Nr"
@ -212,31 +206,25 @@ COM_COSTBENEFITPROJECTION_COMPANY_AGE_GROUPS_PERCENTAGES="Age Groups Percentages
COM_COSTBENEFITPROJECTION_COMPANY_AGE_LABEL="Age Group" COM_COSTBENEFITPROJECTION_COMPANY_AGE_LABEL="Age Group"
COM_COSTBENEFITPROJECTION_COMPANY_BASIC="Basic" COM_COSTBENEFITPROJECTION_COMPANY_BASIC="Basic"
COM_COSTBENEFITPROJECTION_COMPANY_CAUSERISK_SELECTION="Cause/Risk Selection" COM_COSTBENEFITPROJECTION_COMPANY_CAUSERISK_SELECTION="Cause/Risk Selection"
COM_COSTBENEFITPROJECTION_COMPANY_CAUSESRISKS="Causesrisks"
COM_COSTBENEFITPROJECTION_COMPANY_CAUSESRISKS_LABEL="Causes/Risks" COM_COSTBENEFITPROJECTION_COMPANY_CAUSESRISKS_LABEL="Causes/Risks"
COM_COSTBENEFITPROJECTION_COMPANY_CAUSE_RISK_SELECTION_NOTE_DESCRIPTION="This feature is only available to the advanced department." COM_COSTBENEFITPROJECTION_COMPANY_CAUSE_RISK_SELECTION_NOTE_DESCRIPTION="This feature is only available to the advanced department."
COM_COSTBENEFITPROJECTION_COMPANY_CAUSE_RISK_SELECTION_NOTE_LABEL="Cause/Risk Selection" COM_COSTBENEFITPROJECTION_COMPANY_CAUSE_RISK_SELECTION_NOTE_LABEL="Cause/Risk Selection"
COM_COSTBENEFITPROJECTION_COMPANY_COUNTRY="Country"
COM_COSTBENEFITPROJECTION_COMPANY_COUNTRY_DESCRIPTION="List of available countries" COM_COSTBENEFITPROJECTION_COMPANY_COUNTRY_DESCRIPTION="List of available countries"
COM_COSTBENEFITPROJECTION_COMPANY_COUNTRY_LABEL="Country" COM_COSTBENEFITPROJECTION_COMPANY_COUNTRY_LABEL="Country"
COM_COSTBENEFITPROJECTION_COMPANY_CREATED_BY_DESC="The user that created this Company." COM_COSTBENEFITPROJECTION_COMPANY_CREATED_BY_DESC="The user that created this Company."
COM_COSTBENEFITPROJECTION_COMPANY_CREATED_BY_LABEL="Created By" COM_COSTBENEFITPROJECTION_COMPANY_CREATED_BY_LABEL="Created By"
COM_COSTBENEFITPROJECTION_COMPANY_CREATED_DATE_DESC="The date this Company was created." COM_COSTBENEFITPROJECTION_COMPANY_CREATED_DATE_DESC="The date this Company was created."
COM_COSTBENEFITPROJECTION_COMPANY_CREATED_DATE_LABEL="Created Date" COM_COSTBENEFITPROJECTION_COMPANY_CREATED_DATE_LABEL="Created Date"
COM_COSTBENEFITPROJECTION_COMPANY_DATAYEAR="Datayear"
COM_COSTBENEFITPROJECTION_COMPANY_DATAYEAR_DESCRIPTION="Select which year's data should be used in calculations." COM_COSTBENEFITPROJECTION_COMPANY_DATAYEAR_DESCRIPTION="Select which year's data should be used in calculations."
COM_COSTBENEFITPROJECTION_COMPANY_DATAYEAR_LABEL="Data Year" COM_COSTBENEFITPROJECTION_COMPANY_DATAYEAR_LABEL="Data Year"
COM_COSTBENEFITPROJECTION_COMPANY_DEPARTMENT="Department"
COM_COSTBENEFITPROJECTION_COMPANY_DEPARTMENT_LABEL="Department" COM_COSTBENEFITPROJECTION_COMPANY_DEPARTMENT_LABEL="Department"
COM_COSTBENEFITPROJECTION_COMPANY_DETAILS="Details" COM_COSTBENEFITPROJECTION_COMPANY_DETAILS="Details"
COM_COSTBENEFITPROJECTION_COMPANY_EDIT="Editing the Company" COM_COSTBENEFITPROJECTION_COMPANY_EDIT="Editing the Company"
COM_COSTBENEFITPROJECTION_COMPANY_EMAIL="Email"
COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_DESCRIPTION="Enter Email" COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_DESCRIPTION="Enter Email"
COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_HINT="demo@example.com" COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_HINT="demo@example.com"
COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_LABEL="Email" COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_LABEL="Email"
COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_MESSAGE="Error! Please add email address here." COM_COSTBENEFITPROJECTION_COMPANY_EMAIL_MESSAGE="Error! Please add email address here."
COM_COSTBENEFITPROJECTION_COMPANY_ERROR_UNIQUE_ALIAS="Another Company has the same alias." COM_COSTBENEFITPROJECTION_COMPANY_ERROR_UNIQUE_ALIAS="Another Company has the same alias."
COM_COSTBENEFITPROJECTION_COMPANY_FEMALES="Females"
COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_DESCRIPTION="The Total Number of Female Employees." COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_DESCRIPTION="The Total Number of Female Employees."
COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_HINT="Just A Number" COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_HINT="Just A Number"
COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_LABEL="Total Female Employees" COM_COSTBENEFITPROJECTION_COMPANY_FEMALES_LABEL="Total Female Employees"
@ -249,17 +237,14 @@ COM_COSTBENEFITPROJECTION_COMPANY_FORTY_FIVEFORTY_NINE="45-49"
COM_COSTBENEFITPROJECTION_COMPANY_ID="Id" COM_COSTBENEFITPROJECTION_COMPANY_ID="Id"
COM_COSTBENEFITPROJECTION_COMPANY_INTERVENTIONS="Interventions" COM_COSTBENEFITPROJECTION_COMPANY_INTERVENTIONS="Interventions"
COM_COSTBENEFITPROJECTION_COMPANY_LOCKED="Locked" COM_COSTBENEFITPROJECTION_COMPANY_LOCKED="Locked"
COM_COSTBENEFITPROJECTION_COMPANY_MALES="Males"
COM_COSTBENEFITPROJECTION_COMPANY_MALES_DESCRIPTION="The Total Number of Male Employees." COM_COSTBENEFITPROJECTION_COMPANY_MALES_DESCRIPTION="The Total Number of Male Employees."
COM_COSTBENEFITPROJECTION_COMPANY_MALES_HINT="Just A Number" COM_COSTBENEFITPROJECTION_COMPANY_MALES_HINT="Just A Number"
COM_COSTBENEFITPROJECTION_COMPANY_MALES_LABEL="Total Male Employees" COM_COSTBENEFITPROJECTION_COMPANY_MALES_LABEL="Total Male Employees"
COM_COSTBENEFITPROJECTION_COMPANY_MALES_MESSAGE="Error! Please add total male employees here." COM_COSTBENEFITPROJECTION_COMPANY_MALES_MESSAGE="Error! Please add total male employees here."
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES="Medical Turnovers Females"
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_DESCRIPTION="The total number of medical turnovers for females per/year." COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_DESCRIPTION="The total number of medical turnovers for females per/year."
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_HINT="per/year" COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_LABEL="Total Number Medical Turnovers Female" COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_LABEL="Total Number Medical Turnovers Female"
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_MESSAGE="Error! Please add total number of medical turnovers for females here." COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_FEMALES_MESSAGE="Error! Please add total number of medical turnovers for females here."
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES="Medical Turnovers Males"
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_DESCRIPTION="The total number of medical turnovers for males per/year." COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_DESCRIPTION="The total number of medical turnovers for males per/year."
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_HINT="per/year" COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_LABEL="Total Number Medical Turnovers Male" COM_COSTBENEFITPROJECTION_COMPANY_MEDICAL_TURNOVERS_MALES_LABEL="Total Number Medical Turnovers Male"
@ -268,7 +253,6 @@ COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_BY_DESC="The last user that modified
COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_BY_LABEL="Modified By" COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_BY_LABEL="Modified By"
COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_DATE_DESC="The date this Company was modified." COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_DATE_DESC="The date this Company was modified."
COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_DATE_LABEL="Modified Date" COM_COSTBENEFITPROJECTION_COMPANY_MODIFIED_DATE_LABEL="Modified Date"
COM_COSTBENEFITPROJECTION_COMPANY_NAME="Name"
COM_COSTBENEFITPROJECTION_COMPANY_NAME_DESCRIPTION="Enter Company Name Here" COM_COSTBENEFITPROJECTION_COMPANY_NAME_DESCRIPTION="Enter Company Name Here"
COM_COSTBENEFITPROJECTION_COMPANY_NAME_HINT="Company Name Here" COM_COSTBENEFITPROJECTION_COMPANY_NAME_HINT="Company Name Here"
COM_COSTBENEFITPROJECTION_COMPANY_NAME_LABEL="Company Name" COM_COSTBENEFITPROJECTION_COMPANY_NAME_LABEL="Company Name"
@ -277,12 +261,9 @@ COM_COSTBENEFITPROJECTION_COMPANY_NEW="A New Company"
COM_COSTBENEFITPROJECTION_COMPANY_NOT_REQUIRED="Not Required" COM_COSTBENEFITPROJECTION_COMPANY_NOT_REQUIRED="Not Required"
COM_COSTBENEFITPROJECTION_COMPANY_OPEN="Open" COM_COSTBENEFITPROJECTION_COMPANY_OPEN="Open"
COM_COSTBENEFITPROJECTION_COMPANY_ORDERING_LABEL="Ordering" COM_COSTBENEFITPROJECTION_COMPANY_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_COMPANY_PER="Per"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE="Percentfemale"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_DESCRIPTION="Here you can add females age groups percent." COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_DESCRIPTION="Here you can add females age groups percent."
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_LABEL="Set Females Age Groups Percent" COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_LABEL="Set Females Age Groups Percent"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_COMPANY_PERCENTFEMALE_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE="Percentmale"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_DESCRIPTION="Here you can add males age groups percent." COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_DESCRIPTION="Here you can add males age groups percent."
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_LABEL="Set Males Age Groups Percent" COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_LABEL="Set Males Age Groups Percent"
COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_COMPANY_PERCENTMALE_SELECT="Edit/Add"
@ -292,7 +273,6 @@ COM_COSTBENEFITPROJECTION_COMPANY_PERCENT_MESSAGE="Error! Please add percent her
COM_COSTBENEFITPROJECTION_COMPANY_PERMISSION="Permissions" COM_COSTBENEFITPROJECTION_COMPANY_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_COMPANY_PER_DESCRIPTION="Select your profile access status" COM_COSTBENEFITPROJECTION_COMPANY_PER_DESCRIPTION="Select your profile access status"
COM_COSTBENEFITPROJECTION_COMPANY_PER_LABEL="Profile Status" COM_COSTBENEFITPROJECTION_COMPANY_PER_LABEL="Profile Status"
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES="Productivity Losses"
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_DESCRIPTION="The proportion of annual salary that it costs to replace an employee for medical reasons." COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_DESCRIPTION="The proportion of annual salary that it costs to replace an employee for medical reasons."
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_HINT="0.05" COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_HINT="0.05"
COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_LABEL="Medical Turnover Cost Factor" COM_COSTBENEFITPROJECTION_COMPANY_PRODUCTIVITY_LOSSES_LABEL="Medical Turnover Cost Factor"
@ -308,14 +288,11 @@ COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS="Company Results Ed
COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS_DESC="Allows the users in this group to access the edit button." COM_COSTBENEFITPROJECTION_COMPANY_RESULTS_EDIT_BUTTON_ACCESS_DESC="Allows the users in this group to access the edit button."
COM_COSTBENEFITPROJECTION_COMPANY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Company to customise the alias." COM_COSTBENEFITPROJECTION_COMPANY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Company to customise the alias."
COM_COSTBENEFITPROJECTION_COMPANY_SCALING_FACTORS="Scaling Factors" COM_COSTBENEFITPROJECTION_COMPANY_SCALING_FACTORS="Scaling Factors"
COM_COSTBENEFITPROJECTION_COMPANY_SERVICE_PROVIDER="Service Provider"
COM_COSTBENEFITPROJECTION_COMPANY_SERVICE_PROVIDER_LABEL="Service Provider" COM_COSTBENEFITPROJECTION_COMPANY_SERVICE_PROVIDER_LABEL="Service Provider"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES="Sick Leave Females"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_DESCRIPTION="The total number of sick leave days for females per/year." COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_DESCRIPTION="The total number of sick leave days for females per/year."
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_HINT="per/year" COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_LABEL="Total Number Sick Leave Days Females" COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_LABEL="Total Number Sick Leave Days Females"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_MESSAGE="Error! Please add total number of sick leave days for females here." COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_FEMALES_MESSAGE="Error! Please add total number of sick leave days for females here."
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES="Sick Leave Males"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_DESCRIPTION="The total number of sick leave days for males per/year." COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_DESCRIPTION="The total number of sick leave days for males per/year."
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_HINT="per/year" COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_LABEL="Total Number Sick Leave Days Males" COM_COSTBENEFITPROJECTION_COMPANY_SICK_LEAVE_MALES_LABEL="Total Number Sick Leave Days Males"
@ -324,28 +301,23 @@ COM_COSTBENEFITPROJECTION_COMPANY_SIXTYSIXTY_FOUR="60-64"
COM_COSTBENEFITPROJECTION_COMPANY_STATUS="Status" COM_COSTBENEFITPROJECTION_COMPANY_STATUS="Status"
COM_COSTBENEFITPROJECTION_COMPANY_THIRTYTHIRTY_FOUR="30-34" COM_COSTBENEFITPROJECTION_COMPANY_THIRTYTHIRTY_FOUR="30-34"
COM_COSTBENEFITPROJECTION_COMPANY_THIRTY_FIVETHIRTY_NINE="35-39" COM_COSTBENEFITPROJECTION_COMPANY_THIRTY_FIVETHIRTY_NINE="35-39"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE="Total Healthcare"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_DESCRIPTION="The total healthcare payed per/year" COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_DESCRIPTION="The total healthcare payed per/year"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_HINT="per/year" COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_LABEL="Total Healthcare Costs" COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_LABEL="Total Healthcare Costs"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_MESSAGE="Error! Please add total healthcare costs here." COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_HEALTHCARE_MESSAGE="Error! Please add total healthcare costs here."
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY="Total Salary"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_DESCRIPTION="The total salary payed per/year" COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_DESCRIPTION="The total salary payed per/year"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_HINT="per/year" COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_HINT="per/year"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_LABEL="Total Salary" COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_LABEL="Total Salary"
COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_MESSAGE="Error! Please add total salary here." COM_COSTBENEFITPROJECTION_COMPANY_TOTAL_SALARY_MESSAGE="Error! Please add total salary here."
COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT="Turnover Comment"
COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_DESCRIPTION="Here you can explain how many deaths your company has had over any given period. This will help us understand how you came to the numbers used above in the male and female medical turnovers." COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_DESCRIPTION="Here you can explain how many deaths your company has had over any given period. This will help us understand how you came to the numbers used above in the male and female medical turnovers."
COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_HINT="You can make a comment here to indicate how you arrived at the given numbers above for male and female medical turnovers." COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_HINT="You can make a comment here to indicate how you arrived at the given numbers above for male and female medical turnovers."
COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_LABEL="Turnover Comment" COM_COSTBENEFITPROJECTION_COMPANY_TURNOVER_COMMENT_LABEL="Turnover Comment"
COM_COSTBENEFITPROJECTION_COMPANY_TWENTYTWENTY_FOUR="20-24" COM_COSTBENEFITPROJECTION_COMPANY_TWENTYTWENTY_FOUR="20-24"
COM_COSTBENEFITPROJECTION_COMPANY_TWENTY_FIVETWENTY_NINE="25-29" COM_COSTBENEFITPROJECTION_COMPANY_TWENTY_FIVETWENTY_NINE="25-29"
COM_COSTBENEFITPROJECTION_COMPANY_USER="User"
COM_COSTBENEFITPROJECTION_COMPANY_USER_HINT="select a member" COM_COSTBENEFITPROJECTION_COMPANY_USER_HINT="select a member"
COM_COSTBENEFITPROJECTION_COMPANY_USER_LABEL="User (Member)" COM_COSTBENEFITPROJECTION_COMPANY_USER_LABEL="User (Member)"
COM_COSTBENEFITPROJECTION_COMPANY_VERSION_DESC="A count of the number of times this Company has been revised." COM_COSTBENEFITPROJECTION_COMPANY_VERSION_DESC="A count of the number of times this Company has been revised."
COM_COSTBENEFITPROJECTION_COMPANY_VERSION_LABEL="Version" COM_COSTBENEFITPROJECTION_COMPANY_VERSION_LABEL="Version"
COM_COSTBENEFITPROJECTION_COMPANY_WORKING_DAYS="Working Days"
COM_COSTBENEFITPROJECTION_COMPANY_WORKING_DAYS_DESCRIPTION="Number of working days per/year" COM_COSTBENEFITPROJECTION_COMPANY_WORKING_DAYS_DESCRIPTION="Number of working days per/year"
COM_COSTBENEFITPROJECTION_COMPANY_WORKING_DAYS_LABEL="Work Days" COM_COSTBENEFITPROJECTION_COMPANY_WORKING_DAYS_LABEL="Work Days"
COM_COSTBENEFITPROJECTION_CONFIG_ADMIN_CHART_NOTE_DESC="The following settings are used on the back-end of the site called (admin)." COM_COSTBENEFITPROJECTION_CONFIG_ADMIN_CHART_NOTE_DESC="The following settings are used on the back-end of the site called (admin)."
@ -452,7 +424,7 @@ COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_DESC="Select the vertic
COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_LABEL="vAxis 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_DESC="Add the key you recieved from Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb here."
COM_COSTBENEFITPROJECTION_CONFIG_WHMCS_KEY_LABEL="Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Key" 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_DESC="You need to get this key from <a href='' 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_WHMCS_KEY_NOTE_LABEL="Your Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Field Encryption Key"
COM_COSTBENEFITPROJECTION_CONFIG_YES="Yes" COM_COSTBENEFITPROJECTION_CONFIG_YES="Yes"
COM_COSTBENEFITPROJECTION_CONTRIBUTION_TO_COSTS="Contribution to Costs" COM_COSTBENEFITPROJECTION_CONTRIBUTION_TO_COSTS="Contribution to Costs"
@ -521,18 +493,14 @@ COM_COSTBENEFITPROJECTION_COUNTRIES_SUBMENU_DESC="Allows the users in this group
COM_COSTBENEFITPROJECTION_COUNTRY="Country" COM_COSTBENEFITPROJECTION_COUNTRY="Country"
COM_COSTBENEFITPROJECTION_COUNTRY_AGE_GROUPS_PERCENTAGES="Age Groups Percentages" COM_COSTBENEFITPROJECTION_COUNTRY_AGE_GROUPS_PERCENTAGES="Age Groups Percentages"
COM_COSTBENEFITPROJECTION_COUNTRY_AGE_LABEL="Age Group" COM_COSTBENEFITPROJECTION_COUNTRY_AGE_LABEL="Age Group"
COM_COSTBENEFITPROJECTION_COUNTRY_ALIAS="Alias"
COM_COSTBENEFITPROJECTION_COUNTRY_ALIAS_HINT="Auto-generated from name" COM_COSTBENEFITPROJECTION_COUNTRY_ALIAS_HINT="Auto-generated from name"
COM_COSTBENEFITPROJECTION_COUNTRY_ALIAS_LABEL="Alias" COM_COSTBENEFITPROJECTION_COUNTRY_ALIAS_LABEL="Alias"
COM_COSTBENEFITPROJECTION_COUNTRY_CAUSERISK_SELECTION="Cause/Risk Selection" COM_COSTBENEFITPROJECTION_COUNTRY_CAUSERISK_SELECTION="Cause/Risk Selection"
COM_COSTBENEFITPROJECTION_COUNTRY_CAUSESRISKS="Causesrisks"
COM_COSTBENEFITPROJECTION_COUNTRY_CAUSESRISKS_LABEL="Causes/Risks" COM_COSTBENEFITPROJECTION_COUNTRY_CAUSESRISKS_LABEL="Causes/Risks"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE="Codethree"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_DESCRIPTION="ISO 3166-1 alpha-3 codes are three-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest." COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_DESCRIPTION="ISO 3166-1 alpha-3 codes are three-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest."
COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_HINT="NAM" COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_HINT="NAM"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_LABEL="Code Three" COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_LABEL="Code Three"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_MESSAGE="Error! Please add three-letter country code here." COM_COSTBENEFITPROJECTION_COUNTRY_CODETHREE_MESSAGE="Error! Please add three-letter country code here."
COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO="Codetwo"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_DESCRIPTION="ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest." COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_DESCRIPTION="ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest."
COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_HINT="NA" COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_HINT="NA"
COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_LABEL="Code Two" COM_COSTBENEFITPROJECTION_COUNTRY_CODETWO_LABEL="Code Two"
@ -542,20 +510,16 @@ COM_COSTBENEFITPROJECTION_COUNTRY_CREATED_BY_DESC="The user that created this Co
COM_COSTBENEFITPROJECTION_COUNTRY_CREATED_BY_LABEL="Created By" COM_COSTBENEFITPROJECTION_COUNTRY_CREATED_BY_LABEL="Created By"
COM_COSTBENEFITPROJECTION_COUNTRY_CREATED_DATE_DESC="The date this Country was created." COM_COSTBENEFITPROJECTION_COUNTRY_CREATED_DATE_DESC="The date this Country was created."
COM_COSTBENEFITPROJECTION_COUNTRY_CREATED_DATE_LABEL="Created Date" COM_COSTBENEFITPROJECTION_COUNTRY_CREATED_DATE_LABEL="Created Date"
COM_COSTBENEFITPROJECTION_COUNTRY_CURRENCY="Currency"
COM_COSTBENEFITPROJECTION_COUNTRY_CURRENCY_DESCRIPTION="List of available currencies" COM_COSTBENEFITPROJECTION_COUNTRY_CURRENCY_DESCRIPTION="List of available currencies"
COM_COSTBENEFITPROJECTION_COUNTRY_CURRENCY_LABEL="Currency" COM_COSTBENEFITPROJECTION_COUNTRY_CURRENCY_LABEL="Currency"
COM_COSTBENEFITPROJECTION_COUNTRY_DATAYEAR="Datayear"
COM_COSTBENEFITPROJECTION_COUNTRY_DATAYEAR_DESCRIPTION="Select which year's data should be used in calculations." COM_COSTBENEFITPROJECTION_COUNTRY_DATAYEAR_DESCRIPTION="Select which year's data should be used in calculations."
COM_COSTBENEFITPROJECTION_COUNTRY_DATAYEAR_LABEL="Data Year" COM_COSTBENEFITPROJECTION_COUNTRY_DATAYEAR_LABEL="Data Year"
COM_COSTBENEFITPROJECTION_COUNTRY_DETAILS="Details" COM_COSTBENEFITPROJECTION_COUNTRY_DETAILS="Details"
COM_COSTBENEFITPROJECTION_COUNTRY_EDIT="Editing the Country" COM_COSTBENEFITPROJECTION_COUNTRY_EDIT="Editing the Country"
COM_COSTBENEFITPROJECTION_COUNTRY_ERROR_UNIQUE_ALIAS="Another Country has the same alias." COM_COSTBENEFITPROJECTION_COUNTRY_ERROR_UNIQUE_ALIAS="Another Country has the same alias."
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH="Femaledeath"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH_DESCRIPTION="Here you can add total females death data." COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH_DESCRIPTION="Here you can add total females death data."
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH_LABEL="Set Females Total Deaths" COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH_LABEL="Set Females Total Deaths"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEDEATH_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD="Femaleyld"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD_DESCRIPTION="Here you can add females total YLD data." COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD_DESCRIPTION="Here you can add females total YLD data."
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD_LABEL="Set Females Total YLDs" COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD_LABEL="Set Females Total YLDs"
COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_COUNTRY_FEMALEYLD_SELECT="Edit/Add"
@ -564,7 +528,6 @@ COM_COSTBENEFITPROJECTION_COUNTRY_FIFTYFIFTY_FOUR="50-54"
COM_COSTBENEFITPROJECTION_COUNTRY_FIFTY_FIVEFIFTY_NINE="55-59" COM_COSTBENEFITPROJECTION_COUNTRY_FIFTY_FIVEFIFTY_NINE="55-59"
COM_COSTBENEFITPROJECTION_COUNTRY_FORTYFORTY_FOUR="40-44" COM_COSTBENEFITPROJECTION_COUNTRY_FORTYFORTY_FOUR="40-44"
COM_COSTBENEFITPROJECTION_COUNTRY_FORTY_FIVEFORTY_NINE="45-49" COM_COSTBENEFITPROJECTION_COUNTRY_FORTY_FIVEFORTY_NINE="45-49"
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE="Healthcare"
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_DESCRIPTION="The healthcare costs as a % of total salary costs. This figure is used for the calculations as default." COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_DESCRIPTION="The healthcare costs as a % of total salary costs. This figure is used for the calculations as default."
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_HINT="10" COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_HINT="10"
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_LABEL="Default Healthcare Costs" COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_LABEL="Default Healthcare Costs"
@ -572,15 +535,12 @@ COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_MESSAGE="Error! Please add healthca
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTH_DATA_TOTALS="Health Data Totals" COM_COSTBENEFITPROJECTION_COUNTRY_HEALTH_DATA_TOTALS="Health Data Totals"
COM_COSTBENEFITPROJECTION_COUNTRY_ID="Id" COM_COSTBENEFITPROJECTION_COUNTRY_ID="Id"
COM_COSTBENEFITPROJECTION_COUNTRY_INTERVENTIONS="Interventions" COM_COSTBENEFITPROJECTION_COUNTRY_INTERVENTIONS="Interventions"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH="Maledeath"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH_DESCRIPTION="Here you can add males total death data." COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH_DESCRIPTION="Here you can add males total death data."
COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH_LABEL="Set Males Total Deaths" COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH_LABEL="Set Males Total Deaths"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_COUNTRY_MALEDEATH_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD="Maleyld"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD_DESCRIPTION="Here you can add males total YLD data." COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD_DESCRIPTION="Here you can add males total YLD data."
COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD_LABEL="Set Males Total YLDs" COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD_LABEL="Set Males Total YLDs"
COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_COUNTRY_MALEYLD_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS="Medical Turnovers"
COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_DESCRIPTION="The average medical turnover per/100,000." COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_DESCRIPTION="The average medical turnover per/100,000."
COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_HINT="12" COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_HINT="12"
COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_LABEL="Default Ave. Medical Turnover" COM_COSTBENEFITPROJECTION_COUNTRY_MEDICAL_TURNOVERS_LABEL="Default Ave. Medical Turnover"
@ -599,11 +559,9 @@ COM_COSTBENEFITPROJECTION_COUNTRY_NUMBER_HINT="Number Here"
COM_COSTBENEFITPROJECTION_COUNTRY_NUMBER_LABEL="Number" COM_COSTBENEFITPROJECTION_COUNTRY_NUMBER_LABEL="Number"
COM_COSTBENEFITPROJECTION_COUNTRY_NUMBER_MESSAGE="Error! Please add number here." COM_COSTBENEFITPROJECTION_COUNTRY_NUMBER_MESSAGE="Error! Please add number here."
COM_COSTBENEFITPROJECTION_COUNTRY_ORDERING_LABEL="Ordering" COM_COSTBENEFITPROJECTION_COUNTRY_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE="Percentfemale"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE_DESCRIPTION="Here you can add females age groups percent." COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE_DESCRIPTION="Here you can add females age groups percent."
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE_LABEL="Set Females Age Groups Percent" COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE_LABEL="Set Females Age Groups Percent"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTFEMALE_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE="Percentmale"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE_DESCRIPTION="Here you can add males age groups percent." COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE_DESCRIPTION="Here you can add males age groups percent."
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE_LABEL="Set Males Age Groups Percent" COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE_LABEL="Set Males Age Groups Percent"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_COUNTRY_PERCENTMALE_SELECT="Edit/Add"
@ -611,29 +569,23 @@ COM_COSTBENEFITPROJECTION_COUNTRY_PERCENT_HINT="Percent Here"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENT_LABEL="Percent" COM_COSTBENEFITPROJECTION_COUNTRY_PERCENT_LABEL="Percent"
COM_COSTBENEFITPROJECTION_COUNTRY_PERCENT_MESSAGE="Error! Please add percent here." COM_COSTBENEFITPROJECTION_COUNTRY_PERCENT_MESSAGE="Error! Please add percent here."
COM_COSTBENEFITPROJECTION_COUNTRY_PERMISSION="Permissions" COM_COSTBENEFITPROJECTION_COUNTRY_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM="Presenteeism"
COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_DESCRIPTION="The presenteeism constant." COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_DESCRIPTION="The presenteeism constant."
COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_HINT="0.25" COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_HINT="0.25"
COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_LABEL="Presenteeism Constant" COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_LABEL="Presenteeism Constant"
COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_MESSAGE="Error! Please add presenteeism constant here." COM_COSTBENEFITPROJECTION_COUNTRY_PRESENTEEISM_MESSAGE="Error! Please add presenteeism constant here."
COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES="Productivity Losses"
COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_DESCRIPTION="The interim number between 0 and 1 reflecting the amount of a year in lost productivity due to medical retirement/death of an employee. This figure is used for the default." COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_DESCRIPTION="The interim number between 0 and 1 reflecting the amount of a year in lost productivity due to medical retirement/death of an employee. This figure is used for the default."
COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_HINT="0.5" COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_HINT="0.5"
COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_LABEL="Default Productivity Losses" COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_LABEL="Default Productivity Losses"
COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_MESSAGE="Error! Please add productivity losses here." COM_COSTBENEFITPROJECTION_COUNTRY_PRODUCTIVITY_LOSSES_MESSAGE="Error! Please add productivity losses here."
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICADDRESS="Publicaddress"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICADDRESS_LABEL="Public Address" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICADDRESS_LABEL="Public Address"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL="Publicemail"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_DESCRIPTION="The email we may use publicly" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_DESCRIPTION="The email we may use publicly"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_HINT="Public Email Here" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_HINT="Public Email Here"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_LABEL="Public Email" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_LABEL="Public Email"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_MESSAGE="Error! Please public email address here." COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICEMAIL_MESSAGE="Error! Please public email address here."
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME="Publicname"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_DESCRIPTION="The name we may use publicly" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_DESCRIPTION="The name we may use publicly"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_HINT="Public Name Here" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_HINT="Public Name Here"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_LABEL="Public Name" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_LABEL="Public Name"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_MESSAGE="Error! Please add public name here." COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNAME_MESSAGE="Error! Please add public name here."
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER="Publicnumber"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_DESCRIPTION="The phone number we may use publicly" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_DESCRIPTION="The phone number we may use publicly"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_HINT="Public Phone Here" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_HINT="Public Phone Here"
COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_LABEL="Public Phone" COM_COSTBENEFITPROJECTION_COUNTRY_PUBLICNUMBER_LABEL="Public Phone"
@ -643,7 +595,6 @@ COM_COSTBENEFITPROJECTION_COUNTRY_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_COUNTRY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Country to customise the alias." COM_COSTBENEFITPROJECTION_COUNTRY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Country to customise the alias."
COM_COSTBENEFITPROJECTION_COUNTRY_SELECT_A_YEAR="Select a year" COM_COSTBENEFITPROJECTION_COUNTRY_SELECT_A_YEAR="Select a year"
COM_COSTBENEFITPROJECTION_COUNTRY_SERVICE_PROVIDERS="Service Providers" COM_COSTBENEFITPROJECTION_COUNTRY_SERVICE_PROVIDERS="Service Providers"
COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE="Sick Leave"
COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_DESCRIPTION="The average sick leave days per/person." COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_DESCRIPTION="The average sick leave days per/person."
COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_HINT="12" COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_HINT="12"
COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_LABEL="Default Ave. Sick Leave" COM_COSTBENEFITPROJECTION_COUNTRY_SICK_LEAVE_LABEL="Default Ave. Sick Leave"
@ -669,15 +620,12 @@ COM_COSTBENEFITPROJECTION_COUNTRY_TWO_THOUSAND_AND_TWENTY_FOUR="2024"
COM_COSTBENEFITPROJECTION_COUNTRY_TWO_THOUSAND_AND_TWENTY_ONE="2021" COM_COSTBENEFITPROJECTION_COUNTRY_TWO_THOUSAND_AND_TWENTY_ONE="2021"
COM_COSTBENEFITPROJECTION_COUNTRY_TWO_THOUSAND_AND_TWENTY_THREE="2023" COM_COSTBENEFITPROJECTION_COUNTRY_TWO_THOUSAND_AND_TWENTY_THREE="2023"
COM_COSTBENEFITPROJECTION_COUNTRY_TWO_THOUSAND_AND_TWENTY_TWO="2022" COM_COSTBENEFITPROJECTION_COUNTRY_TWO_THOUSAND_AND_TWENTY_TWO="2022"
COM_COSTBENEFITPROJECTION_COUNTRY_USER="User"
COM_COSTBENEFITPROJECTION_COUNTRY_USER_HINT="select a country user" COM_COSTBENEFITPROJECTION_COUNTRY_USER_HINT="select a country user"
COM_COSTBENEFITPROJECTION_COUNTRY_USER_LABEL="User (Country)" COM_COSTBENEFITPROJECTION_COUNTRY_USER_LABEL="User (Country)"
COM_COSTBENEFITPROJECTION_COUNTRY_VERSION_DESC="A count of the number of times this Country has been revised." COM_COSTBENEFITPROJECTION_COUNTRY_VERSION_DESC="A count of the number of times this Country has been revised."
COM_COSTBENEFITPROJECTION_COUNTRY_VERSION_LABEL="Version" COM_COSTBENEFITPROJECTION_COUNTRY_VERSION_LABEL="Version"
COM_COSTBENEFITPROJECTION_COUNTRY_WORKING_DAYS="Working Days"
COM_COSTBENEFITPROJECTION_COUNTRY_WORKING_DAYS_DESCRIPTION="Number of working days per/year" COM_COSTBENEFITPROJECTION_COUNTRY_WORKING_DAYS_DESCRIPTION="Number of working days per/year"
COM_COSTBENEFITPROJECTION_COUNTRY_WORKING_DAYS_LABEL="Work Days" COM_COSTBENEFITPROJECTION_COUNTRY_WORKING_DAYS_LABEL="Work Days"
COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE="Worldzone"
COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_DESCRIPTION="The zone this country belongs to" COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_DESCRIPTION="The zone this country belongs to"
COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_HINT="only number" COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_HINT="only number"
COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_LABEL="Worldzone" COM_COSTBENEFITPROJECTION_COUNTRY_WORLDZONE_LABEL="Worldzone"
@ -736,10 +684,8 @@ COM_COSTBENEFITPROJECTION_CURRENCIES_N_ITEMS_UNPUBLISHED_1="%s Currency unpublis
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU="Currencies Submenu" COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU="Currencies Submenu"
COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU_DESC="Allows the users in this group to submenu of currency" COM_COSTBENEFITPROJECTION_CURRENCIES_SUBMENU_DESC="Allows the users in this group to submenu of currency"
COM_COSTBENEFITPROJECTION_CURRENCY="Currency" COM_COSTBENEFITPROJECTION_CURRENCY="Currency"
COM_COSTBENEFITPROJECTION_CURRENCY_ALIAS="Alias"
COM_COSTBENEFITPROJECTION_CURRENCY_ALIAS_HINT="Auto-generated from name" COM_COSTBENEFITPROJECTION_CURRENCY_ALIAS_HINT="Auto-generated from name"
COM_COSTBENEFITPROJECTION_CURRENCY_ALIAS_LABEL="Alias" COM_COSTBENEFITPROJECTION_CURRENCY_ALIAS_LABEL="Alias"
COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE="Codethree"
COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_DESCRIPTION="The following is a list of active codes of official ISO 4217 currency names." COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_DESCRIPTION="The following is a list of active codes of official ISO 4217 currency names."
COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_HINT="NAD" COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_HINT="NAD"
COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_LABEL="Code Three" COM_COSTBENEFITPROJECTION_CURRENCY_CODETHREE_LABEL="Code Three"
@ -748,12 +694,10 @@ COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_BY_DESC="The user that created this C
COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_BY_LABEL="Created By" COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_BY_LABEL="Created By"
COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_DATE_DESC="The date this Currency was created." COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_DATE_DESC="The date this Currency was created."
COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_DATE_LABEL="Created Date" COM_COSTBENEFITPROJECTION_CURRENCY_CREATED_DATE_LABEL="Created Date"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE="Decimalplace"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_DESCRIPTION="The position of a digit to the right of a decimal point, usually identified by successive ascending ordinal numbers with the digit immediately to the right of the decimal point being first: a figure accurate to the third decimal place." COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_DESCRIPTION="The position of a digit to the right of a decimal point, usually identified by successive ascending ordinal numbers with the digit immediately to the right of the decimal point being first: a figure accurate to the third decimal place."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_HINT="2" COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_HINT="2"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_LABEL="Decimal place" COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_LABEL="Decimal place"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_MESSAGE="Error! Please add currency decimal place here." COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALPLACE_MESSAGE="Error! Please add currency decimal place here."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL="Decimalsymbol"
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_DESCRIPTION="The symbol used to separate the integer part of a decimal number from its fractional part is called the decimal point." COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_DESCRIPTION="The symbol used to separate the integer part of a decimal number from its fractional part is called the decimal point."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_HINT="." COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_HINT="."
COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_LABEL="Decimal symbol" COM_COSTBENEFITPROJECTION_CURRENCY_DECIMALSYMBOL_LABEL="Decimal symbol"
@ -767,25 +711,21 @@ COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_BY_DESC="The last user that modified
COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_BY_LABEL="Modified By" COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_BY_LABEL="Modified By"
COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_DATE_DESC="The date this Currency was modified." COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_DATE_DESC="The date this Currency was modified."
COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_DATE_LABEL="Modified Date" COM_COSTBENEFITPROJECTION_CURRENCY_MODIFIED_DATE_LABEL="Modified Date"
COM_COSTBENEFITPROJECTION_CURRENCY_NAME="Name"
COM_COSTBENEFITPROJECTION_CURRENCY_NAME_DESCRIPTION="Enter Name Here" COM_COSTBENEFITPROJECTION_CURRENCY_NAME_DESCRIPTION="Enter Name Here"
COM_COSTBENEFITPROJECTION_CURRENCY_NAME_HINT="Name Here" COM_COSTBENEFITPROJECTION_CURRENCY_NAME_HINT="Name Here"
COM_COSTBENEFITPROJECTION_CURRENCY_NAME_LABEL="Name" COM_COSTBENEFITPROJECTION_CURRENCY_NAME_LABEL="Name"
COM_COSTBENEFITPROJECTION_CURRENCY_NAME_MESSAGE="Error! Please add name here." COM_COSTBENEFITPROJECTION_CURRENCY_NAME_MESSAGE="Error! Please add name here."
COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE="Negativestyle"
COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_DESCRIPTION="Please use the following placeholders {sign}{number} {symbol} to build the currency negative style." COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_DESCRIPTION="Please use the following placeholders {sign}{number} {symbol} to build the currency negative style."
COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_HINT="{sign}{number} {symbol}" COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_HINT="{sign}{number} {symbol}"
COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_LABEL="Negative style" COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_LABEL="Negative style"
COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_MESSAGE="Error! Please add currency negative style here." COM_COSTBENEFITPROJECTION_CURRENCY_NEGATIVESTYLE_MESSAGE="Error! Please add currency negative style here."
COM_COSTBENEFITPROJECTION_CURRENCY_NEW="A New Currency" COM_COSTBENEFITPROJECTION_CURRENCY_NEW="A New Currency"
COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE="Numericcode"
COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_DESCRIPTION="There is also a three-digit code number assigned to each currency, in the same manner as there is also a three-digit code number assigned to each country as part of ISO 3166. This numeric code is usually the same as the ISO 3166-1 numeric code. For example, USD (United States dollar) has code 840 which is also the numeric code for the US (United States)." COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_DESCRIPTION="There is also a three-digit code number assigned to each currency, in the same manner as there is also a three-digit code number assigned to each country as part of ISO 3166. This numeric code is usually the same as the ISO 3166-1 numeric code. For example, USD (United States dollar) has code 840 which is also the numeric code for the US (United States)."
COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_HINT="516" COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_HINT="516"
COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_LABEL="Numeric Code" COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_LABEL="Numeric Code"
COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_MESSAGE="Error! Please add numeric code here." COM_COSTBENEFITPROJECTION_CURRENCY_NUMERICCODE_MESSAGE="Error! Please add numeric code here."
COM_COSTBENEFITPROJECTION_CURRENCY_ORDERING_LABEL="Ordering" COM_COSTBENEFITPROJECTION_CURRENCY_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_CURRENCY_PERMISSION="Permissions" COM_COSTBENEFITPROJECTION_CURRENCY_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE="Positivestyle"
COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_DESCRIPTION="Please use the following placeholders {number} {symbol} to build the currency positive style." COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_DESCRIPTION="Please use the following placeholders {number} {symbol} to build the currency positive style."
COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_HINT="{number} {symbol}" COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_HINT="{number} {symbol}"
COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_LABEL="Positive style" COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_LABEL="Positive style"
@ -793,12 +733,10 @@ COM_COSTBENEFITPROJECTION_CURRENCY_POSITIVESTYLE_MESSAGE="Error! Please add curr
COM_COSTBENEFITPROJECTION_CURRENCY_PUBLISHING="Publishing" COM_COSTBENEFITPROJECTION_CURRENCY_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_CURRENCY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Currency to customise the alias." COM_COSTBENEFITPROJECTION_CURRENCY_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Currency to customise the alias."
COM_COSTBENEFITPROJECTION_CURRENCY_STATUS="Status" COM_COSTBENEFITPROJECTION_CURRENCY_STATUS="Status"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL="Symbol"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_DESCRIPTION="A currency symbol is a graphic symbol used as a shorthand for a currency's name, especially in reference to amounts of money." COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_DESCRIPTION="A currency symbol is a graphic symbol used as a shorthand for a currency's name, especially in reference to amounts of money."
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_HINT="N$" COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_HINT="N$"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_LABEL="Symbol" COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_LABEL="Symbol"
COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_MESSAGE="Error! Please add currency symbol here." COM_COSTBENEFITPROJECTION_CURRENCY_SYMBOL_MESSAGE="Error! Please add currency symbol here."
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS="Thousands"
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_HINT="" COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_HINT=""
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_LABEL="Thousands separator" COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_LABEL="Thousands separator"
COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_MESSAGE="Error! Please add currency thousands separator here." COM_COSTBENEFITPROJECTION_CURRENCY_THOUSANDS_MESSAGE="Error! Please add currency thousands separator here."
@ -851,9 +789,7 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA="Health Data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_AGE_LABEL="Age Group" COM_COSTBENEFITPROJECTION_HEALTH_DATA_AGE_LABEL="Age Group"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_BULK_EXPORT_BUTTON_ACCESS="Health Data Bulk Export Button Access" COM_COSTBENEFITPROJECTION_HEALTH_DATA_BULK_EXPORT_BUTTON_ACCESS="Health Data Bulk Export Button Access"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_BULK_EXPORT_BUTTON_ACCESS_DESC="Allows the users in this group to access the bulk export button." COM_COSTBENEFITPROJECTION_HEALTH_DATA_BULK_EXPORT_BUTTON_ACCESS_DESC="Allows the users in this group to access the bulk export button."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_CAUSERISK="Causerisk"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_CAUSERISK_LABEL="Cause/Risk" COM_COSTBENEFITPROJECTION_HEALTH_DATA_CAUSERISK_LABEL="Cause/Risk"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_COUNTRY="Country"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_COUNTRY_DESCRIPTION="List of available countries" COM_COSTBENEFITPROJECTION_HEALTH_DATA_COUNTRY_DESCRIPTION="List of available countries"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_COUNTRY_LABEL="Country" COM_COSTBENEFITPROJECTION_HEALTH_DATA_COUNTRY_LABEL="Country"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_CREATED_BY_DESC="The user that created this Health Data." COM_COSTBENEFITPROJECTION_HEALTH_DATA_CREATED_BY_DESC="The user that created this Health Data."
@ -863,11 +799,9 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_CREATED_DATE_LABEL="Created Date"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_DETAILS="Details" COM_COSTBENEFITPROJECTION_HEALTH_DATA_DETAILS="Details"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_EDIT="Editing the Health Data" COM_COSTBENEFITPROJECTION_HEALTH_DATA_EDIT="Editing the Health Data"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_ERROR_UNIQUE_ALIAS="Another Health Data has the same alias." COM_COSTBENEFITPROJECTION_HEALTH_DATA_ERROR_UNIQUE_ALIAS="Another Health Data has the same alias."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH="Femaledeath"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH_DESCRIPTION="Here you can add females death data." COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH_DESCRIPTION="Here you can add females death data."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH_LABEL="Set Females Death" COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH_LABEL="Set Females Death"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEDEATH_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD="Femaleyld"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD_DESCRIPTION="Here you can add females YLD data." COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD_DESCRIPTION="Here you can add females YLD data."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD_LABEL="Set Females YLD" COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD_LABEL="Set Females YLD"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_HEALTH_DATA_FEMALEYLD_SELECT="Edit/Add"
@ -877,11 +811,9 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_FIFTY_FIVEFIFTY_NINE="55-59"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FORTYFORTY_FOUR="40-44" COM_COSTBENEFITPROJECTION_HEALTH_DATA_FORTYFORTY_FOUR="40-44"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_FORTY_FIVEFORTY_NINE="45-49" COM_COSTBENEFITPROJECTION_HEALTH_DATA_FORTY_FIVEFORTY_NINE="45-49"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_ID="Id" COM_COSTBENEFITPROJECTION_HEALTH_DATA_ID="Id"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH="Maledeath"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH_DESCRIPTION="Here you can add males death data." COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH_DESCRIPTION="Here you can add males death data."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH_LABEL="Set Males Death" COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH_LABEL="Set Males Death"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEDEATH_SELECT="Edit/Add"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD="Maleyld"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD_DESCRIPTION="Here you can add males YLD data." COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD_DESCRIPTION="Here you can add males YLD data."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD_LABEL="Set Males YLD" COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD_LABEL="Set Males YLD"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD_SELECT="Edit/Add" COM_COSTBENEFITPROJECTION_HEALTH_DATA_MALEYLD_SELECT="Edit/Add"
@ -981,7 +913,6 @@ COM_COSTBENEFITPROJECTION_HEALTH_DATA_TWO_THOUSAND_AND_TWENTY_THREE="2023"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_TWO_THOUSAND_AND_TWENTY_TWO="2022" COM_COSTBENEFITPROJECTION_HEALTH_DATA_TWO_THOUSAND_AND_TWENTY_TWO="2022"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_VERSION_DESC="A count of the number of times this Health Data has been revised." COM_COSTBENEFITPROJECTION_HEALTH_DATA_VERSION_DESC="A count of the number of times this Health Data has been revised."
COM_COSTBENEFITPROJECTION_HEALTH_DATA_VERSION_LABEL="Version" COM_COSTBENEFITPROJECTION_HEALTH_DATA_VERSION_LABEL="Version"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_YEAR="Year"
COM_COSTBENEFITPROJECTION_HEALTH_DATA_YEAR_LABEL="Data Year" COM_COSTBENEFITPROJECTION_HEALTH_DATA_YEAR_LABEL="Data Year"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT="Help Document" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT="Help Document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS="Help Documents" COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS="Help Documents"
@ -1031,16 +962,12 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_N_ITEMS_UNPUBLISHED_1="%s Help Document
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu" COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to submenu of help document" COM_COSTBENEFITPROJECTION_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to submenu of help document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN="Admin" 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." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION="Select the view being target."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN_VIEW_LABEL="Admin Views" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ADMIN_VIEW_LABEL="Admin Views"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ALIAS="Alias"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ALIAS_HINT="Auto-generated from name" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ALIAS_HINT="Auto-generated from name"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ALIAS_LABEL="Alias" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ALIAS_LABEL="Alias"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ALL="All" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ALL="All"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ARTICLE="Article"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ARTICLE_LABEL="Article" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ARTICLE_LABEL="Article"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_CONTENT="Content"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_CONTENT_LABEL="Content" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_CONTENT_LABEL="Content"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_CREATED_BY_DESC="The user that created this Help Document." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_CREATED_BY_DESC="The user that created this Help Document."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_CREATED_BY_LABEL="Created By" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_CREATED_BY_LABEL="Created By"
@ -1049,12 +976,10 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_CREATED_DATE_LABEL="Created Date"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_DETAILS="Details" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_DETAILS="Details"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_EDIT="Editing the Help Document" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_EDIT="Editing the Help Document"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ERROR_UNIQUE_ALIAS="Another Help Document has the same alias." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ERROR_UNIQUE_ALIAS="Another Help Document has the same alias."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_GROUPS="Groups"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_GROUPS_DESCRIPTION="Select a group/s" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_GROUPS_DESCRIPTION="Select a group/s"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_GROUPS_LABEL="Group/s" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_GROUPS_LABEL="Group/s"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ID="Id" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_ID="Id"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_JOOMLA_ARTICLE="Joomla Article" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_JOOMLA_ARTICLE="Joomla Article"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_LOCATION="Location"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_LOCATION_DESCRIPTION="Select the help target location." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_LOCATION_DESCRIPTION="Select the help target location."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_LOCATION_LABEL="Location" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_LOCATION_LABEL="Location"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_MODIFIED_BY_DESC="The last user that modified this Help Document." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_MODIFIED_BY_DESC="The last user that modified this Help Document."
@ -1068,21 +993,17 @@ COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Help Document to customise the alias." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Help Document to customise the alias."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SELECT_AN_OPTION="Select an option" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SELECT_AN_OPTION="Select an option"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE="Site" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE="Site"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE_VIEW="Site View"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION="Select the view being target." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION="Select the view being target."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE_VIEW_LABEL="Site Views" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SITE_VIEW_LABEL="Site Views"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SOME="Some" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_SOME="Some"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_STATUS="Status" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_STATUS="Status"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TARGET="Target"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TARGET_DESCRIPTION="Select the target option in relation to groups." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TARGET_DESCRIPTION="Select the target option in relation to groups."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TARGET_LABEL="Target Groups" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TARGET_LABEL="Target Groups"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TEXT="Text" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TEXT="Text"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE="Title"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_DESCRIPTION="Enter Title Here" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_DESCRIPTION="Enter Title Here"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_HINT="Title Here" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_HINT="Title Here"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_LABEL="Title" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_LABEL="Title"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_MESSAGE="Error! Please add title here." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TITLE_MESSAGE="Error! Please add title here."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE="Type"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_DESCRIPTION="Select the help type." COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_DESCRIPTION="Select the help type."
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_LABEL="Type" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_TYPE_LABEL="Type"
COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL="URL" COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_URL="URL"
@ -1193,13 +1114,10 @@ COM_COSTBENEFITPROJECTION_INTERVENTION_ALL_SERVICE_PROVIDERS_AND_ADMIN="All Serv
COM_COSTBENEFITPROJECTION_INTERVENTION_CAUSERISK="Causerisk" COM_COSTBENEFITPROJECTION_INTERVENTION_CAUSERISK="Causerisk"
COM_COSTBENEFITPROJECTION_INTERVENTION_CAUSERISK_LABEL="Cause/Risk" COM_COSTBENEFITPROJECTION_INTERVENTION_CAUSERISK_LABEL="Cause/Risk"
COM_COSTBENEFITPROJECTION_INTERVENTION_CLUSTER="Cluster" COM_COSTBENEFITPROJECTION_INTERVENTION_CLUSTER="Cluster"
COM_COSTBENEFITPROJECTION_INTERVENTION_COMPANY="Company"
COM_COSTBENEFITPROJECTION_INTERVENTION_COMPANY_LABEL="Company" COM_COSTBENEFITPROJECTION_INTERVENTION_COMPANY_LABEL="Company"
COM_COSTBENEFITPROJECTION_INTERVENTION_COST_BENEFIT="Intervention Cost Benefit" COM_COSTBENEFITPROJECTION_INTERVENTION_COST_BENEFIT="Intervention Cost Benefit"
COM_COSTBENEFITPROJECTION_INTERVENTION_COUNTRY="Country"
COM_COSTBENEFITPROJECTION_INTERVENTION_COUNTRY_DESCRIPTION="List of available countries" COM_COSTBENEFITPROJECTION_INTERVENTION_COUNTRY_DESCRIPTION="List of available countries"
COM_COSTBENEFITPROJECTION_INTERVENTION_COUNTRY_LABEL="Country" COM_COSTBENEFITPROJECTION_INTERVENTION_COUNTRY_LABEL="Country"
COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE="Coverage"
COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE_DESCRIPTION="Proportion of employees covered" COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE_DESCRIPTION="Proportion of employees covered"
COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE_LABEL="Coverage" COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE_LABEL="Coverage"
COM_COSTBENEFITPROJECTION_INTERVENTION_CPE_DESCRIPTION="Estimate cost per employee" COM_COSTBENEFITPROJECTION_INTERVENTION_CPE_DESCRIPTION="Estimate cost per employee"
@ -1208,19 +1126,15 @@ COM_COSTBENEFITPROJECTION_INTERVENTION_CREATED_BY_DESC="The user that created th
COM_COSTBENEFITPROJECTION_INTERVENTION_CREATED_BY_LABEL="Created By" COM_COSTBENEFITPROJECTION_INTERVENTION_CREATED_BY_LABEL="Created By"
COM_COSTBENEFITPROJECTION_INTERVENTION_CREATED_DATE_DESC="The date this Intervention was created." COM_COSTBENEFITPROJECTION_INTERVENTION_CREATED_DATE_DESC="The date this Intervention was created."
COM_COSTBENEFITPROJECTION_INTERVENTION_CREATED_DATE_LABEL="Created Date" COM_COSTBENEFITPROJECTION_INTERVENTION_CREATED_DATE_LABEL="Created Date"
COM_COSTBENEFITPROJECTION_INTERVENTION_DESCRIPTION="Description"
COM_COSTBENEFITPROJECTION_INTERVENTION_DESCRIPTION_DESCRIPTION="Add Description Here" COM_COSTBENEFITPROJECTION_INTERVENTION_DESCRIPTION_DESCRIPTION="Add Description Here"
COM_COSTBENEFITPROJECTION_INTERVENTION_DESCRIPTION_HINT="Add Description Here" COM_COSTBENEFITPROJECTION_INTERVENTION_DESCRIPTION_HINT="Add Description Here"
COM_COSTBENEFITPROJECTION_INTERVENTION_DESCRIPTION_LABEL="Description" COM_COSTBENEFITPROJECTION_INTERVENTION_DESCRIPTION_LABEL="Description"
COM_COSTBENEFITPROJECTION_INTERVENTION_DETAILS="Details" COM_COSTBENEFITPROJECTION_INTERVENTION_DETAILS="Details"
COM_COSTBENEFITPROJECTION_INTERVENTION_DURATION="Duration"
COM_COSTBENEFITPROJECTION_INTERVENTION_DURATION_DESCRIPTION="Set in number of years" COM_COSTBENEFITPROJECTION_INTERVENTION_DURATION_DESCRIPTION="Set in number of years"
COM_COSTBENEFITPROJECTION_INTERVENTION_DURATION_LABEL="Duration (years)" COM_COSTBENEFITPROJECTION_INTERVENTION_DURATION_LABEL="Duration (years)"
COM_COSTBENEFITPROJECTION_INTERVENTION_EDIT="Editing the Intervention" COM_COSTBENEFITPROJECTION_INTERVENTION_EDIT="Editing the Intervention"
COM_COSTBENEFITPROJECTION_INTERVENTION_ERROR_UNIQUE_ALIAS="Another Intervention has the same alias." COM_COSTBENEFITPROJECTION_INTERVENTION_ERROR_UNIQUE_ALIAS="Another Intervention has the same alias."
COM_COSTBENEFITPROJECTION_INTERVENTION_ID="Id" COM_COSTBENEFITPROJECTION_INTERVENTION_ID="Id"
COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTION="Intervention"
COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTIONS="Interventions"
COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTIONS_LABEL="Interventions" COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTIONS_LABEL="Interventions"
COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTION_DESCRIPTION="Here you can add & edit interventions." COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTION_DESCRIPTION="Here you can add & edit interventions."
COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTION_LABEL="Set Intervention" COM_COSTBENEFITPROJECTION_INTERVENTION_INTERVENTION_LABEL="Set Intervention"
@ -1233,7 +1147,6 @@ COM_COSTBENEFITPROJECTION_INTERVENTION_MODIFIED_DATE_DESC="The date this Interve
COM_COSTBENEFITPROJECTION_INTERVENTION_MODIFIED_DATE_LABEL="Modified Date" COM_COSTBENEFITPROJECTION_INTERVENTION_MODIFIED_DATE_LABEL="Modified Date"
COM_COSTBENEFITPROJECTION_INTERVENTION_MTR_DESCRIPTION="Percentage estimate" COM_COSTBENEFITPROJECTION_INTERVENTION_MTR_DESCRIPTION="Percentage estimate"
COM_COSTBENEFITPROJECTION_INTERVENTION_MTR_LABEL="Mortality Reduction" COM_COSTBENEFITPROJECTION_INTERVENTION_MTR_LABEL="Mortality Reduction"
COM_COSTBENEFITPROJECTION_INTERVENTION_NAME="Name"
COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_DESCRIPTION="Enter Intervention Name Here" COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_DESCRIPTION="Enter Intervention Name Here"
COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_HINT="Name Here" COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_HINT="Name Here"
COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_LABEL="Name" COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_LABEL="Name"
@ -1246,18 +1159,15 @@ COM_COSTBENEFITPROJECTION_INTERVENTION_ONLY_MY_SERVICE_PROVIDER="Only My Service
COM_COSTBENEFITPROJECTION_INTERVENTION_ORDERING_LABEL="Ordering" COM_COSTBENEFITPROJECTION_INTERVENTION_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_INTERVENTION_PERMISSION="Permissions" COM_COSTBENEFITPROJECTION_INTERVENTION_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_INTERVENTION_PUBLISHING="Publishing" COM_COSTBENEFITPROJECTION_INTERVENTION_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_INTERVENTION_REFERENCE="Reference"
COM_COSTBENEFITPROJECTION_INTERVENTION_REFERENCE_DESCRIPTION="Please give reference to the source of your data used in the intervention." COM_COSTBENEFITPROJECTION_INTERVENTION_REFERENCE_DESCRIPTION="Please give reference to the source of your data used in the intervention."
COM_COSTBENEFITPROJECTION_INTERVENTION_REFERENCE_HINT="// Source of your data" COM_COSTBENEFITPROJECTION_INTERVENTION_REFERENCE_HINT="// Source of your data"
COM_COSTBENEFITPROJECTION_INTERVENTION_REFERENCE_LABEL="Reference" COM_COSTBENEFITPROJECTION_INTERVENTION_REFERENCE_LABEL="Reference"
COM_COSTBENEFITPROJECTION_INTERVENTION_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Intervention to customise the alias." COM_COSTBENEFITPROJECTION_INTERVENTION_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Intervention to customise the alias."
COM_COSTBENEFITPROJECTION_INTERVENTION_SETTINGS="Settings" COM_COSTBENEFITPROJECTION_INTERVENTION_SETTINGS="Settings"
COM_COSTBENEFITPROJECTION_INTERVENTION_SHARE="Share"
COM_COSTBENEFITPROJECTION_INTERVENTION_SHARE_DESCRIPTION="Select a sharing option" COM_COSTBENEFITPROJECTION_INTERVENTION_SHARE_DESCRIPTION="Select a sharing option"
COM_COSTBENEFITPROJECTION_INTERVENTION_SHARE_LABEL="Sharing Options" COM_COSTBENEFITPROJECTION_INTERVENTION_SHARE_LABEL="Sharing Options"
COM_COSTBENEFITPROJECTION_INTERVENTION_SINGLE="Single" COM_COSTBENEFITPROJECTION_INTERVENTION_SINGLE="Single"
COM_COSTBENEFITPROJECTION_INTERVENTION_STATUS="Status" COM_COSTBENEFITPROJECTION_INTERVENTION_STATUS="Status"
COM_COSTBENEFITPROJECTION_INTERVENTION_TYPE="Type"
COM_COSTBENEFITPROJECTION_INTERVENTION_TYPE_DESCRIPTION="Select the intervention type." COM_COSTBENEFITPROJECTION_INTERVENTION_TYPE_DESCRIPTION="Select the intervention type."
COM_COSTBENEFITPROJECTION_INTERVENTION_TYPE_LABEL="Type" COM_COSTBENEFITPROJECTION_INTERVENTION_TYPE_LABEL="Type"
COM_COSTBENEFITPROJECTION_INTERVENTION_VERSION_DESC="A count of the number of times this Intervention has been revised." COM_COSTBENEFITPROJECTION_INTERVENTION_VERSION_DESC="A count of the number of times this Intervention has been revised."
@ -1365,11 +1275,8 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTORS_N_ITEMS_UNPUBLISHED="%s Scaling Factor
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_N_ITEMS_UNPUBLISHED_1="%s Scaling Factor 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="Scaling Factors Submenu"
COM_COSTBENEFITPROJECTION_SCALING_FACTORS_SUBMENU_DESC="Allows the users in this group to submenu of 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_CAUSERISK_LABEL="Cause/Risk"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COMPANY="Company"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COMPANY_LABEL="Company" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COMPANY_LABEL="Company"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COUNTRY="Country"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COUNTRY_DESCRIPTION="List of available countries" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COUNTRY_DESCRIPTION="List of available countries"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COUNTRY_LABEL="Country" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COUNTRY_LABEL="Country"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_CREATED_BY_DESC="The user that created this Scaling Factor." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_CREATED_BY_DESC="The user that created this Scaling Factor."
@ -1379,7 +1286,6 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTOR_CREATED_DATE_LABEL="Created Date"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_DETAILS="Details" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_DETAILS="Details"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_EDIT="Editing the Scaling Factor" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_EDIT="Editing the Scaling Factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_ERROR_UNIQUE_ALIAS="Another Scaling Factor has the same alias." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_ERROR_UNIQUE_ALIAS="Another Scaling Factor has the same alias."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR="Health Scaling Factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_DESCRIPTION="Health scaling factor" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_DESCRIPTION="Health scaling factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_HINT="Number Here" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_LABEL="Health Scaling" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_HEALTH_SCALING_FACTOR_LABEL="Health Scaling"
@ -1389,12 +1295,10 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MODIFIED_BY_DESC="The last user that mo
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MODIFIED_BY_LABEL="Modified By" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MODIFIED_BY_LABEL="Modified By"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MODIFIED_DATE_DESC="The date this Scaling Factor was modified." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MODIFIED_DATE_DESC="The date this Scaling Factor was modified."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MODIFIED_DATE_LABEL="Modified Date" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MODIFIED_DATE_LABEL="Modified Date"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES="Mortality Scaling Factor Females"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_DESCRIPTION="Mortality scaling factor for females" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_DESCRIPTION="Mortality scaling factor for females"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_HINT="Number Here" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_LABEL="Mortality Scaling Female" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_LABEL="Mortality Scaling Female"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_MESSAGE="Error! Please add scaling factor for females here." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_MESSAGE="Error! Please add scaling factor for females here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES="Mortality Scaling Factor Males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_DESCRIPTION="Mortality scaling factor for males" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_DESCRIPTION="Mortality scaling factor for males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_HINT="Number Here" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_LABEL="Mortality Scaling Male" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_LABEL="Mortality Scaling Male"
@ -1402,18 +1306,15 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_MESSAGE=
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_NEW="A New Scaling Factor" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_NEW="A New Scaling Factor"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_ORDERING_LABEL="Ordering" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PERMISSION="Permissions" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES="Presenteeism Scaling Factor Females"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_DESCRIPTION="Presenteeism scaling factor for females" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_DESCRIPTION="Presenteeism scaling factor for females"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_HINT="Number Here" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_LABEL="Presenteeism Scaling Female" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_LABEL="Presenteeism Scaling Female"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_MESSAGE="Error! Please add scaling factor for females here." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_FEMALES_MESSAGE="Error! Please add scaling factor for females here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES="Presenteeism Scaling Factor Males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_DESCRIPTION="Presenteeism scaling factor for Males" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_DESCRIPTION="Presenteeism scaling factor for Males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_HINT="Number Here" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_LABEL="Presenteeism Scaling Male" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_LABEL="Presenteeism Scaling Male"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_MESSAGE="Error! Please add scaling factor for males here." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PRESENTEEISM_SCALING_FACTOR_MALES_MESSAGE="Error! Please add scaling factor for males here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PUBLISHING="Publishing" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE="Reference"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE_DESCRIPTION="Please give reference to the source of your data used in the scaling factors." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE_DESCRIPTION="Please give reference to the source of your data used in the scaling factors."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE_HINT="// Source of your data" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE_HINT="// Source of your data"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE_LABEL="Reference" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE_LABEL="Reference"
@ -1421,16 +1322,16 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTOR_SAVE_WARNING="Alias already existed so
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_STATUS="Status" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_STATUS="Status"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_VERSION_DESC="A count of the number of times this Scaling Factor has been revised." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_VERSION_DESC="A count of the number of times this Scaling Factor has been revised."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_VERSION_LABEL="Version" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_VERSION_LABEL="Version"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES="Yld Scaling Factor Females"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_DESCRIPTION="Absenteeism scaling factor for females" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_DESCRIPTION="Absenteeism scaling factor for females"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_HINT="Number Here" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_LABEL="Absenteeism Scaling Female" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_LABEL="Absenteeism Scaling Female"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_MESSAGE="Error! Please add scaling factor for females here." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_FEMALES_MESSAGE="Error! Please add scaling factor for females here."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES="Yld Scaling Factor Males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_DESCRIPTION="Absenteeism scaling factor for males" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_DESCRIPTION="Absenteeism scaling factor for males"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_HINT="Number Here" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_HINT="Number Here"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_LABEL="Absenteeism Scaling Male" COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_LABEL="Absenteeism Scaling Male"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_MESSAGE="Error! Please add scaling factor for males here." COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_MESSAGE="Error! Please add scaling factor for males here."
COM_COSTBENEFITPROJECTION_SELECT_AN_ADMIN_VIEW="Select an admin view"
COM_COSTBENEFITPROJECTION_SELECT_A_SITE_VIEW="Select a site view"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER="Service Provider" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER="Service Provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS="Service Providers" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS="Service Providers"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_ACCESS="Service Providers Access" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_ACCESS="Service Providers Access"
@ -1481,7 +1382,6 @@ COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_N_ITEMS_UNPUBLISHED_1="%s Service Pr
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU="Service Providers Submenu" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU="Service Providers Submenu"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU_DESC="Allows the users in this group to submenu of service provider" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDERS_SUBMENU_DESC="Allows the users in this group to submenu of service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COMPANIES="Companies" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COMPANIES="Companies"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COUNTRY="Country"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COUNTRY_DESCRIPTION="List of available countries" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COUNTRY_DESCRIPTION="List of available countries"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COUNTRY_LABEL="Country" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_COUNTRY_LABEL="Country"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_CREATED_BY_DESC="The user that created this Service Provider." COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_CREATED_BY_DESC="The user that created this Service Provider."
@ -1499,19 +1399,15 @@ COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_MODIFIED_DATE_LABEL="Modified Date"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_NEW="A New Service Provider" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_NEW="A New Service Provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_ORDERING_LABEL="Ordering" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_ORDERING_LABEL="Ordering"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PERMISSION="Permissions" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PERMISSION="Permissions"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICADDRESS="Publicaddress"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICADDRESS_LABEL="Public Address" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICADDRESS_LABEL="Public Address"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL="Publicemail"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_DESCRIPTION="The email we may use publicly" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_DESCRIPTION="The email we may use publicly"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_HINT="Public Email Here" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_HINT="Public Email Here"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_LABEL="Public Email" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_LABEL="Public Email"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_MESSAGE="Error! Please public email address here." COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICEMAIL_MESSAGE="Error! Please public email address here."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME="Publicname"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_DESCRIPTION="The name we may use publicly" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_DESCRIPTION="The name we may use publicly"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_HINT="Public Name Here" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_HINT="Public Name Here"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_LABEL="Public Name" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_LABEL="Public Name"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_MESSAGE="Error! Please add public name here." COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNAME_MESSAGE="Error! Please add public name here."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER="Publicnumber"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_DESCRIPTION="The phone number we may use publicly" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_DESCRIPTION="The phone number we may use publicly"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_HINT="Public Phone Here" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_HINT="Public Phone Here"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_LABEL="Public Phone" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLICNUMBER_LABEL="Public Phone"
@ -1520,10 +1416,8 @@ COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLIC_DETAILS_NOTE_DESCRIPTION="Your
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLISHING="Publishing" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_PUBLISHING="Publishing"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Service Provider to customise the alias." COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Service Provider to customise the alias."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_STATUS="Status" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_STATUS="Status"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_TESTCOMPANIES="Testcompanies"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_TESTCOMPANIES_DESCRIPTION="Select companies that are not real companies or only used for testing purposes." COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_TESTCOMPANIES_DESCRIPTION="Select companies that are not real companies or only used for testing purposes."
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_TESTCOMPANIES_LABEL="Set Testing Companies" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_TESTCOMPANIES_LABEL="Set Testing Companies"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_USER="User"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_USER_HINT="select a service provider" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_USER_HINT="select a service provider"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_USER_LABEL="User (Service Provider)" COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_USER_LABEL="User (Service Provider)"
COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_VERSION_DESC="A count of the number of times this Service Provider has been revised." COM_COSTBENEFITPROJECTION_SERVICE_PROVIDER_VERSION_DESC="A count of the number of times this Service Provider has been revised."

View File

@ -1,56 +1,56 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage batchselection.php @subpackage batchselection.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('JPATH_BASE') or die; defined('JPATH_BASE') or die;
JHtmlBehavior::core(); JHtmlBehavior::core();
$divWrapper = range(1,120,2); $divWrapper = range(1,120,2);
$counter = 0; $counter = 0;
?> ?>
<?php if ($displayData->ListSelection) : ?> <?php if ($displayData->ListSelection) : ?>
<div class="row-fluid"> <div class="row-fluid">
<?php foreach ($displayData->ListSelection as $ListSelection) : ?> <?php foreach ($displayData->ListSelection as $ListSelection) : ?>
<div class="control-group span6"> <div class="control-group span6">
<div class="controls"> <div class="controls">
<label for="<?php echo $ListSelection['name']; ?>" class="element-invisible"><?php echo $ListSelection['label']; ?></label> <label for="<?php echo $ListSelection['name']; ?>" class="element-invisible"><?php echo $ListSelection['label']; ?></label>
<select name="<?php echo $ListSelection['name']; ?>" id="<?php echo $ListSelection['name']; ?>" class="span12 small"> <select name="<?php echo $ListSelection['name']; ?>" id="<?php echo $ListSelection['name']; ?>" class="span12 small">
<?php if (!$ListSelection['noDefault']) : ?> <?php if (!$ListSelection['noDefault']) : ?>
<option value=""><?php echo $ListSelection['label']; ?></option> <option value=""><?php echo $ListSelection['label']; ?></option>
<?php endif; ?> <?php endif; ?>
<?php echo $ListSelection['options']; ?> <?php echo $ListSelection['options']; ?>
</select> </select>
</div> </div>
</div> </div>
<?php if (in_array($counter,$divWrapper)) : ?> <?php if (in_array($counter,$divWrapper)) : ?>
</div> </div>
<div class="row-fluid"> <div class="row-fluid">
<?php endif; ?> <?php endif; ?>
<?php $counter++; ?> <?php $counter++; ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<div class="control-group radio" id="batch-move-copy"> <div class="control-group radio" id="batch-move-copy">
<div class="controls"> <div class="controls">
<label class="radio" id="batch[move_copy]c-lbl" for="batch[move_copy]c"> <label class="radio" id="batch[move_copy]c-lbl" for="batch[move_copy]c">
<input type="radio" value="c" id="batch[move_copy]c" name="batch[move_copy]"><?php echo JText::_('Copy'); ?></label> <input type="radio" value="c" id="batch[move_copy]c" name="batch[move_copy]"><?php echo JText::_('Copy'); ?></label>
<label class="radio" id="batch[move_copy]m-lbl" for="batch[move_copy]m"> <label class="radio" id="batch[move_copy]m-lbl" for="batch[move_copy]m">
<input type="radio" checked="checked" value="m" id="batch[move_copy]m" name="batch[move_copy]"><?php echo JText::_('Update'); ?></label> <input type="radio" checked="checked" value="m" id="batch[move_copy]m" name="batch[move_copy]"><?php echo JText::_('Update'); ?></label>
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'name', 'name',
'ref', 'ref',
'alias' 'alias'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,52 +1,52 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_fullwidth.php @subpackage details_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'description' 'description'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,50 +1,50 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_left.php @subpackage details_left.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'importname' 'importname'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,50 +1,50 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_right.php @subpackage details_right.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'import_id' 'import_id'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publishing.php @subpackage publishing.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'title', 'title',
'created', 'created',
'created_by', 'created_by',
'modified', 'modified',
'modified_by' 'modified_by'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,55 +1,55 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publlshing.php @subpackage publlshing.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'published', 'published',
'ordering', 'ordering',
'access', 'access',
'version', 'version',
'hits', 'hits',
'id' 'id'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,52 +1,52 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_fullwidth.php @subpackage age_groups_percentages_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'age_groups_note' 'age_groups_note'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,50 +1,50 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_left.php @subpackage age_groups_percentages_left.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'percentmale' 'percentmale'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,50 +1,50 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_right.php @subpackage age_groups_percentages_right.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'percentfemale' 'percentfemale'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,53 +1,53 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php @subpackage causerisk_selection_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'causesrisks', 'causesrisks',
'cause_risk_selection_note' 'cause_risk_selection_note'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'name', 'name',
'user', 'user',
'department' 'department'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_left.php @subpackage details_left.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'per', 'per',
'email', 'email',
'country', 'country',
'service_provider', 'service_provider',
'datayear' 'datayear'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,39 +1,39 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_right.php @subpackage details_right.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'working_days', 'working_days',
'total_salary', 'total_salary',
'total_healthcare', 'total_healthcare',
@ -44,17 +44,17 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'medical_turnovers_females', 'medical_turnovers_females',
'turnover_comment', 'turnover_comment',
'sick_leave_males', 'sick_leave_males',
'sick_leave_females' 'sick_leave_females'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,52 +1,52 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_under.php @subpackage details_under.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'not_required' 'not_required'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,29 +1,29 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage interventions_fullwidth.php @subpackage interventions_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vwdinterventions; $items = $displayData->vwdinterventions;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit"; $edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
// set a return value // set a return value
@ -47,10 +47,10 @@ else
// set the create new URL // set the create new URL
$new = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit" . $ref; $new = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit" . $ref;
// load the action object // load the action object
$can = CostbenefitprojectionHelper::getActions('intervention'); $can = CostbenefitprojectionHelper::getActions('intervention');
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php if ($can->get('intervention.create')): ?> <?php if ($can->get('intervention.create')): ?>
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_COSTBENEFITPROJECTION_NEW'); ?></a><br /><br /> <a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_COSTBENEFITPROJECTION_NEW'); ?></a><br /><br />
<?php endif; ?> <?php endif; ?>
@ -160,5 +160,5 @@ $can = CostbenefitprojectionHelper::getActions('intervention');
<div class="alert alert-no-items"> <div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publishing.php @subpackage publishing.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'title', 'title',
'created', 'created',
'created_by', 'created_by',
'modified', 'modified',
'modified_by' 'modified_by'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,55 +1,55 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publlshing.php @subpackage publlshing.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'published', 'published',
'ordering', 'ordering',
'access', 'access',
'version', 'version',
'hits', 'hits',
'id' 'id'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,29 +1,29 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage scaling_factors_fullwidth.php @subpackage scaling_factors_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vwcscaling_factors; $items = $displayData->vwcscaling_factors;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit"; $edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
// set a return value // set a return value
@ -43,10 +43,10 @@ if (CostbenefitprojectionHelper::checkString($return))
else else
{ {
$ref = ($id) ? "&ref=company&refid=" . $id : ""; $ref = ($id) ? "&ref=company&refid=" . $id : "";
} }
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php if (CostbenefitprojectionHelper::checkArray($items)): ?> <?php if (CostbenefitprojectionHelper::checkArray($items)): ?>
<table class="footable table data scaling_factors metro-blue" data-page-size="20" data-filter="#filter_scaling_factors"> <table class="footable table data scaling_factors metro-blue" data-page-size="20" data-filter="#filter_scaling_factors">
<thead> <thead>
@ -165,5 +165,5 @@ else
<div class="alert alert-no-items"> <div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,50 +1,50 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_left.php @subpackage age_groups_percentages_left.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'percentmale' 'percentmale'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,50 +1,50 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage age_groups_percentages_right.php @subpackage age_groups_percentages_right.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'percentfemale' 'percentfemale'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,52 +1,52 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php @subpackage causerisk_selection_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'causesrisks' 'causesrisks'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,29 +1,29 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage companies_fullwidth.php @subpackage companies_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vwhcompanies; $items = $displayData->vwhcompanies;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit"; $edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
// set a return value // set a return value
@ -47,10 +47,10 @@ else
// set the create new URL // set the create new URL
$new = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit" . $ref; $new = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit" . $ref;
// load the action object // load the action object
$can = CostbenefitprojectionHelper::getActions('company'); $can = CostbenefitprojectionHelper::getActions('company');
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php if ($can->get('company.create')): ?> <?php if ($can->get('company.create')): ?>
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_COSTBENEFITPROJECTION_NEW'); ?></a><br /><br /> <a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_COSTBENEFITPROJECTION_NEW'); ?></a><br /><br />
<?php endif; ?> <?php endif; ?>
@ -175,5 +175,5 @@ $can = CostbenefitprojectionHelper::getActions('company');
<div class="alert alert-no-items"> <div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'name', 'name',
'alias', 'alias',
'user' 'user'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_left.php @subpackage details_left.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'currency', 'currency',
'datayear', 'datayear',
'worldzone', 'worldzone',
'codethree', 'codethree',
'codetwo' 'codetwo'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,55 +1,55 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_right.php @subpackage details_right.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'working_days', 'working_days',
'presenteeism', 'presenteeism',
'medical_turnovers', 'medical_turnovers',
'sick_leave', 'sick_leave',
'healthcare', 'healthcare',
'productivity_losses' 'productivity_losses'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,51 +1,51 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data_totals_left.php @subpackage health_data_totals_left.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'maledeath', 'maledeath',
'maleyld' 'maleyld'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,51 +1,51 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage health_data_totals_right.php @subpackage health_data_totals_right.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'femaledeath', 'femaledeath',
'femaleyld' 'femaleyld'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,29 +1,29 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage interventions_fullwidth.php @subpackage interventions_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vwfinterventions; $items = $displayData->vwfinterventions;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit"; $edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
// set a return value // set a return value
@ -47,10 +47,10 @@ else
// set the create new URL // set the create new URL
$new = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit" . $ref; $new = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit" . $ref;
// load the action object // load the action object
$can = CostbenefitprojectionHelper::getActions('intervention'); $can = CostbenefitprojectionHelper::getActions('intervention');
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php if ($can->get('intervention.create')): ?> <?php if ($can->get('intervention.create')): ?>
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_COSTBENEFITPROJECTION_NEW'); ?></a><br /><br /> <a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_COSTBENEFITPROJECTION_NEW'); ?></a><br /><br />
<?php endif; ?> <?php endif; ?>
@ -164,5 +164,5 @@ $can = CostbenefitprojectionHelper::getActions('intervention');
<div class="alert alert-no-items"> <div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,55 +1,55 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage public_details_fullwidth.php @subpackage public_details_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'publicname', 'publicname',
'publicemail', 'publicemail',
'publicnumber', 'publicnumber',
'publicaddress' 'publicaddress'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publishing.php @subpackage publishing.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'title', 'title',
'created', 'created',
'created_by', 'created_by',
'modified', 'modified',
'modified_by' 'modified_by'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,55 +1,55 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publlshing.php @subpackage publlshing.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'published', 'published',
'ordering', 'ordering',
'access', 'access',
'version', 'version',
'hits', 'hits',
'id' 'id'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,29 +1,29 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage service_providers_fullwidth.php @subpackage service_providers_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vwgservice_providers; $items = $displayData->vwgservice_providers;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL
$edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit"; $edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit";
// set a return value // set a return value
@ -47,10 +47,10 @@ else
// set the create new URL // set the create new URL
$new = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit" . $ref; $new = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit" . $ref;
// load the action object // load the action object
$can = CostbenefitprojectionHelper::getActions('service_provider'); $can = CostbenefitprojectionHelper::getActions('service_provider');
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php if ($can->get('service_provider.create')): ?> <?php if ($can->get('service_provider.create')): ?>
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_COSTBENEFITPROJECTION_NEW'); ?></a><br /><br /> <a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_COSTBENEFITPROJECTION_NEW'); ?></a><br /><br />
<?php endif; ?> <?php endif; ?>
@ -160,5 +160,5 @@ $can = CostbenefitprojectionHelper::getActions('service_provider');
<div class="alert alert-no-items"> <div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -1,53 +1,53 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'name', 'name',
'alias' 'alias'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,53 +1,53 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_left.php @subpackage details_left.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'codethree', 'codethree',
'numericcode', 'numericcode',
'symbol', 'symbol',
'thousands' 'thousands'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,53 +1,53 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_right.php @subpackage details_right.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'decimalplace', 'decimalplace',
'decimalsymbol', 'decimalsymbol',
'positivestyle', 'positivestyle',
'negativestyle' 'negativestyle'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,54 +1,54 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publishing.php @subpackage publishing.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'title', 'title',
'created', 'created',
'created_by', 'created_by',
'modified', 'modified',
'modified_by' 'modified_by'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,55 +1,55 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage publlshing.php @subpackage publlshing.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'published', 'published',
'ordering', 'ordering',
'access', 'access',
'version', 'version',
'hits', 'hits',
'id' 'id'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,23 +1,23 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage databreakdownmalefemale.php @subpackage databreakdownmalefemale.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('JPATH_BASE') or die('Restricted access'); defined('JPATH_BASE') or die('Restricted access');
$builder = array( $builder = array(
@ -27,8 +27,8 @@ $builder = array(
$rounder = array( $rounder = array(
'cost' => array('yld','death'), 'cost' => array('yld','death'),
'day' => array('yld','death','morbidity_'.$displayData->_tmpScale, 'presenteeism_'.$displayData->_tmpScale, 'days_lost_mortality_'.$displayData->_tmpScale) 'day' => array('yld','death','morbidity_'.$displayData->_tmpScale, 'presenteeism_'.$displayData->_tmpScale, 'days_lost_mortality_'.$displayData->_tmpScale)
); );
?> ?>
<?php if (isset($displayData->male) && isset($displayData->female) ): ?> <?php if (isset($displayData->male) && isset($displayData->female) ): ?>
<div class="uk-grid"> <div class="uk-grid">
@ -65,4 +65,4 @@ $rounder = array(
</div> </div>
<?php else: ?> <?php else: ?>
<?php echo JText::_('COM_COSTBENEFITPROJECTION_UNAVAILABLE_AT_THIS_TIME'); ?> <?php echo JText::_('COM_COSTBENEFITPROJECTION_UNAVAILABLE_AT_THIS_TIME'); ?>
<?php endif; ?> <?php endif; ?>

View File

@ -1,52 +1,52 @@
<?php <?php
/*----------------------------------------------------------------------------------| www.giz.de |----/ /*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 3.4.x @version 3.4.x
@build 6th January, 2021 @build 2nd March, 2022
@created 15th June, 2012 @created 15th June, 2012
@package Cost Benefit Projection @package Cost Benefit Projection
@subpackage details_above.php @subpackage details_above.php
@author Llewellyn van der Merwe <http://www.vdm.io> @author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb @owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool. Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
// get the layout fields override method name (from layout path/ID) // get the layout fields override method name (from layout path/ID)
$layout_path_array = explode('.', $this->getLayoutId()); $layout_path_array = explode('.', $this->getLayoutId());
// Since we cannot pass the layout and tab names as parameters to the model method // Since we cannot pass the layout and tab names as parameters to the model method
// this name combination of tab and layout in the method name is the only work around // this name combination of tab and layout in the method name is the only work around
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. // seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
// example of layout name: details_left.php // example of layout name: details_left.php
// example of method name: getFields_details_left() // example of method name: getFields_details_left()
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: array(
'causerisk' 'causerisk'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

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