Trying to remove random variable changes per/build, or at least to cut it down in a major way.

This commit is contained in:
Llewellyn van der Merwe 2016-02-26 15:57:23 +02:00
parent a6bd494b11
commit 050115f97d
38 changed files with 469 additions and 469 deletions

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->rjqinterventions; $items = $displayData->vwdinterventions;
$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";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->cwvscaling_factors; $items = $displayData->vwcscaling_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";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->sbccompanies; $items = $displayData->vwhcompanies;
$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";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->fnxinterventions; $items = $displayData->vwfinterventions;
$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";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->qkaservice_providers; $items = $displayData->vwgservice_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";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->svucompanies; $items = $displayData->vwecompanies;
$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";

View File

@ -156,7 +156,7 @@ class CostbenefitprojectionModelCompanies extends JModelList
* *
* @return translatable string * @return translatable string
*/ */
protected function selectionTranslation($value,$name) public function selectionTranslation($value,$name)
{ {
// Array of department language strings // Array of department language strings
if ($name == 'department') if ($name == 'department')

View File

@ -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->companymmfv = $item->id; $this->companyvvvv = $item->id;
$this->companyzzjj = $item->id; $this->companyvvvw = $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 getCwvscaling_factors() public function getVwcscaling_factors()
{ {
// Get the user object. // 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') . ')');
// Filter by companymmfv global. // Filter by companyvvvv global.
$companymmfv = $this->companymmfv; $companyvvvv = $this->companyvvvv;
if (is_numeric($companymmfv )) if (is_numeric($companyvvvv ))
{ {
$query->where('a.company = ' . (int) $companymmfv ); $query->where('a.company = ' . (int) $companyvvvv );
} }
elseif (is_string($companymmfv)) elseif (is_string($companyvvvv))
{ {
$query->where('a.company = ' . $db->quote($companymmfv)); $query->where('a.company = ' . $db->quote($companyvvvv));
} }
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 getRjqinterventions() public function getVwdinterventions()
{ {
// Get the user object. // 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') . ')');
// Filter by companyzzjj global. // Filter by companyvvvw global.
$companyzzjj = $this->companyzzjj; $companyvvvw = $this->companyvvvw;
if (is_numeric($companyzzjj )) if (is_numeric($companyvvvw ))
{ {
$query->where('a.company = ' . (int) $companyzzjj ); $query->where('a.company = ' . (int) $companyvvvw );
} }
elseif (is_string($companyzzjj)) elseif (is_string($companyvvvw))
{ {
$query->where('a.company = ' . $db->quote($companyzzjj)); $query->where('a.company = ' . $db->quote($companyvvvw));
} }
else else
{ {
@ -351,7 +351,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert type // convert type
$item->type = $this->selectionTranslationRjqinterventions($item->type, 'type'); $item->type = $this->selectionTranslationVwdinterventions($item->type, 'type');
} }
} }
@ -365,7 +365,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
protected function selectionTranslationRjqinterventions($value,$name) public function selectionTranslationVwdinterventions($value,$name)
{ {
// Array of type language strings // Array of type language strings
if ($name == 'type') if ($name == 'type')

View File

@ -101,9 +101,9 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.country'); $item->tags->getTagIds($item->id, 'com_costbenefitprojection.country');
} }
} }
$this->countrymdld = $item->id; $this->countryvvvy = $item->id;
$this->countrytzts = $item->id; $this->countryvvvz = $item->id;
$this->countrydlwr = $item->id; $this->countryvvwa = $item->id;
return $item; return $item;
} }
@ -113,7 +113,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 getFnxinterventions() public function getVwfinterventions()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -148,15 +148,15 @@ class CostbenefitprojectionModelCountry 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') . ')');
// Filter by countrymdld global. // Filter by countryvvvy global.
$countrymdld = $this->countrymdld; $countryvvvy = $this->countryvvvy;
if (is_numeric($countrymdld )) if (is_numeric($countryvvvy ))
{ {
$query->where('a.country = ' . (int) $countrymdld ); $query->where('a.country = ' . (int) $countryvvvy );
} }
elseif (is_string($countrymdld)) elseif (is_string($countryvvvy))
{ {
$query->where('a.country = ' . $db->quote($countrymdld)); $query->where('a.country = ' . $db->quote($countryvvvy));
} }
else else
{ {
@ -209,7 +209,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert type // convert type
$item->type = $this->selectionTranslationFnxinterventions($item->type, 'type'); $item->type = $this->selectionTranslationVwfinterventions($item->type, 'type');
} }
} }
@ -223,7 +223,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
protected function selectionTranslationFnxinterventions($value,$name) public function selectionTranslationVwfinterventions($value,$name)
{ {
// Array of type language strings // Array of type language strings
if ($name == 'type') if ($name == 'type')
@ -246,7 +246,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 getQkaservice_providers() public function getVwgservice_providers()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -285,15 +285,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') . ')');
// Filter by countrytzts global. // Filter by countryvvvz global.
$countrytzts = $this->countrytzts; $countryvvvz = $this->countryvvvz;
if (is_numeric($countrytzts )) if (is_numeric($countryvvvz ))
{ {
$query->where('a.country = ' . (int) $countrytzts ); $query->where('a.country = ' . (int) $countryvvvz );
} }
elseif (is_string($countrytzts)) elseif (is_string($countryvvvz))
{ {
$query->where('a.country = ' . $db->quote($countrytzts)); $query->where('a.country = ' . $db->quote($countryvvvz));
} }
else else
{ {
@ -336,7 +336,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 getSbccompanies() public function getVwhcompanies()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -379,15 +379,15 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
$query->select($db->quoteName('i.user','service_provider_user')); $query->select($db->quoteName('i.user','service_provider_user'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.service_provider') . ' = ' . $db->quoteName('i.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.service_provider') . ' = ' . $db->quoteName('i.id') . ')');
// Filter by countrydlwr global. // Filter by countryvvwa global.
$countrydlwr = $this->countrydlwr; $countryvvwa = $this->countryvvwa;
if (is_numeric($countrydlwr )) if (is_numeric($countryvvwa ))
{ {
$query->where('a.country = ' . (int) $countrydlwr ); $query->where('a.country = ' . (int) $countryvvwa );
} }
elseif (is_string($countrydlwr)) elseif (is_string($countryvvwa))
{ {
$query->where('a.country = ' . $db->quote($countrydlwr)); $query->where('a.country = ' . $db->quote($countryvvwa));
} }
else else
{ {
@ -442,9 +442,9 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert department // convert department
$item->department = $this->selectionTranslationSbccompanies($item->department, 'department'); $item->department = $this->selectionTranslationVwhcompanies($item->department, 'department');
// convert per // convert per
$item->per = $this->selectionTranslationSbccompanies($item->per, 'per'); $item->per = $this->selectionTranslationVwhcompanies($item->per, 'per');
} }
} }
@ -458,7 +458,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
protected function selectionTranslationSbccompanies($value,$name) public function selectionTranslationVwhcompanies($value,$name)
{ {
// Array of department language strings // Array of department language strings
if ($name == 'department') if ($name == 'department')

View File

@ -17,178 +17,178 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_GoUKnYRWrn_required = false; jform_vvvvvvvvvv_required = false;
jform_GoUKnYRuhe_required = false; jform_vvvvvvvvvw_required = false;
jform_GoUKnYRlzC_required = false; jform_vvvvvvvvvx_required = false;
jform_GoUKnYRmUE_required = false; jform_vvvvvvvvvy_required = false;
jform_GoUKnYRvxB_required = false; jform_vvvvvvvvvz_required = false;
jform_GoUKnYRZZT_required = false; jform_vvvvvvvvwa_required = false;
jform_GoUKnYRXRy_required = false; jform_vvvvvvvvwb_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var department_GoUKnYR = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvv = jQuery("#jform_department input[type='radio']:checked").val();
GoUKnYR(department_GoUKnYR); vvvvvvv(department_vvvvvvv);
var department_tWDagyL = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvw = jQuery("#jform_department input[type='radio']:checked").val();
tWDagyL(department_tWDagyL); vvvvvvw(department_vvvvvvw);
}); });
// the GoUKnYR function // the vvvvvvv function
function GoUKnYR(department_GoUKnYR) function vvvvvvv(department_vvvvvvv)
{ {
// set the function logic // set the function logic
if (department_GoUKnYR == 2) if (department_vvvvvvv == 2)
{ {
jQuery('#jform_causesrisks').closest('.control-group').show(); jQuery('#jform_causesrisks').closest('.control-group').show();
if (jform_GoUKnYRWrn_required) if (jform_vvvvvvvvvv_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_GoUKnYRWrn_required = false; jform_vvvvvvvvvv_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_GoUKnYRuhe_required) if (jform_vvvvvvvvvw_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_GoUKnYRuhe_required = false; jform_vvvvvvvvvw_required = false;
} }
jQuery('#jform_medical_turnovers_females').closest('.control-group').show(); jQuery('#jform_medical_turnovers_females').closest('.control-group').show();
if (jform_GoUKnYRlzC_required) if (jform_vvvvvvvvvx_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_GoUKnYRlzC_required = false; jform_vvvvvvvvvx_required = false;
} }
jQuery('#jform_medical_turnovers_males').closest('.control-group').show(); jQuery('#jform_medical_turnovers_males').closest('.control-group').show();
if (jform_GoUKnYRmUE_required) if (jform_vvvvvvvvvy_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_GoUKnYRmUE_required = false; jform_vvvvvvvvvy_required = false;
} }
jQuery('#jform_sick_leave_females').closest('.control-group').show(); jQuery('#jform_sick_leave_females').closest('.control-group').show();
if (jform_GoUKnYRvxB_required) if (jform_vvvvvvvvvz_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_GoUKnYRvxB_required = false; jform_vvvvvvvvvz_required = false;
} }
jQuery('#jform_sick_leave_males').closest('.control-group').show(); jQuery('#jform_sick_leave_males').closest('.control-group').show();
if (jform_GoUKnYRZZT_required) if (jform_vvvvvvvvwa_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_GoUKnYRZZT_required = false; jform_vvvvvvvvwa_required = false;
} }
jQuery('#jform_total_healthcare').closest('.control-group').show(); jQuery('#jform_total_healthcare').closest('.control-group').show();
if (jform_GoUKnYRXRy_required) if (jform_vvvvvvvvwb_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_GoUKnYRXRy_required = false; jform_vvvvvvvvwb_required = false;
} }
} }
else else
{ {
jQuery('#jform_causesrisks').closest('.control-group').hide(); jQuery('#jform_causesrisks').closest('.control-group').hide();
if (!jform_GoUKnYRWrn_required) if (!jform_vvvvvvvvvv_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_GoUKnYRWrn_required = true; jform_vvvvvvvvvv_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_GoUKnYRuhe_required) if (!jform_vvvvvvvvvw_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_GoUKnYRuhe_required = true; jform_vvvvvvvvvw_required = true;
} }
jQuery('#jform_medical_turnovers_females').closest('.control-group').hide(); jQuery('#jform_medical_turnovers_females').closest('.control-group').hide();
if (!jform_GoUKnYRlzC_required) if (!jform_vvvvvvvvvx_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_GoUKnYRlzC_required = true; jform_vvvvvvvvvx_required = true;
} }
jQuery('#jform_medical_turnovers_males').closest('.control-group').hide(); jQuery('#jform_medical_turnovers_males').closest('.control-group').hide();
if (!jform_GoUKnYRmUE_required) if (!jform_vvvvvvvvvy_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_GoUKnYRmUE_required = true; jform_vvvvvvvvvy_required = true;
} }
jQuery('#jform_sick_leave_females').closest('.control-group').hide(); jQuery('#jform_sick_leave_females').closest('.control-group').hide();
if (!jform_GoUKnYRvxB_required) if (!jform_vvvvvvvvvz_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_GoUKnYRvxB_required = true; jform_vvvvvvvvvz_required = true;
} }
jQuery('#jform_sick_leave_males').closest('.control-group').hide(); jQuery('#jform_sick_leave_males').closest('.control-group').hide();
if (!jform_GoUKnYRZZT_required) if (!jform_vvvvvvvvwa_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_GoUKnYRZZT_required = true; jform_vvvvvvvvwa_required = true;
} }
jQuery('#jform_total_healthcare').closest('.control-group').hide(); jQuery('#jform_total_healthcare').closest('.control-group').hide();
if (!jform_GoUKnYRXRy_required) if (!jform_vvvvvvvvwb_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_GoUKnYRXRy_required = true; jform_vvvvvvvvwb_required = true;
} }
} }
} }
// the tWDagyL function // the vvvvvvw function
function tWDagyL(department_tWDagyL) function vvvvvvw(department_vvvvvvw)
{ {
// set the function logic // set the function logic
if (department_tWDagyL == 1) if (department_vvvvvvw == 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();

View File

@ -17,38 +17,38 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_hqyqHkSVEX_required = false; jform_vvvvvwdvwl_required = false;
jform_TXCmbHJieM_required = false; jform_vvvvvwevwm_required = false;
jform_BZIvONJWYe_required = false; jform_vvvvvwfvwn_required = false;
jform_kguPvVXpQH_required = false; jform_vvvvvwgvwo_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var location_jsYlSTb = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvvwb = jQuery("#jform_location input[type='radio']:checked").val();
jsYlSTb(location_jsYlSTb); vvvvvwb(location_vvvvvwb);
var location_Rhrgnts = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvvwc = jQuery("#jform_location input[type='radio']:checked").val();
Rhrgnts(location_Rhrgnts); vvvvvwc(location_vvvvvwc);
var type_hqyqHkS = jQuery("#jform_type").val(); var type_vvvvvwd = jQuery("#jform_type").val();
hqyqHkS(type_hqyqHkS); vvvvvwd(type_vvvvvwd);
var type_TXCmbHJ = jQuery("#jform_type").val(); var type_vvvvvwe = jQuery("#jform_type").val();
TXCmbHJ(type_TXCmbHJ); vvvvvwe(type_vvvvvwe);
var type_BZIvONJ = jQuery("#jform_type").val(); var type_vvvvvwf = jQuery("#jform_type").val();
BZIvONJ(type_BZIvONJ); vvvvvwf(type_vvvvvwf);
var target_kguPvVX = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvvwg = jQuery("#jform_target input[type='radio']:checked").val();
kguPvVX(target_kguPvVX); vvvvvwg(target_vvvvvwg);
}); });
// the jsYlSTb function // the vvvvvwb function
function jsYlSTb(location_jsYlSTb) function vvvvvwb(location_vvvvvwb)
{ {
// set the function logic // set the function logic
if (location_jsYlSTb == 1) if (location_vvvvvwb == 1)
{ {
jQuery('#jform_admin_view').closest('.control-group').show(); jQuery('#jform_admin_view').closest('.control-group').show();
} }
@ -58,11 +58,11 @@ function jsYlSTb(location_jsYlSTb)
} }
} }
// the Rhrgnts function // the vvvvvwc function
function Rhrgnts(location_Rhrgnts) function vvvvvwc(location_vvvvvwc)
{ {
// set the function logic // set the function logic
if (location_Rhrgnts == 2) if (location_vvvvvwc == 2)
{ {
jQuery('#jform_site_view').closest('.control-group').show(); jQuery('#jform_site_view').closest('.control-group').show();
} }
@ -72,198 +72,198 @@ function Rhrgnts(location_Rhrgnts)
} }
} }
// the hqyqHkS function // the vvvvvwd function
function hqyqHkS(type_hqyqHkS) function vvvvvwd(type_vvvvvwd)
{ {
if (isSet(type_hqyqHkS) && type_hqyqHkS.constructor !== Array) if (isSet(type_vvvvvwd) && type_vvvvvwd.constructor !== Array)
{ {
var temp_hqyqHkS = type_hqyqHkS; var temp_vvvvvwd = type_vvvvvwd;
var type_hqyqHkS = []; var type_vvvvvwd = [];
type_hqyqHkS.push(temp_hqyqHkS); type_vvvvvwd.push(temp_vvvvvwd);
} }
else if (!isSet(type_hqyqHkS)) else if (!isSet(type_vvvvvwd))
{ {
var type_hqyqHkS = []; var type_vvvvvwd = [];
} }
var type = type_hqyqHkS.some(type_hqyqHkS_SomeFunc); var type = type_vvvvvwd.some(type_vvvvvwd_SomeFunc);
// set this function logic // set this function logic
if (type) if (type)
{ {
jQuery('#jform_url').closest('.control-group').show(); jQuery('#jform_url').closest('.control-group').show();
if (jform_hqyqHkSVEX_required) if (jform_vvvvvwdvwl_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_hqyqHkSVEX_required = false; jform_vvvvvwdvwl_required = false;
} }
} }
else else
{ {
jQuery('#jform_url').closest('.control-group').hide(); jQuery('#jform_url').closest('.control-group').hide();
if (!jform_hqyqHkSVEX_required) if (!jform_vvvvvwdvwl_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_hqyqHkSVEX_required = true; jform_vvvvvwdvwl_required = true;
} }
} }
} }
// the hqyqHkS Some function // the vvvvvwd Some function
function type_hqyqHkS_SomeFunc(type_hqyqHkS) function type_vvvvvwd_SomeFunc(type_vvvvvwd)
{ {
// set the function logic // set the function logic
if (type_hqyqHkS == 3) if (type_vvvvvwd == 3)
{ {
return true; return true;
} }
return false; return false;
} }
// the TXCmbHJ function // the vvvvvwe function
function TXCmbHJ(type_TXCmbHJ) function vvvvvwe(type_vvvvvwe)
{ {
if (isSet(type_TXCmbHJ) && type_TXCmbHJ.constructor !== Array) if (isSet(type_vvvvvwe) && type_vvvvvwe.constructor !== Array)
{ {
var temp_TXCmbHJ = type_TXCmbHJ; var temp_vvvvvwe = type_vvvvvwe;
var type_TXCmbHJ = []; var type_vvvvvwe = [];
type_TXCmbHJ.push(temp_TXCmbHJ); type_vvvvvwe.push(temp_vvvvvwe);
} }
else if (!isSet(type_TXCmbHJ)) else if (!isSet(type_vvvvvwe))
{ {
var type_TXCmbHJ = []; var type_vvvvvwe = [];
} }
var type = type_TXCmbHJ.some(type_TXCmbHJ_SomeFunc); var type = type_vvvvvwe.some(type_vvvvvwe_SomeFunc);
// set this function logic // set this function logic
if (type) if (type)
{ {
jQuery('#jform_article').closest('.control-group').show(); jQuery('#jform_article').closest('.control-group').show();
if (jform_TXCmbHJieM_required) if (jform_vvvvvwevwm_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_TXCmbHJieM_required = false; jform_vvvvvwevwm_required = false;
} }
} }
else else
{ {
jQuery('#jform_article').closest('.control-group').hide(); jQuery('#jform_article').closest('.control-group').hide();
if (!jform_TXCmbHJieM_required) if (!jform_vvvvvwevwm_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_TXCmbHJieM_required = true; jform_vvvvvwevwm_required = true;
} }
} }
} }
// the TXCmbHJ Some function // the vvvvvwe Some function
function type_TXCmbHJ_SomeFunc(type_TXCmbHJ) function type_vvvvvwe_SomeFunc(type_vvvvvwe)
{ {
// set the function logic // set the function logic
if (type_TXCmbHJ == 1) if (type_vvvvvwe == 1)
{ {
return true; return true;
} }
return false; return false;
} }
// the BZIvONJ function // the vvvvvwf function
function BZIvONJ(type_BZIvONJ) function vvvvvwf(type_vvvvvwf)
{ {
if (isSet(type_BZIvONJ) && type_BZIvONJ.constructor !== Array) if (isSet(type_vvvvvwf) && type_vvvvvwf.constructor !== Array)
{ {
var temp_BZIvONJ = type_BZIvONJ; var temp_vvvvvwf = type_vvvvvwf;
var type_BZIvONJ = []; var type_vvvvvwf = [];
type_BZIvONJ.push(temp_BZIvONJ); type_vvvvvwf.push(temp_vvvvvwf);
} }
else if (!isSet(type_BZIvONJ)) else if (!isSet(type_vvvvvwf))
{ {
var type_BZIvONJ = []; var type_vvvvvwf = [];
} }
var type = type_BZIvONJ.some(type_BZIvONJ_SomeFunc); var type = type_vvvvvwf.some(type_vvvvvwf_SomeFunc);
// set this function logic // 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_BZIvONJWYe_required) if (jform_vvvvvwfvwn_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_BZIvONJWYe_required = false; jform_vvvvvwfvwn_required = false;
} }
} }
else else
{ {
jQuery('#jform_content-lbl').closest('.control-group').hide(); jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_BZIvONJWYe_required) if (!jform_vvvvvwfvwn_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_BZIvONJWYe_required = true; jform_vvvvvwfvwn_required = true;
} }
} }
} }
// the BZIvONJ Some function // the vvvvvwf Some function
function type_BZIvONJ_SomeFunc(type_BZIvONJ) function type_vvvvvwf_SomeFunc(type_vvvvvwf)
{ {
// set the function logic // set the function logic
if (type_BZIvONJ == 2) if (type_vvvvvwf == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the kguPvVX function // the vvvvvwg function
function kguPvVX(target_kguPvVX) function vvvvvwg(target_vvvvvwg)
{ {
// set the function logic // set the function logic
if (target_kguPvVX == 1) if (target_vvvvvwg == 1)
{ {
jQuery('#jform_groups').closest('.control-group').show(); jQuery('#jform_groups').closest('.control-group').show();
if (jform_kguPvVXpQH_required) if (jform_vvvvvwgvwo_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_kguPvVXpQH_required = false; jform_vvvvvwgvwo_required = false;
} }
} }
else else
{ {
jQuery('#jform_groups').closest('.control-group').hide(); jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_kguPvVXpQH_required) if (!jform_vvvvvwgvwo_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_kguPvVXpQH_required = true; jform_vvvvvwgvwo_required = true;
} }
} }
} }

