!empty($_POST['family_member_name'][$i]) ? $_POST['family_member_name'][$i] : '',
'age' => !empty($_POST['family_member_age'][$i]) ? $_POST['family_member_age'][$i] : '',
'occupation' => !empty($_POST['family_member_occupation'][$i]) ? $_POST['family_member_occupation'][$i] : '',
'relationship' => !empty($_POST['family_member_relationship'][$i]) ? $_POST['family_member_relationship'][$i] : '',
'company' => !empty($_POST['family_member_company'][$i]) ? $_POST['family_member_company'][$i] : ''
);
}
// education background
$array_education_level = array();
for ($i = 0; $i < 5; $i++) {
$array_education_level[] = array(
'schoolName' => !empty($_POST['education_name_school'][$i]) ? $_POST['education_name_school'][$i] : '',
'startYear' => !empty($_POST['education_start_year'][$i]) ? $_POST['education_start_year'][$i] : '',
'finishYear' => !empty($_POST['education_finish_year'][$i]) ? $_POST['education_finish_year'][$i] : '',
'grade' => !empty($_POST['education_grade'][$i]) ? $_POST['education_grade'][$i] : '',
'qualification' => !empty($_POST['education_qualification'][$i]) ? $_POST['education_qualification'][$i] : ''
);
}
// professional qualification
$array_professional_qualification = array();
for ($i = 0; $i < 5; $i++) {
$array_professional_qualification[] = array(
'qualification' => !empty($_POST['professional_qualification'][$i]) ? $_POST['professional_qualification'][$i] : '',
'accredited' => !empty($_POST['professional_accredited_by'][$i]) ? $_POST['professional_accredited_by'][$i] : '',
'startYear' => !empty($_POST['professional_qualification_start_year'][$i]) ? $_POST['professional_qualification_start_year'][$i] : '',
'finishYear' => !empty($_POST['professional_qualification_finish_year'][$i]) ? $_POST['professional_qualification_finish_year'][$i] : '',
);
}
// language proficiency
$spoken_english = $_POST['spoken_english'];
$written_english = $_POST['written_english'];
$spoken_mandarin = $_POST['spoken_mandarin'];
$written_mandarin = $_POST['written_mandarin'];
$spoken_bm = $_POST['spoken_bm'];
$written_bm = $_POST['written_bm'];
$language_other_1=$_POST['language_other_1'];
$spoken_other1 = $_POST['spoken_other1'];
$written_other1 = $_POST['written_other1'];
$language_other_2 = $_POST['language_other_2'];
$spoken_other2 = $_POST['spoken_other2'];
$written_other2 = $_POST['written_other2'];
//REFERENCE DETAIL
$array_reference = array();
for ($i = 0; $i < 2; $i++) {
$array_reference[] = array(
'name' => !empty($_POST['references_name'][$i]) ? $_POST['references_name'][$i] : '',
'position' => !empty($_POST['references_position'][$i]) ? $_POST['references_position'][$i] : '',
'contact' => !empty($_POST['references_contacts'][$i]) ? $_POST['references_contacts'][$i] : '',
'year' => !empty($_POST['references_years'][$i]) ? $_POST['references_years'][$i] : '',
);
}
//employment history
$currentCompanyName = $_POST['current_company_name'];
$currentCompanyPosition = $_POST['current_position_name'];
$currentCompanyAddress = $_POST['current_company_full_address'];
$currentCompanyJoinDate = $_POST['current_company_join_date'];
$currentCompanyLeftDate = $_POST['current_company_left_date'];
$currentCompanySalary = $_POST['current_company_basic_salary'];
$currentCompanyAllowance = $_POST['current_company_fix_allowance'];
$currentCompanyReason = $_POST['current_company_leave_reason'];
//subsequent employment history
$array_subsequent_employment = array() ;
for ($i = 0; $i < 3; $i++) {
$array_subsequent_employment[] = array(
'name' => !empty($_POST['subsequent_company_name'][$i]) ? $_POST['subsequent_company_name'][$i] : '',
'position' => !empty($_POST['subsequent_position_name'][$i]) ? $_POST['subsequent_position_name'][$i] : '',
'joinDate' => !empty($_POST['subsequent_company_join_date'][$i]) ? $_POST['subsequent_company_join_date'][$i] : '',
'leftDate' => !empty($_POST['subsequent_company_left_date'][$i]) ? $_POST['subsequent_company_left_date'][$i] : '',
'salary' => !empty($_POST['subsequent_company_basic_salary'][$i]) ? $_POST['subsequent_company_basic_salary'][$i] : '',
'allowance' => !empty($_POST['subsequent_company_fix_allowance'][$i]) ? $_POST['subsequent_company_fix_allowance'][$i] : '',
'reason' => !empty($_POST['subsequent_company_leave_reason'][$i]) ? $_POST['subsequent_company_leave_reason'][$i] : '',
);
}
//other info
$gambling = $_POST['gambling'];
$smoking = $_POST['smoking'];
$drug = $_POST['drug'];
$drinking = $_POST['drinking'];
$disability =$_POST['disability'];
$disability_detail = ($_POST['disability'] == 'yes')?$_POST['disability_detail']:'';
$medication = $_POST['medication'];
$medication_detail = ($_POST['medication'] == 'yes')?$_POST['medication_detail']:'';
$pregnancy = $_POST['pregnancy'];
$pregnancy_detail = ($_POST['pregnancy'] == 'yes')?$_POST['pregnancy_detail']:'';
$dismissed = $_POST['dismissed'];
$dismissed_detail = ($_POST['dismissed'] == 'yes')?$_POST['dismissed_detail']:'';
$court = $_POST['court'];
$court_detail = ($_POST['court'] == 'yes')?$_POST['court_detail']:'';
$finance = $_POST['finance'];
$finance_detail = ($_POST['finance'] == 'yes')?$_POST['finance_detail']:'';
$applied = $_POST['applied'];
$applied_detail = ($_POST['applied'] == 'yes')?$_POST['applied_detail']:'';
$dispute = $_POST['dispute'];
$dispute_detail = ($_POST['dispute'] == 'yes')?$_POST['dispute_detail']:'';
$other_job = $_POST['other_job'];
$other_job_detail = ($_POST['other_job'] == 'yes')?$_POST['other_job_detail']:'';
$willingToTransferWithrelocation = $_POST['relocation']; //yes no
$willingToTransferWithoutrelocation = $_POST['without_relocation']; //yes no
$bankruptcy = $_POST['bankruptcy'];
$vehicle = $_POST['vehicle'];
$overtime = $_POST['overtime'];
$attract = $_POST['attract'];
$career_plan = $_POST['career_plan'];
// policy
$privacy_name = $_POST['privacy_name'];
$privacy_nric_number = $_POST['privacy_nric_number'];
$privacy_date = $_POST['privacy_date'];
//acknowledgement
$acknowledgement_name = $_POST['acknowledgement_name'];
$acknowledgement_nric_number = $_POST['acknowledgement_nric_number'];
$acknowledgement_privacy_date = $_POST['acknowledgement_privacy_date'];
// signature
$acknowledgement_certify = escapeString($_POST['acknowledgement_certify']) ;
$acknowledgement_authorize = escapeString($_POST['acknowledgement_authorize']) ;
$acknowledgement_event = escapeString($_POST['acknowledgement_event']) ;
// print_r($_POST['application_signature']);
// echo "
";
// print_r($_POST['application_signature_hidden']);exit;
if ($_POST['application_signature'] != '' && $_POST['application_signature'] != $_POST['application_signature_hidden']) {
// signature
$application_signature = escapeString($_POST['application_signature']) ;
$application_signature_date = TODAYDATE ;
$image_name = time().'-'.uniqid(count($application_signature));
$sign_img_name = $image_name.'.jpg';
$boolean_upload_signature = uploadImageBased64('Employment_Application', $sign_img_name, $application_signature);
// $boolean_upload_signature = true;
if($boolean_upload_signature == true){
$signature_image_uploaded = '/uploads/Employment_Application/'.$sign_img_name;
}else{
$signature_image_uploaded = '';
}
}else{
$user_details = jsonEncodeDecode('decode', $row_page['employment_details']) ;
$application = $user_details['application'] ;
if($application != ''){
$application_signature = $application['signature'] ;
$application_signature_date = $application['date'] ;
$signature_image_uploaded = $application_signature;
}else{
$application_signature = escapeString($_POST['application_signature']) ;
$application_signature_date = TODAYDATE ;
$signature_image_uploaded = '';
}
}
// if (strstr($application_signature, 'uploads')) {
// $signature_image_uploaded = $application_signature;
// // echo "aaa";
// }else{
// if ($application_signature != 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEUAAQEAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABYWVogAAAAAAAA9tYAAQAAAADTLW1sdWMAAAAAAAAAAQAAAAxlblVTAAAAIAAAABwARwBvAG8AZwBsAGUAIABJAG4AYwAuACAAMgAwADEANv/bAEMAAwICAgICAwICAgMDAwMEBgQEBAQECAYGBQYJCAoKCQgJCQoMDwwKCw4LCQkNEQ0ODxAQERAKDBITEhATDxAQEP/bAEMBAwMDBAMECAQECBALCQsQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEP/AABEIAJYBXgMBIgACEQEDEQH/xAAVAAEBAAAAAAAAAAAAAAAAAAAACf/EABQQAQAAAAAAAAAAAAAAAAAAAAD/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AqmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//2Q==' && $application_signature != '') {
// $image_name = time().'-'.uniqid(count($application_signature));
// $sign_img_name = $image_name.'.jpg';
// $boolean_upload_signature = uploadImageBased64('Employment_Application', $sign_img_name, $application_signature);
// // $boolean_upload_signature = true;
// if($boolean_upload_signature == true){
// $signature_image_uploaded = '/uploads/Employment_Application/'.$sign_img_name;
// // echo "bbb";
// }else{
// $signature_image_uploaded = '';
// // echo "ccc";
// }
// }
// }
// keep other value in array
$array_other_details = [
// Personal Information
'positionApplyText' => $positionApplyText,
'expectedSalary' => $expectedSalary,
'noticePeriod' => $noticePeroid,
'referralName' => $referralName,
'nric' => $nric,
'personal_name' => $personal_name,
'personal_name_chinese' => $personal_name_chinese,
'personal_name_nickname' => $personal_name_nickname,
'personal_dob' => $personal_dob,
'personal_age' => $personal_age,
'personal_email' => $personal_email,
'personal_nationality' => $personal_nationality,
'personal_religion' => $personal_religion,
'personal_mobile' => $personal_mobile,
'personal_home_tel' => $personal_home_tel,
'personal_gender' => $personal_gender,
'personal_marital_status' => $personal_marital_status,
'personal_lisence' => $personal_lisence,
'personal_lisence_class' => $personal_lisence_class,
'personal_permanent_address' => $personal_permanent_address,
'personal_residential_address' => $personal_residential_address,
// Family Members
'family_members' => $array_family_member,
// Education Background
'education_levels' => $array_education_level,
// Professional Qualification
'professional_qualifications' => $array_professional_qualification,
// Language Proficiency
'language_proficiency' => [
'spoken_english' => $spoken_english,
'written_english' => $written_english,
'spoken_mandarin' => $spoken_mandarin,
'written_mandarin' => $written_mandarin,
'spoken_bm' => $spoken_bm,
'written_bm' => $written_bm,
'language_other_1'=>$language_other_1,
'spoken_other1' => $spoken_other1,
'written_other1' => $written_other1,
'language_other_2' => $language_other_2,
'spoken_other2' => $spoken_other2,
'written_other2' => $written_other2,
],
// Reference Detail
'references' => $array_reference,
// Current Employment
'current_employment' => [
'company_name' => $currentCompanyName,
'position' => $currentCompanyPosition,
'address' => $currentCompanyAddress,
'join_date' => $currentCompanyJoinDate,
'left_date' => $currentCompanyLeftDate,
'salary' => $currentCompanySalary,
'allowance' => $currentCompanyAllowance,
'leave_reason' => $currentCompanyReason,
],
// Subsequent Employment
'subsequent_employments' => $array_subsequent_employment,
// Other Info
'habits' => [
'gambling' => $gambling,
'smoking' => $smoking,
'drug' => $drug,
'drinking' => $drinking,
],
'conditions' => [
'disability' => $disability,
'disability_detail' => $disability_detail,
'medication' => $medication,
'medication_detail' => $medication_detail,
'pregnancy' => $pregnancy,
'pregnancy_detail' => $pregnancy_detail,
'dismissed' => $dismissed,
'dismissed_detail' => $dismissed_detail,
'court' => $court,
'court_detail' => $court_detail,
'finance' => $finance,
'finance_detail' => $finance_detail,
'applied' => $applied,
'applied_detail' => $applied_detail,
'dispute' => $dispute,
'dispute_detail' => $dispute_detail,
'other_job' => $other_job,
'other_job_detail' => $other_job_detail,
],
'relocation' => [
'with' => $willingToTransferWithrelocation,
'without' => $willingToTransferWithoutrelocation,
],
'vehicle' => $vehicle,
'overtime' => $overtime,
'attract' => $attract,
'career_plan' => $career_plan,
// Policy Consent
'privacy' => [
'name' => $privacy_name,
'nric' => $privacy_nric_number,
'date' => $privacy_date,
],
// Acknowledgement
'acknowledgement' => [
'name' => $acknowledgement_name,
'nric' => $acknowledgement_nric_number,
'date' => $acknowledgement_privacy_date,
],
'application' => [
'signature' => $signature_image_uploaded,
'date' => $application_signature_date
],
];
$array_other_details = json_encode($array_other_details, JSON_UNESCAPED_UNICODE) ;
//get old record for record
$old_record = '';
$mysqli_record = $mysqli->query("select employment_details from staff_employment where employment_id = '".$page."' limit 1");
if ($mysqli_record->num_rows > 0 ){
$old_record = $mysqli_record->fetch_array(MYSQLI_ASSOC)['employment_details'];
}else{
$old_record = '-';
}
// reset dob
$personal_dob = date('Y-m-d', strtotime(str_replace('/', '-', $personal_dob))) ;
if ($mysqli->query("UPDATE staff_employment SET
".$query_trash."
employment_user_id = '".$incharge_person."',
employment_position = '".$positionApplySelect."',
employment_call = '".$personal_name."',
employment_name = '".$personal_name."',
employment_nric = '".$nric."',
employment_age = '".$personal_age."',
employment_dob = '".$personal_dob."',
employment_sex = '".$personal_gender."',
employment_religion = '".$personal_religion."',
employment_nationality = '".$personal_nationality."',
employment_marital = '".$personal_marital."',
employment_mobile = '".$personal_mobile."',
employment_tel = '".$personal_home_tel."',
employment_address = '".$personal_permanent_address."',
employment_email = '".$personal_email."',
employment_details = '".$array_other_details."',
employment_status = '".$_POST['employment_status']."',
employment_branch = '".$_SESSION['url_get_branch_admin']."',
employment_modified = '".TODAYDATE."'
WHERE employment_id = '".$page."'")){
// check if user exists
$mysqli_user = $mysqli->query("SELECT user_id FROM system_user
WHERE user_permission = 'employment' AND user_employment = '".$page."' LIMIT 1") ;
$type_log = '';
$descrition = $_SESSION['system_name'].'(username) ' ;
if ( $mysqli_user->num_rows == 0 ){
$mysqli->query("INSERT INTO system_user
(user_permission, user_employment, user_date, user_trash) VALUES
('employment', '".$page."', '".TODAYDATE."', '0')") ;
$user_id = $mysqli->insert_id ;
$type_log = "insert";
$descrition .= 'insert new application('.$user_id.')';
}else{
$row_user = $mysqli_user->fetch_assoc() ;
$user_id = $row_user['user_id'] ;
$type_log = "update";
$descrition .= 'update a application('.$user_id.')';
}
//save log
$record = array(
"old_record" => $old_record,
"new_record" => $array_other_details,
);
$record = jsonEncodeDecode('encode', $record) ;
$mysqli->query("INSERT INTO system_log_employment
(log_table, log_action, log_page_id, log_page_name, log_user_id, log_description, log_record, log_date) VALUES
('employment', '".$type_log."', '200', 'AF-".$page."', '".$_SESSION["system_id"]."', '".$descrition."', '".$record."', NOW())");
// update user
$mysqli->query("UPDATE system_user SET
user_email = '".$personal_email."',
user_call = '".$personal_name."',
user_fullname = '".$personal_name."',
user_modified = '".TODAYDATE."'
WHERE user_id = '".$user_id."'") ;
//////////////////////////////////////////////////////////////
////////////////////upload image and resume///////////////////
//////////////////////////////////////////////////////////////
/*
$create_image = reCreateImage('Employment', $page, $page, '', $personal_image, $personal_image_type, $_FILES['image']['tmp_name']) ;
// Image uploads when exists
if ($create_image['result'] && is_array($create_image['crop']) && count($create_image['result']) > 0){
$resizeObj = new resize($create_image['original']) ; // Initialise load image
foreach($create_image['crop'] as $value){
// Resize image (options: exact, portrait, landscape, auto, crop)
$resizeObj -> resizeImage($value['width'], $value['height'], $value['type']) ;
$resizeObj -> saveImage($value['source'], 70) ; // Save image
}
$file_upload = array('path' => PATH.'uploads/Employment/',
'file' => $create_image['image']) ;
$file_upload = jsonEncodeDecode('encode', $file_upload) ;
// update database
if ($mysqli->query("UPDATE staff_employment SET
employment_file = '".$file_upload."'
WHERE employment_id = '".$page."'")){
}
}
//upload resume
if ($resume_attached != '' && $resume_attached_tmp != '' && $resume_attached_type == 'application/pdf') {
$newResumeFile = time().'-'.$resume_attached;
$resume_attached_path = $_SERVER["DOCUMENT_ROOT"].'/uploads/Employment_Resume/';
$boolean_upload_resume = move_uploaded_file($resume_attached_tmp, $resume_attached_path.$newResumeFile);
if ($boolean_upload_resume) {
$mysqli->query("UPDATE staff_employment SET employment_resume = '".$newResumeFile."' WHERE employment_id = '".$page."'");
}
}*/
}
// refresh page
header("Location:?page_mode=edit&page=".$page."&success=1&select_worker=Local") ;
exit ;
}
// start header here
include 'requires/page_header.php' ;
if ( $hide_title == false ){
include 'requires/page_top.php' ;
}
// decode other variable
$array_other_details = jsonEncodeDecode('decode', $row_page['employment_details']) ;
//$user_profile = jsonEncodeDecode('decode', $row_page['employment_file']) ;
// Flat values
$positionApplyText = $array_other_details['positionApplyText'];
$expectedSalary = $array_other_details['expectedSalary'];
$noticePeroid = $array_other_details['noticePeriod'];
$referralName = $array_other_details['referralName'];
$personal_name = $array_other_details['personal_name'];
$personal_name_chinese = $array_other_details['personal_name_chinese'];
$personal_name_nickname = $array_other_details['personal_name_nickname'];
$personal_dob = $array_other_details['personal_dob'];
$personal_age = $array_other_details['personal_age'];
$personal_email = $array_other_details['personal_email'];
$personal_nationality = $array_other_details['personal_nationality'];
$personal_religion = $array_other_details['personal_religion'];
$personal_mobile = $array_other_details['personal_mobile'];
$personal_home_tel = $array_other_details['personal_home_tel'];
$personal_gender = $array_other_details['personal_gender'];
$personal_marital_status = $array_other_details['personal_marital_status'];
$personal_lisence = $array_other_details['personal_lisence'];
$personal_lisence_class = $array_other_details['personal_lisence_class'];
$personal_permanent_address = $array_other_details['personal_permanent_address'];
$personal_residential_address = $array_other_details['personal_residential_address'];
// Arrays
$array_family_member = $array_other_details['family_members'];
$array_education_level = $array_other_details['education_levels'];
$array_professional_qualification = $array_other_details['professional_qualifications'];
$array_reference = $array_other_details['references'];
$array_subsequent_employment = $array_other_details['subsequent_employments'];
// Language proficiency
$spoken_english = $array_other_details['language_proficiency']['spoken_english'];
$written_english = $array_other_details['language_proficiency']['written_english'];
$spoken_mandarin = $array_other_details['language_proficiency']['spoken_mandarin'];
$written_mandarin = $array_other_details['language_proficiency']['written_mandarin'];
$spoken_bm = $array_other_details['language_proficiency']['spoken_bm'];
$written_bm = $array_other_details['language_proficiency']['written_bm'];
$language_other_1 = $array_other_details['language_proficiency']['language_other_1'];
$spoken_other1 = $array_other_details['language_proficiency']['spoken_other1'];
$written_other1 = $array_other_details['language_proficiency']['written_other1'];
$language_other_2 = $array_other_details['language_proficiency']['language_other_2'];
$spoken_other2 = $array_other_details['language_proficiency']['spoken_other2'];
$written_other2 = $array_other_details['language_proficiency']['written_other2'];
// Current employment
$currentCompanyName = $array_other_details['current_employment']['company_name'];
$currentCompanyPosition = $array_other_details['current_employment']['position'];
$currentCompanyAddress = $array_other_details['current_employment']['address'];
$currentCompanyJoinDate = $array_other_details['current_employment']['join_date'];
$currentCompanyLeftDate = $array_other_details['current_employment']['left_date'];
$currentCompanySalary = $array_other_details['current_employment']['salary'];
$currentCompanyAllowance = $array_other_details['current_employment']['allowance'];
$currentCompanyReason = $array_other_details['current_employment']['leave_reason'];
// Habits
$gambling = $array_other_details['habits']['gambling'];
$smoking = $array_other_details['habits']['smoking'];
$drug = $array_other_details['habits']['drug'];
$drinking = $array_other_details['habits']['drinking'];
// Conditions
$disability = $array_other_details['conditions']['disability'];
$disability_detail = $array_other_details['conditions']['disability_detail'];
$medication = $array_other_details['conditions']['medication'];
$medication_detail = $array_other_details['conditions']['medication_detail'];
$pregnancy = $array_other_details['conditions']['pregnancy'];
$pregnancy_detail = $array_other_details['conditions']['pregnancy_detail'];
$dismissed = $array_other_details['conditions']['dismissed'];
$dismissed_detail = $array_other_details['conditions']['dismissed_detail'];
$court = $array_other_details['conditions']['court'];
$court_detail = $array_other_details['conditions']['court_detail'];
$finance = $array_other_details['conditions']['finance'];
$finance_detail = $array_other_details['conditions']['finance_detail'];
$applied = $array_other_details['conditions']['applied'];
$applied_detail = $array_other_details['conditions']['applied_detail'];
$dispute = $array_other_details['conditions']['dispute'];
$dispute_detail = $array_other_details['conditions']['dispute_detail'];
$other_job = $array_other_details['conditions']['other_job'];
$other_job_detail = $array_other_details['conditions']['other_job_detail'];
// Relocation
$willingToTransferWithrelocation = $array_other_details['relocation']['with'];
$willingToTransferWithoutrelocation = $array_other_details['relocation']['without'];
// Other
$vehicle = $array_other_details['vehicle'];
$overtime = $array_other_details['overtime'];
$attract = $array_other_details['attract'];
$career_plan = $array_other_details['career_plan'];
if ($row_page['employment_branch'] != $_SESSION['url_get_branch_admin']) {
echo '
' ;
}
if ( $hide_title == true && $_GET['success'] == '1' ){
echo '
' ;
}
?>