1170 lines
64 KiB
PHP
Executable File
1170 lines
64 KiB
PHP
Executable File
<?php
|
|
//echo $nurse->employementHistory;
|
|
$employementHistory = json_decode($nurse->employementHistory);
|
|
$employementHistory2 = json_decode($nurse->employementHistory2);
|
|
foreach ($certificates as $cer) {
|
|
$certificate[$cer->type]=$cer;
|
|
}
|
|
// pre($certificate);
|
|
// die;
|
|
?>
|
|
<?php //pre($employementHistory); ?>
|
|
|
|
<form role="form" action="<?php echo base_url(); ?>CaregiversDashboard/ProfileUpdate" id="caregiverBasicForm" method="post" enctype="multipart/form-data" class="needs-validation caregiverEmpEduForm" onsubmit="return basic_empedu_Validation();">
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
|
<input type="hidden" name="form_tab_status" value="4">
|
|
<input type="hidden" id="EmpEduVerificStatus" value="<?php echo $nurse->verification_status?>">
|
|
<input type="hidden" name="id" id="caregiver_id" value="<?php if (!empty($nurse->caregiver_table_id)) echo $nurse->caregiver_table_id; ?>">
|
|
<input type="hidden" name="ion_id" id="ion_id" value="<?php if (!empty($nurse->ion_user_id)) echo $nurse->ion_user_id; ?>">
|
|
<input type="hidden" name="form_status" value="4">
|
|
<input type="hidden" name="form_mode" value="<?php if($nurse->form_status>0) echo 'Edit'; else echo 'Add'; ?>">
|
|
|
|
<input type="hidden" id="yrs_of_exp" value="<?php echo $nurse->years_of_exp;?>">
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-12">
|
|
<label class="inner-heading">Employment History</label>
|
|
</div>
|
|
<div class="form-group col-md-12">
|
|
<label for="no_job_history"><?php echo lang('No job history.'); ?></label>
|
|
<!-- <input type="checkbox" name="no_job_history" id="no_job_history" value="Y" <?php if($employementHistory->no_job_history=="Y"){ echo 'checked'; } ?>> -->
|
|
<input type="checkbox" name="no_job_history" id="no_job_history" value="Y" <?php if($nurse->years_of_exp==0){ echo 'checked'; } ?>>
|
|
</div>
|
|
|
|
<div class="form-group col-md-12 pre-job-dtl">
|
|
<!-- <label><?php echo lang('List your job history, last two employers. Start with your present status and note any periods in which you were not employed.'); ?></label> -->
|
|
<label><?php echo lang('Please list employment history starting with most recent employer'); ?></label>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row pre-job-dtl">
|
|
<div class="form-group col-md-12">
|
|
<label for="Current_emp_1"><?php echo lang('Current Employer.'); ?></label>
|
|
<input type="checkbox" class="current_emp_yn" name="Current_emp_1" id="Current_emp_1" attr_fld="1" value="1"
|
|
<?php if($employementHistory->Current_emp_1=="1" || !isset($employementHistory->Current_emp_1)){ echo 'checked'; } ?>>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="pre-emp-lbl required-field"><?php echo lang('Name of Employer 1'); ?></label>
|
|
<input type="text" class="pre-emp-fld form-control" name="name_of_employeer" id="name_of_employeer" value='<?php
|
|
|
|
if (!empty($employementHistory->name_of_employeer)) {
|
|
echo $employementHistory->name_of_employeer;
|
|
}
|
|
?>' placeholder="" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?> >
|
|
<div class="help-block with-errors"></div>
|
|
<div id="name_of_employeerError" style="display: none;color: #B94A48;font-size: 12.5px !important;" >Field can't be blank</div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="pre-emp-lbl required-field"><?php echo lang('Address of Employer'); ?></label>
|
|
<input type="text" class="pre-emp-fld form-control" name="address_of_employer" id="address_of_employer" value="<?php echo $employementHistory->address_of_employer; ?>" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="pre-emp-lbl required-field"><?php echo lang('Telephone Number of Employer'); ?></label>
|
|
<input type="text" class="pre-emp-fld form-control myTelValid" name="tel_of_employer" value="<?php echo $employementHistory->tel_of_employer; ?>" onkeypress="return isNumberKey(event)" onkeyup="USformatPhoneNumber(this.value,this);" onBlur="USformatPhoneNumber(this.value,this);" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>>
|
|
<div id="myTelValidError" style="display: none;color: #B94A48;font-size: 12.5px !important;" >Please enter a valid telephone number.</div>
|
|
</div>
|
|
<span></span>
|
|
<div class="form-group col-md-4">
|
|
<label class="pre-emp-lbl required-field"><?php echo lang('Length of Employment(Years/Months)'); ?></label>
|
|
<div class="input-group">
|
|
<input type="number" class="pre-emp-fld form-control length-emp-years" name="work_performance_years" id="work_performance_years" value="<?php echo $employementHistory->work_performance_years; ?>" placeholder="Years" min="0" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>/>
|
|
<input type="number" class="pre-emp-fld form-control" name="work_performance_months" id="work_performance_months" value="<?php echo $employementHistory->work_performance_months; ?>" placeholder="Months" min="0" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>>
|
|
</div>
|
|
<!-- <select class="pre-emp-fld form-control" name="work_performance" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>>
|
|
<option value="">Select</option>
|
|
<?php for($i=1;$i<=40;$i++){ ?>
|
|
<option value="<?php echo $i; ?>" <?php if(isset($employementHistory->work_performance) && $employementHistory->work_performance==$i){ echo 'Selected'; } ?>><?php echo $i; ?></option>
|
|
<?php } ?>
|
|
</select> -->
|
|
</div>
|
|
<script>
|
|
// $("#work_performance_years").keyup(function(){
|
|
$("#work_performance_years").bind("keyup change", function(event) {
|
|
var x = $(this).val();
|
|
if(x != "" && x > 0)
|
|
{
|
|
$("#work_performance_months").attr({
|
|
"min" : 0 // values (or variables) here
|
|
});
|
|
}
|
|
else{
|
|
$("#work_performance_months").attr({
|
|
"min" : 1 // values (or variables) here
|
|
});
|
|
}
|
|
})
|
|
</script>
|
|
|
|
|
|
<?php
|
|
$required="";
|
|
if($employementHistory->Current_emp_1=="0" || $employementHistory->Current_emp_1==null){ $required="required-field"; }
|
|
?>
|
|
<div class="form-group col-md-8">
|
|
<?php //var_dump($reason_for_leaving); ?>
|
|
<label class="pre-emp-lbl <?=$required?>" id="rfl_lvl_1"><?php echo lang('Reason for leaving'); ?></label>
|
|
<select class="pre-emp-fld form-control" name="reasonForLeaving" id="rfl_1" <?php if(($employementHistory->no_job_history!="Y" && $employementHistory->Current_emp_1=="1")||($employementHistory->no_job_history!="Y" && $employementHistory->Current_emp_1==null)){ echo 'required'; } ?>>
|
|
<option value="">Select</option>
|
|
<?php foreach($reason_for_leaving as $val){ ?>
|
|
<option value="<?php echo $val->id ?>" <?php if (!empty($employementHistory->reasonForLeaving)) { if ($employementHistory->reasonForLeaving == $val->id) { echo 'selected'; } } ?>><?php echo $val->name;?></option>
|
|
<?php } ?>
|
|
</select>
|
|
<!-- <textarea class="pre-emp-fld form-control" name="reasonForLeaving" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>><?php if (!empty($employementHistory->reasonForLeaving)) { echo $employementHistory->reasonForLeaving; } ?></textarea> -->
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div class="row pre-job-dtl">
|
|
<!-- <div class="form-group col-md-12 mt-2">
|
|
<label for="Current_emp_2"><?php echo lang('Current Employer.'); ?></label>
|
|
<input type="checkbox" class="current_emp_yn2" name="Current_emp_2" id="Current_emp_2" value="1" attr_fld="2" <?php if($employementHistory->Current_emp_2=="1"){ echo 'checked'; } ?>>
|
|
</div> -->
|
|
<?php
|
|
$required="";
|
|
if($employementHistory->Current_emp_2=="0" || $employementHistory->Current_emp_2==null){ $required="required-field"; }
|
|
?>
|
|
<div class="form-group col-md-4">
|
|
<label class="pre-emp-lbl pre-emp-info2 required-field"><?php echo lang('Name of Employer 2'); ?></label>
|
|
<input type="text" class="pre-emp-fld pre-emp-info2-input form-control" name="name_of_employeer1" id="name_of_employeer1" value='<?php
|
|
if (!empty($employementHistory->name_of_employeer1)) {
|
|
echo $employementHistory->name_of_employeer1;
|
|
}
|
|
?>' placeholder="" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?> data-error="Please enter name of employeer.">
|
|
<div class="help-block with-errors"></div>
|
|
<div id="name_of_employeer1Error" style="display: none;color: #B94A48;font-size: 12.5px !important;" >Field can't be blank</div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="pre-emp-lbl pre-emp-info2 required-field"><?php echo lang('Address of Employer 2'); ?></label>
|
|
<input type="text" class="pre-emp-fld pre-emp-info2-input form-control" name="address_of_employer1" id="address_of_employer" value="<?php echo $employementHistory->address_of_employer1; ?>" data-error="Please enter zipcode and check address." <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="pre-emp-lbl pre-emp-info2 required-field"><?php echo lang('Telephone Number of Employer 2'); ?></label>
|
|
<input type="text" class="pre-emp-fld pre-emp-info2-input form-control" name="tel_of_employer1" id="tel_of_employer1" value="<?php echo $employementHistory->tel_of_employer1; ?>" data-error="Please enter zipcode and check address." onkeypress="return isNumberKey(event)" onkeyup="USformatPhoneNumber(this.value,this);" onBlur="USformatPhoneNumber(this.value,this);" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>>
|
|
<div id="tel_of_employer1Error" style="display: none;color: #B94A48;font-size: 12.5px !important;" >Please enter a valid telephone number.</div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="pre-emp-lbl pre-emp-info2 required-field"><?php echo lang('Length of Employment (Years/Months)'); ?></label>
|
|
<div class="input-group">
|
|
<input type="number" class="pre-emp-fld pre-emp-info2-input form-control length-emp-years" name="work_performance_years1" id="work_performance_years1" value="<?php echo $employementHistory->work_performance_years1; ?>" placeholder="Years" min="0" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>/>
|
|
<input type="number" class="pre-emp-fld pre-emp-info2-input form-control" name="work_performance_months1" id="work_performance_months1" value="<?php echo $employementHistory->work_performance_months1; ?>" placeholder="Months" min="1" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>>
|
|
</div>
|
|
<!-- <select class="pre-emp-fld form-control" name="work_performance1" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>>
|
|
<option value="">Select</option>
|
|
<?php for($i=1;$i<=40;$i++){ ?>
|
|
<option value="<?php echo $i; ?>" <?php if(isset($employementHistory->work_performance1) && $employementHistory->work_performance1==$i){ echo 'Selected'; } ?>><?php echo $i; ?></option>
|
|
<?php } ?>
|
|
</select> -->
|
|
</div>
|
|
<script>
|
|
// $("#work_performance_years").keyup(function(){
|
|
$("#work_performance_years1").bind("keyup change", function(event) {
|
|
var x = $(this).val();
|
|
if(x != "" && x > 0)
|
|
{
|
|
$("#work_performance_months1").attr({
|
|
"min" : 0 // values (or variables) here
|
|
});
|
|
}
|
|
else{
|
|
$("#work_performance_months1").attr({
|
|
"min" : 1 // values (or variables) here
|
|
});
|
|
}
|
|
})
|
|
</script>
|
|
<div class="form-group col-md-8">
|
|
<label class="pre-emp-lbl pre-emp-info2 <?=$required?>" id="rfl_lvl_2"><?php echo lang('Reason for leaving'); ?></label>
|
|
<select class="pre-emp-fld pre-emp-info2-input form-control" name="reasonForLeaving1" id="rfl_2" <?php if(($employementHistory->no_job_history!="Y" && $employementHistory->Current_emp_2=="1") || ($employementHistory->no_job_history!="Y" && $employementHistory->Current_emp_2==null)){ echo 'required'; } ?>>
|
|
<option value="">Select</option>
|
|
<?php foreach($reason_for_leaving as $val){ ?>
|
|
<option value="<?php echo $val->id ?>" <?php if (!empty($employementHistory->reasonForLeaving1)) { if ($employementHistory->reasonForLeaving1 == $val->id) { echo 'selected'; } } ?>><?php echo $val->name;?></option>
|
|
<?php } ?>
|
|
</select>
|
|
<!-- <textarea class="pre-emp-fld form-control" name="reasonForLeaving1" <?php if($employementHistory->no_job_history!="Y"){ echo 'required'; } ?>><?php if (!empty($employementHistory->reasonForLeaving1)) { echo $employementHistory->reasonForLeaving1; } ?></textarea> -->
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(document).ready(function(){
|
|
no_job_history();
|
|
$("#no_job_history").click(function(){
|
|
no_job_history();
|
|
});
|
|
function no_job_history(){
|
|
if($("#no_job_history").is(":checked")){
|
|
$('.pre-emp-lbl').removeClass('required-field');
|
|
$('.pre-emp-fld').removeAttr("required");
|
|
$('.pre-job-dtl').hide();
|
|
}else{
|
|
$('.pre-emp-lbl').addClass('required-field');
|
|
$('.pre-emp-fld').prop('required',true);
|
|
$('.pre-job-dtl').show();
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
|
|
$(".current_emp_yn").click(function(){
|
|
var attr_fld = $(this).attr('attr_fld');
|
|
if($(this).is(":checked"))
|
|
{
|
|
$("#rfl_lvl_"+attr_fld).removeClass('required-field');
|
|
$("#rfl_"+attr_fld).removeAttr("required");
|
|
$(".current_emp_yn2").hide();
|
|
}
|
|
else
|
|
{
|
|
$("#rfl_lvl_"+attr_fld).addClass('required-field');
|
|
$("#rfl_"+attr_fld).prop('required',true);
|
|
$(".current_emp_yn2").show();
|
|
}
|
|
});
|
|
|
|
/** #Moli---2021/03/12--- */
|
|
|
|
$(".current_emp_yn2").click(function(){
|
|
var attr_fld = $(this).attr('attr_fld');
|
|
if($(this).is(":checked"))
|
|
{
|
|
$("#rfl_lvl_"+attr_fld).removeClass('required-field');
|
|
$("#rfl_"+attr_fld).removeAttr("required");
|
|
$(".current_emp_yn").hide();
|
|
}
|
|
else
|
|
{
|
|
$("#rfl_lvl_"+attr_fld).addClass('required-field');
|
|
$("#rfl_"+attr_fld).prop('required',true);
|
|
$(".current_emp_yn").show();
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<hr>
|
|
<div class="form-group col-md-12">
|
|
<label class="inner-heading">References</label>
|
|
</div>
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Professional References Name'); ?></label>
|
|
<input type="text" class="form-control" name="Profesonal_References_Name" id="Profesonal_References_Name"
|
|
value='<?php if (!empty($nurse->Profesonal_References_Name)){echo $nurse->Profesonal_References_Name;}?>'
|
|
required data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
<div id="Profesonal_References_NameError" style="display: none;color: #B94A48;font-size: 12.5px !important;" >Field can't be blank</div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Professional References Email Address'); ?></label>
|
|
<input type="email" class="form-control" name="Profesonal_References_Address" id="prof_ref_email"
|
|
value='<?php if(!empty($nurse->Profesonal_References_Address)){echo $nurse->Profesonal_References_Address;}?>'
|
|
required data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
<div class="txt-red" id="prof_ref_email_Error" style="color:red;font-size: 12.5px !important;"></div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Professional References Telephone'); ?></label>
|
|
<input type="text" class="form-control" name="Profesonal_References_Telephone" id="Profesonal_References_Telephone"
|
|
onkeypress="return isNumberKey(event)" onkeyup="USformatPhoneNumber(this.value,this)" onblur="USformatPhoneNumber(this.value,this)"
|
|
value='<?php if (!empty($nurse->Profesonal_References_Telephone)){echo $nurse->Profesonal_References_Telephone;}?>'
|
|
required data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
<div id="Profesonal_References_TelephoneError" style="display: none;color: #B94A48;font-size: 12.5px !important;" >Please enter a valid telephone number.</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Professional References Name'); ?></label>
|
|
<input type="text" class="form-control" name="Personal_References_Name" id="Personal_References_Name"
|
|
value='<?php if(!empty($nurse->Personal_References_Name)){echo $nurse->Personal_References_Name;}?>' required data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
<div id="Personal_References_NameError" style="display: none;color: #B94A48;font-size: 12.5px !important;" >Field can't be blank</div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Professional References Email Address'); ?></label>
|
|
<input type="email" class="form-control" name="Personal_References_Address" id="personal_ref_email"
|
|
value='<?php if(!empty($nurse->Personal_References_Address)){echo $nurse->Personal_References_Address;}?>' required data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
<div class="txt-red" id="personal_ref_email_Error" style="color:red;font-size: 12.5px !important;"></div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Professional References Telephone'); ?></label>
|
|
<input type="text" class="form-control" name="Personal_References_Telephone" id="Personal_References_Telephone"
|
|
onkeypress="return isNumberKey(event)" onkeyup="USformatPhoneNumber(this.value,this)" onblur="USformatPhoneNumber(this.value,this)"
|
|
value='<?php if (!empty($nurse->Personal_References_Telephone)) {echo $nurse->Personal_References_Telephone;}?>'
|
|
required data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
<div id="Personal_References_TelephoneError" style="display: none;color: #B94A48;font-size: 12.5px !important;" >Please enter a valid telephone number.</div>
|
|
</div>
|
|
</div>
|
|
<!-- <div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label class=""><?php echo lang('Additional Professional Reference Name'); ?></label>
|
|
<input type="text" class="form-control" name="additional_professional_references_name"
|
|
value='<?php if(!empty($nurse->additional_professional_references_name)){echo $nurse->additional_professional_references_name;}?>'
|
|
data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class=""><?php echo lang('Additional Professional Reference Email Address'); ?></label>
|
|
<input type="email" class="form-control" name="additional_professional_references_address"
|
|
value='<?php if(!empty($nurse->additional_professional_references_address)){echo $nurse->additional_professional_references_address;}?>'
|
|
data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class=""><?php echo lang('Additional Professional Reference Telephone'); ?></label>
|
|
<input type="text" class="form-control" name="additional_professional_references_telephone"
|
|
onkeypress="return isNumberKey(event)" onkeyup="USformatPhoneNumber(this.value,this)" onblur="USformatPhoneNumber(this.value,this)"
|
|
value='<?php if (!empty($nurse->additional_professional_references_telephone)){echo $nurse->additional_professional_references_telephone;}?>'
|
|
data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div> -->
|
|
|
|
<?php
|
|
/*
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Professional References Name'); ?></label>
|
|
<input type="text" class="form-control" name="Profesonal_References_Name"
|
|
value='<?php if (!empty($nurse->Profesonal_References_Name)){echo $nurse->Profesonal_References_Name;}?>'
|
|
required data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Professional References Address'); ?></label>
|
|
<input type="text" class="form-control" name="Profesonal_References_Address"
|
|
value='<?php if(!empty($nurse->Profesonal_References_Address)){echo $nurse->Profesonal_References_Address;}?>'
|
|
required data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Professional References Telephone'); ?></label>
|
|
<input type="text" class="form-control" name="Profesonal_References_Telephone"
|
|
onkeypress="return isNumberKey(event)" onkeyup="USformatPhoneNumber(this.value,this)" onblur="USformatPhoneNumber(this.value,this)"
|
|
value='<?php if (!empty($nurse->Profesonal_References_Telephone)){echo $nurse->Profesonal_References_Telephone;}?>'
|
|
required data-error="Please fill up the field.">
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-1 pd-25 plus_sec" id="empPlus">
|
|
<!-- <img src="<?php echo base_url(); ?>uploads/minus.png" use="minusbutt" onclick="less_education_documents(this,'<?php echo $documentsid[_DOC_TRAININGCODE_][0]; ?>');" class="img-thumbnail" style="height: 60px; cursor: pointer;"> -->
|
|
<!-- <i class="la la-minus-circle" aria-hidden="true" use="minusbutt" onclick="less_other_reference(this);"></i> -->
|
|
<!-- <img src="<?php echo base_url(); ?>uploads/plus.png" use="plusbutt" onclick="add_education_documents(null);" class="img-thumbnail" style="height: 50px; cursor: pointer;"> -->
|
|
<!-- <i class="la la-plus-circle" aria-hidden="true" use="plusbutts" onclick="add_other_reference(null);"></i> -->
|
|
</div>
|
|
</div>
|
|
*/
|
|
?>
|
|
<div id="more_reference"></div>
|
|
|
|
<?php
|
|
foreach($other_reference as $val){
|
|
$sed[]=$val;
|
|
}
|
|
$datavalue= json_encode($sed,true);
|
|
$otherReferenceData = json_decode($datavalue);
|
|
$otherReferenceCount=count($other_reference);
|
|
// echo '<pre>'; print_r($datavalue); echo '</pre>'; die;
|
|
?>
|
|
<script>
|
|
$(document).ready(function() {
|
|
<?php
|
|
if($otherReferenceCount>0){
|
|
for($i=0;$i<$otherReferenceCount;$i++){
|
|
?>
|
|
var otherReferences={};
|
|
otherReferences['other_References_Name']="<?php if (!empty($otherReferenceData[$i]->other_References_Name)) echo $otherReferenceData[$i]->other_References_Name; ?>";
|
|
otherReferences['other_References_Address'] = "<?php if (!empty($otherReferenceData[$i]->other_References_Address)) echo $otherReferenceData[$i]->other_References_Address; ?>";
|
|
otherReferences['other_References_Telephone'] = "<?php if (!empty($otherReferenceData[$i]->other_References_Telephone)) echo $otherReferenceData[$i]->other_References_Telephone; ?>";
|
|
otherReferences['referId'] = "<?php if (!empty($otherReferenceData[$i]->id)) echo $otherReferenceData[$i]->id; ?>";
|
|
|
|
add_other_reference(otherReferences);
|
|
<?php
|
|
}
|
|
}else{
|
|
?>
|
|
// add_other_reference(null);
|
|
<?php
|
|
}
|
|
?>
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
function add_other_reference(data){
|
|
var appenddata=$("div[use=otherReferenceFormContainer]").find("div[use='otherPart']").clone();
|
|
if(data!=null){
|
|
$.each($(appenddata).find("input,select"),function(){
|
|
//console.log($(this).attr("mname"));
|
|
var val=data[$(this).attr("mname")];
|
|
$(this).val(val);
|
|
});
|
|
}
|
|
$('#more_reference').append(appenddata);
|
|
$('#more_reference').find("i[use=plusbutts]").hide();
|
|
$('#more_reference').find("i[use=plusbutts]").last().show();
|
|
$('#more_reference').find("i[use=minusbutt]").last().show();
|
|
}
|
|
|
|
function less_other_reference(obj){
|
|
var part = $(obj).parent().closest("div[use='otherPart']");
|
|
var id = ($(obj).parent().closest("div[use='otherPart']").find("input[id='referId']")).val();
|
|
// var id = $('#referId').val();
|
|
if(id ==""){
|
|
$(part).remove();
|
|
}else{
|
|
swal.fire({
|
|
title: 'Are you sure?',
|
|
text: "You won't be able to revert this!",
|
|
type: 'warning',
|
|
showCancelButton: true,
|
|
confirmButtonColor: '#3085d6',
|
|
cancelButtonColor: '#d33',
|
|
confirmButtonText: 'Yes, delete it!'
|
|
}).then((result) => {
|
|
if (result.value) {
|
|
$.ajax({
|
|
url:'../CaregiversDashboard/deleteOtherReference?id='+id+'',
|
|
//data : 'id:id',
|
|
type :'GET',
|
|
success:function(data){
|
|
$(part).remove();
|
|
// $('#more_education_documents').find("i[use=plusbutt]").hide();
|
|
// $('#more_education_documents').find("i[use=plusbutt]").last().show();
|
|
// $('#more_education_documents').find("i[use=minusbutt]").last().show();
|
|
// if($('#more_education_documents').find("i[use=minusbutt]").length<=1)
|
|
// {
|
|
// $('#more_education_documents').find("i[use=minusbutt]").first().hide();
|
|
// }
|
|
}
|
|
});
|
|
} else {
|
|
swal.fire("Your file is safe!");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|
|
<hr>
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('What Nursing Licenses do you currently have?'); ?></label>
|
|
<select class="form-control" name="nursing_license_type" id="nursing_license_type" required data-error="Please fill up the field." required>
|
|
<option value="">Select</option>
|
|
<option value="DNS" <?php if($nurse->nursing_license_type=="DNS"){echo "selected";}?>><?php echo lang("DNS")?></option>
|
|
<option value="NP" <?php if($nurse->nursing_license_type=="NP"){echo "selected";}?>><?php echo lang("NP")?></option>
|
|
<option value="FNP" <?php if($nurse->nursing_license_type=="FNP"){echo "selected";}?>><?php echo lang("FNP")?></option>
|
|
<option value="PNP" <?php if($nurse->nursing_license_type=="PNP"){echo "selected";}?>><?php echo lang("PNP")?></option>
|
|
<option value="RN" <?php if($nurse->nursing_license_type=="RN"){echo "selected";}?>><?php echo lang("RN")?></option>
|
|
<option value="LPN" <?php if($nurse->nursing_license_type=="LPN"){echo "selected";}?>><?php echo lang("LPN")?></option>
|
|
<option value="LVN" <?php if($nurse->nursing_license_type=="LVN"){echo "selected";}?>><?php echo lang("LVN")?></option>
|
|
</select>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
<div class="form-group col-md-12">
|
|
<label class="inner-heading">Education Background</label>
|
|
</div>
|
|
<div id="more_education_documents"></div>
|
|
|
|
|
|
<hr>
|
|
|
|
<!-- <div class="row"> -->
|
|
<div class="row form-check col-md-12">
|
|
<label class="form-check-label required-field">Do you have any of the following certifictions?</label>  
|
|
<h6 class="text-danger check-certification-error"> ( ***Please select atleast any one of the below certificates )</h6>
|
|
</div>
|
|
<br>
|
|
<!-- IV certification -->
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<?php //_die($certificates);?>
|
|
<label for="exampleInputEmail1" class=""><?php echo lang('IV Certification'); ?></label>
|
|
|
|
<input type="hidden" name="type[0]" value="<?php echo _IV_CERTIFICATION;?>">
|
|
<input type="hidden" name="name[0]" value="IV Certification">
|
|
<div class="form-check">
|
|
<input class="form-check-input check-left-input IV_certification" type="radio" name="certificate_status[0]" value="1" change_required_to="iv_certificate_require" <?php if($certificate['IVC']->status=='1'){ echo 'checked'; } ?> id="IV_certification_Yes">
|
|
<label class="form-check-label check-left-level" for="IV_certification_Yes">Yes</label>
|
|
<input class="form-check-input check-left-input IV_certification" type="radio" name="certificate_status[0]" value="0" change_required_to="iv_certificate_require" <?php if($certificate['IVC']->status=='0'){ echo 'checked'; } ?> id="IV_certification_no">
|
|
<label class="form-check-label check-left-level" for="IV_certification_no">No</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ACLS Certification -->
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label for="exampleInputEmail1"><?php echo lang('ACLS Certification'); ?></label>
|
|
<input type="hidden" name="type[1]" value="<?php echo _ACLS_CERTIFICATION;?>">
|
|
<input type="hidden" name="name[1]" value="ACLS Certification">
|
|
<div class="form-check">
|
|
<input class="form-check-input check-left-input ACLS_certification" type="radio" name="certificate_status[1]" value="1" change_required_to="acls_certificate_require" <?php if($certificate['ACL']->status=='1'){ echo 'checked'; } ?> id="ACLS_certification_Yes" >
|
|
<label class="form-check-label check-left-level" for="ACLS_certification_Yes">Yes</label>
|
|
<input class="form-check-input check-left-input ACLS_certification" type="radio" name="certificate_status[1]" value="0" change_required_to="acls_certificate_require" <?php if($certificate['ACL']->status=='0'){ echo 'checked'; } ?> id="ACLS_certification_no" >
|
|
<label class="form-check-label check-left-level" for="ACLS_certification_no">No</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- PALS Certification -->
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label for="exampleInputEmail1"><?php echo lang('PALS Certification'); ?></label>
|
|
|
|
<input type="hidden" name="type[2]" value="<?php echo _PALS_CERTIFICATION;?>">
|
|
<input type="hidden" name="name[2]" value="PALS Certification">
|
|
<div class="form-check">
|
|
<input class="form-check-input check-left-input PALS_certification" type="radio" name="certificate_status[2]" value="1" change_required_to="pals_certificate_require" <?php if($certificate['PAL']->status=='1'){ echo 'checked'; } ?> id="PALS_certification_Yes">
|
|
<label class="form-check-label check-left-level" for="PALS_certification_Yes">Yes</label>
|
|
<input class="form-check-input check-left-input PALS_certification" type="radio" name="certificate_status[2]" value="0" change_required_to="pals_certificate_require" <?php if($certificate['PAL']->status=='0'){ echo 'checked'; } ?> id="PALS_certification_no" >
|
|
<label class="form-check-label check-left-level" for="PALS_certification_no">No</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- </div> -->
|
|
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$(".IV_certification").click(function(){
|
|
var target_val = $(this).val();
|
|
var change_required_to = $(this).attr("change_required_to");
|
|
|
|
if (target_val == 1)
|
|
{
|
|
$("."+change_required_to).attr("required","required");
|
|
$("."+change_required_to).parent().find('label').addClass("required-field");
|
|
$('.iv_certificate_details').show();
|
|
}
|
|
else
|
|
{
|
|
$("."+change_required_to).removeAttr("required");
|
|
$("."+change_required_to).parent().find('label').removeClass("required-field");
|
|
$('.iv_certificate_details').hide();
|
|
}
|
|
});
|
|
|
|
$(".BLS_certification").click(function(){
|
|
var target_val = $(this).val();
|
|
var change_required_to = $(this).attr("change_required_to");
|
|
|
|
if (target_val == 1)
|
|
{
|
|
$("."+change_required_to).attr("required","required");
|
|
$("."+change_required_to).parent().find('label').addClass("required-field");
|
|
$('.bls_certificate_details').show();
|
|
}
|
|
else
|
|
{
|
|
$("."+change_required_to).removeAttr("required");
|
|
$("."+change_required_to).parent().find('label').removeClass("required-field");
|
|
$('.bls_certificate_details').hide();
|
|
}
|
|
});
|
|
$(".ACLS_certification").click(function(){
|
|
var target_val = $(this).val();
|
|
var change_required_to = $(this).attr("change_required_to");
|
|
|
|
if (target_val == 1)
|
|
{
|
|
$("."+change_required_to).attr("required","required");
|
|
$("."+change_required_to).parent().find('label').addClass("required-field");
|
|
$('.acls_certificate_details').show();
|
|
}
|
|
else
|
|
{
|
|
$("."+change_required_to).removeAttr("required");
|
|
$("."+change_required_to).parent().find('label').removeClass("required-field");
|
|
$('.acls_certificate_details').hide();
|
|
}
|
|
});
|
|
|
|
$(".PALS_certification").click(function(){
|
|
var target_val = $(this).val();
|
|
var change_required_to = $(this).attr("change_required_to");
|
|
|
|
if (target_val == 1)
|
|
{
|
|
$("."+change_required_to).attr("required","required");
|
|
$("."+change_required_to).parent().find('label').addClass("required-field");
|
|
$('.pals_certificate_details').show();
|
|
}
|
|
else
|
|
{
|
|
$("."+change_required_to).removeAttr("required");
|
|
$("."+change_required_to).parent().find('label').removeClass("required-field");
|
|
$('.pals_certificate_details').hide();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
<?php
|
|
/*
|
|
if($getNurseSkill->qualification_type==4 ||$getNurseSkill->qualification_type==5)
|
|
{
|
|
?>
|
|
<div id="more_license_documents"></div>
|
|
<div class="row">
|
|
<!-- <div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('License #'); ?></label>
|
|
<input type="text" class="form-control" name="license_no" value='<?php
|
|
if (!empty($employementHistory2->license_no)) {
|
|
echo $employementHistory2->license_no;
|
|
}
|
|
?>' required>
|
|
<div class="help-block with-errors"></div>
|
|
</div> -->
|
|
<!-- <div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('State'); ?></label>
|
|
<select class="form-control" name="rn_lic_state" required data-error="Please fill up the field.">
|
|
<option value="" disable selected>Select</option>
|
|
<?php foreach ($state_list as $state) { ?>
|
|
<option value="<?php echo $state->id; ?>" <?php
|
|
if (!empty($setval)) {
|
|
if ($state->id == set_value('rn_lic_state')) {
|
|
echo 'selected';
|
|
}
|
|
}
|
|
if (!empty($employementHistory2->rn_lic_state)) {
|
|
if ($employementHistory2->rn_lic_state == $state->id) {
|
|
echo 'selected';
|
|
}
|
|
}
|
|
?> > <?php echo $state->name; ?>
|
|
</option>
|
|
<?php } ?>
|
|
</select>
|
|
<div class="help-block with-errors"></div>
|
|
</div> -->
|
|
<!-- <div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Expiration Date'); ?></label>
|
|
<input type="date" class="form-control" name="license_exp_date" value='<?php
|
|
if (!empty($employementHistory2->license_exp_date)) {
|
|
echo $employementHistory2->license_exp_date;
|
|
}
|
|
?>' required>
|
|
<div class="help-block with-errors"></div>
|
|
</div> -->
|
|
<!-- <div class="form-group col-md-2">
|
|
<label class="required-field"><?php echo lang('Upload Documents'); ?></label>
|
|
<input type="file" class="form-control" name="license_document" >
|
|
<div class="help-block with-errors"></div>
|
|
</div> -->
|
|
<!-- <div class="form-group col-md-1 mt-2">
|
|
<?php if($employementHistory2->license_document!=""){ ?>
|
|
<input type="hidden" name="pre_license_document" value="<?php echo $employementHistory2->license_document; ?>">
|
|
<a class="img-icon" target="_blank" href="<?php echo base_url(); ?><?php echo $employementHistory2->license_document; ?>" class="img-thumbnail" style="height: 30px;">
|
|
<img src="<?php echo base_url(); ?>uploads/attachment.png" class="img-thumbnail" style="height: 30px;">
|
|
</a>
|
|
<?php } ?>
|
|
</div> -->
|
|
</div>
|
|
<?php
|
|
if($getNurseSkill->qualification_type==4 ||$getNurseSkill->qualification_type==5)
|
|
{
|
|
?>
|
|
<div class="row">
|
|
<div class="form-group col-md-6">
|
|
<label class="required-field" for="exampleInputEmail1" >
|
|
<?php echo lang('Nursing Registration Number'); ?>
|
|
</label>
|
|
<input type="text" class="form-control" name="nursing_reg_no" value='<?php
|
|
if (!empty($setval)) {
|
|
echo set_value('nursing_reg_no');
|
|
}
|
|
if (!empty($employementHistory2->nursing_reg_no)) {
|
|
echo $employementHistory2->nursing_reg_no;
|
|
}
|
|
?>' placeholder="" required>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Malpractice Co.'); ?></label>
|
|
<input type="text" class="form-control" name="malpractice_co" value='<?php
|
|
if (!empty($employementHistory2->malpractice_co)) {
|
|
echo $employementHistory2->malpractice_co;
|
|
}
|
|
?>' required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Policy #'); ?></label>
|
|
<input type="text" class="form-control" name="malpractice_policy_no" value='<?php
|
|
if (!empty($employementHistory2->malpractice_policy_no)) {
|
|
echo $employementHistory2->malpractice_policy_no;
|
|
}
|
|
?>' required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Expiration Date'); ?></label>
|
|
<input type="date" class="form-control not-past-time" name="malpractice_policy_exp_date" value='<?php
|
|
if (!empty($employementHistory2->malpractice_policy_exp_date)) {
|
|
echo $employementHistory2->malpractice_policy_exp_date;
|
|
}
|
|
?>' required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<!-- <div class="form-group col-md-2">
|
|
<label class="required-field"><?php echo lang('Upload Documents'); ?></label>
|
|
<input type="file" class="form-control" name="malpractice_document" >
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-1 mt-2">
|
|
<?php if($employementHistory2->malpractice_document!=""){ ?>
|
|
<input type="hidden" name="pre_malpractice_document" value="<?php echo $employementHistory2->malpractice_document; ?>">
|
|
<a class="img-icon" target="_blank" href="<?php echo base_url(); ?><?php echo $employementHistory2->malpractice_document; ?>" class="img-thumbnail" style="height: 30px;">
|
|
<img src="<?php echo base_url(); ?>uploads/attachment.png" class="img-thumbnail" style="height: 30px;">
|
|
</a>
|
|
<?php } ?>
|
|
</div> -->
|
|
</div>
|
|
<?php
|
|
}
|
|
*/
|
|
?>
|
|
|
|
|
|
<?php
|
|
if($getNurseSkill->qualification_type==4){
|
|
?>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="form-group col-md-6">
|
|
<label for="exampleInputEmail1" class="required-field"><?php echo lang('Are you UAS Certified?'); ?></label>
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="form-check width-80">
|
|
<input class="form-check-input" type="radio" id="uas_certifyYES" name="uas_certificate" value="1" <?php if ($employementHistory2->uas_certificate==1) {
|
|
echo "checked"; } ?>>
|
|
<label class="form-check-label" for="uas_certifyYES">Yes
|
|
</label>
|
|
</div>
|
|
<div class="form-check width-80">
|
|
<input class="form-check-input" type="radio" id="uas_certifyNO" name="uas_certificate" value="0" <?php if ($employementHistory2->uas_certificate==0) {
|
|
echo "checked"; } ?>>
|
|
<label class="form-check-label" for="uas_certifyNO">No
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-md-6 uas_certificate_license" <?php if ($employementHistory2->uas_certificate ==0 ) {?> style="display:none" <?php } ?>>
|
|
<label class="required-field" for="exampleInputEmail1" ><?php echo lang('Licenses (UAS certification number)'); ?></label>
|
|
<input type="text" class="form-control" name="uas_certificate_license" value='<?php
|
|
if (!empty($setval)) {
|
|
echo set_value('uas_certificate_license');
|
|
}
|
|
if (!empty($employementHistory2->uas_certificate_license)) {
|
|
echo $employementHistory2->uas_certificate_license;
|
|
}
|
|
?>' placeholder="">
|
|
</div>
|
|
<input type="hidden" class="form-control" name="email" value='<?php
|
|
if (!empty($nurse->email)) {
|
|
echo $nurse->email;
|
|
}
|
|
?>' placeholder="" <?php if (!empty($nurse->caregiver_table_id)){ echo 'Readonly'; } ?>>
|
|
</div>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<script>
|
|
$('input[name=uas_certificate]').on('change', function() {
|
|
var value = $(this).val();
|
|
if(value > 0){
|
|
$(".uas_certificate_license").show();
|
|
$("input[name='uas_certificate_license']").attr("required", "true");
|
|
}else{
|
|
$(".uas_certificate_license").hide();
|
|
$("input[name='uas_certificate_license']").removeAttr("required");
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<hr>
|
|
<div class="row">
|
|
<div class="form-check col-md-12">
|
|
<label class="form-check-label required-field">Has your license or certification ever been investigated or suspended ?</label>
|
|
<input class="form-check-input check-left-input certificate_investigate" type="radio" name="license_investigated" value="Yes" <?php if($employementHistory2->license_investigated=='Yes'){ echo 'checked'; } ?> id="licence_investigated_Yes" required>
|
|
<label class="form-check-label check-left-level" for="licence_investigated_Yes">Yes</label>
|
|
<input class="form-check-input check-left-input certificate_investigate" type="radio" name="license_investigated" value="NO" <?php if($employementHistory2->license_investigated=='NO'){ echo 'checked'; } ?> id="licence_investigated_no" required>
|
|
<label class="form-check-label check-left-level" for="licence_investigated_no">No</label>
|
|
</div>
|
|
<div class="form-group col-md-12 certificate_investigate_explanation" <?php if($employementHistory2->license_investigated=="Yes"){ }else{?> style="display:none;" <?php } ?>>
|
|
<label class="required-field">Please give explanation indicating dates, circumstances and final outcome. </label>
|
|
<textarea class="form-control" name="license_explanation" id="license_explanation" <?php if($employementHistory2->license_investigated=="Yes"){echo "required";}?>><?php echo $employementHistory2->license_explanation; ?></textarea>
|
|
<div id=license_explanationError style="display: none;color: #B94A48; font-size: 12.5px !important;" >Field can't be blank</div>
|
|
</div>
|
|
<div class="form-check col-md-12">
|
|
<label class="form-check-label required-field">Has any malpractice claim or suit ever been brought against you ?</label>
|
|
<input class="form-check-input check-left-input malpractice_investigate" type="radio" name="malpractice_claim" value="Yes" <?php if($employementHistory2->malpractice_claim=='Yes'){ echo 'checked'; } ?> id="malpractice_claim_yes" required>
|
|
<label class="form-check-label check-left-level" for="malpractice_claim_yes">Yes</label>
|
|
<input class="form-check-input check-left-input malpractice_investigate" type="radio" name="malpractice_claim" value="NO" <?php if($employementHistory2->malpractice_claim=='NO'){ echo 'checked'; } ?> id="malpractice_claim_no" required>
|
|
<label class="form-check-label check-left-level" for="malpractice_claim_no">No</label>
|
|
</div>
|
|
<div class="form-group col-md-12 malpractice_investigate_explanation" <?php if($employementHistory2->malpractice_claim=="Yes"){ }else{?> style="display:none;" <?php } ?>>
|
|
<label class="required-field">Please give explanation indicating dates, circumstances and final outcome. </label>
|
|
<textarea class="form-control" name="malpractice_explanation" id="malpractice_explanation" <?php if($employementHistory2->malpractice_claim=="Yes"){echo "required";}?>><?php echo $employementHistory2->malpractice_explanation; ?></textarea>
|
|
<div id="malpractice_explanationError" style="display: none;color: #B94A48;font-size: 12.5px !important;" >Field can't be blank</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(".certificate_investigate").click(function(){
|
|
|
|
var check_certificate_invstigate=false;
|
|
if($("#licence_investigated_Yes").is(':checked')){
|
|
check_certificate_invstigate=true;
|
|
}
|
|
// alert(check_certificate_invstigate);
|
|
if(check_certificate_invstigate==true){
|
|
$(".certificate_investigate_explanation").show();
|
|
$("textarea[name='license_explanation']").attr("required", "true");
|
|
}else{
|
|
$(".certificate_investigate_explanation").hide();
|
|
$("textarea[name='license_explanation']").removeAttr("required");
|
|
$("textarea[name='license_explanation']").val("");
|
|
}
|
|
|
|
});
|
|
$(".malpractice_investigate").click(function(){
|
|
var check_malpractice_claim=false;
|
|
|
|
if($("#malpractice_claim_yes").is(':checked')){
|
|
check_malpractice_claim=true;
|
|
}
|
|
if(check_malpractice_claim==true){
|
|
$(".malpractice_investigate_explanation").show();
|
|
$("textarea[name='malpractice_explanation']").attr("required", "true");
|
|
}else{
|
|
$(".malpractice_investigate_explanation").hide();
|
|
$("textarea[name='malpractice_explanation']").removeAttr("required");
|
|
$("textarea[name='malpractice_explanation']").val("");
|
|
}
|
|
|
|
});
|
|
</script>
|
|
|
|
<?php
|
|
if($getNurseSkill->qualification_type==6){
|
|
?>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="form-group col-md-3">
|
|
<label class="required-field"><?php echo lang('Certificate #'); ?></label>
|
|
<input type="text" class="form-control" name="pre_work_certificate_no" value='<?php
|
|
if (!empty($employementHistory2->pre_work_certificate_no)) {
|
|
echo $employementHistory2->pre_work_certificate_no;
|
|
}
|
|
?>' required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-3">
|
|
<label class="required-field"><?php echo lang('State'); ?></label>
|
|
<select class="form-control" name="pre_work_certificate_state" required >
|
|
<option value="" disable selected>Select</option>
|
|
<?php foreach ($state_list as $state) { ?>
|
|
<option value="<?php echo $state->name; ?>" <?php
|
|
if (!empty($setval)) {
|
|
if ($state->name == set_value('pre_work_certificate_state')) {
|
|
echo 'selected';
|
|
}
|
|
}
|
|
if (!empty($employementHistory2->pre_work_certificate_state)) {
|
|
if ($employementHistory2->pre_work_certificate_state == $state->name) {
|
|
echo 'selected';
|
|
}
|
|
}
|
|
?> > <?php echo $state->name; ?>
|
|
</option>
|
|
<?php } ?>
|
|
</select>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label class="required-field"><?php echo lang('Most Recent Date Employed as an HHA'); ?></label>
|
|
<input type="date" class="form-control" name="last_hha_employed_date" value='<?php
|
|
if (!empty($employementHistory2->last_hha_employed_date)) {
|
|
echo $employementHistory2->last_hha_employed_date;
|
|
}
|
|
?>' required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<div class="form-group col-md-3">
|
|
<label class="required-field">For</label><br>
|
|
|
|
<input class="form-check-input check-left-input" type="radio" name="last_employed_for" value="Individual" id="last_employed_for_individual" <?php if($employementHistory2->last_employed_for=='Individual'){ echo 'checked'; } ?> required>
|
|
<label class="form-check-label check-left-level" for="last_employed_for_individual">Individual</label>
|
|
<input class="form-check-input check-left-input" type="radio" name="last_employed_for" value="NO" id="last_employed_for_agency" <?php if($employementHistory2->last_employed_for=='Agency'){ echo 'checked'; } ?> required>
|
|
<label class="form-check-label check-left-level" for="last_employed_for_agency">Agency</label>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<hr>
|
|
<div class="form-group col-md-12 row mt-1">
|
|
<button type="submit" name="submit" class="btn btn-info" id="EmpEdu_submit_btn" onclick="return validateEmpEduForm()"><?php echo lang('submit'); ?></button>
|
|
</div>
|
|
</form>
|
|
|
|
<script>
|
|
// function basic_empedu_Validation(){
|
|
// var getTelNo = $('.myTelValid').val();
|
|
// if(getTelNo.length == 14){
|
|
|
|
// }
|
|
// if(confirm('Do you want to save the data'))
|
|
// {
|
|
// // Save it!
|
|
// return true;
|
|
// }
|
|
// else {
|
|
// // Do nothing!
|
|
// return false;
|
|
// }
|
|
// }
|
|
function validateEmpEduForm()
|
|
{
|
|
var a=0;
|
|
if($(".IV_certification").is(":checked")){
|
|
// alert("iv");
|
|
var a=1;
|
|
}if($(".BLS_certification").is(":checked")){
|
|
// alert("bls");
|
|
var a=1;
|
|
}if($(".ACLS_certification").is(":checked")){
|
|
// alert("acls");
|
|
var a=1;
|
|
}if($(".PALS_certification").is(":checked")){
|
|
// alert("pls");
|
|
var a=1;
|
|
}
|
|
if(a==0){
|
|
// Swal.fire({
|
|
// position: 'center',
|
|
// icon: 'error',
|
|
// title: 'Make at least '+req_no+' selections in '+head_name+' section.',
|
|
// showConfirmButton: false,
|
|
// timer: 2500
|
|
// });
|
|
$('.check-certification-error').show("slow");
|
|
return false;
|
|
}else{
|
|
$('.check-certification-error').hide();
|
|
}
|
|
|
|
var check_certificate_invstigate=false;
|
|
if($("#licence_investigated_Yes").is(':checked')){
|
|
check_certificate_invstigate=true;
|
|
}
|
|
if(check_certificate_invstigate==true){
|
|
var license_explanation = $('#license_explanation').val();
|
|
// alert(license_explanation);
|
|
if($.trim(license_explanation) == ''){
|
|
// alert('hi');
|
|
$("#license_explanationError").show();
|
|
$('#license_explanation').focus();
|
|
return false;
|
|
}else{
|
|
$("#license_explanationError").hide();
|
|
// return true;
|
|
}
|
|
|
|
}
|
|
|
|
var check_malpractice_claim=false;
|
|
|
|
if($("#malpractice_claim_yes").is(':checked')){
|
|
check_malpractice_claim=true;
|
|
}
|
|
if(check_malpractice_claim==true){
|
|
var malpractice_explanation = $('#malpractice_explanation').val();
|
|
// alert(malpractice_explanation);
|
|
if($.trim(malpractice_explanation) == ''){
|
|
// alert('hi');
|
|
$("#malpractice_explanationError").show();
|
|
$('#malpractice_explanation').focus();
|
|
return false;
|
|
}else{
|
|
$("#malpractice_explanationError").hide();
|
|
// return true;
|
|
}
|
|
}
|
|
|
|
var myTelValid = $('.myTelValid').val();
|
|
if(myTelValid!=''){
|
|
if(myTelValid.length<13){
|
|
$("#myTelValidError").show();
|
|
$('.myTelValid').focus();
|
|
return false;
|
|
}else{
|
|
$("#myTelValidError").hide();
|
|
}
|
|
}
|
|
|
|
|
|
// var tel_of_employer1 = $('#tel_of_employer1').val();
|
|
// if(tel_of_employer1.length<13){
|
|
// $("#tel_of_employer1Error").show();
|
|
// $('#tel_of_employer1').focus();
|
|
// return false;
|
|
// }else{
|
|
// $("#tel_of_employer1Error").hide();
|
|
// }
|
|
|
|
// var name_of_employeer = $('#name_of_employeer').val();
|
|
// if($.trim(name_of_employeer) == ''){
|
|
// $("#name_of_employeerError").show();
|
|
// $('#name_of_employeer').focus();
|
|
// return false;
|
|
// }else{
|
|
// $("#name_of_employeerError").hide();
|
|
// }
|
|
|
|
// var name_of_employeer1 = $('#name_of_employeer1').val();
|
|
// if($.trim(name_of_employeer1) == ''){
|
|
// $("#name_of_employeer1Error").show();
|
|
// $('#name_of_employeer1').focus();
|
|
// return false;
|
|
// }else{
|
|
// $("#name_of_employeer1Error").hide();
|
|
// }
|
|
|
|
var Profesonal_References_Name = $('#Profesonal_References_Name').val();
|
|
if($.trim(Profesonal_References_Name) == ''){
|
|
$("#Profesonal_References_NameError").show();
|
|
$('#Profesonal_References_Name').focus();
|
|
return false;
|
|
}else{
|
|
$("#Profesonal_References_NameError").hide();
|
|
}
|
|
var Personal_References_Name = $('#Personal_References_Name').val();
|
|
if($.trim(Personal_References_Name) == ''){
|
|
$("#Personal_References_NameError").show();
|
|
$('#Personal_References_Name').focus();
|
|
return false;
|
|
}else{
|
|
$("#Personal_References_NameError").hide();
|
|
}
|
|
|
|
|
|
var prof_ref_email = $('#prof_ref_email').val();
|
|
var personal_ref_email = $('#personal_ref_email').val();
|
|
$('#prof_ref_email_Error').html('');
|
|
$('#personal_ref_email_Error').html('');
|
|
|
|
var ck_email = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
|
|
|
|
if ($.trim(prof_ref_email) !='' && (!ck_email.test($.trim(prof_ref_email)))){
|
|
$('#prof_ref_email_Error').html('Please enter correct email.');
|
|
$('#prof_ref_email').focus();
|
|
return false;
|
|
}
|
|
if ($.trim(personal_ref_email) !='' && (!ck_email.test($.trim(personal_ref_email)))){
|
|
$('#personal_ref_email_Error').html('Please enter correct email.');
|
|
$('#personal_ref_email').focus();
|
|
return false;
|
|
}
|
|
|
|
var profesonal_References_Telephone = $('#Profesonal_References_Telephone').val();
|
|
if(profesonal_References_Telephone.length<13){
|
|
$("#Profesonal_References_TelephoneError").show();
|
|
$('#Personal_References_Telephone').focus();
|
|
return false;
|
|
}else{
|
|
$("#Profesonal_References_TelephoneError").hide();
|
|
}
|
|
|
|
var personal_References_Telephone = $('#Personal_References_Telephone').val();
|
|
if(personal_References_Telephone.length<13){
|
|
$("#Personal_References_TelephoneError").show();
|
|
$('#Personal_References_Telephone').focus();
|
|
return false;
|
|
}else{
|
|
$("#Personal_References_TelephoneError").hide();
|
|
}
|
|
|
|
|
|
return true;
|
|
}
|
|
|
|
// $( window ).on( "load", function() {
|
|
// var caregiverView = $('#EmpEduVerificStatus').val();
|
|
// if(caregiverView == 'verified'){
|
|
// $(".caregiverEmpEduForm :input").prop("disabled", true);
|
|
// $("#EmpEdu_submit_btn").hide();
|
|
// }else{
|
|
// $(".caregiverEmpEduForm :input").prop("disabled", false);
|
|
// $("#EmpEdu_submit_btn").show();
|
|
// }
|
|
// });
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('.check-certification-error').hide();
|
|
workPerformanceYearsMonths();
|
|
$("#work_performance_years").change(function(){
|
|
workPerformanceYearsMonths();
|
|
});
|
|
$("#work_performance_months").change(function(){
|
|
workPerformanceYearsMonths();
|
|
});
|
|
function workPerformanceYearsMonths(){
|
|
var yrs=Number($("#work_performance_years").val());
|
|
var mnth=Number($("#work_performance_months").val());
|
|
var netYrs=(yrs + (mnth/12));
|
|
var yrs_exp=$("#yrs_of_exp").val();
|
|
if(netYrs>=yrs_exp){
|
|
$(".pre-emp-info2").removeClass("required-field");
|
|
$(".pre-emp-info2-input").removeAttr("required");
|
|
}else{
|
|
if(!$("#no_job_history").is(":checked")){
|
|
$(".pre-emp-info2").addClass("required-field");
|
|
$(".pre-emp-info2-input").attr("required","required");
|
|
}
|
|
}
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
$(document).on('change','.length-emp-years',function(){
|
|
var inch=$(this).siblings("input").val();
|
|
if(inch==""){
|
|
$(this).siblings().val("0");
|
|
}
|
|
});
|
|
</script>
|
|
|
|
|
|
<!-- added on 20-12-2021 -->
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
if($("input[name='Current_emp_1']").is(":checked")){
|
|
$("#rfl_lvl_1").removeClass("required-field");
|
|
$("#rfl_1").prop("required",false);
|
|
}
|
|
});
|
|
</script>
|
|
|
|
|
|
|