View File

@ -17,58 +17,58 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_CVKWmltbch_required = false; jform_vvvvvvyvwj_required = false;
jform_uvfXsGAdeB_required = false; jform_vvvvvwavwk_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var type_CVKWmlt = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvy = jQuery("#jform_type input[type='radio']:checked").val();
CVKWmlt(type_CVKWmlt); vvvvvvy(type_vvvvvvy);
var type_WXlltJD = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvz = jQuery("#jform_type input[type='radio']:checked").val();
WXlltJD(type_WXlltJD); vvvvvvz(type_vvvvvvz);
var company_uvfXsGA = jQuery("#jform_company").val(); var company_vvvvvwa = jQuery("#jform_company").val();
uvfXsGA(company_uvfXsGA); vvvvvwa(company_vvvvvwa);
}); });
// the CVKWmlt function // the vvvvvvy function
function CVKWmlt(type_CVKWmlt) function vvvvvvy(type_vvvvvvy)
{ {
// set the function logic // set the function logic
if (type_CVKWmlt == 2) if (type_vvvvvvy == 2)
{ {
jQuery('#jform_interventions').closest('.control-group').show(); jQuery('#jform_interventions').closest('.control-group').show();
if (jform_CVKWmltbch_required) if (jform_vvvvvvyvwj_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_CVKWmltbch_required = false; jform_vvvvvvyvwj_required = false;
} }
} }
else else
{ {
jQuery('#jform_interventions').closest('.control-group').hide(); jQuery('#jform_interventions').closest('.control-group').hide();
if (!jform_CVKWmltbch_required) if (!jform_vvvvvvyvwj_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_CVKWmltbch_required = true; jform_vvvvvvyvwj_required = true;
} }
} }
} }
// the WXlltJD function // the vvvvvvz function
function WXlltJD(type_WXlltJD) function vvvvvvz(type_vvvvvvz)
{ {
// set the function logic // set the function logic
if (type_WXlltJD == 1) if (type_vvvvvvz == 1)
{ {
jQuery('#jform_intervention').closest('.control-group').show(); jQuery('#jform_intervention').closest('.control-group').show();
} }
@ -78,55 +78,55 @@ function WXlltJD(type_WXlltJD)
} }
} }
// the uvfXsGA function // the vvvvvwa function
function uvfXsGA(company_uvfXsGA) function vvvvvwa(company_vvvvvwa)
{ {
if (isSet(company_uvfXsGA) && company_uvfXsGA.constructor !== Array) if (isSet(company_vvvvvwa) && company_vvvvvwa.constructor !== Array)
{ {
var temp_uvfXsGA = company_uvfXsGA; var temp_vvvvvwa = company_vvvvvwa;
var company_uvfXsGA = []; var company_vvvvvwa = [];
company_uvfXsGA.push(temp_uvfXsGA); company_vvvvvwa.push(temp_vvvvvwa);
} }
else if (!isSet(company_uvfXsGA)) else if (!isSet(company_vvvvvwa))
{ {
var company_uvfXsGA = []; var company_vvvvvwa = [];
} }
var company = company_uvfXsGA.some(company_uvfXsGA_SomeFunc); var company = company_vvvvvwa.some(company_vvvvvwa_SomeFunc);
// set this function logic // set this function logic
if (company) if (company)
{ {
jQuery('#jform_country').closest('.control-group').show(); jQuery('#jform_country').closest('.control-group').show();
if (jform_uvfXsGAdeB_required) if (jform_vvvvvwavwk_required)
{ {
updateFieldRequired('country',0); updateFieldRequired('country',0);
jQuery('#jform_country').prop('required','required'); jQuery('#jform_country').prop('required','required');
jQuery('#jform_country').attr('aria-required',true); jQuery('#jform_country').attr('aria-required',true);
jQuery('#jform_country').addClass('required'); jQuery('#jform_country').addClass('required');
jform_uvfXsGAdeB_required = false; jform_vvvvvwavwk_required = false;
} }
} }
else else
{ {
jQuery('#jform_country').closest('.control-group').hide(); jQuery('#jform_country').closest('.control-group').hide();
if (!jform_uvfXsGAdeB_required) if (!jform_vvvvvwavwk_required)
{ {
updateFieldRequired('country',1); updateFieldRequired('country',1);
jQuery('#jform_country').removeAttr('required'); jQuery('#jform_country').removeAttr('required');
jQuery('#jform_country').removeAttr('aria-required'); jQuery('#jform_country').removeAttr('aria-required');
jQuery('#jform_country').removeClass('required'); jQuery('#jform_country').removeClass('required');
jform_uvfXsGAdeB_required = true; jform_vvvvvwavwk_required = true;
} }
} }
} }
// the uvfXsGA Some function // the vvvvvwa Some function
function company_uvfXsGA_SomeFunc(company_uvfXsGA) function company_vvvvvwa_SomeFunc(company_vvvvvwa)
{ {
// set the function logic // set the function logic
if (company_uvfXsGA == 0) if (company_vvvvvwa == 0)
{ {
return true; return true;
} }

View File

@ -17,64 +17,64 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_SACPybdoDe_required = false; jform_vvvvvvxvwi_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var company_SACPybd = jQuery("#jform_company").val(); var company_vvvvvvx = jQuery("#jform_company").val();
SACPybd(company_SACPybd); vvvvvvx(company_vvvvvvx);
}); });
// the SACPybd function // the vvvvvvx function
function SACPybd(company_SACPybd) function vvvvvvx(company_vvvvvvx)
{ {
if (isSet(company_SACPybd) && company_SACPybd.constructor !== Array) if (isSet(company_vvvvvvx) && company_vvvvvvx.constructor !== Array)
{ {
var temp_SACPybd = company_SACPybd; var temp_vvvvvvx = company_vvvvvvx;
var company_SACPybd = []; var company_vvvvvvx = [];
company_SACPybd.push(temp_SACPybd); company_vvvvvvx.push(temp_vvvvvvx);
} }
else if (!isSet(company_SACPybd)) else if (!isSet(company_vvvvvvx))
{ {
var company_SACPybd = []; var company_vvvvvvx = [];
} }
var company = company_SACPybd.some(company_SACPybd_SomeFunc); var company = company_vvvvvvx.some(company_vvvvvvx_SomeFunc);
// set this function logic // set this function logic
if (company) if (company)
{ {
jQuery('#jform_country').closest('.control-group').show(); jQuery('#jform_country').closest('.control-group').show();
if (jform_SACPybdoDe_required) if (jform_vvvvvvxvwi_required)
{ {
updateFieldRequired('country',0); updateFieldRequired('country',0);
jQuery('#jform_country').prop('required','required'); jQuery('#jform_country').prop('required','required');
jQuery('#jform_country').attr('aria-required',true); jQuery('#jform_country').attr('aria-required',true);
jQuery('#jform_country').addClass('required'); jQuery('#jform_country').addClass('required');
jform_SACPybdoDe_required = false; jform_vvvvvvxvwi_required = false;
} }
} }
else else
{ {
jQuery('#jform_country').closest('.control-group').hide(); jQuery('#jform_country').closest('.control-group').hide();
if (!jform_SACPybdoDe_required) if (!jform_vvvvvvxvwi_required)
{ {
updateFieldRequired('country',1); updateFieldRequired('country',1);
jQuery('#jform_country').removeAttr('required'); jQuery('#jform_country').removeAttr('required');
jQuery('#jform_country').removeAttr('aria-required'); jQuery('#jform_country').removeAttr('aria-required');
jQuery('#jform_country').removeClass('required'); jQuery('#jform_country').removeClass('required');
jform_SACPybdoDe_required = true; jform_vvvvvvxvwi_required = true;
} }
} }
} }
// the SACPybd Some function // the vvvvvvx Some function
function company_SACPybd_SomeFunc(company_SACPybd) function company_vvvvvvx_SomeFunc(company_vvvvvvx)
{ {
// set the function logic // set the function logic
if (company_SACPybd == 0) if (company_vvvvvvx == 0)
{ {
return true; return true;
} }

View File

@ -142,7 +142,7 @@ class CostbenefitprojectionModelHealth_data_sets extends JModelList
* *
* @return translatable string * @return translatable string
*/ */
protected function selectionTranslation($value,$name) public function selectionTranslation($value,$name)
{ {
// Array of year language strings // Array of year language strings
if ($name == 'year') if ($name == 'year')

View File

@ -172,7 +172,7 @@ class CostbenefitprojectionModelHelp_documents extends JModelList
* *
* @return translatable string * @return translatable string
*/ */
protected function selectionTranslation($value,$name) public function selectionTranslation($value,$name)
{ {
// Array of type language strings // Array of type language strings
if ($name == 'type') if ($name == 'type')

View File

@ -167,7 +167,7 @@ class CostbenefitprojectionModelInterventions extends JModelList
* *
* @return translatable string * @return translatable string
*/ */
protected function selectionTranslation($value,$name) public function selectionTranslation($value,$name)
{ {
// Array of type language strings // Array of type language strings
if ($name == 'type') if ($name == 'type')

View File

@ -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->service_providernibj = $item->id; $this->service_providervvvx = $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 getSvucompanies() public function getVwecompanies()
{ {
// Get the user object. // 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','service_provider_user')); $query->select($db->quoteName('i.user','service_provider_user'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.service_provider') . ' = ' . $db->quoteName('i.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.service_provider') . ' = ' . $db->quoteName('i.id') . ')');
// Filter by service_providernibj global. // Filter by service_providervvvx global.
$service_providernibj = $this->service_providernibj; $service_providervvvx = $this->service_providervvvx;
if (is_numeric($service_providernibj )) if (is_numeric($service_providervvvx ))
{ {
$query->where('a.service_provider = ' . (int) $service_providernibj ); $query->where('a.service_provider = ' . (int) $service_providervvvx );
} }
elseif (is_string($service_providernibj)) elseif (is_string($service_providervvvx))
{ {
$query->where('a.service_provider = ' . $db->quote($service_providernibj)); $query->where('a.service_provider = ' . $db->quote($service_providervvvx));
} }
else else
{ {
@ -211,9 +211,9 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert department // convert department
$item->department = $this->selectionTranslationSvucompanies($item->department, 'department'); $item->department = $this->selectionTranslationVwecompanies($item->department, 'department');
// convert per // convert per
$item->per = $this->selectionTranslationSvucompanies($item->per, 'per'); $item->per = $this->selectionTranslationVwecompanies($item->per, 'per');
} }
} }
@ -227,7 +227,7 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
protected function selectionTranslationSvucompanies($value,$name) public function selectionTranslationVwecompanies($value,$name)
{ {
// Array of department language strings // Array of department language strings
if ($name == 'department') if ($name == 'department')

View File

@ -339,7 +339,7 @@ class CostbenefitprojectionViewCompanies extends JViewLegacy
); );
} }
public function getTheDepartmentSelections() protected function getTheDepartmentSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();
@ -375,7 +375,7 @@ class CostbenefitprojectionViewCompanies extends JViewLegacy
return false; return false;
} }
public function getThePerSelections() protected function getThePerSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();

View File

@ -141,33 +141,33 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_department listeners for department_GoUKnYR function // #jform_department listeners for department_vvvvvvv function
jQuery('#jform_department').on('keyup',function() jQuery('#jform_department').on('keyup',function()
{ {
var department_GoUKnYR = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvv = jQuery("#jform_department input[type='radio']:checked").val();
GoUKnYR(department_GoUKnYR); vvvvvvv(department_vvvvvvv);
}); });
jQuery('#adminForm').on('change', '#jform_department',function (e) jQuery('#adminForm').on('change', '#jform_department',function (e)
{ {
e.preventDefault(); e.preventDefault();
var department_GoUKnYR = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvv = jQuery("#jform_department input[type='radio']:checked").val();
GoUKnYR(department_GoUKnYR); vvvvvvv(department_vvvvvvv);
}); });
// #jform_department listeners for department_tWDagyL function // #jform_department listeners for department_vvvvvvw function
jQuery('#jform_department').on('keyup',function() jQuery('#jform_department').on('keyup',function()
{ {
var department_tWDagyL = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvw = jQuery("#jform_department input[type='radio']:checked").val();
tWDagyL(department_tWDagyL); vvvvvvw(department_vvvvvvw);
}); });
jQuery('#adminForm').on('change', '#jform_department',function (e) jQuery('#adminForm').on('change', '#jform_department',function (e)
{ {
e.preventDefault(); e.preventDefault();
var department_tWDagyL = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvw = jQuery("#jform_department input[type='radio']:checked").val();
tWDagyL(department_tWDagyL); vvvvvvw(department_vvvvvvw);
}); });

View File

@ -65,10 +65,10 @@ class CostbenefitprojectionViewCompany extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->cwvscaling_factors = $this->get('Cwvscaling_factors'); $this->vwcscaling_factors = $this->get('Vwcscaling_factors');
// Get Linked view data // Get Linked view data
$this->rjqinterventions = $this->get('Rjqinterventions'); $this->vwdinterventions = $this->get('Vwdinterventions');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -65,13 +65,13 @@ class CostbenefitprojectionViewCountry extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->fnxinterventions = $this->get('Fnxinterventions'); $this->vwfinterventions = $this->get('Vwfinterventions');
// Get Linked view data // Get Linked view data
$this->qkaservice_providers = $this->get('Qkaservice_providers'); $this->vwgservice_providers = $this->get('Vwgservice_providers');
// Get Linked view data // Get Linked view data
$this->sbccompanies = $this->get('Sbccompanies'); $this->vwhcompanies = $this->get('Vwhcompanies');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -310,7 +310,7 @@ class CostbenefitprojectionViewHealth_data_sets extends JViewLegacy
); );
} }
public function getTheYearSelections() protected function getTheYearSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();

