48 lines
1.7 KiB
PHP
48 lines
1.7 KiB
PHP
<?php
|
|
/*----------------------------------------------------------------------------------| www.giz.de |----/
|
|
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
|
|
@version 3.4.x
|
|
@build 12th June, 2019
|
|
@created 15th June, 2012
|
|
@package Cost Benefit Projection
|
|
@subpackage details_right.php
|
|
@author Llewellyn van der Merwe <http://www.vdm.io>
|
|
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
Cost Benefit Projection Tool.
|
|
/------------------------------------------------------------------------------------------------------*/
|
|
|
|
// No direct access to this file
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
$form = $displayData->getForm();
|
|
|
|
$fields = $displayData->get('fields') ?: array(
|
|
'working_days',
|
|
'total_salary',
|
|
'total_healthcare',
|
|
'productivity_losses',
|
|
'males',
|
|
'females',
|
|
'medical_turnovers_males',
|
|
'medical_turnovers_females',
|
|
'turnover_comment',
|
|
'sick_leave_males',
|
|
'sick_leave_females'
|
|
);
|
|
|
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
|
|
|
?>
|
|
<?php foreach($fields as $field): ?>
|
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
|
<?php endif; ?>
|
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
|
<?php endforeach; ?>
|