Added Public List of Countries and Service Providers that can be contacted to create a free account on the system on the cPanel-Public page, other changes are only random var changes (due to automation)
This commit is contained in:
parent
dbc4caaadd
commit
137347bec0
@ -22,11 +22,11 @@ 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*: 1st December, 2015
|
||||
+ *Last Build*: 2nd December, 2015
|
||||
+ *Version*: 3.0.8
|
||||
+ *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*: **77995**
|
||||
+ *Line count*: **78133**
|
||||
+ *File count*: **528**
|
||||
+ *Folder count*: **99**
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage admin.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage causerisk.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage causesrisks.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage combinedresults.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage companies.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage company.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage companyresults.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage countries.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage country.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage currencies.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage currency.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage dashboard.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage health_data.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage health_data_sets.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage help_document.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage help_documents.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage intervention.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage interventions.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage scaling_factor.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage scaling_factors.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage service_provider.css
|
||||
|
@ -3,7 +3,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage service_providers.css
|
||||
|
@ -355,7 +355,7 @@
|
||||
multiple="true"
|
||||
/>
|
||||
|
||||
<!-- [11366] Memberbasicgroup Field. Type: Usergroup. (joomla) -->
|
||||
<!-- [11374] Memberbasicgroup Field. Type: Usergroup. (joomla) -->
|
||||
<field
|
||||
type="usergroup"
|
||||
name="memberbasicgroup"
|
||||
@ -363,7 +363,7 @@
|
||||
description="COM_COSTBENEFITPROJECTION_CONFIG_MEMBERBASICGROUP_DESCRIPTION"
|
||||
multiple="true"
|
||||
/>
|
||||
<!-- [11366] Advancedmembergroup Field. Type: Usergroup. (joomla) -->
|
||||
<!-- [11374] 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="">
|
||||
<!-- [13239] Option Set. -->
|
||||
<!-- [13247] 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="">
|
||||
<!-- [13264] Option Set. -->
|
||||
<!-- [13272] 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="">
|
||||
<!-- [13285] Option Set. -->
|
||||
<!-- [13293] 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" />
|
||||
<!-- [13317] Admin_chartbackground Field. Type: Color. -->
|
||||
<!-- [13325] 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"
|
||||
/>
|
||||
<!-- [13325] Admin_mainwidth Field. Type: Text. -->
|
||||
<!-- [13333] 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"
|
||||
/>
|
||||
<!-- [13338] Spacer_chartadmin_hr_a Field. Type: Spacer. A None Database Field. -->
|
||||
<!-- [13346] 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" />
|
||||
<!-- [13340] Admin_chartareatop Field. Type: Text. -->
|
||||
<!-- [13348] 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"
|
||||
/>
|
||||
<!-- [13353] Admin_chartarealeft Field. Type: Text. -->
|
||||
<!-- [13361] 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"
|
||||
/>
|
||||
<!-- [13366] Admin_chartareawidth Field. Type: Text. -->
|
||||
<!-- [13374] 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"
|
||||
/>
|
||||
<!-- [13379] Spacer_chartadmin_hr_b Field. Type: Spacer. A None Database Field. -->
|
||||
<!-- [13387] 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" />
|
||||
<!-- [13381] Admin_legendtextstylefontcolor Field. Type: Color. -->
|
||||
<!-- [13389] 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"
|
||||
/>
|
||||
<!-- [13389] Admin_legendtextstylefontsize Field. Type: Text. -->
|
||||
<!-- [13397] 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"
|
||||
/>
|
||||
<!-- [13402] Spacer_chartadmin_hr_c Field. Type: Spacer. A None Database Field. -->
|
||||
<!-- [13410] 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" />
|
||||
<!-- [13404] Admin_vaxistextstylefontcolor Field. Type: Color. -->
|
||||
<!-- [13412] 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"
|
||||
/>
|
||||
<!-- [13412] Spacer_chartadmin_hr_d Field. Type: Spacer. A None Database Field. -->
|
||||
<!-- [13420] 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" />
|
||||
<!-- [13414] Admin_haxistextstylefontcolor Field. Type: Color. -->
|
||||
<!-- [13422] 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"
|
||||
/>
|
||||
<!-- [13422] Admin_haxistitletextstylefontcolor Field. Type: Color. -->
|
||||
<!-- [13430] 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" />
|
||||
|
||||
<!-- [13433] Site_chartbackground Field. Type: Color. -->
|
||||
<!-- [13441] 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"
|
||||
/>
|
||||
<!-- [13441] Site_mainwidth Field. Type: Text. -->
|
||||
<!-- [13449] 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"
|
||||
/>
|
||||
<!-- [13454] Spacer_chartsite_hr_a Field. Type: Spacer. A None Database Field. -->
|
||||
<!-- [13462] 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" />
|
||||
<!-- [13456] Site_chartareatop Field. Type: Text. -->
|
||||
<!-- [13464] 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"
|
||||
/>
|
||||
<!-- [13469] Site_chartarealeft Field. Type: Text. -->
|
||||
<!-- [13477] 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"
|
||||
/>
|
||||
<!-- [13482] Site_chartareawidth Field. Type: Text. -->
|
||||
<!-- [13490] 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"
|
||||
/>
|
||||
<!-- [13495] Spacer_chartsite_hr_b Field. Type: Spacer. A None Database Field. -->
|
||||
<!-- [13503] 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" />
|
||||
<!-- [13497] Site_legendtextstylefontcolor Field. Type: Color. -->
|
||||
<!-- [13505] 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"
|
||||
/>
|
||||
<!-- [13505] Site_legendtextstylefontsize Field. Type: Text. -->
|
||||
<!-- [13513] 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"
|
||||
/>
|
||||
<!-- [13518] Spacer_chartsite_hr_c Field. Type: Spacer. A None Database Field. -->
|
||||
<!-- [13526] 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" />
|
||||
<!-- [13520] Site_vaxistextstylefontcolor Field. Type: Color. -->
|
||||
<!-- [13528] 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"
|
||||
/>
|
||||
<!-- [13528] Spacer_chartsite_hr_d Field. Type: Spacer. A None Database Field. -->
|
||||
<!-- [13536] 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" />
|
||||
<!-- [13530] Site_haxistextstylefontcolor Field. Type: Color. -->
|
||||
<!-- [13538] 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"
|
||||
/>
|
||||
<!-- [13538] Site_haxistitletextstylefontcolor Field. Type: Color. -->
|
||||
<!-- [13546] Site_haxistitletextstylefontcolor Field. Type: Color. -->
|
||||
<field
|
||||
type="color"
|
||||
name="site_haxistitletextstylefontcolor"
|
||||
@ -669,7 +669,7 @@
|
||||
default=""
|
||||
/>
|
||||
|
||||
<!-- [11366] Resultpath Field. Type: Text. (joomla) -->
|
||||
<!-- [11374] Resultpath Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="resultpath"
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage controller.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage ajax.json.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage causerisk.php
|
||||
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerCauserisk extends JControllerForm
|
||||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9319] Access check.
|
||||
// [9327] Access check.
|
||||
$access = JFactory::getUser()->authorise('causerisk.access', 'com_costbenefitprojection');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9330] In the absense of better information, revert to the component permissions.
|
||||
// [9338] 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')
|
||||
{
|
||||
// [9473] get user object.
|
||||
// [9481] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9475] get record id.
|
||||
// [9483] get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// [9482] Access check.
|
||||
// [9490] 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)
|
||||
{
|
||||
// [9491] The record has been set. Check the record permissions.
|
||||
// [9499] 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))
|
||||
{
|
||||
// [9513] Now test the owner is the user.
|
||||
// [9521] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9517] Need to do a lookup from the model.
|
||||
// [9525] 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;
|
||||
}
|
||||
|
||||
// [9525] If the owner matches 'me' then allow.
|
||||
// [9533] 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;
|
||||
}
|
||||
}
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
// [9555] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('causerisk.edit', $this->option);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage causesrisks.php
|
||||
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerCausesrisks extends JControllerAdmin
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// [7269] Check for request forgeries
|
||||
// [7277] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7271] check if export is allowed for this user.
|
||||
// [7279] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('causerisk.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7275] Get the input
|
||||
// [7283] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7278] Sanitize the input
|
||||
// [7286] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7280] Get the model
|
||||
// [7288] Get the model
|
||||
$model = $this->getModel('Causesrisks');
|
||||
// [7282] get the data to export
|
||||
// [7290] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (CostbenefitprojectionHelper::checkArray($data))
|
||||
{
|
||||
// [7286] now set the data to the spreadsheet
|
||||
// [7294] 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');
|
||||
}
|
||||
}
|
||||
// [7291] Redirect to the list screen with error.
|
||||
// [7299] 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()
|
||||
{
|
||||
// [7300] Check for request forgeries
|
||||
// [7308] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7302] check if import is allowed for this user.
|
||||
// [7310] check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('causerisk.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7306] Get the import model
|
||||
// [7314] Get the import model
|
||||
$model = $this->getModel('Causesrisks');
|
||||
// [7308] get the headers to import
|
||||
// [7316] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (CostbenefitprojectionHelper::checkObject($headers))
|
||||
{
|
||||
// [7312] Load headers to session.
|
||||
// [7320] 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');
|
||||
// [7318] Redirect to import view.
|
||||
// [7326] 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;
|
||||
}
|
||||
}
|
||||
// [7330] Redirect to the list screen with error.
|
||||
// [7338] 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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage combinedresults.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage companies.php
|
||||
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerCompanies extends JControllerAdmin
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// [7269] Check for request forgeries
|
||||
// [7277] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7271] check if export is allowed for this user.
|
||||
// [7279] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('company.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7275] Get the input
|
||||
// [7283] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7278] Sanitize the input
|
||||
// [7286] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7280] Get the model
|
||||
// [7288] Get the model
|
||||
$model = $this->getModel('Companies');
|
||||
// [7282] get the data to export
|
||||
// [7290] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (CostbenefitprojectionHelper::checkArray($data))
|
||||
{
|
||||
// [7286] now set the data to the spreadsheet
|
||||
// [7294] 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');
|
||||
}
|
||||
}
|
||||
// [7291] Redirect to the list screen with error.
|
||||
// [7299] 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()
|
||||
{
|
||||
// [7300] Check for request forgeries
|
||||
// [7308] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7302] check if import is allowed for this user.
|
||||
// [7310] check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('company.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7306] Get the import model
|
||||
// [7314] Get the import model
|
||||
$model = $this->getModel('Companies');
|
||||
// [7308] get the headers to import
|
||||
// [7316] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (CostbenefitprojectionHelper::checkObject($headers))
|
||||
{
|
||||
// [7312] Load headers to session.
|
||||
// [7320] 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');
|
||||
// [7318] Redirect to import view.
|
||||
// [7326] 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;
|
||||
}
|
||||
}
|
||||
// [7330] Redirect to the list screen with error.
|
||||
// [7338] 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()
|
||||
{
|
||||
// [7141] Check for request forgeries
|
||||
// [7149] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7143] check if export is allowed for this user.
|
||||
// [7151] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('combinedresults.access', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7147] Get the input
|
||||
// [7155] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7150] Sanitize the input
|
||||
// [7158] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7152] convert to string
|
||||
// [7160] convert to string
|
||||
$ids = implode('_', $pks);
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=combinedresults&cid='.$ids, false));
|
||||
return;
|
||||
}
|
||||
// [7157] Redirect to the list screen with error.
|
||||
// [7165] 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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage company.php
|
||||
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerCompany extends JControllerForm
|
||||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9319] Access check.
|
||||
// [9327] Access check.
|
||||
$access = JFactory::getUser()->authorise('company.access', 'com_costbenefitprojection');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9330] In the absense of better information, revert to the component permissions.
|
||||
// [9338] 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')
|
||||
{
|
||||
// [9473] get user object.
|
||||
// [9481] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9475] get record id.
|
||||
// [9483] 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;
|
||||
}
|
||||
|
||||
// [9482] Access check.
|
||||
// [9490] 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)
|
||||
{
|
||||
// [9491] The record has been set. Check the record permissions.
|
||||
// [9499] 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))
|
||||
{
|
||||
// [9513] Now test the owner is the user.
|
||||
// [9521] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9517] Need to do a lookup from the model.
|
||||
// [9525] 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;
|
||||
}
|
||||
|
||||
// [9525] If the owner matches 'me' then allow.
|
||||
// [9533] 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;
|
||||
}
|
||||
}
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
// [9555] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('company.edit', $this->option);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage companyresults.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage costbenefitprojection.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage countries.php
|
||||
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerCountries extends JControllerAdmin
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// [7269] Check for request forgeries
|
||||
// [7277] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7271] check if export is allowed for this user.
|
||||
// [7279] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('country.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7275] Get the input
|
||||
// [7283] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7278] Sanitize the input
|
||||
// [7286] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7280] Get the model
|
||||
// [7288] Get the model
|
||||
$model = $this->getModel('Countries');
|
||||
// [7282] get the data to export
|
||||
// [7290] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (CostbenefitprojectionHelper::checkArray($data))
|
||||
{
|
||||
// [7286] now set the data to the spreadsheet
|
||||
// [7294] 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');
|
||||
}
|
||||
}
|
||||
// [7291] Redirect to the list screen with error.
|
||||
// [7299] 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()
|
||||
{
|
||||
// [7300] Check for request forgeries
|
||||
// [7308] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7302] check if import is allowed for this user.
|
||||
// [7310] check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('country.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7306] Get the import model
|
||||
// [7314] Get the import model
|
||||
$model = $this->getModel('Countries');
|
||||
// [7308] get the headers to import
|
||||
// [7316] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (CostbenefitprojectionHelper::checkObject($headers))
|
||||
{
|
||||
// [7312] Load headers to session.
|
||||
// [7320] 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');
|
||||
// [7318] Redirect to import view.
|
||||
// [7326] 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;
|
||||
}
|
||||
}
|
||||
// [7330] Redirect to the list screen with error.
|
||||
// [7338] 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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage country.php
|
||||
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerCountry extends JControllerForm
|
||||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9319] Access check.
|
||||
// [9327] Access check.
|
||||
$access = JFactory::getUser()->authorise('country.access', 'com_costbenefitprojection');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9330] In the absense of better information, revert to the component permissions.
|
||||
// [9338] 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')
|
||||
{
|
||||
// [9473] get user object.
|
||||
// [9481] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9475] get record id.
|
||||
// [9483] 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
|
||||
}
|
||||
}
|
||||
|
||||
// [9482] Access check.
|
||||
// [9490] 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)
|
||||
{
|
||||
// [9491] The record has been set. Check the record permissions.
|
||||
// [9499] 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))
|
||||
{
|
||||
// [9513] Now test the owner is the user.
|
||||
// [9521] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9517] Need to do a lookup from the model.
|
||||
// [9525] 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;
|
||||
}
|
||||
|
||||
// [9525] If the owner matches 'me' then allow.
|
||||
// [9533] 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;
|
||||
}
|
||||
}
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
// [9555] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('country.edit', $this->option);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage currencies.php
|
||||
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerCurrencies extends JControllerAdmin
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// [7269] Check for request forgeries
|
||||
// [7277] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7271] check if export is allowed for this user.
|
||||
// [7279] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('currency.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7275] Get the input
|
||||
// [7283] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7278] Sanitize the input
|
||||
// [7286] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7280] Get the model
|
||||
// [7288] Get the model
|
||||
$model = $this->getModel('Currencies');
|
||||
// [7282] get the data to export
|
||||
// [7290] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (CostbenefitprojectionHelper::checkArray($data))
|
||||
{
|
||||
// [7286] now set the data to the spreadsheet
|
||||
// [7294] 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');
|
||||
}
|
||||
}
|
||||
// [7291] Redirect to the list screen with error.
|
||||
// [7299] 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()
|
||||
{
|
||||
// [7300] Check for request forgeries
|
||||
// [7308] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7302] check if import is allowed for this user.
|
||||
// [7310] check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('currency.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7306] Get the import model
|
||||
// [7314] Get the import model
|
||||
$model = $this->getModel('Currencies');
|
||||
// [7308] get the headers to import
|
||||
// [7316] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (CostbenefitprojectionHelper::checkObject($headers))
|
||||
{
|
||||
// [7312] Load headers to session.
|
||||
// [7320] 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');
|
||||
// [7318] Redirect to import view.
|
||||
// [7326] 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;
|
||||
}
|
||||
}
|
||||
// [7330] Redirect to the list screen with error.
|
||||
// [7338] 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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage currency.php
|
||||
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerCurrency extends JControllerForm
|
||||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9319] Access check.
|
||||
// [9327] Access check.
|
||||
$access = JFactory::getUser()->authorise('currency.access', 'com_costbenefitprojection');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9330] In the absense of better information, revert to the component permissions.
|
||||
// [9338] 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')
|
||||
{
|
||||
// [9473] get user object.
|
||||
// [9481] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9475] get record id.
|
||||
// [9483] get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// [9482] Access check.
|
||||
// [9490] 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)
|
||||
{
|
||||
// [9491] The record has been set. Check the record permissions.
|
||||
// [9499] 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))
|
||||
{
|
||||
// [9513] Now test the owner is the user.
|
||||
// [9521] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9517] Need to do a lookup from the model.
|
||||
// [9525] 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;
|
||||
}
|
||||
|
||||
// [9525] If the owner matches 'me' then allow.
|
||||
// [9533] 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;
|
||||
}
|
||||
}
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
// [9555] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('currency.edit', $this->option);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@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())
|
||||
{
|
||||
// [9319] Access check.
|
||||
// [9327] Access check.
|
||||
$access = JFactory::getUser()->authorise('health_data.access', 'com_costbenefitprojection');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9330] In the absense of better information, revert to the component permissions.
|
||||
// [9338] 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')
|
||||
{
|
||||
// [9473] get user object.
|
||||
// [9481] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9475] get record id.
|
||||
// [9483] 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
|
||||
}
|
||||
}
|
||||
|
||||
// [9482] Access check.
|
||||
// [9490] 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)
|
||||
{
|
||||
// [9491] The record has been set. Check the record permissions.
|
||||
// [9499] 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))
|
||||
{
|
||||
// [9513] Now test the owner is the user.
|
||||
// [9521] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9517] Need to do a lookup from the model.
|
||||
// [9525] 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;
|
||||
}
|
||||
|
||||
// [9525] If the owner matches 'me' then allow.
|
||||
// [9533] 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;
|
||||
}
|
||||
}
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
// [9555] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('health_data.edit', $this->option);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@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()
|
||||
{
|
||||
// [7269] Check for request forgeries
|
||||
// [7277] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7271] check if export is allowed for this user.
|
||||
// [7279] 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'))
|
||||
{
|
||||
// [7275] Get the input
|
||||
// [7283] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7278] Sanitize the input
|
||||
// [7286] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7280] Get the model
|
||||
// [7288] Get the model
|
||||
$model = $this->getModel('Health_data_sets');
|
||||
// [7282] get the data to export
|
||||
// [7290] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (CostbenefitprojectionHelper::checkArray($data))
|
||||
{
|
||||
// [7286] now set the data to the spreadsheet
|
||||
// [7294] 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');
|
||||
}
|
||||
}
|
||||
// [7291] Redirect to the list screen with error.
|
||||
// [7299] 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()
|
||||
{
|
||||
// [7300] Check for request forgeries
|
||||
// [7308] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7302] check if import is allowed for this user.
|
||||
// [7310] 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'))
|
||||
{
|
||||
// [7306] Get the import model
|
||||
// [7314] Get the import model
|
||||
$model = $this->getModel('Health_data_sets');
|
||||
// [7308] get the headers to import
|
||||
// [7316] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (CostbenefitprojectionHelper::checkObject($headers))
|
||||
{
|
||||
// [7312] Load headers to session.
|
||||
// [7320] 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');
|
||||
// [7318] Redirect to import view.
|
||||
// [7326] 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;
|
||||
}
|
||||
}
|
||||
// [7330] Redirect to the list screen with error.
|
||||
// [7338] 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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage help.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@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())
|
||||
{
|
||||
// [9319] Access check.
|
||||
// [9327] Access check.
|
||||
$access = JFactory::getUser()->authorise('help_document.access', 'com_costbenefitprojection');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9330] In the absense of better information, revert to the component permissions.
|
||||
// [9338] 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')
|
||||
{
|
||||
// [9473] get user object.
|
||||
// [9481] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9475] get record id.
|
||||
// [9483] get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// [9482] Access check.
|
||||
// [9490] 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)
|
||||
{
|
||||
// [9491] The record has been set. Check the record permissions.
|
||||
// [9499] 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))
|
||||
{
|
||||
// [9513] Now test the owner is the user.
|
||||
// [9521] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9517] Need to do a lookup from the model.
|
||||
// [9525] 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;
|
||||
}
|
||||
|
||||
// [9525] If the owner matches 'me' then allow.
|
||||
// [9533] 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;
|
||||
}
|
||||
}
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
// [9555] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('help_document.edit', $this->option);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage help_documents.php
|
||||
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerHelp_documents extends JControllerAdmin
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// [7269] Check for request forgeries
|
||||
// [7277] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7271] check if export is allowed for this user.
|
||||
// [7279] 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'))
|
||||
{
|
||||
// [7275] Get the input
|
||||
// [7283] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7278] Sanitize the input
|
||||
// [7286] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7280] Get the model
|
||||
// [7288] Get the model
|
||||
$model = $this->getModel('Help_documents');
|
||||
// [7282] get the data to export
|
||||
// [7290] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (CostbenefitprojectionHelper::checkArray($data))
|
||||
{
|
||||
// [7286] now set the data to the spreadsheet
|
||||
// [7294] 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');
|
||||
}
|
||||
}
|
||||
// [7291] Redirect to the list screen with error.
|
||||
// [7299] 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()
|
||||
{
|
||||
// [7300] Check for request forgeries
|
||||
// [7308] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7302] check if import is allowed for this user.
|
||||
// [7310] 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'))
|
||||
{
|
||||
// [7306] Get the import model
|
||||
// [7314] Get the import model
|
||||
$model = $this->getModel('Help_documents');
|
||||
// [7308] get the headers to import
|
||||
// [7316] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (CostbenefitprojectionHelper::checkObject($headers))
|
||||
{
|
||||
// [7312] Load headers to session.
|
||||
// [7320] 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');
|
||||
// [7318] Redirect to import view.
|
||||
// [7326] 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;
|
||||
}
|
||||
}
|
||||
// [7330] Redirect to the list screen with error.
|
||||
// [7338] 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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage import.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage intervention.php
|
||||
@ -54,13 +54,13 @@ class CostbenefitprojectionControllerIntervention extends JControllerForm
|
||||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9319] Access check.
|
||||
// [9327] Access check.
|
||||
$access = JFactory::getUser()->authorise('intervention.access', 'com_costbenefitprojection');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9330] In the absense of better information, revert to the component permissions.
|
||||
// [9338] 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')
|
||||
{
|
||||
// [9473] get user object.
|
||||
// [9481] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9475] get record id.
|
||||
// [9483] 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;
|
||||
}
|
||||
|
||||
// [9482] Access check.
|
||||
// [9490] 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)
|
||||
{
|
||||
// [9491] The record has been set. Check the record permissions.
|
||||
// [9499] 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))
|
||||
{
|
||||
// [9513] Now test the owner is the user.
|
||||
// [9521] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9517] Need to do a lookup from the model.
|
||||
// [9525] 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;
|
||||
}
|
||||
|
||||
// [9525] If the owner matches 'me' then allow.
|
||||
// [9533] 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;
|
||||
}
|
||||
}
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
// [9555] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('intervention.edit', $this->option);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage interventions.php
|
||||
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerInterventions extends JControllerAdmin
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// [7269] Check for request forgeries
|
||||
// [7277] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7271] check if export is allowed for this user.
|
||||
// [7279] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('intervention.export', 'com_costbenefitprojection') && $user->authorise('core.export', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7275] Get the input
|
||||
// [7283] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7278] Sanitize the input
|
||||
// [7286] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7280] Get the model
|
||||
// [7288] Get the model
|
||||
$model = $this->getModel('Interventions');
|
||||
// [7282] get the data to export
|
||||
// [7290] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (CostbenefitprojectionHelper::checkArray($data))
|
||||
{
|
||||
// [7286] now set the data to the spreadsheet
|
||||
// [7294] 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');
|
||||
}
|
||||
}
|
||||
// [7291] Redirect to the list screen with error.
|
||||
// [7299] 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()
|
||||
{
|
||||
// [7300] Check for request forgeries
|
||||
// [7308] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7302] check if import is allowed for this user.
|
||||
// [7310] check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('intervention.import', 'com_costbenefitprojection') && $user->authorise('core.import', 'com_costbenefitprojection'))
|
||||
{
|
||||
// [7306] Get the import model
|
||||
// [7314] Get the import model
|
||||
$model = $this->getModel('Interventions');
|
||||
// [7308] get the headers to import
|
||||
// [7316] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (CostbenefitprojectionHelper::checkObject($headers))
|
||||
{
|
||||
// [7312] Load headers to session.
|
||||
// [7320] 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');
|
||||
// [7318] Redirect to import view.
|
||||
// [7326] 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;
|
||||
}
|
||||
}
|
||||
// [7330] Redirect to the list screen with error.
|
||||
// [7338] 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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@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())
|
||||
{
|
||||
// [9319] Access check.
|
||||
// [9327] Access check.
|
||||
$access = JFactory::getUser()->authorise('scaling_factor.access', 'com_costbenefitprojection');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9330] In the absense of better information, revert to the component permissions.
|
||||
// [9338] 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')
|
||||
{
|
||||
// [9473] get user object.
|
||||
// [9481] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9475] get record id.
|
||||
// [9483] 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
|
||||
}
|
||||
}
|
||||
|
||||
// [9482] Access check.
|
||||
// [9490] 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)
|
||||
{
|
||||
// [9491] The record has been set. Check the record permissions.
|
||||
// [9499] 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))
|
||||
{
|
||||
// [9513] Now test the owner is the user.
|
||||
// [9521] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9517] Need to do a lookup from the model.
|
||||
// [9525] 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;
|
||||
}
|
||||
|
||||
// [9525] If the owner matches 'me' then allow.
|
||||
// [9533] 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;
|
||||
}
|
||||
}
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
// [9555] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('scaling_factor.edit', $this->option);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage scaling_factors.php
|
||||
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerScaling_factors extends JControllerAdmin
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// [7269] Check for request forgeries
|
||||
// [7277] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7271] check if export is allowed for this user.
|
||||
// [7279] 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'))
|
||||
{
|
||||
// [7275] Get the input
|
||||
// [7283] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7278] Sanitize the input
|
||||
// [7286] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7280] Get the model
|
||||
// [7288] Get the model
|
||||
$model = $this->getModel('Scaling_factors');
|
||||
// [7282] get the data to export
|
||||
// [7290] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (CostbenefitprojectionHelper::checkArray($data))
|
||||
{
|
||||
// [7286] now set the data to the spreadsheet
|
||||
// [7294] 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');
|
||||
}
|
||||
}
|
||||
// [7291] Redirect to the list screen with error.
|
||||
// [7299] 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()
|
||||
{
|
||||
// [7300] Check for request forgeries
|
||||
// [7308] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7302] check if import is allowed for this user.
|
||||
// [7310] 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'))
|
||||
{
|
||||
// [7306] Get the import model
|
||||
// [7314] Get the import model
|
||||
$model = $this->getModel('Scaling_factors');
|
||||
// [7308] get the headers to import
|
||||
// [7316] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (CostbenefitprojectionHelper::checkObject($headers))
|
||||
{
|
||||
// [7312] Load headers to session.
|
||||
// [7320] 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');
|
||||
// [7318] Redirect to import view.
|
||||
// [7326] 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;
|
||||
}
|
||||
}
|
||||
// [7330] Redirect to the list screen with error.
|
||||
// [7338] 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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@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())
|
||||
{
|
||||
// [9319] Access check.
|
||||
// [9327] Access check.
|
||||
$access = JFactory::getUser()->authorise('service_provider.access', 'com_costbenefitprojection');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9330] In the absense of better information, revert to the component permissions.
|
||||
// [9338] 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')
|
||||
{
|
||||
// [9473] get user object.
|
||||
// [9481] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9475] get record id.
|
||||
// [9483] 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
|
||||
}
|
||||
}
|
||||
|
||||
// [9482] Access check.
|
||||
// [9490] 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)
|
||||
{
|
||||
// [9491] The record has been set. Check the record permissions.
|
||||
// [9499] 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))
|
||||
{
|
||||
// [9513] Now test the owner is the user.
|
||||
// [9521] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9517] Need to do a lookup from the model.
|
||||
// [9525] 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;
|
||||
}
|
||||
|
||||
// [9525] If the owner matches 'me' then allow.
|
||||
// [9533] 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;
|
||||
}
|
||||
}
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
// [9555] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('service_provider.edit', $this->option);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage service_providers.php
|
||||
@ -42,29 +42,29 @@ class CostbenefitprojectionControllerService_providers extends JControllerAdmin
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// [7269] Check for request forgeries
|
||||
// [7277] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7271] check if export is allowed for this user.
|
||||
// [7279] 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'))
|
||||
{
|
||||
// [7275] Get the input
|
||||
// [7283] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7278] Sanitize the input
|
||||
// [7286] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7280] Get the model
|
||||
// [7288] Get the model
|
||||
$model = $this->getModel('Service_providers');
|
||||
// [7282] get the data to export
|
||||
// [7290] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (CostbenefitprojectionHelper::checkArray($data))
|
||||
{
|
||||
// [7286] now set the data to the spreadsheet
|
||||
// [7294] 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');
|
||||
}
|
||||
}
|
||||
// [7291] Redirect to the list screen with error.
|
||||
// [7299] 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()
|
||||
{
|
||||
// [7300] Check for request forgeries
|
||||
// [7308] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7302] check if import is allowed for this user.
|
||||
// [7310] 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'))
|
||||
{
|
||||
// [7306] Get the import model
|
||||
// [7314] Get the import model
|
||||
$model = $this->getModel('Service_providers');
|
||||
// [7308] get the headers to import
|
||||
// [7316] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (CostbenefitprojectionHelper::checkObject($headers))
|
||||
{
|
||||
// [7312] Load headers to session.
|
||||
// [7320] 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');
|
||||
// [7318] Redirect to import view.
|
||||
// [7326] 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;
|
||||
}
|
||||
}
|
||||
// [7330] Redirect to the list screen with error.
|
||||
// [7338] 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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage costbenefitprojection.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage costbenefitprojection.php
|
||||
@ -976,7 +976,7 @@ abstract class CostbenefitprojectionHelper
|
||||
{
|
||||
if (strpos($content,'class="uk-') !== false)
|
||||
{
|
||||
// [2597] reset
|
||||
// [2605] reset
|
||||
$temp = array();
|
||||
foreach (self::$uk_components as $looking => $add)
|
||||
{
|
||||
@ -985,15 +985,15 @@ abstract class CostbenefitprojectionHelper
|
||||
$temp[] = $looking;
|
||||
}
|
||||
}
|
||||
// [2606] make sure uikit is loaded to config
|
||||
// [2614] make sure uikit is loaded to config
|
||||
if (strpos($content,'class="uk-') !== false)
|
||||
{
|
||||
self::$uikit = true;
|
||||
}
|
||||
// [2611] sorter
|
||||
// [2619] sorter
|
||||
if (self::checkArray($temp))
|
||||
{
|
||||
// [2614] merger
|
||||
// [2622] merger
|
||||
if (self::checkArray($classes))
|
||||
{
|
||||
$newTemp = array_merge($temp,$classes);
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage batch_.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage sum.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage sumcombine.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage batchselection.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_above.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publishing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publlshing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage age_groups_percentages_fullwidth.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage age_groups_percentages_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage age_groups_percentages_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage causerisk_selection_fullwidth.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_above.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_under.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@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->obuinterventions;
|
||||
$items = $displayData->ljeinterventions;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publishing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publlshing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@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->qwjscaling_factors;
|
||||
$items = $displayData->oabscaling_factors;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage age_groups_percentages_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage age_groups_percentages_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage causerisk_selection_fullwidth.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@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->ywucompanies;
|
||||
$items = $displayData->yqdcompanies;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_above.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage health_data_totals_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage health_data_totals_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage public_details_fullwidth.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publishing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publlshing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@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->gmeservice_providers;
|
||||
$items = $displayData->hhiservice_providers;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit";
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_above.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publishing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publlshing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_above.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_rightside.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publishing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage publlshing.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_above.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_left.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_right.php
|
||||
|
@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 3.0.8
|
||||
@build 1st December, 2015
|
||||
@build 2nd December, 2015
|
||||
@created 15th June, 2012
|
||||
@package Cost Benefit Projection
|
||||
@subpackage details_under.php
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user