Changed to readme file, other changes are only random var changes (due to automation)
This commit is contained in:
parent
a26b4ebb63
commit
dbc4caaadd
@ -10,6 +10,12 @@ Having seen the health priorities for your workforce, the tool outputs projectio
|
|||||||
|
|
||||||
Benefits are calculated based on the model projecting reductions in workdays lost due to sickness, presenteeism and death.
|
Benefits are calculated based on the model projecting reductions in workdays lost due to sickness, presenteeism and death.
|
||||||
|
|
||||||
|
# Requirements
|
||||||
|
|
||||||
|
Due to the size of the permissional structure, you will need to increase max_input_vars until the permissions are able to save.
|
||||||
|
```
|
||||||
|
max_input_vars = 5000
|
||||||
|
```
|
||||||
# Build Details
|
# Build Details
|
||||||
|
|
||||||
+ *Company*: [Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb] (https://www.staffhealthcbp.com/)
|
+ *Company*: [Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb] (https://www.staffhealthcbp.com/)
|
||||||
@ -20,7 +26,7 @@ Benefits are calculated based on the model projecting reductions in workdays los
|
|||||||
+ *Version*: 3.0.8
|
+ *Version*: 3.0.8
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
+ *Line count*: **77989**
|
+ *Line count*: **77995**
|
||||||
+ *File count*: **528**
|
+ *File count*: **528**
|
||||||
+ *Folder count*: **99**
|
+ *Folder count*: **99**
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->qhdinterventions;
|
$items = $displayData->obuinterventions;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
|
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->tpmscaling_factors;
|
$items = $displayData->qwjscaling_factors;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
|
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->iaacompanies;
|
$items = $displayData->ywucompanies;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
|
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->zpqservice_providers;
|
$items = $displayData->gmeservice_providers;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit";
|
$edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit";
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->rfvcompanies;
|
$items = $displayData->uvzcompanies;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
|
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";
|
||||||
|
@ -154,8 +154,8 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.company');
|
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.company');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->companymjgp = $item->id;
|
$this->companytgip = $item->id;
|
||||||
$this->companyosda = $item->id;
|
$this->companypqjv = $item->id;
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
@ -165,7 +165,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getTpmscaling_factors()
|
public function getQwjscaling_factors()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [6945] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
@ -204,15 +204,15 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
$query->select($db->quoteName('h.name','company_name'));
|
$query->select($db->quoteName('h.name','company_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'h') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('h.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'h') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('h.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by companymjgp global.
|
// [6973] Filter by companytgip global.
|
||||||
$companymjgp = $this->companymjgp;
|
$companytgip = $this->companytgip;
|
||||||
if (is_numeric($companymjgp ))
|
if (is_numeric($companytgip ))
|
||||||
{
|
{
|
||||||
$query->where('a.company = ' . (int) $companymjgp );
|
$query->where('a.company = ' . (int) $companytgip );
|
||||||
}
|
}
|
||||||
elseif (is_string($companymjgp))
|
elseif (is_string($companytgip))
|
||||||
{
|
{
|
||||||
$query->where('a.company = ' . $db->quote($companymjgp));
|
$query->where('a.company = ' . $db->quote($companytgip));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -255,7 +255,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getQhdinterventions()
|
public function getObuinterventions()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [6945] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
@ -290,15 +290,15 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
$query->select($db->quoteName('g.name','company_name'));
|
$query->select($db->quoteName('g.name','company_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by companyosda global.
|
// [6973] Filter by companypqjv global.
|
||||||
$companyosda = $this->companyosda;
|
$companypqjv = $this->companypqjv;
|
||||||
if (is_numeric($companyosda ))
|
if (is_numeric($companypqjv ))
|
||||||
{
|
{
|
||||||
$query->where('a.company = ' . (int) $companyosda );
|
$query->where('a.company = ' . (int) $companypqjv );
|
||||||
}
|
}
|
||||||
elseif (is_string($companyosda))
|
elseif (is_string($companypqjv))
|
||||||
{
|
{
|
||||||
$query->where('a.company = ' . $db->quote($companyosda));
|
$query->where('a.company = ' . $db->quote($companypqjv));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -351,7 +351,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
// [10884] convert type
|
// [10884] convert type
|
||||||
$item->type = $this->selectionTranslationQhdinterventions($item->type, 'type');
|
$item->type = $this->selectionTranslationObuinterventions($item->type, 'type');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,7 +365,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return translatable string
|
* @return translatable string
|
||||||
*/
|
*/
|
||||||
public function selectionTranslationQhdinterventions($value,$name)
|
public function selectionTranslationObuinterventions($value,$name)
|
||||||
{
|
{
|
||||||
// [10910] Array of type language strings
|
// [10910] Array of type language strings
|
||||||
if ($name == 'type')
|
if ($name == 'type')
|
||||||
|
@ -101,8 +101,8 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
|
|||||||
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.country');
|
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.country');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->countryejzr = $item->id;
|
$this->countrycfxe = $item->id;
|
||||||
$this->countryigpl = $item->id;
|
$this->countryuagu = $item->id;
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
@ -112,7 +112,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getZpqservice_providers()
|
public function getGmeservice_providers()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [6945] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
@ -151,15 +151,15 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
|
|||||||
$query->select($db->quoteName('h.name','country_name'));
|
$query->select($db->quoteName('h.name','country_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_country', 'h') . ' ON (' . $db->quoteName('a.country') . ' = ' . $db->quoteName('h.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_country', 'h') . ' ON (' . $db->quoteName('a.country') . ' = ' . $db->quoteName('h.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by countryejzr global.
|
// [6973] Filter by countrycfxe global.
|
||||||
$countryejzr = $this->countryejzr;
|
$countrycfxe = $this->countrycfxe;
|
||||||
if (is_numeric($countryejzr ))
|
if (is_numeric($countrycfxe ))
|
||||||
{
|
{
|
||||||
$query->where('a.country = ' . (int) $countryejzr );
|
$query->where('a.country = ' . (int) $countrycfxe );
|
||||||
}
|
}
|
||||||
elseif (is_string($countryejzr))
|
elseif (is_string($countrycfxe))
|
||||||
{
|
{
|
||||||
$query->where('a.country = ' . $db->quote($countryejzr));
|
$query->where('a.country = ' . $db->quote($countrycfxe));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -202,7 +202,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getIaacompanies()
|
public function getYwucompanies()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [6945] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
@ -245,15 +245,15 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
|
|||||||
$query->select($db->quoteName('i.user','serviceprovider_user'));
|
$query->select($db->quoteName('i.user','serviceprovider_user'));
|
||||||
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.serviceprovider') . ' = ' . $db->quoteName('i.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.serviceprovider') . ' = ' . $db->quoteName('i.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by countryigpl global.
|
// [6973] Filter by countryuagu global.
|
||||||
$countryigpl = $this->countryigpl;
|
$countryuagu = $this->countryuagu;
|
||||||
if (is_numeric($countryigpl ))
|
if (is_numeric($countryuagu ))
|
||||||
{
|
{
|
||||||
$query->where('a.country = ' . (int) $countryigpl );
|
$query->where('a.country = ' . (int) $countryuagu );
|
||||||
}
|
}
|
||||||
elseif (is_string($countryigpl))
|
elseif (is_string($countryuagu))
|
||||||
{
|
{
|
||||||
$query->where('a.country = ' . $db->quote($countryigpl));
|
$query->where('a.country = ' . $db->quote($countryuagu));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -308,9 +308,9 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
|
|||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
// [10884] convert department
|
// [10884] convert department
|
||||||
$item->department = $this->selectionTranslationIaacompanies($item->department, 'department');
|
$item->department = $this->selectionTranslationYwucompanies($item->department, 'department');
|
||||||
// [10884] convert per
|
// [10884] convert per
|
||||||
$item->per = $this->selectionTranslationIaacompanies($item->per, 'per');
|
$item->per = $this->selectionTranslationYwucompanies($item->per, 'per');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -324,7 +324,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return translatable string
|
* @return translatable string
|
||||||
*/
|
*/
|
||||||
public function selectionTranslationIaacompanies($value,$name)
|
public function selectionTranslationYwucompanies($value,$name)
|
||||||
{
|
{
|
||||||
// [10910] Array of department language strings
|
// [10910] Array of department language strings
|
||||||
if ($name == 'department')
|
if ($name == 'department')
|
||||||
|
@ -17,178 +17,178 @@
|
|||||||
/------------------------------------------------------------------------------------------------------*/
|
/------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_tvbJQGaZoN_required = false;
|
jform_ZxcgApLdfm_required = false;
|
||||||
jform_tvbJQGabaz_required = false;
|
jform_ZxcgApLHuF_required = false;
|
||||||
jform_tvbJQGaGLC_required = false;
|
jform_ZxcgApLlPf_required = false;
|
||||||
jform_tvbJQGamKo_required = false;
|
jform_ZxcgApLldq_required = false;
|
||||||
jform_tvbJQGabLy_required = false;
|
jform_ZxcgApLHZV_required = false;
|
||||||
jform_tvbJQGawmE_required = false;
|
jform_ZxcgApLAim_required = false;
|
||||||
jform_tvbJQGaHqH_required = false;
|
jform_ZxcgApLXqL_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var department_tvbJQGa = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_ZxcgApL = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
tvbJQGa(department_tvbJQGa);
|
ZxcgApL(department_ZxcgApL);
|
||||||
|
|
||||||
var department_KxieanM = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_rhEqLHv = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
KxieanM(department_KxieanM);
|
rhEqLHv(department_rhEqLHv);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the tvbJQGa function
|
// the ZxcgApL function
|
||||||
function tvbJQGa(department_tvbJQGa)
|
function ZxcgApL(department_ZxcgApL)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (department_tvbJQGa == 2)
|
if (department_ZxcgApL == 2)
|
||||||
{
|
{
|
||||||
jQuery('#jform_causesrisks').closest('.control-group').show();
|
jQuery('#jform_causesrisks').closest('.control-group').show();
|
||||||
if (jform_tvbJQGaZoN_required)
|
if (jform_ZxcgApLdfm_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('causesrisks',0);
|
updateFieldRequired('causesrisks',0);
|
||||||
jQuery('#jform_causesrisks').prop('required','required');
|
jQuery('#jform_causesrisks').prop('required','required');
|
||||||
jQuery('#jform_causesrisks').attr('aria-required',true);
|
jQuery('#jform_causesrisks').attr('aria-required',true);
|
||||||
jQuery('#jform_causesrisks').addClass('required');
|
jQuery('#jform_causesrisks').addClass('required');
|
||||||
jform_tvbJQGaZoN_required = false;
|
jform_ZxcgApLdfm_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_percentfemale').closest('.control-group').show();
|
jQuery('#jform_percentfemale').closest('.control-group').show();
|
||||||
jQuery('#jform_percentmale').closest('.control-group').show();
|
jQuery('#jform_percentmale').closest('.control-group').show();
|
||||||
jQuery('#jform_productivity_losses').closest('.control-group').show();
|
jQuery('#jform_productivity_losses').closest('.control-group').show();
|
||||||
if (jform_tvbJQGabaz_required)
|
if (jform_ZxcgApLHuF_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('productivity_losses',0);
|
updateFieldRequired('productivity_losses',0);
|
||||||
jQuery('#jform_productivity_losses').prop('required','required');
|
jQuery('#jform_productivity_losses').prop('required','required');
|
||||||
jQuery('#jform_productivity_losses').attr('aria-required',true);
|
jQuery('#jform_productivity_losses').attr('aria-required',true);
|
||||||
jQuery('#jform_productivity_losses').addClass('required');
|
jQuery('#jform_productivity_losses').addClass('required');
|
||||||
jform_tvbJQGabaz_required = false;
|
jform_ZxcgApLHuF_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_medical_turnovers_females').closest('.control-group').show();
|
jQuery('#jform_medical_turnovers_females').closest('.control-group').show();
|
||||||
if (jform_tvbJQGaGLC_required)
|
if (jform_ZxcgApLlPf_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('medical_turnovers_females',0);
|
updateFieldRequired('medical_turnovers_females',0);
|
||||||
jQuery('#jform_medical_turnovers_females').prop('required','required');
|
jQuery('#jform_medical_turnovers_females').prop('required','required');
|
||||||
jQuery('#jform_medical_turnovers_females').attr('aria-required',true);
|
jQuery('#jform_medical_turnovers_females').attr('aria-required',true);
|
||||||
jQuery('#jform_medical_turnovers_females').addClass('required');
|
jQuery('#jform_medical_turnovers_females').addClass('required');
|
||||||
jform_tvbJQGaGLC_required = false;
|
jform_ZxcgApLlPf_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_medical_turnovers_males').closest('.control-group').show();
|
jQuery('#jform_medical_turnovers_males').closest('.control-group').show();
|
||||||
if (jform_tvbJQGamKo_required)
|
if (jform_ZxcgApLldq_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('medical_turnovers_males',0);
|
updateFieldRequired('medical_turnovers_males',0);
|
||||||
jQuery('#jform_medical_turnovers_males').prop('required','required');
|
jQuery('#jform_medical_turnovers_males').prop('required','required');
|
||||||
jQuery('#jform_medical_turnovers_males').attr('aria-required',true);
|
jQuery('#jform_medical_turnovers_males').attr('aria-required',true);
|
||||||
jQuery('#jform_medical_turnovers_males').addClass('required');
|
jQuery('#jform_medical_turnovers_males').addClass('required');
|
||||||
jform_tvbJQGamKo_required = false;
|
jform_ZxcgApLldq_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_sick_leave_females').closest('.control-group').show();
|
jQuery('#jform_sick_leave_females').closest('.control-group').show();
|
||||||
if (jform_tvbJQGabLy_required)
|
if (jform_ZxcgApLHZV_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('sick_leave_females',0);
|
updateFieldRequired('sick_leave_females',0);
|
||||||
jQuery('#jform_sick_leave_females').prop('required','required');
|
jQuery('#jform_sick_leave_females').prop('required','required');
|
||||||
jQuery('#jform_sick_leave_females').attr('aria-required',true);
|
jQuery('#jform_sick_leave_females').attr('aria-required',true);
|
||||||
jQuery('#jform_sick_leave_females').addClass('required');
|
jQuery('#jform_sick_leave_females').addClass('required');
|
||||||
jform_tvbJQGabLy_required = false;
|
jform_ZxcgApLHZV_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_sick_leave_males').closest('.control-group').show();
|
jQuery('#jform_sick_leave_males').closest('.control-group').show();
|
||||||
if (jform_tvbJQGawmE_required)
|
if (jform_ZxcgApLAim_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('sick_leave_males',0);
|
updateFieldRequired('sick_leave_males',0);
|
||||||
jQuery('#jform_sick_leave_males').prop('required','required');
|
jQuery('#jform_sick_leave_males').prop('required','required');
|
||||||
jQuery('#jform_sick_leave_males').attr('aria-required',true);
|
jQuery('#jform_sick_leave_males').attr('aria-required',true);
|
||||||
jQuery('#jform_sick_leave_males').addClass('required');
|
jQuery('#jform_sick_leave_males').addClass('required');
|
||||||
jform_tvbJQGawmE_required = false;
|
jform_ZxcgApLAim_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_total_healthcare').closest('.control-group').show();
|
jQuery('#jform_total_healthcare').closest('.control-group').show();
|
||||||
if (jform_tvbJQGaHqH_required)
|
if (jform_ZxcgApLXqL_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('total_healthcare',0);
|
updateFieldRequired('total_healthcare',0);
|
||||||
jQuery('#jform_total_healthcare').prop('required','required');
|
jQuery('#jform_total_healthcare').prop('required','required');
|
||||||
jQuery('#jform_total_healthcare').attr('aria-required',true);
|
jQuery('#jform_total_healthcare').attr('aria-required',true);
|
||||||
jQuery('#jform_total_healthcare').addClass('required');
|
jQuery('#jform_total_healthcare').addClass('required');
|
||||||
jform_tvbJQGaHqH_required = false;
|
jform_ZxcgApLXqL_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_causesrisks').closest('.control-group').hide();
|
jQuery('#jform_causesrisks').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGaZoN_required)
|
if (!jform_ZxcgApLdfm_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('causesrisks',1);
|
updateFieldRequired('causesrisks',1);
|
||||||
jQuery('#jform_causesrisks').removeAttr('required');
|
jQuery('#jform_causesrisks').removeAttr('required');
|
||||||
jQuery('#jform_causesrisks').removeAttr('aria-required');
|
jQuery('#jform_causesrisks').removeAttr('aria-required');
|
||||||
jQuery('#jform_causesrisks').removeClass('required');
|
jQuery('#jform_causesrisks').removeClass('required');
|
||||||
jform_tvbJQGaZoN_required = true;
|
jform_ZxcgApLdfm_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_percentfemale').closest('.control-group').hide();
|
jQuery('#jform_percentfemale').closest('.control-group').hide();
|
||||||
jQuery('#jform_percentmale').closest('.control-group').hide();
|
jQuery('#jform_percentmale').closest('.control-group').hide();
|
||||||
jQuery('#jform_productivity_losses').closest('.control-group').hide();
|
jQuery('#jform_productivity_losses').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGabaz_required)
|
if (!jform_ZxcgApLHuF_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('productivity_losses',1);
|
updateFieldRequired('productivity_losses',1);
|
||||||
jQuery('#jform_productivity_losses').removeAttr('required');
|
jQuery('#jform_productivity_losses').removeAttr('required');
|
||||||
jQuery('#jform_productivity_losses').removeAttr('aria-required');
|
jQuery('#jform_productivity_losses').removeAttr('aria-required');
|
||||||
jQuery('#jform_productivity_losses').removeClass('required');
|
jQuery('#jform_productivity_losses').removeClass('required');
|
||||||
jform_tvbJQGabaz_required = true;
|
jform_ZxcgApLHuF_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_medical_turnovers_females').closest('.control-group').hide();
|
jQuery('#jform_medical_turnovers_females').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGaGLC_required)
|
if (!jform_ZxcgApLlPf_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('medical_turnovers_females',1);
|
updateFieldRequired('medical_turnovers_females',1);
|
||||||
jQuery('#jform_medical_turnovers_females').removeAttr('required');
|
jQuery('#jform_medical_turnovers_females').removeAttr('required');
|
||||||
jQuery('#jform_medical_turnovers_females').removeAttr('aria-required');
|
jQuery('#jform_medical_turnovers_females').removeAttr('aria-required');
|
||||||
jQuery('#jform_medical_turnovers_females').removeClass('required');
|
jQuery('#jform_medical_turnovers_females').removeClass('required');
|
||||||
jform_tvbJQGaGLC_required = true;
|
jform_ZxcgApLlPf_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_medical_turnovers_males').closest('.control-group').hide();
|
jQuery('#jform_medical_turnovers_males').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGamKo_required)
|
if (!jform_ZxcgApLldq_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('medical_turnovers_males',1);
|
updateFieldRequired('medical_turnovers_males',1);
|
||||||
jQuery('#jform_medical_turnovers_males').removeAttr('required');
|
jQuery('#jform_medical_turnovers_males').removeAttr('required');
|
||||||
jQuery('#jform_medical_turnovers_males').removeAttr('aria-required');
|
jQuery('#jform_medical_turnovers_males').removeAttr('aria-required');
|
||||||
jQuery('#jform_medical_turnovers_males').removeClass('required');
|
jQuery('#jform_medical_turnovers_males').removeClass('required');
|
||||||
jform_tvbJQGamKo_required = true;
|
jform_ZxcgApLldq_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_sick_leave_females').closest('.control-group').hide();
|
jQuery('#jform_sick_leave_females').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGabLy_required)
|
if (!jform_ZxcgApLHZV_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('sick_leave_females',1);
|
updateFieldRequired('sick_leave_females',1);
|
||||||
jQuery('#jform_sick_leave_females').removeAttr('required');
|
jQuery('#jform_sick_leave_females').removeAttr('required');
|
||||||
jQuery('#jform_sick_leave_females').removeAttr('aria-required');
|
jQuery('#jform_sick_leave_females').removeAttr('aria-required');
|
||||||
jQuery('#jform_sick_leave_females').removeClass('required');
|
jQuery('#jform_sick_leave_females').removeClass('required');
|
||||||
jform_tvbJQGabLy_required = true;
|
jform_ZxcgApLHZV_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_sick_leave_males').closest('.control-group').hide();
|
jQuery('#jform_sick_leave_males').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGawmE_required)
|
if (!jform_ZxcgApLAim_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('sick_leave_males',1);
|
updateFieldRequired('sick_leave_males',1);
|
||||||
jQuery('#jform_sick_leave_males').removeAttr('required');
|
jQuery('#jform_sick_leave_males').removeAttr('required');
|
||||||
jQuery('#jform_sick_leave_males').removeAttr('aria-required');
|
jQuery('#jform_sick_leave_males').removeAttr('aria-required');
|
||||||
jQuery('#jform_sick_leave_males').removeClass('required');
|
jQuery('#jform_sick_leave_males').removeClass('required');
|
||||||
jform_tvbJQGawmE_required = true;
|
jform_ZxcgApLAim_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_total_healthcare').closest('.control-group').hide();
|
jQuery('#jform_total_healthcare').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGaHqH_required)
|
if (!jform_ZxcgApLXqL_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('total_healthcare',1);
|
updateFieldRequired('total_healthcare',1);
|
||||||
jQuery('#jform_total_healthcare').removeAttr('required');
|
jQuery('#jform_total_healthcare').removeAttr('required');
|
||||||
jQuery('#jform_total_healthcare').removeAttr('aria-required');
|
jQuery('#jform_total_healthcare').removeAttr('aria-required');
|
||||||
jQuery('#jform_total_healthcare').removeClass('required');
|
jQuery('#jform_total_healthcare').removeClass('required');
|
||||||
jform_tvbJQGaHqH_required = true;
|
jform_ZxcgApLXqL_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the KxieanM function
|
// the rhEqLHv function
|
||||||
function KxieanM(department_KxieanM)
|
function rhEqLHv(department_rhEqLHv)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (department_KxieanM == 1)
|
if (department_rhEqLHv == 1)
|
||||||
{
|
{
|
||||||
jQuery('.age_groups_note').closest('.control-group').show();
|
jQuery('.age_groups_note').closest('.control-group').show();
|
||||||
jQuery('.cause_risk_selection_note').closest('.control-group').show();
|
jQuery('.cause_risk_selection_note').closest('.control-group').show();
|
||||||
|
@ -17,38 +17,38 @@
|
|||||||
/------------------------------------------------------------------------------------------------------*/
|
/------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_NyyUdhGVEZ_required = false;
|
jform_GNSempCdHk_required = false;
|
||||||
jform_pmvIgHONIS_required = false;
|
jform_btpFKYzVNQ_required = false;
|
||||||
jform_EaIzsbhXes_required = false;
|
jform_kYXZiqcCXv_required = false;
|
||||||
jform_jRYBNcOmXz_required = false;
|
jform_fKlWJFrnET_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var location_KVbOrVT = jQuery("#jform_location input[type='radio']:checked").val();
|
var location_qNlskgN = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
KVbOrVT(location_KVbOrVT);
|
qNlskgN(location_qNlskgN);
|
||||||
|
|
||||||
var location_snHFbml = jQuery("#jform_location input[type='radio']:checked").val();
|
var location_ksdmMsB = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
snHFbml(location_snHFbml);
|
ksdmMsB(location_ksdmMsB);
|
||||||
|
|
||||||
var type_NyyUdhG = jQuery("#jform_type").val();
|
var type_GNSempC = jQuery("#jform_type").val();
|
||||||
NyyUdhG(type_NyyUdhG);
|
GNSempC(type_GNSempC);
|
||||||
|
|
||||||
var type_pmvIgHO = jQuery("#jform_type").val();
|
var type_btpFKYz = jQuery("#jform_type").val();
|
||||||
pmvIgHO(type_pmvIgHO);
|
btpFKYz(type_btpFKYz);
|
||||||
|
|
||||||
var type_EaIzsbh = jQuery("#jform_type").val();
|
var type_kYXZiqc = jQuery("#jform_type").val();
|
||||||
EaIzsbh(type_EaIzsbh);
|
kYXZiqc(type_kYXZiqc);
|
||||||
|
|
||||||
var target_jRYBNcO = jQuery("#jform_target input[type='radio']:checked").val();
|
var target_fKlWJFr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||||
jRYBNcO(target_jRYBNcO);
|
fKlWJFr(target_fKlWJFr);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the KVbOrVT function
|
// the qNlskgN function
|
||||||
function KVbOrVT(location_KVbOrVT)
|
function qNlskgN(location_qNlskgN)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (location_KVbOrVT == 1)
|
if (location_qNlskgN == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||||
}
|
}
|
||||||
@ -58,11 +58,11 @@ function KVbOrVT(location_KVbOrVT)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the snHFbml function
|
// the ksdmMsB function
|
||||||
function snHFbml(location_snHFbml)
|
function ksdmMsB(location_ksdmMsB)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (location_snHFbml == 2)
|
if (location_ksdmMsB == 2)
|
||||||
{
|
{
|
||||||
jQuery('#jform_site_view').closest('.control-group').show();
|
jQuery('#jform_site_view').closest('.control-group').show();
|
||||||
}
|
}
|
||||||
@ -72,198 +72,198 @@ function snHFbml(location_snHFbml)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the NyyUdhG function
|
// the GNSempC function
|
||||||
function NyyUdhG(type_NyyUdhG)
|
function GNSempC(type_GNSempC)
|
||||||
{
|
{
|
||||||
if (isSet(type_NyyUdhG) && type_NyyUdhG.constructor !== Array)
|
if (isSet(type_GNSempC) && type_GNSempC.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_NyyUdhG = type_NyyUdhG;
|
var temp_GNSempC = type_GNSempC;
|
||||||
var type_NyyUdhG = [];
|
var type_GNSempC = [];
|
||||||
type_NyyUdhG.push(temp_NyyUdhG);
|
type_GNSempC.push(temp_GNSempC);
|
||||||
}
|
}
|
||||||
else if (!isSet(type_NyyUdhG))
|
else if (!isSet(type_GNSempC))
|
||||||
{
|
{
|
||||||
var type_NyyUdhG = [];
|
var type_GNSempC = [];
|
||||||
}
|
}
|
||||||
var type = type_NyyUdhG.some(type_NyyUdhG_SomeFunc);
|
var type = type_GNSempC.some(type_GNSempC_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [7986] set this function logic
|
||||||
if (type)
|
if (type)
|
||||||
{
|
{
|
||||||
jQuery('#jform_url').closest('.control-group').show();
|
jQuery('#jform_url').closest('.control-group').show();
|
||||||
if (jform_NyyUdhGVEZ_required)
|
if (jform_GNSempCdHk_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('url',0);
|
updateFieldRequired('url',0);
|
||||||
jQuery('#jform_url').prop('required','required');
|
jQuery('#jform_url').prop('required','required');
|
||||||
jQuery('#jform_url').attr('aria-required',true);
|
jQuery('#jform_url').attr('aria-required',true);
|
||||||
jQuery('#jform_url').addClass('required');
|
jQuery('#jform_url').addClass('required');
|
||||||
jform_NyyUdhGVEZ_required = false;
|
jform_GNSempCdHk_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_url').closest('.control-group').hide();
|
jQuery('#jform_url').closest('.control-group').hide();
|
||||||
if (!jform_NyyUdhGVEZ_required)
|
if (!jform_GNSempCdHk_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('url',1);
|
updateFieldRequired('url',1);
|
||||||
jQuery('#jform_url').removeAttr('required');
|
jQuery('#jform_url').removeAttr('required');
|
||||||
jQuery('#jform_url').removeAttr('aria-required');
|
jQuery('#jform_url').removeAttr('aria-required');
|
||||||
jQuery('#jform_url').removeClass('required');
|
jQuery('#jform_url').removeClass('required');
|
||||||
jform_NyyUdhGVEZ_required = true;
|
jform_GNSempCdHk_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the NyyUdhG Some function
|
// the GNSempC Some function
|
||||||
function type_NyyUdhG_SomeFunc(type_NyyUdhG)
|
function type_GNSempC_SomeFunc(type_GNSempC)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [7973] set the function logic
|
||||||
if (type_NyyUdhG == 3)
|
if (type_GNSempC == 3)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the pmvIgHO function
|
// the btpFKYz function
|
||||||
function pmvIgHO(type_pmvIgHO)
|
function btpFKYz(type_btpFKYz)
|
||||||
{
|
{
|
||||||
if (isSet(type_pmvIgHO) && type_pmvIgHO.constructor !== Array)
|
if (isSet(type_btpFKYz) && type_btpFKYz.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_pmvIgHO = type_pmvIgHO;
|
var temp_btpFKYz = type_btpFKYz;
|
||||||
var type_pmvIgHO = [];
|
var type_btpFKYz = [];
|
||||||
type_pmvIgHO.push(temp_pmvIgHO);
|
type_btpFKYz.push(temp_btpFKYz);
|
||||||
}
|
}
|
||||||
else if (!isSet(type_pmvIgHO))
|
else if (!isSet(type_btpFKYz))
|
||||||
{
|
{
|
||||||
var type_pmvIgHO = [];
|
var type_btpFKYz = [];
|
||||||
}
|
}
|
||||||
var type = type_pmvIgHO.some(type_pmvIgHO_SomeFunc);
|
var type = type_btpFKYz.some(type_btpFKYz_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [7986] set this function logic
|
||||||
if (type)
|
if (type)
|
||||||
{
|
{
|
||||||
jQuery('#jform_article').closest('.control-group').show();
|
jQuery('#jform_article').closest('.control-group').show();
|
||||||
if (jform_pmvIgHONIS_required)
|
if (jform_btpFKYzVNQ_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('article',0);
|
updateFieldRequired('article',0);
|
||||||
jQuery('#jform_article').prop('required','required');
|
jQuery('#jform_article').prop('required','required');
|
||||||
jQuery('#jform_article').attr('aria-required',true);
|
jQuery('#jform_article').attr('aria-required',true);
|
||||||
jQuery('#jform_article').addClass('required');
|
jQuery('#jform_article').addClass('required');
|
||||||
jform_pmvIgHONIS_required = false;
|
jform_btpFKYzVNQ_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_article').closest('.control-group').hide();
|
jQuery('#jform_article').closest('.control-group').hide();
|
||||||
if (!jform_pmvIgHONIS_required)
|
if (!jform_btpFKYzVNQ_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('article',1);
|
updateFieldRequired('article',1);
|
||||||
jQuery('#jform_article').removeAttr('required');
|
jQuery('#jform_article').removeAttr('required');
|
||||||
jQuery('#jform_article').removeAttr('aria-required');
|
jQuery('#jform_article').removeAttr('aria-required');
|
||||||
jQuery('#jform_article').removeClass('required');
|
jQuery('#jform_article').removeClass('required');
|
||||||
jform_pmvIgHONIS_required = true;
|
jform_btpFKYzVNQ_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the pmvIgHO Some function
|
// the btpFKYz Some function
|
||||||
function type_pmvIgHO_SomeFunc(type_pmvIgHO)
|
function type_btpFKYz_SomeFunc(type_btpFKYz)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [7973] set the function logic
|
||||||
if (type_pmvIgHO == 1)
|
if (type_btpFKYz == 1)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the EaIzsbh function
|
// the kYXZiqc function
|
||||||
function EaIzsbh(type_EaIzsbh)
|
function kYXZiqc(type_kYXZiqc)
|
||||||
{
|
{
|
||||||
if (isSet(type_EaIzsbh) && type_EaIzsbh.constructor !== Array)
|
if (isSet(type_kYXZiqc) && type_kYXZiqc.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_EaIzsbh = type_EaIzsbh;
|
var temp_kYXZiqc = type_kYXZiqc;
|
||||||
var type_EaIzsbh = [];
|
var type_kYXZiqc = [];
|
||||||
type_EaIzsbh.push(temp_EaIzsbh);
|
type_kYXZiqc.push(temp_kYXZiqc);
|
||||||
}
|
}
|
||||||
else if (!isSet(type_EaIzsbh))
|
else if (!isSet(type_kYXZiqc))
|
||||||
{
|
{
|
||||||
var type_EaIzsbh = [];
|
var type_kYXZiqc = [];
|
||||||
}
|
}
|
||||||
var type = type_EaIzsbh.some(type_EaIzsbh_SomeFunc);
|
var type = type_kYXZiqc.some(type_kYXZiqc_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [7986] set this function logic
|
||||||
if (type)
|
if (type)
|
||||||
{
|
{
|
||||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||||
if (jform_EaIzsbhXes_required)
|
if (jform_kYXZiqcCXv_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('content',0);
|
updateFieldRequired('content',0);
|
||||||
jQuery('#jform_content').prop('required','required');
|
jQuery('#jform_content').prop('required','required');
|
||||||
jQuery('#jform_content').attr('aria-required',true);
|
jQuery('#jform_content').attr('aria-required',true);
|
||||||
jQuery('#jform_content').addClass('required');
|
jQuery('#jform_content').addClass('required');
|
||||||
jform_EaIzsbhXes_required = false;
|
jform_kYXZiqcCXv_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||||
if (!jform_EaIzsbhXes_required)
|
if (!jform_kYXZiqcCXv_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('content',1);
|
updateFieldRequired('content',1);
|
||||||
jQuery('#jform_content').removeAttr('required');
|
jQuery('#jform_content').removeAttr('required');
|
||||||
jQuery('#jform_content').removeAttr('aria-required');
|
jQuery('#jform_content').removeAttr('aria-required');
|
||||||
jQuery('#jform_content').removeClass('required');
|
jQuery('#jform_content').removeClass('required');
|
||||||
jform_EaIzsbhXes_required = true;
|
jform_kYXZiqcCXv_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the EaIzsbh Some function
|
// the kYXZiqc Some function
|
||||||
function type_EaIzsbh_SomeFunc(type_EaIzsbh)
|
function type_kYXZiqc_SomeFunc(type_kYXZiqc)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [7973] set the function logic
|
||||||
if (type_EaIzsbh == 2)
|
if (type_kYXZiqc == 2)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the jRYBNcO function
|
// the fKlWJFr function
|
||||||
function jRYBNcO(target_jRYBNcO)
|
function fKlWJFr(target_fKlWJFr)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (target_jRYBNcO == 1)
|
if (target_fKlWJFr == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_groups').closest('.control-group').show();
|
jQuery('#jform_groups').closest('.control-group').show();
|
||||||
if (jform_jRYBNcOmXz_required)
|
if (jform_fKlWJFrnET_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('groups',0);
|
updateFieldRequired('groups',0);
|
||||||
jQuery('#jform_groups').prop('required','required');
|
jQuery('#jform_groups').prop('required','required');
|
||||||
jQuery('#jform_groups').attr('aria-required',true);
|
jQuery('#jform_groups').attr('aria-required',true);
|
||||||
jQuery('#jform_groups').addClass('required');
|
jQuery('#jform_groups').addClass('required');
|
||||||
jform_jRYBNcOmXz_required = false;
|
jform_fKlWJFrnET_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_groups').closest('.control-group').hide();
|
jQuery('#jform_groups').closest('.control-group').hide();
|
||||||
if (!jform_jRYBNcOmXz_required)
|
if (!jform_fKlWJFrnET_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('groups',1);
|
updateFieldRequired('groups',1);
|
||||||
jQuery('#jform_groups').removeAttr('required');
|
jQuery('#jform_groups').removeAttr('required');
|
||||||
jQuery('#jform_groups').removeAttr('aria-required');
|
jQuery('#jform_groups').removeAttr('aria-required');
|
||||||
jQuery('#jform_groups').removeClass('required');
|
jQuery('#jform_groups').removeClass('required');
|
||||||
jform_jRYBNcOmXz_required = true;
|
jform_fKlWJFrnET_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,54 +17,54 @@
|
|||||||
/------------------------------------------------------------------------------------------------------*/
|
/------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_NqgeyPGPCt_required = false;
|
jform_YwksxEqNkO_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var type_NqgeyPG = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_YwksxEq = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
NqgeyPG(type_NqgeyPG);
|
YwksxEq(type_YwksxEq);
|
||||||
|
|
||||||
var type_oEwwRnj = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_XJhCuBT = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
oEwwRnj(type_oEwwRnj);
|
XJhCuBT(type_XJhCuBT);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the NqgeyPG function
|
// the YwksxEq function
|
||||||
function NqgeyPG(type_NqgeyPG)
|
function YwksxEq(type_YwksxEq)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (type_NqgeyPG == 2)
|
if (type_YwksxEq == 2)
|
||||||
{
|
{
|
||||||
jQuery('#jform_interventions').closest('.control-group').show();
|
jQuery('#jform_interventions').closest('.control-group').show();
|
||||||
if (jform_NqgeyPGPCt_required)
|
if (jform_YwksxEqNkO_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('interventions',0);
|
updateFieldRequired('interventions',0);
|
||||||
jQuery('#jform_interventions').prop('required','required');
|
jQuery('#jform_interventions').prop('required','required');
|
||||||
jQuery('#jform_interventions').attr('aria-required',true);
|
jQuery('#jform_interventions').attr('aria-required',true);
|
||||||
jQuery('#jform_interventions').addClass('required');
|
jQuery('#jform_interventions').addClass('required');
|
||||||
jform_NqgeyPGPCt_required = false;
|
jform_YwksxEqNkO_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_interventions').closest('.control-group').hide();
|
jQuery('#jform_interventions').closest('.control-group').hide();
|
||||||
if (!jform_NqgeyPGPCt_required)
|
if (!jform_YwksxEqNkO_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('interventions',1);
|
updateFieldRequired('interventions',1);
|
||||||
jQuery('#jform_interventions').removeAttr('required');
|
jQuery('#jform_interventions').removeAttr('required');
|
||||||
jQuery('#jform_interventions').removeAttr('aria-required');
|
jQuery('#jform_interventions').removeAttr('aria-required');
|
||||||
jQuery('#jform_interventions').removeClass('required');
|
jQuery('#jform_interventions').removeClass('required');
|
||||||
jform_NqgeyPGPCt_required = true;
|
jform_YwksxEqNkO_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the oEwwRnj function
|
// the XJhCuBT function
|
||||||
function oEwwRnj(type_oEwwRnj)
|
function XJhCuBT(type_XJhCuBT)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (type_oEwwRnj == 1)
|
if (type_XJhCuBT == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_intervention').closest('.control-group').show();
|
jQuery('#jform_intervention').closest('.control-group').show();
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
|
|||||||
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.service_provider');
|
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.service_provider');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->serviceproviderieag = $item->id;
|
$this->serviceproviderodiy = $item->id;
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getRfvcompanies()
|
public function getUvzcompanies()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [6945] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
@ -148,15 +148,15 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
|
|||||||
$query->select($db->quoteName('i.user','serviceprovider_user'));
|
$query->select($db->quoteName('i.user','serviceprovider_user'));
|
||||||
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.serviceprovider') . ' = ' . $db->quoteName('i.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.serviceprovider') . ' = ' . $db->quoteName('i.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by serviceproviderieag global.
|
// [6973] Filter by serviceproviderodiy global.
|
||||||
$serviceproviderieag = $this->serviceproviderieag;
|
$serviceproviderodiy = $this->serviceproviderodiy;
|
||||||
if (is_numeric($serviceproviderieag ))
|
if (is_numeric($serviceproviderodiy ))
|
||||||
{
|
{
|
||||||
$query->where('a.serviceprovider = ' . (int) $serviceproviderieag );
|
$query->where('a.serviceprovider = ' . (int) $serviceproviderodiy );
|
||||||
}
|
}
|
||||||
elseif (is_string($serviceproviderieag))
|
elseif (is_string($serviceproviderodiy))
|
||||||
{
|
{
|
||||||
$query->where('a.serviceprovider = ' . $db->quote($serviceproviderieag));
|
$query->where('a.serviceprovider = ' . $db->quote($serviceproviderodiy));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -211,9 +211,9 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
|
|||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
// [10884] convert department
|
// [10884] convert department
|
||||||
$item->department = $this->selectionTranslationRfvcompanies($item->department, 'department');
|
$item->department = $this->selectionTranslationUvzcompanies($item->department, 'department');
|
||||||
// [10884] convert per
|
// [10884] convert per
|
||||||
$item->per = $this->selectionTranslationRfvcompanies($item->per, 'per');
|
$item->per = $this->selectionTranslationUvzcompanies($item->per, 'per');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return translatable string
|
* @return translatable string
|
||||||
*/
|
*/
|
||||||
public function selectionTranslationRfvcompanies($value,$name)
|
public function selectionTranslationUvzcompanies($value,$name)
|
||||||
{
|
{
|
||||||
// [10910] Array of department language strings
|
// [10910] Array of department language strings
|
||||||
if ($name == 'department')
|
if ($name == 'department')
|
||||||
|
@ -135,33 +135,33 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
// #jform_department listeners for department_tvbJQGa function
|
// #jform_department listeners for department_ZxcgApL function
|
||||||
jQuery('#jform_department').on('keyup',function()
|
jQuery('#jform_department').on('keyup',function()
|
||||||
{
|
{
|
||||||
var department_tvbJQGa = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_ZxcgApL = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
tvbJQGa(department_tvbJQGa);
|
ZxcgApL(department_ZxcgApL);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_department',function (e)
|
jQuery('#adminForm').on('change', '#jform_department',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var department_tvbJQGa = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_ZxcgApL = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
tvbJQGa(department_tvbJQGa);
|
ZxcgApL(department_ZxcgApL);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// #jform_department listeners for department_KxieanM function
|
// #jform_department listeners for department_rhEqLHv function
|
||||||
jQuery('#jform_department').on('keyup',function()
|
jQuery('#jform_department').on('keyup',function()
|
||||||
{
|
{
|
||||||
var department_KxieanM = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_rhEqLHv = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
KxieanM(department_KxieanM);
|
rhEqLHv(department_rhEqLHv);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_department',function (e)
|
jQuery('#adminForm').on('change', '#jform_department',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var department_KxieanM = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_rhEqLHv = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
KxieanM(department_KxieanM);
|
rhEqLHv(department_rhEqLHv);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -65,10 +65,10 @@ class CostbenefitprojectionViewCompany extends JViewLegacy
|
|||||||
}
|
}
|
||||||
|
|
||||||
// [6479] Get Linked view data
|
// [6479] Get Linked view data
|
||||||
$this->tpmscaling_factors = $this->get('Tpmscaling_factors');
|
$this->qwjscaling_factors = $this->get('Qwjscaling_factors');
|
||||||
|
|
||||||
// [6479] Get Linked view data
|
// [6479] Get Linked view data
|
||||||
$this->qhdinterventions = $this->get('Qhdinterventions');
|
$this->obuinterventions = $this->get('Obuinterventions');
|
||||||
|
|
||||||
// Set the toolbar
|
// Set the toolbar
|
||||||
$this->addToolBar();
|
$this->addToolBar();
|
||||||
|
@ -65,10 +65,10 @@ class CostbenefitprojectionViewCountry extends JViewLegacy
|
|||||||
}
|
}
|
||||||
|
|
||||||
// [6479] Get Linked view data
|
// [6479] Get Linked view data
|
||||||
$this->zpqservice_providers = $this->get('Zpqservice_providers');
|
$this->gmeservice_providers = $this->get('Gmeservice_providers');
|
||||||
|
|
||||||
// [6479] Get Linked view data
|
// [6479] Get Linked view data
|
||||||
$this->iaacompanies = $this->get('Iaacompanies');
|
$this->ywucompanies = $this->get('Ywucompanies');
|
||||||
|
|
||||||
// Set the toolbar
|
// Set the toolbar
|
||||||
$this->addToolBar();
|
$this->addToolBar();
|
||||||
|
@ -94,93 +94,93 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
// #jform_location listeners for location_KVbOrVT function
|
// #jform_location listeners for location_qNlskgN function
|
||||||
jQuery('#jform_location').on('keyup',function()
|
jQuery('#jform_location').on('keyup',function()
|
||||||
{
|
{
|
||||||
var location_KVbOrVT = jQuery("#jform_location input[type='radio']:checked").val();
|
var location_qNlskgN = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
KVbOrVT(location_KVbOrVT);
|
qNlskgN(location_qNlskgN);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var location_KVbOrVT = jQuery("#jform_location input[type='radio']:checked").val();
|
var location_qNlskgN = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
KVbOrVT(location_KVbOrVT);
|
qNlskgN(location_qNlskgN);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// #jform_location listeners for location_snHFbml function
|
// #jform_location listeners for location_ksdmMsB function
|
||||||
jQuery('#jform_location').on('keyup',function()
|
jQuery('#jform_location').on('keyup',function()
|
||||||
{
|
{
|
||||||
var location_snHFbml = jQuery("#jform_location input[type='radio']:checked").val();
|
var location_ksdmMsB = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
snHFbml(location_snHFbml);
|
ksdmMsB(location_ksdmMsB);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var location_snHFbml = jQuery("#jform_location input[type='radio']:checked").val();
|
var location_ksdmMsB = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
snHFbml(location_snHFbml);
|
ksdmMsB(location_ksdmMsB);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// #jform_type listeners for type_NyyUdhG function
|
// #jform_type listeners for type_GNSempC function
|
||||||
jQuery('#jform_type').on('keyup',function()
|
jQuery('#jform_type').on('keyup',function()
|
||||||
{
|
{
|
||||||
var type_NyyUdhG = jQuery("#jform_type").val();
|
var type_GNSempC = jQuery("#jform_type").val();
|
||||||
NyyUdhG(type_NyyUdhG);
|
GNSempC(type_GNSempC);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var type_NyyUdhG = jQuery("#jform_type").val();
|
var type_GNSempC = jQuery("#jform_type").val();
|
||||||
NyyUdhG(type_NyyUdhG);
|
GNSempC(type_GNSempC);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// #jform_type listeners for type_pmvIgHO function
|
// #jform_type listeners for type_btpFKYz function
|
||||||
jQuery('#jform_type').on('keyup',function()
|
jQuery('#jform_type').on('keyup',function()
|
||||||
{
|
{
|
||||||
var type_pmvIgHO = jQuery("#jform_type").val();
|
var type_btpFKYz = jQuery("#jform_type").val();
|
||||||
pmvIgHO(type_pmvIgHO);
|
btpFKYz(type_btpFKYz);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var type_pmvIgHO = jQuery("#jform_type").val();
|
var type_btpFKYz = jQuery("#jform_type").val();
|
||||||
pmvIgHO(type_pmvIgHO);
|
btpFKYz(type_btpFKYz);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// #jform_type listeners for type_EaIzsbh function
|
// #jform_type listeners for type_kYXZiqc function
|
||||||
jQuery('#jform_type').on('keyup',function()
|
jQuery('#jform_type').on('keyup',function()
|
||||||
{
|
{
|
||||||
var type_EaIzsbh = jQuery("#jform_type").val();
|
var type_kYXZiqc = jQuery("#jform_type").val();
|
||||||
EaIzsbh(type_EaIzsbh);
|
kYXZiqc(type_kYXZiqc);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var type_EaIzsbh = jQuery("#jform_type").val();
|
var type_kYXZiqc = jQuery("#jform_type").val();
|
||||||
EaIzsbh(type_EaIzsbh);
|
kYXZiqc(type_kYXZiqc);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// #jform_target listeners for target_jRYBNcO function
|
// #jform_target listeners for target_fKlWJFr function
|
||||||
jQuery('#jform_target').on('keyup',function()
|
jQuery('#jform_target').on('keyup',function()
|
||||||
{
|
{
|
||||||
var target_jRYBNcO = jQuery("#jform_target input[type='radio']:checked").val();
|
var target_fKlWJFr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||||
jRYBNcO(target_jRYBNcO);
|
fKlWJFr(target_fKlWJFr);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var target_jRYBNcO = jQuery("#jform_target input[type='radio']:checked").val();
|
var target_fKlWJFr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||||
jRYBNcO(target_jRYBNcO);
|
fKlWJFr(target_fKlWJFr);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -101,33 +101,33 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
// #jform_type listeners for type_NqgeyPG function
|
// #jform_type listeners for type_YwksxEq function
|
||||||
jQuery('#jform_type').on('keyup',function()
|
jQuery('#jform_type').on('keyup',function()
|
||||||
{
|
{
|
||||||
var type_NqgeyPG = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_YwksxEq = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
NqgeyPG(type_NqgeyPG);
|
YwksxEq(type_YwksxEq);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var type_NqgeyPG = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_YwksxEq = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
NqgeyPG(type_NqgeyPG);
|
YwksxEq(type_YwksxEq);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// #jform_type listeners for type_oEwwRnj function
|
// #jform_type listeners for type_XJhCuBT function
|
||||||
jQuery('#jform_type').on('keyup',function()
|
jQuery('#jform_type').on('keyup',function()
|
||||||
{
|
{
|
||||||
var type_oEwwRnj = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_XJhCuBT = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
oEwwRnj(type_oEwwRnj);
|
XJhCuBT(type_XJhCuBT);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var type_oEwwRnj = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_XJhCuBT = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
oEwwRnj(type_oEwwRnj);
|
XJhCuBT(type_XJhCuBT);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ class CostbenefitprojectionViewService_provider extends JViewLegacy
|
|||||||
}
|
}
|
||||||
|
|
||||||
// [6479] Get Linked view data
|
// [6479] Get Linked view data
|
||||||
$this->rfvcompanies = $this->get('Rfvcompanies');
|
$this->uvzcompanies = $this->get('Uvzcompanies');
|
||||||
|
|
||||||
// Set the toolbar
|
// Set the toolbar
|
||||||
$this->addToolBar();
|
$this->addToolBar();
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->qhdinterventions;
|
$items = $displayData->obuinterventions;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
|
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->tpmscaling_factors;
|
$items = $displayData->qwjscaling_factors;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
|
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";
|
||||||
|
@ -154,8 +154,8 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.company');
|
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.company');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->companymjgp = $item->id;
|
$this->companytgip = $item->id;
|
||||||
$this->companyosda = $item->id;
|
$this->companypqjv = $item->id;
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
@ -165,7 +165,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getTpmscaling_factors()
|
public function getQwjscaling_factors()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [6945] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
@ -204,15 +204,15 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
$query->select($db->quoteName('h.name','company_name'));
|
$query->select($db->quoteName('h.name','company_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'h') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('h.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'h') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('h.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by companymjgp global.
|
// [6973] Filter by companytgip global.
|
||||||
$companymjgp = $this->companymjgp;
|
$companytgip = $this->companytgip;
|
||||||
if (is_numeric($companymjgp ))
|
if (is_numeric($companytgip ))
|
||||||
{
|
{
|
||||||
$query->where('a.company = ' . (int) $companymjgp );
|
$query->where('a.company = ' . (int) $companytgip );
|
||||||
}
|
}
|
||||||
elseif (is_string($companymjgp))
|
elseif (is_string($companytgip))
|
||||||
{
|
{
|
||||||
$query->where('a.company = ' . $db->quote($companymjgp));
|
$query->where('a.company = ' . $db->quote($companytgip));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -255,7 +255,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getQhdinterventions()
|
public function getObuinterventions()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [6945] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
@ -290,15 +290,15 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
$query->select($db->quoteName('g.name','company_name'));
|
$query->select($db->quoteName('g.name','company_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by companyosda global.
|
// [6973] Filter by companypqjv global.
|
||||||
$companyosda = $this->companyosda;
|
$companypqjv = $this->companypqjv;
|
||||||
if (is_numeric($companyosda ))
|
if (is_numeric($companypqjv ))
|
||||||
{
|
{
|
||||||
$query->where('a.company = ' . (int) $companyosda );
|
$query->where('a.company = ' . (int) $companypqjv );
|
||||||
}
|
}
|
||||||
elseif (is_string($companyosda))
|
elseif (is_string($companypqjv))
|
||||||
{
|
{
|
||||||
$query->where('a.company = ' . $db->quote($companyosda));
|
$query->where('a.company = ' . $db->quote($companypqjv));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -351,7 +351,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
// [10884] convert type
|
// [10884] convert type
|
||||||
$item->type = $this->selectionTranslationQhdinterventions($item->type, 'type');
|
$item->type = $this->selectionTranslationObuinterventions($item->type, 'type');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,7 +365,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return translatable string
|
* @return translatable string
|
||||||
*/
|
*/
|
||||||
public function selectionTranslationQhdinterventions($value,$name)
|
public function selectionTranslationObuinterventions($value,$name)
|
||||||
{
|
{
|
||||||
// [10910] Array of type language strings
|
// [10910] Array of type language strings
|
||||||
if ($name == 'type')
|
if ($name == 'type')
|
||||||
|
@ -17,178 +17,178 @@
|
|||||||
/------------------------------------------------------------------------------------------------------*/
|
/------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_tvbJQGaZoN_required = false;
|
jform_ZxcgApLdfm_required = false;
|
||||||
jform_tvbJQGabaz_required = false;
|
jform_ZxcgApLHuF_required = false;
|
||||||
jform_tvbJQGaGLC_required = false;
|
jform_ZxcgApLlPf_required = false;
|
||||||
jform_tvbJQGamKo_required = false;
|
jform_ZxcgApLldq_required = false;
|
||||||
jform_tvbJQGabLy_required = false;
|
jform_ZxcgApLHZV_required = false;
|
||||||
jform_tvbJQGawmE_required = false;
|
jform_ZxcgApLAim_required = false;
|
||||||
jform_tvbJQGaHqH_required = false;
|
jform_ZxcgApLXqL_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var department_tvbJQGa = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_ZxcgApL = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
tvbJQGa(department_tvbJQGa);
|
ZxcgApL(department_ZxcgApL);
|
||||||
|
|
||||||
var department_KxieanM = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_rhEqLHv = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
KxieanM(department_KxieanM);
|
rhEqLHv(department_rhEqLHv);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the tvbJQGa function
|
// the ZxcgApL function
|
||||||
function tvbJQGa(department_tvbJQGa)
|
function ZxcgApL(department_ZxcgApL)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (department_tvbJQGa == 2)
|
if (department_ZxcgApL == 2)
|
||||||
{
|
{
|
||||||
jQuery('#jform_causesrisks').closest('.control-group').show();
|
jQuery('#jform_causesrisks').closest('.control-group').show();
|
||||||
if (jform_tvbJQGaZoN_required)
|
if (jform_ZxcgApLdfm_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('causesrisks',0);
|
updateFieldRequired('causesrisks',0);
|
||||||
jQuery('#jform_causesrisks').prop('required','required');
|
jQuery('#jform_causesrisks').prop('required','required');
|
||||||
jQuery('#jform_causesrisks').attr('aria-required',true);
|
jQuery('#jform_causesrisks').attr('aria-required',true);
|
||||||
jQuery('#jform_causesrisks').addClass('required');
|
jQuery('#jform_causesrisks').addClass('required');
|
||||||
jform_tvbJQGaZoN_required = false;
|
jform_ZxcgApLdfm_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_percentfemale').closest('.control-group').show();
|
jQuery('#jform_percentfemale').closest('.control-group').show();
|
||||||
jQuery('#jform_percentmale').closest('.control-group').show();
|
jQuery('#jform_percentmale').closest('.control-group').show();
|
||||||
jQuery('#jform_productivity_losses').closest('.control-group').show();
|
jQuery('#jform_productivity_losses').closest('.control-group').show();
|
||||||
if (jform_tvbJQGabaz_required)
|
if (jform_ZxcgApLHuF_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('productivity_losses',0);
|
updateFieldRequired('productivity_losses',0);
|
||||||
jQuery('#jform_productivity_losses').prop('required','required');
|
jQuery('#jform_productivity_losses').prop('required','required');
|
||||||
jQuery('#jform_productivity_losses').attr('aria-required',true);
|
jQuery('#jform_productivity_losses').attr('aria-required',true);
|
||||||
jQuery('#jform_productivity_losses').addClass('required');
|
jQuery('#jform_productivity_losses').addClass('required');
|
||||||
jform_tvbJQGabaz_required = false;
|
jform_ZxcgApLHuF_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_medical_turnovers_females').closest('.control-group').show();
|
jQuery('#jform_medical_turnovers_females').closest('.control-group').show();
|
||||||
if (jform_tvbJQGaGLC_required)
|
if (jform_ZxcgApLlPf_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('medical_turnovers_females',0);
|
updateFieldRequired('medical_turnovers_females',0);
|
||||||
jQuery('#jform_medical_turnovers_females').prop('required','required');
|
jQuery('#jform_medical_turnovers_females').prop('required','required');
|
||||||
jQuery('#jform_medical_turnovers_females').attr('aria-required',true);
|
jQuery('#jform_medical_turnovers_females').attr('aria-required',true);
|
||||||
jQuery('#jform_medical_turnovers_females').addClass('required');
|
jQuery('#jform_medical_turnovers_females').addClass('required');
|
||||||
jform_tvbJQGaGLC_required = false;
|
jform_ZxcgApLlPf_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_medical_turnovers_males').closest('.control-group').show();
|
jQuery('#jform_medical_turnovers_males').closest('.control-group').show();
|
||||||
if (jform_tvbJQGamKo_required)
|
if (jform_ZxcgApLldq_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('medical_turnovers_males',0);
|
updateFieldRequired('medical_turnovers_males',0);
|
||||||
jQuery('#jform_medical_turnovers_males').prop('required','required');
|
jQuery('#jform_medical_turnovers_males').prop('required','required');
|
||||||
jQuery('#jform_medical_turnovers_males').attr('aria-required',true);
|
jQuery('#jform_medical_turnovers_males').attr('aria-required',true);
|
||||||
jQuery('#jform_medical_turnovers_males').addClass('required');
|
jQuery('#jform_medical_turnovers_males').addClass('required');
|
||||||
jform_tvbJQGamKo_required = false;
|
jform_ZxcgApLldq_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_sick_leave_females').closest('.control-group').show();
|
jQuery('#jform_sick_leave_females').closest('.control-group').show();
|
||||||
if (jform_tvbJQGabLy_required)
|
if (jform_ZxcgApLHZV_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('sick_leave_females',0);
|
updateFieldRequired('sick_leave_females',0);
|
||||||
jQuery('#jform_sick_leave_females').prop('required','required');
|
jQuery('#jform_sick_leave_females').prop('required','required');
|
||||||
jQuery('#jform_sick_leave_females').attr('aria-required',true);
|
jQuery('#jform_sick_leave_females').attr('aria-required',true);
|
||||||
jQuery('#jform_sick_leave_females').addClass('required');
|
jQuery('#jform_sick_leave_females').addClass('required');
|
||||||
jform_tvbJQGabLy_required = false;
|
jform_ZxcgApLHZV_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_sick_leave_males').closest('.control-group').show();
|
jQuery('#jform_sick_leave_males').closest('.control-group').show();
|
||||||
if (jform_tvbJQGawmE_required)
|
if (jform_ZxcgApLAim_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('sick_leave_males',0);
|
updateFieldRequired('sick_leave_males',0);
|
||||||
jQuery('#jform_sick_leave_males').prop('required','required');
|
jQuery('#jform_sick_leave_males').prop('required','required');
|
||||||
jQuery('#jform_sick_leave_males').attr('aria-required',true);
|
jQuery('#jform_sick_leave_males').attr('aria-required',true);
|
||||||
jQuery('#jform_sick_leave_males').addClass('required');
|
jQuery('#jform_sick_leave_males').addClass('required');
|
||||||
jform_tvbJQGawmE_required = false;
|
jform_ZxcgApLAim_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('#jform_total_healthcare').closest('.control-group').show();
|
jQuery('#jform_total_healthcare').closest('.control-group').show();
|
||||||
if (jform_tvbJQGaHqH_required)
|
if (jform_ZxcgApLXqL_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('total_healthcare',0);
|
updateFieldRequired('total_healthcare',0);
|
||||||
jQuery('#jform_total_healthcare').prop('required','required');
|
jQuery('#jform_total_healthcare').prop('required','required');
|
||||||
jQuery('#jform_total_healthcare').attr('aria-required',true);
|
jQuery('#jform_total_healthcare').attr('aria-required',true);
|
||||||
jQuery('#jform_total_healthcare').addClass('required');
|
jQuery('#jform_total_healthcare').addClass('required');
|
||||||
jform_tvbJQGaHqH_required = false;
|
jform_ZxcgApLXqL_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_causesrisks').closest('.control-group').hide();
|
jQuery('#jform_causesrisks').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGaZoN_required)
|
if (!jform_ZxcgApLdfm_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('causesrisks',1);
|
updateFieldRequired('causesrisks',1);
|
||||||
jQuery('#jform_causesrisks').removeAttr('required');
|
jQuery('#jform_causesrisks').removeAttr('required');
|
||||||
jQuery('#jform_causesrisks').removeAttr('aria-required');
|
jQuery('#jform_causesrisks').removeAttr('aria-required');
|
||||||
jQuery('#jform_causesrisks').removeClass('required');
|
jQuery('#jform_causesrisks').removeClass('required');
|
||||||
jform_tvbJQGaZoN_required = true;
|
jform_ZxcgApLdfm_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_percentfemale').closest('.control-group').hide();
|
jQuery('#jform_percentfemale').closest('.control-group').hide();
|
||||||
jQuery('#jform_percentmale').closest('.control-group').hide();
|
jQuery('#jform_percentmale').closest('.control-group').hide();
|
||||||
jQuery('#jform_productivity_losses').closest('.control-group').hide();
|
jQuery('#jform_productivity_losses').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGabaz_required)
|
if (!jform_ZxcgApLHuF_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('productivity_losses',1);
|
updateFieldRequired('productivity_losses',1);
|
||||||
jQuery('#jform_productivity_losses').removeAttr('required');
|
jQuery('#jform_productivity_losses').removeAttr('required');
|
||||||
jQuery('#jform_productivity_losses').removeAttr('aria-required');
|
jQuery('#jform_productivity_losses').removeAttr('aria-required');
|
||||||
jQuery('#jform_productivity_losses').removeClass('required');
|
jQuery('#jform_productivity_losses').removeClass('required');
|
||||||
jform_tvbJQGabaz_required = true;
|
jform_ZxcgApLHuF_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_medical_turnovers_females').closest('.control-group').hide();
|
jQuery('#jform_medical_turnovers_females').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGaGLC_required)
|
if (!jform_ZxcgApLlPf_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('medical_turnovers_females',1);
|
updateFieldRequired('medical_turnovers_females',1);
|
||||||
jQuery('#jform_medical_turnovers_females').removeAttr('required');
|
jQuery('#jform_medical_turnovers_females').removeAttr('required');
|
||||||
jQuery('#jform_medical_turnovers_females').removeAttr('aria-required');
|
jQuery('#jform_medical_turnovers_females').removeAttr('aria-required');
|
||||||
jQuery('#jform_medical_turnovers_females').removeClass('required');
|
jQuery('#jform_medical_turnovers_females').removeClass('required');
|
||||||
jform_tvbJQGaGLC_required = true;
|
jform_ZxcgApLlPf_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_medical_turnovers_males').closest('.control-group').hide();
|
jQuery('#jform_medical_turnovers_males').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGamKo_required)
|
if (!jform_ZxcgApLldq_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('medical_turnovers_males',1);
|
updateFieldRequired('medical_turnovers_males',1);
|
||||||
jQuery('#jform_medical_turnovers_males').removeAttr('required');
|
jQuery('#jform_medical_turnovers_males').removeAttr('required');
|
||||||
jQuery('#jform_medical_turnovers_males').removeAttr('aria-required');
|
jQuery('#jform_medical_turnovers_males').removeAttr('aria-required');
|
||||||
jQuery('#jform_medical_turnovers_males').removeClass('required');
|
jQuery('#jform_medical_turnovers_males').removeClass('required');
|
||||||
jform_tvbJQGamKo_required = true;
|
jform_ZxcgApLldq_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_sick_leave_females').closest('.control-group').hide();
|
jQuery('#jform_sick_leave_females').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGabLy_required)
|
if (!jform_ZxcgApLHZV_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('sick_leave_females',1);
|
updateFieldRequired('sick_leave_females',1);
|
||||||
jQuery('#jform_sick_leave_females').removeAttr('required');
|
jQuery('#jform_sick_leave_females').removeAttr('required');
|
||||||
jQuery('#jform_sick_leave_females').removeAttr('aria-required');
|
jQuery('#jform_sick_leave_females').removeAttr('aria-required');
|
||||||
jQuery('#jform_sick_leave_females').removeClass('required');
|
jQuery('#jform_sick_leave_females').removeClass('required');
|
||||||
jform_tvbJQGabLy_required = true;
|
jform_ZxcgApLHZV_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_sick_leave_males').closest('.control-group').hide();
|
jQuery('#jform_sick_leave_males').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGawmE_required)
|
if (!jform_ZxcgApLAim_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('sick_leave_males',1);
|
updateFieldRequired('sick_leave_males',1);
|
||||||
jQuery('#jform_sick_leave_males').removeAttr('required');
|
jQuery('#jform_sick_leave_males').removeAttr('required');
|
||||||
jQuery('#jform_sick_leave_males').removeAttr('aria-required');
|
jQuery('#jform_sick_leave_males').removeAttr('aria-required');
|
||||||
jQuery('#jform_sick_leave_males').removeClass('required');
|
jQuery('#jform_sick_leave_males').removeClass('required');
|
||||||
jform_tvbJQGawmE_required = true;
|
jform_ZxcgApLAim_required = true;
|
||||||
}
|
}
|
||||||
jQuery('#jform_total_healthcare').closest('.control-group').hide();
|
jQuery('#jform_total_healthcare').closest('.control-group').hide();
|
||||||
if (!jform_tvbJQGaHqH_required)
|
if (!jform_ZxcgApLXqL_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('total_healthcare',1);
|
updateFieldRequired('total_healthcare',1);
|
||||||
jQuery('#jform_total_healthcare').removeAttr('required');
|
jQuery('#jform_total_healthcare').removeAttr('required');
|
||||||
jQuery('#jform_total_healthcare').removeAttr('aria-required');
|
jQuery('#jform_total_healthcare').removeAttr('aria-required');
|
||||||
jQuery('#jform_total_healthcare').removeClass('required');
|
jQuery('#jform_total_healthcare').removeClass('required');
|
||||||
jform_tvbJQGaHqH_required = true;
|
jform_ZxcgApLXqL_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the KxieanM function
|
// the rhEqLHv function
|
||||||
function KxieanM(department_KxieanM)
|
function rhEqLHv(department_rhEqLHv)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (department_KxieanM == 1)
|
if (department_rhEqLHv == 1)
|
||||||
{
|
{
|
||||||
jQuery('.age_groups_note').closest('.control-group').show();
|
jQuery('.age_groups_note').closest('.control-group').show();
|
||||||
jQuery('.cause_risk_selection_note').closest('.control-group').show();
|
jQuery('.cause_risk_selection_note').closest('.control-group').show();
|
||||||
|
@ -17,54 +17,54 @@
|
|||||||
/------------------------------------------------------------------------------------------------------*/
|
/------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_NqgeyPGPCt_required = false;
|
jform_YwksxEqNkO_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var type_NqgeyPG = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_YwksxEq = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
NqgeyPG(type_NqgeyPG);
|
YwksxEq(type_YwksxEq);
|
||||||
|
|
||||||
var type_oEwwRnj = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_XJhCuBT = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
oEwwRnj(type_oEwwRnj);
|
XJhCuBT(type_XJhCuBT);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the NqgeyPG function
|
// the YwksxEq function
|
||||||
function NqgeyPG(type_NqgeyPG)
|
function YwksxEq(type_YwksxEq)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (type_NqgeyPG == 2)
|
if (type_YwksxEq == 2)
|
||||||
{
|
{
|
||||||
jQuery('#jform_interventions').closest('.control-group').show();
|
jQuery('#jform_interventions').closest('.control-group').show();
|
||||||
if (jform_NqgeyPGPCt_required)
|
if (jform_YwksxEqNkO_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('interventions',0);
|
updateFieldRequired('interventions',0);
|
||||||
jQuery('#jform_interventions').prop('required','required');
|
jQuery('#jform_interventions').prop('required','required');
|
||||||
jQuery('#jform_interventions').attr('aria-required',true);
|
jQuery('#jform_interventions').attr('aria-required',true);
|
||||||
jQuery('#jform_interventions').addClass('required');
|
jQuery('#jform_interventions').addClass('required');
|
||||||
jform_NqgeyPGPCt_required = false;
|
jform_YwksxEqNkO_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_interventions').closest('.control-group').hide();
|
jQuery('#jform_interventions').closest('.control-group').hide();
|
||||||
if (!jform_NqgeyPGPCt_required)
|
if (!jform_YwksxEqNkO_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('interventions',1);
|
updateFieldRequired('interventions',1);
|
||||||
jQuery('#jform_interventions').removeAttr('required');
|
jQuery('#jform_interventions').removeAttr('required');
|
||||||
jQuery('#jform_interventions').removeAttr('aria-required');
|
jQuery('#jform_interventions').removeAttr('aria-required');
|
||||||
jQuery('#jform_interventions').removeClass('required');
|
jQuery('#jform_interventions').removeClass('required');
|
||||||
jform_NqgeyPGPCt_required = true;
|
jform_YwksxEqNkO_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the oEwwRnj function
|
// the XJhCuBT function
|
||||||
function oEwwRnj(type_oEwwRnj)
|
function XJhCuBT(type_XJhCuBT)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8008] set the function logic
|
||||||
if (type_oEwwRnj == 1)
|
if (type_XJhCuBT == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_intervention').closest('.control-group').show();
|
jQuery('#jform_intervention').closest('.control-group').show();
|
||||||
}
|
}
|
||||||
|
@ -137,33 +137,33 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
// #jform_department listeners for department_tvbJQGa function
|
// #jform_department listeners for department_ZxcgApL function
|
||||||
jQuery('#jform_department').on('keyup',function()
|
jQuery('#jform_department').on('keyup',function()
|
||||||
{
|
{
|
||||||
var department_tvbJQGa = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_ZxcgApL = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
tvbJQGa(department_tvbJQGa);
|
ZxcgApL(department_ZxcgApL);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_department',function (e)
|
jQuery('#adminForm').on('change', '#jform_department',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var department_tvbJQGa = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_ZxcgApL = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
tvbJQGa(department_tvbJQGa);
|
ZxcgApL(department_ZxcgApL);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// #jform_department listeners for department_KxieanM function
|
// #jform_department listeners for department_rhEqLHv function
|
||||||
jQuery('#jform_department').on('keyup',function()
|
jQuery('#jform_department').on('keyup',function()
|
||||||
{
|
{
|
||||||
var department_KxieanM = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_rhEqLHv = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
KxieanM(department_KxieanM);
|
rhEqLHv(department_rhEqLHv);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_department',function (e)
|
jQuery('#adminForm').on('change', '#jform_department',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var department_KxieanM = jQuery("#jform_department input[type='radio']:checked").val();
|
var department_rhEqLHv = jQuery("#jform_department input[type='radio']:checked").val();
|
||||||
KxieanM(department_KxieanM);
|
rhEqLHv(department_rhEqLHv);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -65,10 +65,10 @@ class CostbenefitprojectionViewCompany extends JViewLegacy
|
|||||||
}
|
}
|
||||||
|
|
||||||
// [6479] Get Linked view data
|
// [6479] Get Linked view data
|
||||||
$this->tpmscaling_factors = $this->get('Tpmscaling_factors');
|
$this->qwjscaling_factors = $this->get('Qwjscaling_factors');
|
||||||
|
|
||||||
// [6479] Get Linked view data
|
// [6479] Get Linked view data
|
||||||
$this->qhdinterventions = $this->get('Qhdinterventions');
|
$this->obuinterventions = $this->get('Obuinterventions');
|
||||||
|
|
||||||
// Set the toolbar
|
// Set the toolbar
|
||||||
$this->addToolBar();
|
$this->addToolBar();
|
||||||
|
@ -103,33 +103,33 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
// #jform_type listeners for type_NqgeyPG function
|
// #jform_type listeners for type_YwksxEq function
|
||||||
jQuery('#jform_type').on('keyup',function()
|
jQuery('#jform_type').on('keyup',function()
|
||||||
{
|
{
|
||||||
var type_NqgeyPG = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_YwksxEq = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
NqgeyPG(type_NqgeyPG);
|
YwksxEq(type_YwksxEq);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var type_NqgeyPG = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_YwksxEq = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
NqgeyPG(type_NqgeyPG);
|
YwksxEq(type_YwksxEq);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// #jform_type listeners for type_oEwwRnj function
|
// #jform_type listeners for type_XJhCuBT function
|
||||||
jQuery('#jform_type').on('keyup',function()
|
jQuery('#jform_type').on('keyup',function()
|
||||||
{
|
{
|
||||||
var type_oEwwRnj = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_XJhCuBT = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
oEwwRnj(type_oEwwRnj);
|
XJhCuBT(type_XJhCuBT);
|
||||||
|
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var type_oEwwRnj = jQuery("#jform_type input[type='radio']:checked").val();
|
var type_XJhCuBT = jQuery("#jform_type input[type='radio']:checked").val();
|
||||||
oEwwRnj(type_oEwwRnj);
|
XJhCuBT(type_XJhCuBT);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user