View File

@ -96,93 +96,93 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_location listeners for location_jsYlSTb function // #jform_location listeners for location_vvvvvwb function
jQuery('#jform_location').on('keyup',function() jQuery('#jform_location').on('keyup',function()
{ {
var location_jsYlSTb = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvvwb = jQuery("#jform_location input[type='radio']:checked").val();
jsYlSTb(location_jsYlSTb); vvvvvwb(location_vvvvvwb);
}); });
jQuery('#adminForm').on('change', '#jform_location',function (e) jQuery('#adminForm').on('change', '#jform_location',function (e)
{ {
e.preventDefault(); e.preventDefault();
var location_jsYlSTb = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvvwb = jQuery("#jform_location input[type='radio']:checked").val();
jsYlSTb(location_jsYlSTb); vvvvvwb(location_vvvvvwb);
}); });
// #jform_location listeners for location_Rhrgnts function // #jform_location listeners for location_vvvvvwc function
jQuery('#jform_location').on('keyup',function() jQuery('#jform_location').on('keyup',function()
{ {
var location_Rhrgnts = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvvwc = jQuery("#jform_location input[type='radio']:checked").val();
Rhrgnts(location_Rhrgnts); vvvvvwc(location_vvvvvwc);
}); });
jQuery('#adminForm').on('change', '#jform_location',function (e) jQuery('#adminForm').on('change', '#jform_location',function (e)
{ {
e.preventDefault(); e.preventDefault();
var location_Rhrgnts = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvvwc = jQuery("#jform_location input[type='radio']:checked").val();
Rhrgnts(location_Rhrgnts); vvvvvwc(location_vvvvvwc);
}); });
// #jform_type listeners for type_hqyqHkS function // #jform_type listeners for type_vvvvvwd function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_hqyqHkS = jQuery("#jform_type").val(); var type_vvvvvwd = jQuery("#jform_type").val();
hqyqHkS(type_hqyqHkS); vvvvvwd(type_vvvvvwd);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_hqyqHkS = jQuery("#jform_type").val(); var type_vvvvvwd = jQuery("#jform_type").val();
hqyqHkS(type_hqyqHkS); vvvvvwd(type_vvvvvwd);
}); });
// #jform_type listeners for type_TXCmbHJ function // #jform_type listeners for type_vvvvvwe function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_TXCmbHJ = jQuery("#jform_type").val(); var type_vvvvvwe = jQuery("#jform_type").val();
TXCmbHJ(type_TXCmbHJ); vvvvvwe(type_vvvvvwe);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_TXCmbHJ = jQuery("#jform_type").val(); var type_vvvvvwe = jQuery("#jform_type").val();
TXCmbHJ(type_TXCmbHJ); vvvvvwe(type_vvvvvwe);
}); });
// #jform_type listeners for type_BZIvONJ function // #jform_type listeners for type_vvvvvwf function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_BZIvONJ = jQuery("#jform_type").val(); var type_vvvvvwf = jQuery("#jform_type").val();
BZIvONJ(type_BZIvONJ); vvvvvwf(type_vvvvvwf);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_BZIvONJ = jQuery("#jform_type").val(); var type_vvvvvwf = jQuery("#jform_type").val();
BZIvONJ(type_BZIvONJ); vvvvvwf(type_vvvvvwf);
}); });
// #jform_target listeners for target_kguPvVX function // #jform_target listeners for target_vvvvvwg function
jQuery('#jform_target').on('keyup',function() jQuery('#jform_target').on('keyup',function()
{ {
var target_kguPvVX = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvvwg = jQuery("#jform_target input[type='radio']:checked").val();
kguPvVX(target_kguPvVX); vvvvvwg(target_vvvvvwg);
}); });
jQuery('#adminForm').on('change', '#jform_target',function (e) jQuery('#adminForm').on('change', '#jform_target',function (e)
{ {
e.preventDefault(); e.preventDefault();
var target_kguPvVX = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvvwg = jQuery("#jform_target input[type='radio']:checked").val();
kguPvVX(target_kguPvVX); vvvvvwg(target_vvvvvwg);
}); });

