$reject=$this->emp_validation_details_model->getRejectReasonWhere(array('id'=>$emp_id, 'step'=> 0)); $ui->callout()->title("Rejected")->desc("Please contact the Establishment Section for the same.".(($reject)? "<br>Reason behind rejection : ".$reject->reason : ""))->uiType('danger')->show(); } }*/ view_profile_pic($emp->photopath); /*if($emp_validation_details) { if($emp_validation_details->basic_details_status=='pending') $ui->callout()->title("Pending")->desc("Basic Details are not yet validated.")->uiType('info')->show(); else if($emp_validation_details->basic_details_status=='rejected') { $reject=$this->emp_validation_details_model->getRejectReasonWhere(array('id'=>$emp_id, 'step'=> 1)); $ui->callout()->title("Rejected")->desc("Please contact the Establishment Section for the same.".(($reject)? "<br>Reason behind rejection : ".$reject->reason : ""))->uiType('danger')->show(); } }*/ view_basic_details($data, $emp, $ft); } if ($emp_prev_exp_details) { /*if($emp_validation_details) { if($emp_validation_details->prev_exp_status=='pending') $ui->callout()->title("Pending")->desc("Previous Employment Details are not yet validated.")->uiType('info')->show(); else if($emp_validation_details->prev_exp_status=='rejected') { $reject=$this->emp_validation_details_model->getRejectReasonWhere(array('id'=>$emp_id, 'step'=> 2)); $ui->callout()->title("Rejected")->desc("Please contact the Establishment Section for the same.".(($reject)? "<br>Reason behind rejection : ".$reject->reason : ""))->uiType('danger')->show(); } }*/ view_prev_emp_details($emp_prev_exp_details); } if ($emp_family_details) {
} if ($pending_emp && $pending_permanent_address && $pending_present_address) { $pending_data['name'] = $pending_emp->salutation . '. ' . ucwords(trim($pending_emp->first_name)) . ' ' . trim(ucwords(trim($pending_emp->middle_name)) . ' ' . ucwords(trim($pending_emp->last_name))); $pending_data['department'] = $this->departments_model->getDepartmentById($pending_emp->dept_id)->name; $pending_data['designation'] = $this->designations_model->getDesignationById($pending_emp->designation)->name; $pending_data['permanent_pretty'] = $pending_permanent_address->line1 . ',<br>' . (trim($pending_permanent_address->line2) == '' ? '' : $pending_permanent_address->line2 . ',<br>') . ucwords($pending_permanent_address->city) . ', ' . ucwords($pending_permanent_address->state) . ' - ' . $pending_permanent_address->pincode . '<br>' . ucwords($pending_permanent_address->country) . '<br>Contact no. ' . $pending_permanent_address->contact_no; $pending_data['present_pretty'] = $pending_present_address->line1 . ',<br>' . (trim($pending_present_address->line2) == '' ? '' : $pending_present_address->line2 . ',<br>') . ucwords($pending_present_address->city) . ', ' . ucwords($pending_present_address->state) . ' - ' . $pending_present_address->pincode . '<br>' . ucwords($pending_present_address->country) . '<br>Contact no. ' . $pending_present_address->contact_no; } $basic_details_status = $emp_validation_details->basic_details_status; } $data['name'] = $emp->salutation . '. ' . ucwords(trim($emp->first_name)) . ' ' . trim(ucwords(trim($emp->middle_name)) . ' ' . ucwords(trim($emp->last_name))); $data['department'] = $this->departments_model->getDepartmentById($emp->dept_id)->name; $data['designation'] = $this->designations_model->getDesignationById($emp->designation)->name; $data['permanent_pretty'] = $permanent_address->line1 . ',<br>' . (trim($permanent_address->line2) == '' ? '' : $permanent_address->line2 . ',<br>') . ucwords($permanent_address->city) . ', ' . ucwords($permanent_address->state) . ' - ' . $permanent_address->pincode . '<br>' . ucwords($permanent_address->country) . '<br>Contact no. ' . $permanent_address->contact_no; $data['present_pretty'] = $present_address->line1 . ',<br>' . (trim($present_address->line2) == '' ? '' : $present_address->line2 . ',<br>') . ucwords($present_address->city) . ', ' . ucwords($present_address->state) . ' - ' . $present_address->pincode . '<br>' . ucwords($present_address->country) . '<br>Contact no. ' . $present_address->contact_no; view_basic_details($data, $emp, $ft, $pending_data, $pending_emp, $pending_ft, $basic_details_status); } else { $ui->callout()->title('Not Found')->desc("Your details have not been updated. Please check after some time.")->uiType('warning')->show(); } validation_form($emp_validation_details, 1); $basic->close(); $prev_emp = $ui->tabPane()->id('prev_emp'); if ($step == 2) { $prev_emp->active(); } $prev_emp->open(); $prev_exp_status = false; if ($emp_prev_exp_details) { if ($emp_validation_details) { $prev_exp_status = $emp_validation_details->prev_exp_status; if ($emp_validation_details->prev_exp_status == 'pending') {