Fixed the public display to show only needed data. Added Interventions to countries and scaling factors, all other changes are only random variable name and date changes (due to automation sorry)

This commit is contained in:
Llewellyn van der Merwe 2016-01-14 09:44:50 +02:00
parent c167389c80
commit 5ccf21b4ee
430 changed files with 6400 additions and 5689 deletions

View File

@ -1,4 +1,4 @@
# Cost Benefit Projection (3.2.0)
# Cost Benefit Projection (3.3.0)
This is a [Joomla 3.x] (http://www.joomla.org/) component.
@ -22,12 +22,12 @@ max_input_vars = 5000
+ *Author*: [Llewellyn van der Merwe] (mailto:llewellyn@vdm.io)
+ *Name*: [Cost Benefit Projection] (https://www.staffhealthcbp.com/)
+ *First Build*: 15th June, 2012
+ *Last Build*: 12th January, 2016
+ *Version*: 3.2.0
+ *Last Build*: 14th January, 2016
+ *Version*: 3.3.0
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **80271**
+ *File count*: **547**
+ *Line count*: **80999**
+ *File count*: **542**
+ *Folder count*: **101**
> This **component** was build with a Joomla [Automated Component Builder] (https://www.vdm.io/joomla-component-builder).

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage admin.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causesrisks.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage combinedresults.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companies.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage company.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companyresults.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage countries.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage country.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage currencies.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage currency.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage dashboard.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_sets.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help_document.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help_documents.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage intervention.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factor.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factors.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_provider.css

View File

@ -2,8 +2,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_providers.css

View File

@ -355,7 +355,7 @@
multiple="true"
/>
<!-- [11669] Memberbasicgroup Field. Type: Usergroup. (joomla) -->
<!-- Memberbasicgroup Field. Type: Usergroup. (joomla) -->
<field
type="usergroup"
name="memberbasicgroup"
@ -363,7 +363,7 @@
description="COM_COSTBENEFITPROJECTION_CONFIG_MEMBERBASICGROUP_DESCRIPTION"
multiple="true"
/>
<!-- [11669] Advancedmembergroup Field. Type: Usergroup. (joomla) -->
<!-- Advancedmembergroup Field. Type: Usergroup. (joomla) -->
<field
type="usergroup"
name="advancedmembergroup"
@ -382,7 +382,7 @@
description="COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_LOAD_DESC"
class="btn-group btn-group-yesno"
default="">
<!-- [13557] Option Set. -->
<!-- Option Set. -->
<option value="">
COM_COSTBENEFITPROJECTION_CONFIG_AUTO_LOAD</option>"
<option value="1">
@ -398,7 +398,7 @@
description="COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_MIN_DESC"
class="btn-group btn-group-yesno"
default="">
<!-- [13582] Option Set. -->
<!-- Option Set. -->
<option value="">
COM_COSTBENEFITPROJECTION_CONFIG_NO</option>"
<option value=".min">
@ -410,7 +410,7 @@
description="COM_COSTBENEFITPROJECTION_CONFIG_UIKIT_STYLE_DESC"
class="btn-group btn-group-yesno"
default="">
<!-- [13603] Option Set. -->
<!-- Option Set. -->
<option value="">
COM_COSTBENEFITPROJECTION_CONFIG_FLAT_LOAD</option>"
<option value=".almost-flat">
@ -426,7 +426,7 @@
description="COM_COSTBENEFITPROJECTION_CONFIG_CHART_SETTINGS_DESC">
<field type="note" name="chart_admin_naote" class="alert alert-info" label="COM_COSTBENEFITPROJECTION_CONFIG_ADMIN_CHART_NOTE_LABEL" description="COM_COSTBENEFITPROJECTION_CONFIG_ADMIN_CHART_NOTE_DESC" />
<!-- [13635] Admin_chartbackground Field. Type: Color. -->
<!-- Admin_chartbackground Field. Type: Color. -->
<field
type="color"
name="admin_chartbackground"
@ -434,7 +434,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_CHARTBACKGROUND_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CHARTBACKGROUND_DESC"
/>
<!-- [13643] Admin_mainwidth Field. Type: Text. -->
<!-- Admin_mainwidth Field. Type: Text. -->
<field
type="text"
name="admin_mainwidth"
@ -447,9 +447,9 @@
message="Error! Please add area width here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_MAINWIDTH_HINT"
/>
<!-- [13656] Spacer_chartadmin_hr_a Field. Type: Spacer. A None Database Field. -->
<!-- Spacer_chartadmin_hr_a Field. Type: Spacer. A None Database Field. -->
<field type="spacer" name="spacer_chartadmin_hr_a" hr="true" class="spacer_chartadmin_hr_a" />
<!-- [13658] Admin_chartareatop Field. Type: Text. -->
<!-- Admin_chartareatop Field. Type: Text. -->
<field
type="text"
name="admin_chartareatop"
@ -462,7 +462,7 @@
message="Error! Please add top spacing here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_CHARTAREATOP_HINT"
/>
<!-- [13671] Admin_chartarealeft Field. Type: Text. -->
<!-- Admin_chartarealeft Field. Type: Text. -->
<field
type="text"
name="admin_chartarealeft"
@ -475,7 +475,7 @@
message="Error! Please add left spacing here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_CHARTAREALEFT_HINT"
/>
<!-- [13684] Admin_chartareawidth Field. Type: Text. -->
<!-- Admin_chartareawidth Field. Type: Text. -->
<field
type="text"
name="admin_chartareawidth"
@ -488,9 +488,9 @@
message="Error! Please add chart width here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_CHARTAREAWIDTH_HINT"
/>
<!-- [13697] Spacer_chartadmin_hr_b Field. Type: Spacer. A None Database Field. -->
<!-- Spacer_chartadmin_hr_b Field. Type: Spacer. A None Database Field. -->
<field type="spacer" name="spacer_chartadmin_hr_b" hr="true" class="spacer_chartadmin_hr_b" />
<!-- [13699] Admin_legendtextstylefontcolor Field. Type: Color. -->
<!-- Admin_legendtextstylefontcolor Field. Type: Color. -->
<field
type="color"
name="admin_legendtextstylefontcolor"
@ -498,7 +498,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_LEGENDTEXTSTYLEFONTCOLOR_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_LEGENDTEXTSTYLEFONTCOLOR_DESC"
/>
<!-- [13707] Admin_legendtextstylefontsize Field. Type: Text. -->
<!-- Admin_legendtextstylefontsize Field. Type: Text. -->
<field
type="text"
name="admin_legendtextstylefontsize"
@ -511,9 +511,9 @@
message="Error! Please add size of the legend here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_LEGENDTEXTSTYLEFONTSIZE_HINT"
/>
<!-- [13720] Spacer_chartadmin_hr_c Field. Type: Spacer. A None Database Field. -->
<!-- Spacer_chartadmin_hr_c Field. Type: Spacer. A None Database Field. -->
<field type="spacer" name="spacer_chartadmin_hr_c" hr="true" class="spacer_chartadmin_hr_c" />
<!-- [13722] Admin_vaxistextstylefontcolor Field. Type: Color. -->
<!-- Admin_vaxistextstylefontcolor Field. Type: Color. -->
<field
type="color"
name="admin_vaxistextstylefontcolor"
@ -521,9 +521,9 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_DESC"
/>
<!-- [13730] Spacer_chartadmin_hr_d Field. Type: Spacer. A None Database Field. -->
<!-- Spacer_chartadmin_hr_d Field. Type: Spacer. A None Database Field. -->
<field type="spacer" name="spacer_chartadmin_hr_d" hr="true" class="spacer_chartadmin_hr_d" />
<!-- [13732] Admin_haxistextstylefontcolor Field. Type: Color. -->
<!-- Admin_haxistextstylefontcolor Field. Type: Color. -->
<field
type="color"
name="admin_haxistextstylefontcolor"
@ -531,7 +531,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_HAXISTEXTSTYLEFONTCOLOR_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_HAXISTEXTSTYLEFONTCOLOR_DESC"
/>
<!-- [13740] Admin_haxistitletextstylefontcolor Field. Type: Color. -->
<!-- Admin_haxistitletextstylefontcolor Field. Type: Color. -->
<field
type="color"
name="admin_haxistitletextstylefontcolor"
@ -542,7 +542,7 @@
<field type="note" name="chart_site_note" class="alert alert-info" label="COM_COSTBENEFITPROJECTION_CONFIG_SITE_CHART_NOTE_LABEL" description="COM_COSTBENEFITPROJECTION_CONFIG_SITE_CHART_NOTE_DESC" />
<!-- [13751] Site_chartbackground Field. Type: Color. -->
<!-- Site_chartbackground Field. Type: Color. -->
<field
type="color"
name="site_chartbackground"
@ -550,7 +550,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_CHARTBACKGROUND_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_CHARTBACKGROUND_DESC"
/>
<!-- [13759] Site_mainwidth Field. Type: Text. -->
<!-- Site_mainwidth Field. Type: Text. -->
<field
type="text"
name="site_mainwidth"
@ -563,9 +563,9 @@
message="Error! Please add area width here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_MAINWIDTH_HINT"
/>
<!-- [13772] Spacer_chartsite_hr_a Field. Type: Spacer. A None Database Field. -->
<!-- Spacer_chartsite_hr_a Field. Type: Spacer. A None Database Field. -->
<field type="spacer" name="spacer_chartsite_hr_a" hr="true" class="spacer_chartsite_hr_a" />
<!-- [13774] Site_chartareatop Field. Type: Text. -->
<!-- Site_chartareatop Field. Type: Text. -->
<field
type="text"
name="site_chartareatop"
@ -578,7 +578,7 @@
message="Error! Please add top spacing here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_CHARTAREATOP_HINT"
/>
<!-- [13787] Site_chartarealeft Field. Type: Text. -->
<!-- Site_chartarealeft Field. Type: Text. -->
<field
type="text"
name="site_chartarealeft"
@ -591,7 +591,7 @@
message="Error! Please add left spacing here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_CHARTAREALEFT_HINT"
/>
<!-- [13800] Site_chartareawidth Field. Type: Text. -->
<!-- Site_chartareawidth Field. Type: Text. -->
<field
type="text"
name="site_chartareawidth"
@ -604,9 +604,9 @@
message="Error! Please add chart width here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_CHARTAREAWIDTH_HINT"
/>
<!-- [13813] Spacer_chartsite_hr_b Field. Type: Spacer. A None Database Field. -->
<!-- Spacer_chartsite_hr_b Field. Type: Spacer. A None Database Field. -->
<field type="spacer" name="spacer_chartsite_hr_b" hr="true" class="spacer_chartsite_hr_b" />
<!-- [13815] Site_legendtextstylefontcolor Field. Type: Color. -->
<!-- Site_legendtextstylefontcolor Field. Type: Color. -->
<field
type="color"
name="site_legendtextstylefontcolor"
@ -614,7 +614,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_LEGENDTEXTSTYLEFONTCOLOR_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_LEGENDTEXTSTYLEFONTCOLOR_DESC"
/>
<!-- [13823] Site_legendtextstylefontsize Field. Type: Text. -->
<!-- Site_legendtextstylefontsize Field. Type: Text. -->
<field
type="text"
name="site_legendtextstylefontsize"
@ -627,9 +627,9 @@
message="Error! Please add size of the legend here."
hint="COM_COSTBENEFITPROJECTION_CONFIG_LEGENDTEXTSTYLEFONTSIZE_HINT"
/>
<!-- [13836] Spacer_chartsite_hr_c Field. Type: Spacer. A None Database Field. -->
<!-- Spacer_chartsite_hr_c Field. Type: Spacer. A None Database Field. -->
<field type="spacer" name="spacer_chartsite_hr_c" hr="true" class="spacer_chartsite_hr_c" />
<!-- [13838] Site_vaxistextstylefontcolor Field. Type: Color. -->
<!-- Site_vaxistextstylefontcolor Field. Type: Color. -->
<field
type="color"
name="site_vaxistextstylefontcolor"
@ -637,9 +637,9 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_VAXISTEXTSTYLEFONTCOLOR_DESC"
/>
<!-- [13846] Spacer_chartsite_hr_d Field. Type: Spacer. A None Database Field. -->
<!-- Spacer_chartsite_hr_d Field. Type: Spacer. A None Database Field. -->
<field type="spacer" name="spacer_chartsite_hr_d" hr="true" class="spacer_chartsite_hr_d" />
<!-- [13848] Site_haxistextstylefontcolor Field. Type: Color. -->
<!-- Site_haxistextstylefontcolor Field. Type: Color. -->
<field
type="color"
name="site_haxistextstylefontcolor"
@ -647,7 +647,7 @@
label="COM_COSTBENEFITPROJECTION_CONFIG_HAXISTEXTSTYLEFONTCOLOR_LABEL"
description="COM_COSTBENEFITPROJECTION_CONFIG_HAXISTEXTSTYLEFONTCOLOR_DESC"
/>
<!-- [13856] Site_haxistitletextstylefontcolor Field. Type: Color. -->
<!-- Site_haxistitletextstylefontcolor Field. Type: Color. -->
<field
type="color"
name="site_haxistitletextstylefontcolor"
@ -669,7 +669,7 @@
default=""
/>
<!-- [11669] Resultpath Field. Type: Text. (joomla) -->
<!-- Resultpath Field. Type: Text. (joomla) -->
<field
type="text"
name="resultpath"

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage controller.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage ajax.json.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk.php
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9618] Access check.
// Access check.
$access = JFactory::getUser()->authorise('causerisk.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// [9629] In the absense of better information, revert to the component permissions.
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('causerisk.create', $this->option);
}
@ -76,13 +76,13 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9772] get user object.
// get user object.
$user = JFactory::getUser();
// [9774] get record id.
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
// [9781] Access check.
// Access check.
$access = ($user->authorise('causerisk.access', 'com_costbenefitprojection.causerisk.' . (int) $recordId) && $user->authorise('causerisk.access', 'com_costbenefitprojection'));
if (!$access)
{
@ -91,17 +91,17 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
if ($recordId)
{
// [9790] The record has been set. Check the record permissions.
// The record has been set. Check the record permissions.
$permission = $user->authorise('causerisk.edit', 'com_costbenefitprojection.causerisk.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('causerisk.edit.own', 'com_costbenefitprojection.causerisk.' . $recordId))
{
// [9812] Now test the owner is the user.
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9816] Need to do a lookup from the model.
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -111,7 +111,7 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
$ownerId = $record->created_by;
}
// [9824] If the owner matches 'me' then allow.
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('causerisk.edit.own', 'com_costbenefitprojection'))
@ -123,7 +123,7 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
return false;
}
}
// [9846] 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);
}

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causesrisks.php
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerCausesrisks extends JControllerAdmin
public function exportData()
{
// [7568] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7570] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('causerisk.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
{
// [7574] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7577] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7579] Get the model
// Get the model
$model = $this->getModel('Causesrisks');
// [7581] get the data to export
// get the data to export
$data = $model->getExportData($pks);
if (CostbenefitprojectionHelper::checkArray($data))
{
// [7585] now set the data to the spreadsheet
// now set the data to the spreadsheet
$date = JFactory::getDate();
CostbenefitprojectionHelper::xls($data,'Causesrisks_'.$date->format('jS_F_Y'),'Causesrisks exported ('.$date->format('jS F, Y').')','causesrisks');
}
}
// [7590] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=causesrisks', false), $message, 'error');
return;
@ -73,31 +73,31 @@ class CostbenefitprojectionControllerCausesrisks extends JControllerAdmin
public function importData()
{
// [7599] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7601] check if import is allowed for this user.
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('causerisk.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
{
// [7605] Get the import model
// Get the import model
$model = $this->getModel('Causesrisks');
// [7607] get the headers to import
// get the headers to import
$headers = $model->getExImPortHeaders();
if (CostbenefitprojectionHelper::checkObject($headers))
{
// [7611] Load headers to session.
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('causerisk_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'causesrisks');
$session->set('dataType_VDM_IMPORTINTO', 'causerisk');
// [7617] Redirect to import view.
// Redirect to import view.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_SELECT_FILE_FOR_CAUSESRISKS');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=import', false), $message);
return;
}
}
// [7629] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=causesrisks', false), $message, 'error');
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage combinedresults.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companies.php
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerCompanies extends JControllerAdmin
public function exportData()
{
// [7568] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7570] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('company.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
{
// [7574] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7577] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7579] Get the model
// Get the model
$model = $this->getModel('Companies');
// [7581] get the data to export
// get the data to export
$data = $model->getExportData($pks);
if (CostbenefitprojectionHelper::checkArray($data))
{
// [7585] now set the data to the spreadsheet
// now set the data to the spreadsheet
$date = JFactory::getDate();
CostbenefitprojectionHelper::xls($data,'Companies_'.$date->format('jS_F_Y'),'Companies exported ('.$date->format('jS F, Y').')','companies');
}
}
// [7590] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false), $message, 'error');
return;
@ -73,31 +73,31 @@ class CostbenefitprojectionControllerCompanies extends JControllerAdmin
public function importData()
{
// [7599] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7601] check if import is allowed for this user.
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('company.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
{
// [7605] Get the import model
// Get the import model
$model = $this->getModel('Companies');
// [7607] get the headers to import
// get the headers to import
$headers = $model->getExImPortHeaders();
if (CostbenefitprojectionHelper::checkObject($headers))
{
// [7611] Load headers to session.
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('company_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'companies');
$session->set('dataType_VDM_IMPORTINTO', 'company');
// [7617] Redirect to import view.
// Redirect to import view.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_SELECT_FILE_FOR_COMPANIES');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=import', false), $message);
return;
}
}
// [7629] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false), $message, 'error');
return;
@ -105,23 +105,23 @@ class CostbenefitprojectionControllerCompanies extends JControllerAdmin
public function redirectToCombinedresults()
{
// [7440] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7442] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('combinedresults.access', 'com_costbenefitprojection'))
{
// [7446] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7449] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7451] convert to string
// convert to string
$ids = implode('_', $pks);
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=combinedresults&cid='.$ids, false));
return;
}
// [7456] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_ACCESS_TO_COMBINEDRESULTS_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false), $message, 'error');
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage company.php
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9618] Access check.
// Access check.
$access = JFactory::getUser()->authorise('company.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// [9629] In the absense of better information, revert to the component permissions.
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('company.create', $this->option);
}
@ -76,9 +76,9 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9772] get user object.
// get user object.
$user = JFactory::getUser();
// [9774] get record id.
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
if (!$user->authorise('core.options', 'com_costbenefitprojection'))
{
@ -97,7 +97,7 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
return false;
}
// [9781] Access check.
// Access check.
$access = ($user->authorise('company.access', 'com_costbenefitprojection.company.' . (int) $recordId) && $user->authorise('company.access', 'com_costbenefitprojection'));
if (!$access)
{
@ -106,17 +106,17 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
if ($recordId)
{
// [9790] The record has been set. Check the record permissions.
// The record has been set. Check the record permissions.
$permission = $user->authorise('company.edit', 'com_costbenefitprojection.company.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('company.edit.own', 'com_costbenefitprojection.company.' . $recordId))
{
// [9812] Now test the owner is the user.
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9816] Need to do a lookup from the model.
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -126,7 +126,7 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
$ownerId = $record->created_by;
}
// [9824] If the owner matches 'me' then allow.
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('company.edit.own', 'com_costbenefitprojection'))
@ -138,7 +138,7 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
return false;
}
}
// [9846] 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);
}

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companyresults.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage countries.php
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerCountries extends JControllerAdmin
public function exportData()
{
// [7568] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7570] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('country.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
{
// [7574] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7577] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7579] Get the model
// Get the model
$model = $this->getModel('Countries');
// [7581] get the data to export
// get the data to export
$data = $model->getExportData($pks);
if (CostbenefitprojectionHelper::checkArray($data))
{
// [7585] now set the data to the spreadsheet
// now set the data to the spreadsheet
$date = JFactory::getDate();
CostbenefitprojectionHelper::xls($data,'Countries_'.$date->format('jS_F_Y'),'Countries exported ('.$date->format('jS F, Y').')','countries');
}
}
// [7590] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=countries', false), $message, 'error');
return;
@ -73,31 +73,31 @@ class CostbenefitprojectionControllerCountries extends JControllerAdmin
public function importData()
{
// [7599] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7601] check if import is allowed for this user.
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('country.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
{
// [7605] Get the import model
// Get the import model
$model = $this->getModel('Countries');
// [7607] get the headers to import
// get the headers to import
$headers = $model->getExImPortHeaders();
if (CostbenefitprojectionHelper::checkObject($headers))
{
// [7611] Load headers to session.
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('country_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'countries');
$session->set('dataType_VDM_IMPORTINTO', 'country');
// [7617] Redirect to import view.
// Redirect to import view.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_SELECT_FILE_FOR_COUNTRIES');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=import', false), $message);
return;
}
}
// [7629] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=countries', false), $message, 'error');
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage country.php
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9618] Access check.
// Access check.
$access = JFactory::getUser()->authorise('country.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// [9629] In the absense of better information, revert to the component permissions.
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('country.create', $this->option);
}
@ -76,9 +76,9 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9772] get user object.
// get user object.
$user = JFactory::getUser();
// [9774] get record id.
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
if (!$user->authorise('core.options', 'com_costbenefitprojection'))
{
@ -91,7 +91,7 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
}
}
// [9781] Access check.
// Access check.
$access = ($user->authorise('country.access', 'com_costbenefitprojection.country.' . (int) $recordId) && $user->authorise('country.access', 'com_costbenefitprojection'));
if (!$access)
{
@ -100,17 +100,17 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
if ($recordId)
{
// [9790] The record has been set. Check the record permissions.
// The record has been set. Check the record permissions.
$permission = $user->authorise('country.edit', 'com_costbenefitprojection.country.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('country.edit.own', 'com_costbenefitprojection.country.' . $recordId))
{
// [9812] Now test the owner is the user.
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9816] Need to do a lookup from the model.
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -120,7 +120,7 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
$ownerId = $record->created_by;
}
// [9824] If the owner matches 'me' then allow.
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('country.edit.own', 'com_costbenefitprojection'))
@ -132,7 +132,7 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
return false;
}
}
// [9846] 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);
}
@ -348,6 +348,147 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
$model->save($validData);
}
}
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Select all records in scaling factors the belong to this company
$query->select($db->quoteName(array('id','causerisk','published')));
$query->from($db->quoteName('#__costbenefitprojection_scaling_factor'));
$query->where($db->quoteName('country') . ' = '. (int) $validData['id']);
$query->where($db->quoteName('company') . ' = 0');
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
// load the scaling factors already set
$already = $db->loadObjectList();
$publish = array();
$archive = array();
$bucket = array();
foreach ($already as $scale)
{
if (CostbenefitprojectionHelper::checkArray($validData['causesrisks']))
{
if (in_array($scale->causerisk, $validData['causesrisks']) && $scale->published != 1)
{
// publish the scaling factor (update)
$publish[$scale->id] = $scale->id;
}
elseif (!in_array($scale->causerisk, $validData['causesrisks']))
{
// archive the scaling factor (update)
$archive[$scale->id] = $scale->id;
}
$bucket[] = $scale->causerisk;
}
else
{
// archive the scaling factor (update)
$archive[$scale->id] = $scale->id;
}
}
// update the needed records
$types = array('publish' => 1,'archive' => 2);
foreach ($types as $type => $int)
{
if (CostbenefitprojectionHelper::checkArray(${$type}))
{
foreach (${$type} as $id)
{
$query = $db->getQuery(true);
// Fields to update.
$fields = array(
$db->quoteName('published') . ' = ' . (int) $int
);
// Conditions for which records should be updated.
$conditions = array(
$db->quoteName('id') . ' = ' . (int) $id
);
$query->update($db->quoteName('#__costbenefitprojection_scaling_factor'))->set($fields)->where($conditions);
$db->setQuery($query);
$db->execute();
}
}
}
}
if (CostbenefitprojectionHelper::checkArray($validData['causesrisks']))
{
// remove those already set from the saved list of causesrisks
if (CostbenefitprojectionHelper::checkArray($bucket))
{
$insert = array();
foreach ($validData['causesrisks'] as $causerisk)
{
if (!in_array($causerisk,$bucket))
{
$insert[] = $causerisk;
}
}
}
else
{
$insert = $validData['causesrisks'];
}
}
// insert the new records
if (CostbenefitprojectionHelper::checkArray($insert))
{
$created = $db->quote(JFactory::getDate()->toSql());
$created_by = JFactory::getUser()->get('id');
$company = 0;
$country = $validData['id'];
// Create a new query object.
$query = $db->getQuery(true);
// Insert columns.
$columns = array(
'causerisk', 'company', 'country', 'mortality_scaling_factor_females',
'mortality_scaling_factor_males', 'presenteeism_scaling_factor_females',
'presenteeism_scaling_factor_males', 'yld_scaling_factor_females',
'yld_scaling_factor_males', 'published',
'created_by', 'created');
// setup the values
$values = array();
foreach ($insert as $new)
{
$array = array($new,$company,$country,1,1,1,1,1,1,1,$created_by,$created);
$values[] = implode(',',$array);
}
// Prepare the insert query.
$query
->insert($db->quoteName('#__costbenefitprojection_scaling_factor'))
->columns($db->quoteName($columns))
->values(implode('), (', $values));
// Set the query using our newly populated query object and execute it.
$db->setQuery($query);
$done = $db->execute();
if ($done)
{
// we must set the assets
foreach ($insert as $causerisk)
{
// get all the ids. Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('id')));
$query->from($db->quoteName('#__costbenefitprojection_scaling_factor'));
$query->where($db->quoteName('causerisk') . ' = '. (int) $causerisk);
$query->where($db->quoteName('company') . ' = 0');
$query->where($db->quoteName('country') . ' = '. (int) $country);
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$aId = $db->loadResult();
// make sure the access of asset is set
CostbenefitprojectionHelper::setAsset($aId,'scaling_factor');
}
}
}
}
}
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage currencies.php
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerCurrencies extends JControllerAdmin
public function exportData()
{
// [7568] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7570] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('currency.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
{
// [7574] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7577] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7579] Get the model
// Get the model
$model = $this->getModel('Currencies');
// [7581] get the data to export
// get the data to export
$data = $model->getExportData($pks);
if (CostbenefitprojectionHelper::checkArray($data))
{
// [7585] now set the data to the spreadsheet
// now set the data to the spreadsheet
$date = JFactory::getDate();
CostbenefitprojectionHelper::xls($data,'Currencies_'.$date->format('jS_F_Y'),'Currencies exported ('.$date->format('jS F, Y').')','currencies');
}
}
// [7590] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=currencies', false), $message, 'error');
return;
@ -73,31 +73,31 @@ class CostbenefitprojectionControllerCurrencies extends JControllerAdmin
public function importData()
{
// [7599] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7601] check if import is allowed for this user.
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('currency.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
{
// [7605] Get the import model
// Get the import model
$model = $this->getModel('Currencies');
// [7607] get the headers to import
// get the headers to import
$headers = $model->getExImPortHeaders();
if (CostbenefitprojectionHelper::checkObject($headers))
{
// [7611] Load headers to session.
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('currency_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'currencies');
$session->set('dataType_VDM_IMPORTINTO', 'currency');
// [7617] Redirect to import view.
// Redirect to import view.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_SELECT_FILE_FOR_CURRENCIES');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=import', false), $message);
return;
}
}
// [7629] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=currencies', false), $message, 'error');
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage currency.php
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9618] Access check.
// Access check.
$access = JFactory::getUser()->authorise('currency.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// [9629] In the absense of better information, revert to the component permissions.
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('currency.create', $this->option);
}
@ -76,13 +76,13 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9772] get user object.
// get user object.
$user = JFactory::getUser();
// [9774] get record id.
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
// [9781] Access check.
// Access check.
$access = ($user->authorise('currency.access', 'com_costbenefitprojection.currency.' . (int) $recordId) && $user->authorise('currency.access', 'com_costbenefitprojection'));
if (!$access)
{
@ -91,17 +91,17 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
if ($recordId)
{
// [9790] The record has been set. Check the record permissions.
// The record has been set. Check the record permissions.
$permission = $user->authorise('currency.edit', 'com_costbenefitprojection.currency.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('currency.edit.own', 'com_costbenefitprojection.currency.' . $recordId))
{
// [9812] Now test the owner is the user.
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9816] Need to do a lookup from the model.
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -111,7 +111,7 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
$ownerId = $record->created_by;
}
// [9824] If the owner matches 'me' then allow.
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('currency.edit.own', 'com_costbenefitprojection'))
@ -123,7 +123,7 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
return false;
}
}
// [9846] 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);
}

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data.php
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9618] Access check.
// Access check.
$access = JFactory::getUser()->authorise('health_data.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// [9629] In the absense of better information, revert to the component permissions.
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('health_data.create', $this->option);
}
@ -76,9 +76,9 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9772] get user object.
// get user object.
$user = JFactory::getUser();
// [9774] get record id.
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
if (!$user->authorise('core.options', 'com_costbenefitprojection'))
{
@ -92,7 +92,7 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
}
}
// [9781] Access check.
// Access check.
$access = ($user->authorise('health_data.access', 'com_costbenefitprojection.health_data.' . (int) $recordId) && $user->authorise('health_data.access', 'com_costbenefitprojection'));
if (!$access)
{
@ -101,17 +101,17 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
if ($recordId)
{
// [9790] The record has been set. Check the record permissions.
// The record has been set. Check the record permissions.
$permission = $user->authorise('health_data.edit', 'com_costbenefitprojection.health_data.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('health_data.edit.own', 'com_costbenefitprojection.health_data.' . $recordId))
{
// [9812] Now test the owner is the user.
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9816] Need to do a lookup from the model.
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -121,7 +121,7 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
$ownerId = $record->created_by;
}
// [9824] If the owner matches 'me' then allow.
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('health_data.edit.own', 'com_costbenefitprojection'))
@ -133,7 +133,7 @@ class CostbenefitprojectionControllerHealth_data extends JControllerForm
return false;
}
}
// [9846] 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);
}

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_sets.php
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerHealth_data_sets extends JControllerAdmin
public function exportData()
{
// [7568] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7570] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('health_data.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
{
// [7574] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7577] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7579] Get the model
// Get the model
$model = $this->getModel('Health_data_sets');
// [7581] get the data to export
// get the data to export
$data = $model->getExportData($pks);
if (CostbenefitprojectionHelper::checkArray($data))
{
// [7585] now set the data to the spreadsheet
// now set the data to the spreadsheet
$date = JFactory::getDate();
CostbenefitprojectionHelper::xls($data,'Health_data_sets_'.$date->format('jS_F_Y'),'Health data sets exported ('.$date->format('jS F, Y').')','health data sets');
}
}
// [7590] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=health_data_sets', false), $message, 'error');
return;
@ -73,31 +73,31 @@ class CostbenefitprojectionControllerHealth_data_sets extends JControllerAdmin
public function importData()
{
// [7599] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7601] check if import is allowed for this user.
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('health_data.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
{
// [7605] Get the import model
// Get the import model
$model = $this->getModel('Health_data_sets');
// [7607] get the headers to import
// get the headers to import
$headers = $model->getExImPortHeaders();
if (CostbenefitprojectionHelper::checkObject($headers))
{
// [7611] Load headers to session.
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('health_data_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'health_data_sets');
$session->set('dataType_VDM_IMPORTINTO', 'health_data');
// [7617] Redirect to import view.
// Redirect to import view.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_SELECT_FILE_FOR_HEALTH_DATA_SETS');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=import', false), $message);
return;
}
}
// [7629] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=health_data_sets', false), $message, 'error');
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help_document.php
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9618] Access check.
// Access check.
$access = JFactory::getUser()->authorise('help_document.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// [9629] In the absense of better information, revert to the component permissions.
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('help_document.create', $this->option);
}
@ -76,13 +76,13 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9772] get user object.
// get user object.
$user = JFactory::getUser();
// [9774] get record id.
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
// [9781] Access check.
// Access check.
$access = ($user->authorise('help_document.access', 'com_costbenefitprojection.help_document.' . (int) $recordId) && $user->authorise('help_document.access', 'com_costbenefitprojection'));
if (!$access)
{
@ -91,17 +91,17 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
if ($recordId)
{
// [9790] The record has been set. Check the record permissions.
// The record has been set. Check the record permissions.
$permission = $user->authorise('help_document.edit', 'com_costbenefitprojection.help_document.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('help_document.edit.own', 'com_costbenefitprojection.help_document.' . $recordId))
{
// [9812] Now test the owner is the user.
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9816] Need to do a lookup from the model.
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -111,7 +111,7 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
$ownerId = $record->created_by;
}
// [9824] If the owner matches 'me' then allow.
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('help_document.edit.own', 'com_costbenefitprojection'))
@ -123,7 +123,7 @@ class CostbenefitprojectionControllerHelp_document extends JControllerForm
return false;
}
}
// [9846] 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);
}

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage help_documents.php
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerHelp_documents extends JControllerAdmin
public function exportData()
{
// [7568] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7570] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('help_document.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
{
// [7574] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7577] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7579] Get the model
// Get the model
$model = $this->getModel('Help_documents');
// [7581] get the data to export
// get the data to export
$data = $model->getExportData($pks);
if (CostbenefitprojectionHelper::checkArray($data))
{
// [7585] now set the data to the spreadsheet
// now set the data to the spreadsheet
$date = JFactory::getDate();
CostbenefitprojectionHelper::xls($data,'Help_documents_'.$date->format('jS_F_Y'),'Help documents exported ('.$date->format('jS F, Y').')','help documents');
}
}
// [7590] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=help_documents', false), $message, 'error');
return;
@ -73,31 +73,31 @@ class CostbenefitprojectionControllerHelp_documents extends JControllerAdmin
public function importData()
{
// [7599] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7601] check if import is allowed for this user.
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('help_document.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
{
// [7605] Get the import model
// Get the import model
$model = $this->getModel('Help_documents');
// [7607] get the headers to import
// get the headers to import
$headers = $model->getExImPortHeaders();
if (CostbenefitprojectionHelper::checkObject($headers))
{
// [7611] Load headers to session.
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('help_document_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'help_documents');
$session->set('dataType_VDM_IMPORTINTO', 'help_document');
// [7617] Redirect to import view.
// Redirect to import view.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=import', false), $message);
return;
}
}
// [7629] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=help_documents', false), $message, 'error');
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage import.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage intervention.php
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9618] Access check.
// Access check.
$access = JFactory::getUser()->authorise('intervention.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// [9629] In the absense of better information, revert to the component permissions.
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('intervention.create', $this->option);
}
@ -76,9 +76,9 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9772] get user object.
// get user object.
$user = JFactory::getUser();
// [9774] get record id.
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
// get company id
$company = CostbenefitprojectionHelper::getId('intervention',$recordId,'id','company');
@ -97,7 +97,7 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
return false;
}
// [9781] Access check.
// Access check.
$access = ($user->authorise('intervention.access', 'com_costbenefitprojection.intervention.' . (int) $recordId) && $user->authorise('intervention.access', 'com_costbenefitprojection'));
if (!$access)
{
@ -106,17 +106,17 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
if ($recordId)
{
// [9790] The record has been set. Check the record permissions.
// The record has been set. Check the record permissions.
$permission = $user->authorise('intervention.edit', 'com_costbenefitprojection.intervention.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('intervention.edit.own', 'com_costbenefitprojection.intervention.' . $recordId))
{
// [9812] Now test the owner is the user.
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9816] Need to do a lookup from the model.
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -126,7 +126,7 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
$ownerId = $record->created_by;
}
// [9824] If the owner matches 'me' then allow.
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('intervention.edit.own', 'com_costbenefitprojection'))
@ -138,7 +138,7 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
return false;
}
}
// [9846] 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);
}

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions.php
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerInterventions extends JControllerAdmin
public function exportData()
{
// [7568] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7570] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('intervention.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
{
// [7574] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7577] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7579] Get the model
// Get the model
$model = $this->getModel('Interventions');
// [7581] get the data to export
// get the data to export
$data = $model->getExportData($pks);
if (CostbenefitprojectionHelper::checkArray($data))
{
// [7585] now set the data to the spreadsheet
// now set the data to the spreadsheet
$date = JFactory::getDate();
CostbenefitprojectionHelper::xls($data,'Interventions_'.$date->format('jS_F_Y'),'Interventions exported ('.$date->format('jS F, Y').')','interventions');
}
}
// [7590] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=interventions', false), $message, 'error');
return;
@ -73,31 +73,31 @@ class CostbenefitprojectionControllerInterventions extends JControllerAdmin
public function importData()
{
// [7599] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7601] check if import is allowed for this user.
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('intervention.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
{
// [7605] Get the import model
// Get the import model
$model = $this->getModel('Interventions');
// [7607] get the headers to import
// get the headers to import
$headers = $model->getExImPortHeaders();
if (CostbenefitprojectionHelper::checkObject($headers))
{
// [7611] Load headers to session.
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('intervention_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'interventions');
$session->set('dataType_VDM_IMPORTINTO', 'intervention');
// [7617] Redirect to import view.
// Redirect to import view.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_SELECT_FILE_FOR_INTERVENTIONS');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=import', false), $message);
return;
}
}
// [7629] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=interventions', false), $message, 'error');
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factor.php
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9618] Access check.
// Access check.
$access = JFactory::getUser()->authorise('scaling_factor.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// [9629] In the absense of better information, revert to the component permissions.
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('scaling_factor.create', $this->option);
}
@ -76,9 +76,9 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9772] get user object.
// get user object.
$user = JFactory::getUser();
// [9774] get record id.
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
if (!$user->authorise('core.options', 'com_costbenefitprojection'))
{
@ -91,7 +91,7 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
}
}
// [9781] Access check.
// Access check.
$access = ($user->authorise('scaling_factor.access', 'com_costbenefitprojection.scaling_factor.' . (int) $recordId) && $user->authorise('scaling_factor.access', 'com_costbenefitprojection'));
if (!$access)
{
@ -100,17 +100,17 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
if ($recordId)
{
// [9790] The record has been set. Check the record permissions.
// The record has been set. Check the record permissions.
$permission = $user->authorise('scaling_factor.edit', 'com_costbenefitprojection.scaling_factor.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('scaling_factor.edit.own', 'com_costbenefitprojection.scaling_factor.' . $recordId))
{
// [9812] Now test the owner is the user.
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9816] Need to do a lookup from the model.
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -120,7 +120,7 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
$ownerId = $record->created_by;
}
// [9824] If the owner matches 'me' then allow.
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('scaling_factor.edit.own', 'com_costbenefitprojection'))
@ -132,7 +132,7 @@ class CostbenefitprojectionControllerScaling_factor extends JControllerForm
return false;
}
}
// [9846] 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);
}

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factors.php
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerScaling_factors extends JControllerAdmin
public function exportData()
{
// [7568] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7570] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('scaling_factor.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
{
// [7574] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7577] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7579] Get the model
// Get the model
$model = $this->getModel('Scaling_factors');
// [7581] get the data to export
// get the data to export
$data = $model->getExportData($pks);
if (CostbenefitprojectionHelper::checkArray($data))
{
// [7585] now set the data to the spreadsheet
// now set the data to the spreadsheet
$date = JFactory::getDate();
CostbenefitprojectionHelper::xls($data,'Scaling_factors_'.$date->format('jS_F_Y'),'Scaling factors exported ('.$date->format('jS F, Y').')','scaling factors');
}
}
// [7590] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=scaling_factors', false), $message, 'error');
return;
@ -73,31 +73,31 @@ class CostbenefitprojectionControllerScaling_factors extends JControllerAdmin
public function importData()
{
// [7599] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7601] check if import is allowed for this user.
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('scaling_factor.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
{
// [7605] Get the import model
// Get the import model
$model = $this->getModel('Scaling_factors');
// [7607] get the headers to import
// get the headers to import
$headers = $model->getExImPortHeaders();
if (CostbenefitprojectionHelper::checkObject($headers))
{
// [7611] Load headers to session.
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('scaling_factor_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'scaling_factors');
$session->set('dataType_VDM_IMPORTINTO', 'scaling_factor');
// [7617] Redirect to import view.
// Redirect to import view.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_SELECT_FILE_FOR_SCALING_FACTORS');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=import', false), $message);
return;
}
}
// [7629] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=scaling_factors', false), $message, 'error');
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_provider.php
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9618] Access check.
// Access check.
$access = JFactory::getUser()->authorise('service_provider.access', 'com_costbenefitprojection');
if (!$access)
{
return false;
}
// [9629] In the absense of better information, revert to the component permissions.
// In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('service_provider.create', $this->option);
}
@ -76,9 +76,9 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9772] get user object.
// get user object.
$user = JFactory::getUser();
// [9774] get record id.
// get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
if (!$user->authorise('core.options', 'com_costbenefitprojection'))
{
@ -90,7 +90,7 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
}
}
// [9781] Access check.
// Access check.
$access = ($user->authorise('service_provider.access', 'com_costbenefitprojection.service_provider.' . (int) $recordId) && $user->authorise('service_provider.access', 'com_costbenefitprojection'));
if (!$access)
{
@ -99,17 +99,17 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
if ($recordId)
{
// [9790] The record has been set. Check the record permissions.
// The record has been set. Check the record permissions.
$permission = $user->authorise('service_provider.edit', 'com_costbenefitprojection.service_provider.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('service_provider.edit.own', 'com_costbenefitprojection.service_provider.' . $recordId))
{
// [9812] Now test the owner is the user.
// Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9816] Need to do a lookup from the model.
// Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -119,7 +119,7 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
$ownerId = $record->created_by;
}
// [9824] If the owner matches 'me' then allow.
// If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('service_provider.edit.own', 'com_costbenefitprojection'))
@ -131,7 +131,7 @@ class CostbenefitprojectionControllerService_provider extends JControllerForm
return false;
}
}
// [9846] 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);
}

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_providers.php
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerService_providers extends JControllerAdmin
public function exportData()
{
// [7568] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7570] check if export is allowed for this user.
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('service_provider.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
{
// [7574] Get the input
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7577] Sanitize the input
// Sanitize the input
JArrayHelper::toInteger($pks);
// [7579] Get the model
// Get the model
$model = $this->getModel('Service_providers');
// [7581] get the data to export
// get the data to export
$data = $model->getExportData($pks);
if (CostbenefitprojectionHelper::checkArray($data))
{
// [7585] now set the data to the spreadsheet
// now set the data to the spreadsheet
$date = JFactory::getDate();
CostbenefitprojectionHelper::xls($data,'Service_providers_'.$date->format('jS_F_Y'),'Service providers exported ('.$date->format('jS F, Y').')','service providers');
}
}
// [7590] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=service_providers', false), $message, 'error');
return;
@ -73,31 +73,31 @@ class CostbenefitprojectionControllerService_providers extends JControllerAdmin
public function importData()
{
// [7599] Check for request forgeries
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7601] check if import is allowed for this user.
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('service_provider.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
{
// [7605] Get the import model
// Get the import model
$model = $this->getModel('Service_providers');
// [7607] get the headers to import
// get the headers to import
$headers = $model->getExImPortHeaders();
if (CostbenefitprojectionHelper::checkObject($headers))
{
// [7611] Load headers to session.
// Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('service_provider_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'service_providers');
$session->set('dataType_VDM_IMPORTINTO', 'service_provider');
// [7617] Redirect to import view.
// Redirect to import view.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_SELECT_FILE_FOR_SERVICE_PROVIDERS');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=import', false), $message);
return;
}
}
// [7629] Redirect to the list screen with error.
// Redirect to the list screen with error.
$message = JText::_('COM_COSTBENEFITPROJECTION_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=service_providers', false), $message, 'error');
return;

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage costbenefitprojection.php
@ -752,23 +752,23 @@ abstract class CostbenefitprojectionHelper
$targetgroups = json_decode($help->groups, true);
if (!array_intersect($targetgroups, $groups))
{
// [1497] if user not in those target groups then remove the item
// if user not in those target groups then remove the item
unset($helps[$nr]);
continue;
}
}
// [1502] set the return type
// set the return type
switch ($help->type)
{
// [1505] set joomla article
// set joomla article
case 1:
return self::loadArticleLink($help->article);
break;
// [1509] set help text
// set help text
case 2:
return self::loadHelpTextLink($help->id);
break;
// [1513] set Link
// set Link
case 3:
return $help->url;
break;
@ -848,33 +848,33 @@ abstract class CostbenefitprojectionHelper
*/
public static function createUser($new)
{
// [1731] load the user component language files if there is an error.
// load the user component language files if there is an error.
$lang = JFactory::getLanguage();
$extension = 'com_users';
$base_dir = JPATH_SITE;
$language_tag = 'en-GB';
$reload = true;
$lang->load($extension, $base_dir, $language_tag, $reload);
// [1738] load the user regestration model
// load the user regestration model
$model = self::getModel('registration', JPATH_ROOT. '/components/com_users', 'Users');
// [1740] make sure no activation is needed
// make sure no activation is needed
$useractivation = self::setParams('com_users','useractivation',0);
// [1742] make sure password is send
// make sure password is send
$sendpassword = self::setParams('com_users','sendpassword',1);
// [1744] Check if password was set
// Check if password was set
if (isset($new['password']) && isset($new['password2']) && self::checkString($new['password']) && self::checkString($new['password2']))
{
// [1747] Use the users passwords
// Use the users passwords
$password = $new['password'];
$password2 = $new['password2'];
}
else
{
// [1753] Set random password
// Set random password
$password = self::randomkey(8);
$password2 = $password;
}
// [1757] set username
// set username
if (isset($new['username']) && self::checkString($new['username']))
{
$new['username'] = self::safeString($new['username']);
@ -883,7 +883,7 @@ abstract class CostbenefitprojectionHelper
{
$new['username'] = self::safeString($new['name']);
}
// [1766] linup new user data
// linup new user data
$data = array(
'username' => $new['username'],
'name' => $new['name'],
@ -891,13 +891,13 @@ abstract class CostbenefitprojectionHelper
'password1' => $password, // First password field
'password2' => $password2, // Confirm password field
'block' => 0 );
// [1774] register the new user
// register the new user
$userId = $model->register($data);
// [1776] set activation back to default
// set activation back to default
self::setParams('com_users','useractivation',$useractivation);
// [1778] set send password back to default
// set send password back to default
self::setParams('com_users','sendpassword',$sendpassword);
// [1780] if user is created
// if user is created
if ($userId > 0)
{
return $userId;
@ -907,21 +907,21 @@ abstract class CostbenefitprojectionHelper
protected static function setParams($component,$target,$value)
{
// [1790] Get the params and set the new values
// Get the params and set the new values
$params = JComponentHelper::getParams($component);
$was = $params->get($target, null);
if ($was != $value)
{
$params->set($target, $value);
// [1796] Get a new database query instance
// Get a new database query instance
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [1799] Build the query
// Build the query
$query->update('#__extensions AS a');
$query->set('a.params = ' . $db->quote((string)$params));
$query->where('a.element = ' . $db->quote((string)$component));
// [1804] Execute the query
// Execute the query
$db->setQuery($query);
$db->query();
}
@ -997,7 +997,7 @@ abstract class CostbenefitprojectionHelper
{
if (strpos($content,'class="uk-') !== false)
{
// [2741] reset
// reset
$temp = array();
foreach (self::$uk_components as $looking => $add)
{
@ -1006,15 +1006,15 @@ abstract class CostbenefitprojectionHelper
$temp[] = $looking;
}
}
// [2750] make sure uikit is loaded to config
// make sure uikit is loaded to config
if (strpos($content,'class="uk-') !== false)
{
self::$uikit = true;
}
// [2755] sorter
// sorter
if (self::checkArray($temp))
{
// [2758] merger
// merger
if (self::checkArray($classes))
{
$newTemp = array_merge($temp,$classes);
@ -1035,37 +1035,37 @@ abstract class CostbenefitprojectionHelper
*/
public static function xls($rows,$fileName = null,$title = null,$subjectTab = null,$creator = 'Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb',$description = null,$category = null,$keywords = null,$modified = null)
{
// [1552] set the user
// set the user
$user = JFactory::getUser();
// [1555] set fieldname if not set
// set fieldname if not set
if (!$fileName)
{
$fileName = 'exported_'.JFactory::getDate()->format('jS_F_Y');
}
// [1560] set modiefied if not set
// set modiefied if not set
if (!$modified)
{
$modified = $user->name;
}
// [1565] set title if not set
// set title if not set
if (!$title)
{
$title = 'Book1';
}
// [1570] set tab name if not set
// set tab name if not set
if (!$subjectTab)
{
$subjectTab = 'Sheet1';
}
// [1576] make sure the file is loaded
// make sure the file is loaded
JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers');
// [1579] Create new PHPExcel object
// Create new PHPExcel object
$objPHPExcel = new PHPExcel();
// [1582] Set document properties
// Set document properties
$objPHPExcel->getProperties()->setCreator($creator)
->setCompany('Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb')
->setLastModifiedBy($modified)
@ -1084,7 +1084,7 @@ abstract class CostbenefitprojectionHelper
$objPHPExcel->getProperties()->setCategory($category);
}
// [1601] Some styles
// Some styles
$headerStyles = array(
'font' => array(
'bold' => true,
@ -1106,7 +1106,7 @@ abstract class CostbenefitprojectionHelper
'name' => 'Verdana'
));
// [1623] Add some data
// Add some data
if (self::checkArray($rows))
{
$i = 1;
@ -1133,20 +1133,20 @@ abstract class CostbenefitprojectionHelper
return false;
}
// [1650] Rename worksheet
// Rename worksheet
$objPHPExcel->getActiveSheet()->setTitle($subjectTab);
// [1653] Set active sheet index to the first sheet, so Excel opens this as the first sheet
// Set active sheet index to the first sheet, so Excel opens this as the first sheet
$objPHPExcel->setActiveSheetIndex(0);
// [1656] Redirect output to a client's web browser (Excel5)
// Redirect output to a client's web browser (Excel5)
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="'.$fileName.'.xls"');
header('Cache-Control: max-age=0');
// [1660] If you're serving to IE 9, then the following may be needed
// If you're serving to IE 9, then the following may be needed
header('Cache-Control: max-age=1');
// [1663] If you're serving to IE over SSL, then the following may be needed
// If you're serving to IE over SSL, then the following may be needed
header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
header ('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); // always modified
header ('Cache-Control: cache, must-revalidate'); // HTTP/1.1
@ -1162,13 +1162,13 @@ abstract class CostbenefitprojectionHelper
*/
public static function getFileHeaders($dataType)
{
// [1679] make sure the file is loaded
// make sure the file is loaded
JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers');
// [1681] get session object
// get session object
$session = JFactory::getSession();
$package = $session->get('package', null);
$package = json_decode($package, true);
// [1685] set the headers
// set the headers
if(isset($package['dir']))
{
$inputFileType = PHPExcel_IOFactory::identify($package['dir']);
@ -1969,12 +1969,12 @@ abstract class CostbenefitprojectionHelper
{
if ('advanced' == $type)
{
// [1304] Get the global params
// Get the global params
$params = JComponentHelper::getParams('com_costbenefitprojection', true);
$advanced_key = $params->get('advanced_key', null);
if ($advanced_key)
{
// [1309] load the file
// load the file
JLoader::import( 'vdm', JPATH_COMPONENT_ADMINISTRATOR);
$the = new VDM($advanced_key);

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage batch_.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage sum.php
@ -89,7 +89,7 @@ class Sum
$removeArray = array(
'asset_id','not_required','published','created_by','country_created_by','country_created','country_version','country_hits','country_ordering',
'modified_by','country_asset_id','created','modified','version','hits','ordering','country_published','country_modified_by','country_modified',
'idCompanyScaling_factorC',$cKey.'CountryHealth_dataB',$cKey.'CountryHealth_dataBB','causesrisksIdCauseriskG','causesrisksIdCauseriskGG','idCompanyInterventionD');
'idCompanyScaling_factorC',$cKey.'CountryHealth_dataB',$cKey.'CountryHealth_dataBB','causesrisksIdCauseriskG','causesrisksIdCauseriskGG','idCompanyInterventionD','countryCountryInterventionDD','idCountryInterventionDD');
foreach ($jsonObjects as $jsonObject)
{
if (isset($this->company->$jsonObject) && CostbenefitprojectionHelper::isJson($this->company->$jsonObject))
@ -393,6 +393,42 @@ class Sum
}
}
}
elseif ($usecountry || (isset($this->company->{$cKey.'CountryInterventionDD'}) && CostbenefitprojectionHelper::checkArray($this->company->{$cKey.'CountryInterventionDD'})))
{
foreach ($this->company->{$cKey.'CountryInterventionDD'} as $key => $intervention)
{
$insterventionBucket[$key] = new stdClass();
foreach ($keepData as $keep)
{
$insterventionBucket[$key]->$keep = $intervention->$keep;
}
// load the most important part, the actual intervention data
$array = json_decode($intervention->intervention,true);
if (CostbenefitprojectionHelper::checkArray($array))
{
$insterventionBucket[$key]->data = array();
foreach ($array as $option => $values)
{
if (CostbenefitprojectionHelper::checkArray($values))
{
foreach ($values as $nr => $value)
{
if ('causerisk' == $option)
{
$insterventionBucket[$key]->data[$nr]['id'] = $value;
$insterventionBucket[$key]->data[$nr]['allias'] = CostbenefitprojectionHelper::getVar('causerisk', $value, 'id', 'alias');
}
else
{
// set values
$insterventionBucket[$key]->data[$nr][$option] = $value;
}
}
}
}
}
}
}
// set intervention to company data
$this->company->interventions = $insterventionBucket;
unset($insterventionBucket);

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage sumcombine.php

View File

@ -504,6 +504,7 @@ COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_HINT="10"
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTHCARE_LABEL="Default Healthcare Costs"
COM_COSTBENEFITPROJECTION_COUNTRY_HEALTH_DATA_TOTALS="Health Data Totals"
COM_COSTBENEFITPROJECTION_COUNTRY_ID="Id"
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_SELECT="Edit/Add"
@ -1059,6 +1060,9 @@ COM_COSTBENEFITPROJECTION_INTERVENTION_CLUSTER="Cluster"
COM_COSTBENEFITPROJECTION_INTERVENTION_COMPANY="Company"
COM_COSTBENEFITPROJECTION_INTERVENTION_COMPANY_LABEL="Company"
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_LABEL="Country"
COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE="Coverage"
COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE_DESCRIPTION="Proportion of employees covered"
COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE_LABEL="Coverage"
@ -1197,6 +1201,9 @@ COM_COSTBENEFITPROJECTION_SCALING_FACTOR_CAUSERISK="Causerisk"
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_COUNTRY="Country"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COUNTRY_DESCRIPTION="List of available countries"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COUNTRY_LABEL="Country"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_CREATED_BY_DESC="The user that created the Scaling Factor."
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_CREATED_BY_LABEL="Created by"
COM_COSTBENEFITPROJECTION_SCALING_FACTOR_CREATED_DATE_DESC="The date Scaling Factor was created."

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage batchselection.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_fullwidth.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_left.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_right.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_under.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions_fullwidth.php
@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->cfeinterventions;
$items = $displayData->zqbinterventions;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage scaling_factors_fullwidth.php
@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->vgascaling_factors;
$items = $displayData->xpxscaling_factors;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
@ -40,9 +40,6 @@ $edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=sc
<?php echo JText::_('COM_COSTBENEFITPROJECTION_SCALING_FACTOR_COMPANY_LABEL'); ?>
</th>
<th data-hide="phone">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_SCALING_FACTOR_REFERENCE_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_SCALING_FACTOR_YLD_SCALING_FACTOR_MALES_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
@ -51,7 +48,7 @@ $edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=sc
<th data-hide="phone,tablet">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_MALES_LABEL'); ?>
</th>
<th data-hide="all">
<th data-hide="phone,tablet">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_SCALING_FACTOR_MORTALITY_SCALING_FACTOR_FEMALES_LABEL'); ?>
</th>
<th data-hide="all">
@ -89,9 +86,6 @@ $edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=sc
<td>
<?php echo $displayData->escape($item->company_name); ?>
</td>
<td>
<?php echo $displayData->escape($item->reference); ?>
</td>
<td>
<?php echo $displayData->escape($item->yld_scaling_factor_males); ?>
</td>
@ -143,7 +137,7 @@ $edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=sc
</tbody>
<tfoot class="hide-if-no-paging">
<tr>
<td colspan="11">
<td colspan="10">
<div class="pagination pagination-centered"></div>
</td>
</tr>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_left.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage age_groups_percentages_right.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage causerisk_selection_fullwidth.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companies_fullwidth.php
@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->ahbcompanies;
$items = $displayData->wxrcompanies;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_totals_left.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage health_data_totals_right.php

View File

@ -0,0 +1,149 @@
<?php
/*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage interventions_fullwidth.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->byginterventions;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
$ref = ($id) ? "&ref=country&refid=".$id : "";
$new = "index.php?option=com_costbenefitprojection&view=intervention&layout=edit".$ref;
$can = CostbenefitprojectionHelper::getActions('intervention');
?>
<div class="form-vertical">
<?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 />
<?php endif; ?>
<?php if (CostbenefitprojectionHelper::checkArray($items)): ?>
<table class="footable table data interventions metro-blue" data-filter="#filter_interventions" data-page-size="20">
<thead>
<tr>
<th data-toggle="true">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_NAME_LABEL'); ?>
</th>
<th data-hide="phone">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_COMPANY_LABEL'); ?>
</th>
<th data-hide="phone">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_TYPE_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_DURATION_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_DESCRIPTION_LABEL'); ?>
</th>
<th width="10" data-hide="phone,tablet">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_STATUS'); ?>
</th>
<th width="5" data-type="numeric" data-hide="phone,tablet">
<?php echo JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_ID'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($items as $i => $item): ?>
<?php
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
$userChkOut = JFactory::getUser($item->checked_out);
$canDo = CostbenefitprojectionHelper::getActions('intervention',$item,'interventions');
?>
<tr>
<td class="nowrap">
<?php if ($canDo->get('intervention.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=country&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'interventions.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<div class="name"><?php echo $displayData->escape($item->name); ?></div>
<?php endif; ?>
</td>
<td class="nowrap">
<?php if ($user->authorise('company.edit', 'com_costbenefitprojection.company.' . (int)$item->company)): ?>
<a href="index.php?option=com_costbenefitprojection&view=companies&task=company.edit&id=<?php echo $item->company; ?>&ref=country&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->company_name); ?></a>
<?php else: ?>
<div class="name"><?php echo $displayData->escape($item->company_name); ?></div>
<?php endif; ?>
</td>
<td>
<?php echo JText::_($item->type); ?>
</td>
<td>
<?php echo $displayData->escape($item->coverage); ?>
</td>
<td>
<?php echo $displayData->escape($item->duration); ?>
</td>
<td>
<?php echo $displayData->escape($item->description); ?>
</td>
<?php if ($item->published == 1):?>
<td class="center" data-value="1">
<span class="status-metro status-published" title="<?php echo JText::_('PUBLISHED'); ?>">
<?php echo JText::_('PUBLISHED'); ?>
</span>
</td>
<?php elseif ($item->published == 0):?>
<td class="center" data-value="2">
<span class="status-metro status-inactive" title="<?php echo JText::_('INACTIVE'); ?>">
<?php echo JText::_('INACTIVE'); ?>
</span>
</td>
<?php elseif ($item->published == 2):?>
<td class="center" data-value="3">
<span class="status-metro status-archived" title="<?php echo JText::_('ARCHIVED'); ?>">
<?php echo JText::_('ARCHIVED'); ?>
</span>
</td>
<?php elseif ($item->published == -2):?>
<td class="center" data-value="4">
<span class="status-metro status-trashed" title="<?php echo JText::_('ARCHIVED'); ?>">
<?php echo JText::_('ARCHIVED'); ?>
</span>
</td>
<?php endif; ?>
<td class="nowrap center hidden-phone">
<?php echo $item->id; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot class="hide-if-no-paging">
<tr>
<td colspan="8">
<div class="pagination pagination-centered"></div>
</td>
</tr>
</tfoot>
</table>
<?php else: ?>
<div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div>
<?php endif; ?>
</div>

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage public_details_fullwidth.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage service_providers_fullwidth.php
@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->rljservice_providers;
$items = $displayData->tzvservice_providers;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit";

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_right.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_rightside.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publishing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage publlshing.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_fullwidth.php

View File

@ -3,8 +3,8 @@
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
@version 3.2.0
@build 12th January, 2016
@version 3.3.0
@build 14th January, 2016
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_left.php

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