View File

@ -334,7 +334,7 @@ class CostbenefitprojectionViewHelp_documents extends JViewLegacy
); );
} }
public function getTheTypeSelections() protected function getTheTypeSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();
@ -370,7 +370,7 @@ class CostbenefitprojectionViewHelp_documents extends JViewLegacy
return false; return false;
} }
public function getTheLocationSelections() protected function getTheLocationSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();
@ -406,7 +406,7 @@ class CostbenefitprojectionViewHelp_documents extends JViewLegacy
return false; return false;
} }
public function getTheAdmin_viewSelections() protected function getTheAdmin_viewSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();
@ -438,7 +438,7 @@ class CostbenefitprojectionViewHelp_documents extends JViewLegacy
return false; return false;
} }
public function getTheSite_viewSelections() protected function getTheSite_viewSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();

View File

@ -103,48 +103,48 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_type listeners for type_CVKWmlt function // #jform_type listeners for type_vvvvvvy function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_CVKWmlt = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvy = jQuery("#jform_type input[type='radio']:checked").val();
CVKWmlt(type_CVKWmlt); vvvvvvy(type_vvvvvvy);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_CVKWmlt = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvy = jQuery("#jform_type input[type='radio']:checked").val();
CVKWmlt(type_CVKWmlt); vvvvvvy(type_vvvvvvy);
}); });
// #jform_type listeners for type_WXlltJD function // #jform_type listeners for type_vvvvvvz function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_WXlltJD = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvz = jQuery("#jform_type input[type='radio']:checked").val();
WXlltJD(type_WXlltJD); vvvvvvz(type_vvvvvvz);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_WXlltJD = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvz = jQuery("#jform_type input[type='radio']:checked").val();
WXlltJD(type_WXlltJD); vvvvvvz(type_vvvvvvz);
}); });
// #jform_company listeners for company_uvfXsGA function // #jform_company listeners for company_vvvvvwa function
jQuery('#jform_company').on('keyup',function() jQuery('#jform_company').on('keyup',function()
{ {
var company_uvfXsGA = jQuery("#jform_company").val(); var company_vvvvvwa = jQuery("#jform_company").val();
uvfXsGA(company_uvfXsGA); vvvvvwa(company_vvvvvwa);
}); });
jQuery('#adminForm').on('change', '#jform_company',function (e) jQuery('#adminForm').on('change', '#jform_company',function (e)
{ {
e.preventDefault(); e.preventDefault();
var company_uvfXsGA = jQuery("#jform_company").val(); var company_vvvvvwa = jQuery("#jform_company").val();
uvfXsGA(company_uvfXsGA); vvvvvwa(company_vvvvvwa);
}); });

