EmpID; $FirstName = $Emp->FirstName; $LastName = $Emp->LastName; $FatherName = $Emp->FatherName; $Gender = $Emp->Gender; $DateofBirth = $Emp->DateofBirth; $from = new DateTime($DateofBirth); $to = new DateTime('today'); $Age = $from->diff($to)->y; $DOB = $from ->format('d-m-Y'); $ContactNumber = $Emp->ContactNumber; $EmailId = $Emp->EmailId; $BloodGroup = $Emp->BloodGroup; $MartialStatus =$Emp->MartialStatus; $DateofJoining = $Emp->DateofJoining; $dtDOJ = new DateTime($DateofJoining); $DOJ = $dtDOJ ->format('d-m-Y'); $PreviousYearsOfExp = $Emp->PreviousYearsOfExp; $Designation = $Emp->Designation; $work_location = $Emp->work_location; $Departmentcode = $Emp->Departmentcode; $DepartmentName = $Emp->DepartmentName; $PresentAddress = $Emp->PresentAddress; $PermanentAddress = $Emp->PermanentAddress; $EmergencyContactName = $Emp->EmergencyContactName; $EmergencyContactNumber = $Emp->EmergencyContactNumber; $Edu_Qualification = $Emp->Edu_Qualification; $Additional_Qualification = $Emp->Additional_Qualification; $AadharNo = $Emp->AadharNo; $PANNo = $Emp->PANNo; $BankAccountNo = $Emp->BankAccountNo; $IFSCCode = $Emp->IFSCCode; $BankBranchName = $Emp->BankBranchName; $BankAddress = $Emp->BankAddress; $PassportNo = $Emp->PassportNo; $Passport_Valid_till = $Emp->Passport_Valid_till; if($Passport_Valid_till != '' && $Passport_Valid_till != '0000-00-00 00:00:00') { $dtpassport = new DateTime($Passport_Valid_till); $DOPassport = $dtpassport ->format('d-m-Y'); } else { $DOPassport = ''; } $isactive = $Emp->IsActive; $ProfilePic = $Emp->ProfilePic; $Reference_Name = $Emp->Reference_Name; $Reference_ContactNumber = $Emp->Reference_ContactNumber; $Remarks = $Emp->Remarks; $personalEmailId = $Emp->personalEmailId; $DriverLicense = $Emp->DriverLicense; $VoterID = $Emp->VoterID; $pfno = $Emp->PFNO; $esino = $Emp->ESI; $nominee=$Emp->NomineeDetails; if($Emp->LicenseValidtill != '' && $Emp->LicenseValidtill != '0000-00-00 00:00:00') { $License = new DateTime($Emp->LicenseValidtill); $LicenseValidtill = $License ->format('d-m-Y'); } else { $LicenseValidtill = ''; } //$chk = $uf->IsActive; if($isactive == 1) { $IsActive = 'checked'; } else { $IsActive = ''; } $is_management_team = $Emp->is_management_team; $esi_applicable = $Emp->esi_applicable; $pf_applicable = $Emp->pf_applicable; } } ?>