View File

@ -335,7 +335,7 @@ class CostbenefitprojectionViewInterventions extends JViewLegacy
); );
} }
public function getTheTypeSelections() protected function getTheTypeSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();
@ -371,7 +371,7 @@ class CostbenefitprojectionViewInterventions extends JViewLegacy
return false; return false;
} }
public function getTheCoverageSelections() protected function getTheCoverageSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();
@ -403,7 +403,7 @@ class CostbenefitprojectionViewInterventions extends JViewLegacy
return false; return false;
} }
public function getTheDurationSelections() protected function getTheDurationSelections()
{ {
// Get a db connection. // Get a db connection.
$db = JFactory::getDbo(); $db = JFactory::getDbo();

View File

@ -88,18 +88,18 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_company listeners for company_SACPybd function // #jform_company listeners for company_vvvvvvx function
jQuery('#jform_company').on('keyup',function() jQuery('#jform_company').on('keyup',function()
{ {
var company_SACPybd = jQuery("#jform_company").val(); var company_vvvvvvx = jQuery("#jform_company").val();
SACPybd(company_SACPybd); vvvvvvx(company_vvvvvvx);
}); });
jQuery('#adminForm').on('change', '#jform_company',function (e) jQuery('#adminForm').on('change', '#jform_company',function (e)
{ {
e.preventDefault(); e.preventDefault();
var company_SACPybd = jQuery("#jform_company").val(); var company_vvvvvvx = jQuery("#jform_company").val();
SACPybd(company_SACPybd); vvvvvvx(company_vvvvvvx);
}); });

View File

@ -65,7 +65,7 @@ class CostbenefitprojectionViewService_provider extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->svucompanies = $this->get('Svucompanies'); $this->vwecompanies = $this->get('Vwecompanies');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->rjqinterventions; $items = $displayData->vwdinterventions;
$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";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->cwvscaling_factors; $items = $displayData->vwcscaling_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";

View File

@ -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->companymmfv = $item->id; $this->companyvvvv = $item->id;
$this->companyzzjj = $item->id; $this->companyvvvw = $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 getCwvscaling_factors() public function getVwcscaling_factors()
{ {
// Get the user object. // 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') . ')');
// Filter by companymmfv global. // Filter by companyvvvv global.
$companymmfv = $this->companymmfv; $companyvvvv = $this->companyvvvv;
if (is_numeric($companymmfv )) if (is_numeric($companyvvvv ))
{ {
$query->where('a.company = ' . (int) $companymmfv ); $query->where('a.company = ' . (int) $companyvvvv );
} }
elseif (is_string($companymmfv)) elseif (is_string($companyvvvv))
{ {
$query->where('a.company = ' . $db->quote($companymmfv)); $query->where('a.company = ' . $db->quote($companyvvvv));
} }
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 getRjqinterventions() public function getVwdinterventions()
{ {
// Get the user object. // 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') . ')');
// Filter by companyzzjj global. // Filter by companyvvvw global.
$companyzzjj = $this->companyzzjj; $companyvvvw = $this->companyvvvw;
if (is_numeric($companyzzjj )) if (is_numeric($companyvvvw ))
{ {
$query->where('a.company = ' . (int) $companyzzjj ); $query->where('a.company = ' . (int) $companyvvvw );
} }
elseif (is_string($companyzzjj)) elseif (is_string($companyvvvw))
{ {
$query->where('a.company = ' . $db->quote($companyzzjj)); $query->where('a.company = ' . $db->quote($companyvvvw));
} }
else else
{ {
@ -351,7 +351,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert type // convert type
$item->type = $this->selectionTranslationRjqinterventions($item->type, 'type'); $item->type = $this->selectionTranslationVwdinterventions($item->type, 'type');
} }
} }
@ -365,7 +365,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
protected function selectionTranslationRjqinterventions($value,$name) public function selectionTranslationVwdinterventions($value,$name)
{ {
// Array of type language strings // Array of type language strings
if ($name == 'type') if ($name == 'type')

View File

@ -17,178 +17,178 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_GoUKnYRWrn_required = false; jform_vvvvvvvvvv_required = false;
jform_GoUKnYRuhe_required = false; jform_vvvvvvvvvw_required = false;
jform_GoUKnYRlzC_required = false; jform_vvvvvvvvvx_required = false;
jform_GoUKnYRmUE_required = false; jform_vvvvvvvvvy_required = false;
jform_GoUKnYRvxB_required = false; jform_vvvvvvvvvz_required = false;
jform_GoUKnYRZZT_required = false; jform_vvvvvvvvwa_required = false;
jform_GoUKnYRXRy_required = false; jform_vvvvvvvvwb_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var department_GoUKnYR = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvv = jQuery("#jform_department input[type='radio']:checked").val();
GoUKnYR(department_GoUKnYR); vvvvvvv(department_vvvvvvv);
var department_tWDagyL = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvw = jQuery("#jform_department input[type='radio']:checked").val();
tWDagyL(department_tWDagyL); vvvvvvw(department_vvvvvvw);
}); });
// the GoUKnYR function // the vvvvvvv function
function GoUKnYR(department_GoUKnYR) function vvvvvvv(department_vvvvvvv)
{ {
// set the function logic // set the function logic
if (department_GoUKnYR == 2) if (department_vvvvvvv == 2)
{ {
jQuery('#jform_causesrisks').closest('.control-group').show(); jQuery('#jform_causesrisks').closest('.control-group').show();
if (jform_GoUKnYRWrn_required) if (jform_vvvvvvvvvv_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_GoUKnYRWrn_required = false; jform_vvvvvvvvvv_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_GoUKnYRuhe_required) if (jform_vvvvvvvvvw_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_GoUKnYRuhe_required = false; jform_vvvvvvvvvw_required = false;
} }
jQuery('#jform_medical_turnovers_females').closest('.control-group').show(); jQuery('#jform_medical_turnovers_females').closest('.control-group').show();
if (jform_GoUKnYRlzC_required) if (jform_vvvvvvvvvx_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_GoUKnYRlzC_required = false; jform_vvvvvvvvvx_required = false;
} }
jQuery('#jform_medical_turnovers_males').closest('.control-group').show(); jQuery('#jform_medical_turnovers_males').closest('.control-group').show();
if (jform_GoUKnYRmUE_required) if (jform_vvvvvvvvvy_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_GoUKnYRmUE_required = false; jform_vvvvvvvvvy_required = false;
} }
jQuery('#jform_sick_leave_females').closest('.control-group').show(); jQuery('#jform_sick_leave_females').closest('.control-group').show();
if (jform_GoUKnYRvxB_required) if (jform_vvvvvvvvvz_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_GoUKnYRvxB_required = false; jform_vvvvvvvvvz_required = false;
} }
jQuery('#jform_sick_leave_males').closest('.control-group').show(); jQuery('#jform_sick_leave_males').closest('.control-group').show();
if (jform_GoUKnYRZZT_required) if (jform_vvvvvvvvwa_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_GoUKnYRZZT_required = false; jform_vvvvvvvvwa_required = false;
} }
jQuery('#jform_total_healthcare').closest('.control-group').show(); jQuery('#jform_total_healthcare').closest('.control-group').show();
if (jform_GoUKnYRXRy_required) if (jform_vvvvvvvvwb_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_GoUKnYRXRy_required = false; jform_vvvvvvvvwb_required = false;
} }
} }
else else
{ {
jQuery('#jform_causesrisks').closest('.control-group').hide(); jQuery('#jform_causesrisks').closest('.control-group').hide();
if (!jform_GoUKnYRWrn_required) if (!jform_vvvvvvvvvv_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_GoUKnYRWrn_required = true; jform_vvvvvvvvvv_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_GoUKnYRuhe_required) if (!jform_vvvvvvvvvw_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_GoUKnYRuhe_required = true; jform_vvvvvvvvvw_required = true;
} }
jQuery('#jform_medical_turnovers_females').closest('.control-group').hide(); jQuery('#jform_medical_turnovers_females').closest('.control-group').hide();
if (!jform_GoUKnYRlzC_required) if (!jform_vvvvvvvvvx_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_GoUKnYRlzC_required = true; jform_vvvvvvvvvx_required = true;
} }
jQuery('#jform_medical_turnovers_males').closest('.control-group').hide(); jQuery('#jform_medical_turnovers_males').closest('.control-group').hide();
if (!jform_GoUKnYRmUE_required) if (!jform_vvvvvvvvvy_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_GoUKnYRmUE_required = true; jform_vvvvvvvvvy_required = true;
} }
jQuery('#jform_sick_leave_females').closest('.control-group').hide(); jQuery('#jform_sick_leave_females').closest('.control-group').hide();
if (!jform_GoUKnYRvxB_required) if (!jform_vvvvvvvvvz_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_GoUKnYRvxB_required = true; jform_vvvvvvvvvz_required = true;
} }
jQuery('#jform_sick_leave_males').closest('.control-group').hide(); jQuery('#jform_sick_leave_males').closest('.control-group').hide();
if (!jform_GoUKnYRZZT_required) if (!jform_vvvvvvvvwa_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_GoUKnYRZZT_required = true; jform_vvvvvvvvwa_required = true;
} }
jQuery('#jform_total_healthcare').closest('.control-group').hide(); jQuery('#jform_total_healthcare').closest('.control-group').hide();
if (!jform_GoUKnYRXRy_required) if (!jform_vvvvvvvvwb_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_GoUKnYRXRy_required = true; jform_vvvvvvvvwb_required = true;
} }
} }
} }
// the tWDagyL function // the vvvvvvw function
function tWDagyL(department_tWDagyL) function vvvvvvw(department_vvvvvvw)
{ {
// set the function logic // set the function logic
if (department_tWDagyL == 1) if (department_vvvvvvw == 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();

View File

@ -17,58 +17,58 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_CVKWmltbch_required = false; jform_vvvvvvyvwj_required = false;
jform_uvfXsGAdeB_required = false; jform_vvvvvwavwk_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var type_CVKWmlt = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvy = jQuery("#jform_type input[type='radio']:checked").val();
CVKWmlt(type_CVKWmlt); vvvvvvy(type_vvvvvvy);
var type_WXlltJD = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvz = jQuery("#jform_type input[type='radio']:checked").val();
WXlltJD(type_WXlltJD); vvvvvvz(type_vvvvvvz);
var company_uvfXsGA = jQuery("#jform_company").val(); var company_vvvvvwa = jQuery("#jform_company").val();
uvfXsGA(company_uvfXsGA); vvvvvwa(company_vvvvvwa);
}); });
// the CVKWmlt function // the vvvvvvy function
function CVKWmlt(type_CVKWmlt) function vvvvvvy(type_vvvvvvy)
{ {
// set the function logic // set the function logic
if (type_CVKWmlt == 2) if (type_vvvvvvy == 2)
{ {
jQuery('#jform_interventions').closest('.control-group').show(); jQuery('#jform_interventions').closest('.control-group').show();
if (jform_CVKWmltbch_required) if (jform_vvvvvvyvwj_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_CVKWmltbch_required = false; jform_vvvvvvyvwj_required = false;
} }
} }
else else
{ {
jQuery('#jform_interventions').closest('.control-group').hide(); jQuery('#jform_interventions').closest('.control-group').hide();
if (!jform_CVKWmltbch_required) if (!jform_vvvvvvyvwj_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_CVKWmltbch_required = true; jform_vvvvvvyvwj_required = true;
} }
} }
} }
// the WXlltJD function // the vvvvvvz function
function WXlltJD(type_WXlltJD) function vvvvvvz(type_vvvvvvz)
{ {
// set the function logic // set the function logic
if (type_WXlltJD == 1) if (type_vvvvvvz == 1)
{ {
jQuery('#jform_intervention').closest('.control-group').show(); jQuery('#jform_intervention').closest('.control-group').show();
} }
@ -78,55 +78,55 @@ function WXlltJD(type_WXlltJD)
} }
} }
// the uvfXsGA function // the vvvvvwa function
function uvfXsGA(company_uvfXsGA) function vvvvvwa(company_vvvvvwa)
{ {
if (isSet(company_uvfXsGA) && company_uvfXsGA.constructor !== Array) if (isSet(company_vvvvvwa) && company_vvvvvwa.constructor !== Array)
{ {
var temp_uvfXsGA = company_uvfXsGA; var temp_vvvvvwa = company_vvvvvwa;
var company_uvfXsGA = []; var company_vvvvvwa = [];
company_uvfXsGA.push(temp_uvfXsGA); company_vvvvvwa.push(temp_vvvvvwa);
} }
else if (!isSet(company_uvfXsGA)) else if (!isSet(company_vvvvvwa))
{ {
var company_uvfXsGA = []; var company_vvvvvwa = [];
} }
var company = company_uvfXsGA.some(company_uvfXsGA_SomeFunc); var company = company_vvvvvwa.some(company_vvvvvwa_SomeFunc);
// set this function logic // set this function logic
if (company) if (company)
{ {
jQuery('#jform_country').closest('.control-group').show(); jQuery('#jform_country').closest('.control-group').show();
if (jform_uvfXsGAdeB_required) if (jform_vvvvvwavwk_required)
{ {
updateFieldRequired('country',0); updateFieldRequired('country',0);
jQuery('#jform_country').prop('required','required'); jQuery('#jform_country').prop('required','required');
jQuery('#jform_country').attr('aria-required',true); jQuery('#jform_country').attr('aria-required',true);
jQuery('#jform_country').addClass('required'); jQuery('#jform_country').addClass('required');
jform_uvfXsGAdeB_required = false; jform_vvvvvwavwk_required = false;
} }
} }
else else
{ {
jQuery('#jform_country').closest('.control-group').hide(); jQuery('#jform_country').closest('.control-group').hide();
if (!jform_uvfXsGAdeB_required) if (!jform_vvvvvwavwk_required)
{ {
updateFieldRequired('country',1); updateFieldRequired('country',1);
jQuery('#jform_country').removeAttr('required'); jQuery('#jform_country').removeAttr('required');
jQuery('#jform_country').removeAttr('aria-required'); jQuery('#jform_country').removeAttr('aria-required');
jQuery('#jform_country').removeClass('required'); jQuery('#jform_country').removeClass('required');
jform_uvfXsGAdeB_required = true; jform_vvvvvwavwk_required = true;
} }
} }
} }
// the uvfXsGA Some function // the vvvvvwa Some function
function company_uvfXsGA_SomeFunc(company_uvfXsGA) function company_vvvvvwa_SomeFunc(company_vvvvvwa)
{ {
// set the function logic // set the function logic
if (company_uvfXsGA == 0) if (company_vvvvvwa == 0)
{ {
return true; return true;
} }

View File

@ -17,64 +17,64 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_SACPybdoDe_required = false; jform_vvvvvvxvwi_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var company_SACPybd = jQuery("#jform_company").val(); var company_vvvvvvx = jQuery("#jform_company").val();
SACPybd(company_SACPybd); vvvvvvx(company_vvvvvvx);
}); });
// the SACPybd function // the vvvvvvx function
function SACPybd(company_SACPybd) function vvvvvvx(company_vvvvvvx)
{ {
if (isSet(company_SACPybd) && company_SACPybd.constructor !== Array) if (isSet(company_vvvvvvx) && company_vvvvvvx.constructor !== Array)
{ {
var temp_SACPybd = company_SACPybd; var temp_vvvvvvx = company_vvvvvvx;
var company_SACPybd = []; var company_vvvvvvx = [];
company_SACPybd.push(temp_SACPybd); company_vvvvvvx.push(temp_vvvvvvx);
} }
else if (!isSet(company_SACPybd)) else if (!isSet(company_vvvvvvx))
{ {
var company_SACPybd = []; var company_vvvvvvx = [];
} }
var company = company_SACPybd.some(company_SACPybd_SomeFunc); var company = company_vvvvvvx.some(company_vvvvvvx_SomeFunc);
// set this function logic // set this function logic
if (company) if (company)
{ {
jQuery('#jform_country').closest('.control-group').show(); jQuery('#jform_country').closest('.control-group').show();
if (jform_SACPybdoDe_required) if (jform_vvvvvvxvwi_required)
{ {
updateFieldRequired('country',0); updateFieldRequired('country',0);
jQuery('#jform_country').prop('required','required'); jQuery('#jform_country').prop('required','required');
jQuery('#jform_country').attr('aria-required',true); jQuery('#jform_country').attr('aria-required',true);
jQuery('#jform_country').addClass('required'); jQuery('#jform_country').addClass('required');
jform_SACPybdoDe_required = false; jform_vvvvvvxvwi_required = false;
} }
} }
else else
{ {
jQuery('#jform_country').closest('.control-group').hide(); jQuery('#jform_country').closest('.control-group').hide();
if (!jform_SACPybdoDe_required) if (!jform_vvvvvvxvwi_required)
{ {
updateFieldRequired('country',1); updateFieldRequired('country',1);
jQuery('#jform_country').removeAttr('required'); jQuery('#jform_country').removeAttr('required');
jQuery('#jform_country').removeAttr('aria-required'); jQuery('#jform_country').removeAttr('aria-required');
jQuery('#jform_country').removeClass('required'); jQuery('#jform_country').removeClass('required');
jform_SACPybdoDe_required = true; jform_vvvvvvxvwi_required = true;
} }
} }
} }
// the SACPybd Some function // the vvvvvvx Some function
function company_SACPybd_SomeFunc(company_SACPybd) function company_vvvvvvx_SomeFunc(company_vvvvvvx)
{ {
// set the function logic // set the function logic
if (company_SACPybd == 0) if (company_vvvvvvx == 0)
{ {
return true; return true;
} }

View File

@ -143,33 +143,33 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_department listeners for department_GoUKnYR function // #jform_department listeners for department_vvvvvvv function
jQuery('#jform_department').on('keyup',function() jQuery('#jform_department').on('keyup',function()
{ {
var department_GoUKnYR = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvv = jQuery("#jform_department input[type='radio']:checked").val();
GoUKnYR(department_GoUKnYR); vvvvvvv(department_vvvvvvv);
}); });
jQuery('#adminForm').on('change', '#jform_department',function (e) jQuery('#adminForm').on('change', '#jform_department',function (e)
{ {
e.preventDefault(); e.preventDefault();
var department_GoUKnYR = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvv = jQuery("#jform_department input[type='radio']:checked").val();
GoUKnYR(department_GoUKnYR); vvvvvvv(department_vvvvvvv);
}); });
// #jform_department listeners for department_tWDagyL function // #jform_department listeners for department_vvvvvvw function
jQuery('#jform_department').on('keyup',function() jQuery('#jform_department').on('keyup',function()
{ {
var department_tWDagyL = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvw = jQuery("#jform_department input[type='radio']:checked").val();
tWDagyL(department_tWDagyL); vvvvvvw(department_vvvvvvw);
}); });
jQuery('#adminForm').on('change', '#jform_department',function (e) jQuery('#adminForm').on('change', '#jform_department',function (e)
{ {
e.preventDefault(); e.preventDefault();
var department_tWDagyL = jQuery("#jform_department input[type='radio']:checked").val(); var department_vvvvvvw = jQuery("#jform_department input[type='radio']:checked").val();
tWDagyL(department_tWDagyL); vvvvvvw(department_vvvvvvw);
}); });

View File

@ -65,10 +65,10 @@ class CostbenefitprojectionViewCompany extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->cwvscaling_factors = $this->get('Cwvscaling_factors'); $this->vwcscaling_factors = $this->get('Vwcscaling_factors');
// Get Linked view data // Get Linked view data
$this->rjqinterventions = $this->get('Rjqinterventions'); $this->vwdinterventions = $this->get('Vwdinterventions');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -105,48 +105,48 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_type listeners for type_CVKWmlt function // #jform_type listeners for type_vvvvvvy function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_CVKWmlt = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvy = jQuery("#jform_type input[type='radio']:checked").val();
CVKWmlt(type_CVKWmlt); vvvvvvy(type_vvvvvvy);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_CVKWmlt = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvy = jQuery("#jform_type input[type='radio']:checked").val();
CVKWmlt(type_CVKWmlt); vvvvvvy(type_vvvvvvy);
}); });
// #jform_type listeners for type_WXlltJD function // #jform_type listeners for type_vvvvvvz function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_WXlltJD = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvz = jQuery("#jform_type input[type='radio']:checked").val();
WXlltJD(type_WXlltJD); vvvvvvz(type_vvvvvvz);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_WXlltJD = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvvvz = jQuery("#jform_type input[type='radio']:checked").val();
WXlltJD(type_WXlltJD); vvvvvvz(type_vvvvvvz);
}); });
// #jform_company listeners for company_uvfXsGA function // #jform_company listeners for company_vvvvvwa function
jQuery('#jform_company').on('keyup',function() jQuery('#jform_company').on('keyup',function()
{ {
var company_uvfXsGA = jQuery("#jform_company").val(); var company_vvvvvwa = jQuery("#jform_company").val();
uvfXsGA(company_uvfXsGA); vvvvvwa(company_vvvvvwa);
}); });
jQuery('#adminForm').on('change', '#jform_company',function (e) jQuery('#adminForm').on('change', '#jform_company',function (e)
{ {
e.preventDefault(); e.preventDefault();
var company_uvfXsGA = jQuery("#jform_company").val(); var company_vvvvvwa = jQuery("#jform_company").val();
uvfXsGA(company_uvfXsGA); vvvvvwa(company_vvvvvwa);
}); });

View File

@ -90,18 +90,18 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_company listeners for company_SACPybd function // #jform_company listeners for company_vvvvvvx function
jQuery('#jform_company').on('keyup',function() jQuery('#jform_company').on('keyup',function()
{ {
var company_SACPybd = jQuery("#jform_company").val(); var company_vvvvvvx = jQuery("#jform_company").val();
SACPybd(company_SACPybd); vvvvvvx(company_vvvvvvx);
}); });
jQuery('#adminForm').on('change', '#jform_company',function (e) jQuery('#adminForm').on('change', '#jform_company',function (e)
{ {
e.preventDefault(); e.preventDefault();
var company_SACPybd = jQuery("#jform_company").val(); var company_vvvvvvx = jQuery("#jform_company").val();
SACPybd(company_SACPybd); vvvvvvx(company_vvvvvvx);
}); });