CHANGE_EMP_CURD
This commit is contained in:
parent
b7d8071271
commit
2a8db81a15
@ -51,7 +51,6 @@ class Employeedetails extends BaseController
|
|||||||
$this->session = session();
|
$this->session = session();
|
||||||
helper('form'); //$this->load->library('form_validation');
|
helper('form'); //$this->load->library('form_validation');
|
||||||
$this->isLoggedIn();
|
$this->isLoggedIn();
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* This function is used to load the Employee details
|
* This function is used to load the Employee details
|
||||||
@ -202,20 +201,24 @@ class Employeedetails extends BaseController
|
|||||||
|
|
||||||
function AddNewEmployee()
|
function AddNewEmployee()
|
||||||
{
|
{
|
||||||
|
// print_r($this->request->getPost());die;
|
||||||
|
|
||||||
$photo = $this->request->getFile('photo');
|
$photo = $this->request->getFile('photo');
|
||||||
$Picture = "";
|
$Picture = "";
|
||||||
|
if(isset($photoan)){
|
||||||
if ($photo->isValid() && !$photo->hasMoved()) {
|
if ($photo->isValid() && !$photo->hasMoved()) {
|
||||||
$uploadDir = ROOTPATH . 'public/uploads/images/';
|
$uploadDir = ROOTPATH . 'public/uploads/images/';
|
||||||
$allowedTypes = ['jpg', 'jpeg', 'png', 'gif'];
|
$allowedTypes = ['jpg', 'jpeg', 'png', 'gif'];
|
||||||
if (in_array($photo->getExtension(), $allowedTypes)) {
|
if (in_array($photo->getExtension(), $allowedTypes)) {
|
||||||
$newName = $photo->getRandomName();
|
$newName = $photo->getRandomName();
|
||||||
if(!is_dir($uploadDir)) { mkdir($uploadDir, 0777, true); }
|
if (!is_dir($uploadDir)) {
|
||||||
|
mkdir($uploadDir, 0777, true);
|
||||||
|
}
|
||||||
$photo->move($uploadDir, $newName);
|
$photo->move($uploadDir, $newName);
|
||||||
$Picture = $newName;
|
$Picture = $newName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// $Profile = $this->request->getPost('photo');
|
// $Profile = $this->request->getPost('photo');
|
||||||
$FirstName = $this->request->getPost('FirstName');
|
$FirstName = $this->request->getPost('FirstName');
|
||||||
$FatherName = $this->request->getPost('FatherName');
|
$FatherName = $this->request->getPost('FatherName');
|
||||||
@ -290,22 +293,49 @@ class Employeedetails extends BaseController
|
|||||||
|
|
||||||
//echo $DOB;
|
//echo $DOB;
|
||||||
$Employee = array(
|
$Employee = array(
|
||||||
'FirstName' => $FirstName, 'FatherName' => $FatherName,
|
'FirstName' => $FirstName,
|
||||||
'Gender' => $Gender, 'DateofBirth' => $DOB, 'ContactNumber' => $ContactNumber, 'EmailId' => $EmailId,
|
'FatherName' => $FatherName,
|
||||||
'BloodGroup' => $BloodGroup, 'MartialStatus' => $MartialStatus, 'DateofJoining' => $DOJ,
|
'Gender' => $Gender,
|
||||||
'PreviousYearsOfExp' => $Previousexperience, 'Designation' => $desigination,
|
'DateofBirth' => $DOB,
|
||||||
'Departmentcode' => $departmentCode, 'PresentAddress' => $CurrentAddress,
|
'ContactNumber' => $ContactNumber,
|
||||||
'PermanentAddress' => $permanentaddress, 'EmergencyContactName' => $emergencycontactname,
|
'EmailId' => $EmailId,
|
||||||
'EmergencyContactNumber' => $emergencycontactnumber, 'Edu_Qualification' => $eduqualifaction,
|
'BloodGroup' => $BloodGroup,
|
||||||
'Additional_Qualification' => $addqualification, 'AadharNo' => $aadharno, 'PANNo' => $panno,
|
'MartialStatus' => $MartialStatus,
|
||||||
'BankAccountNo' => $accountno, 'IFSCCode' => $ifsccode, 'BankBranchName' => $bankbranchname,
|
'DateofJoining' => $DOJ,
|
||||||
'BankAddress' => $bankaddress, 'PassportNo' => $passportno, 'Passport_Valid_till' => $Valid,
|
'PreviousYearsOfExp' => $Previousexperience,
|
||||||
'IsActive' => $IsActive, 'ProfilePic' => $Picture, 'Reference_Name' => $referredby,
|
'Designation' => $desigination,
|
||||||
'Reference_ContactNumber' => $referrercontno, 'Remarks' => $addinfo, 'CreatedBy' => $createdby,
|
'Departmentcode' => $departmentCode,
|
||||||
'personalEmailId' => $comEmailId, 'DriverLicense' => $driverlicense,
|
'PresentAddress' => $CurrentAddress,
|
||||||
'LicenseValidtill' => $License_ExpiryDate, 'VoterID' => $VoterID, 'PFNO' => $PFno, 'ESI' => $ESIno,
|
'PermanentAddress' => $permanentaddress,
|
||||||
'NomineeDetails' => $Nominee , 'is_management_team' => $is_management_team , 'esi_applicable'=>$esi_applicable,
|
'EmergencyContactName' => $emergencycontactname,
|
||||||
'pf_applicable'=>$pf_applicable,'work_location'=>$work_location
|
'EmergencyContactNumber' => $emergencycontactnumber,
|
||||||
|
'Edu_Qualification' => $eduqualifaction,
|
||||||
|
'Additional_Qualification' => $addqualification,
|
||||||
|
'AadharNo' => $aadharno,
|
||||||
|
'PANNo' => $panno,
|
||||||
|
'BankAccountNo' => $accountno,
|
||||||
|
'IFSCCode' => $ifsccode,
|
||||||
|
'BankBranchName' => $bankbranchname,
|
||||||
|
'BankAddress' => $bankaddress,
|
||||||
|
'PassportNo' => $passportno,
|
||||||
|
'Passport_Valid_till' => $Valid,
|
||||||
|
'IsActive' => $IsActive,
|
||||||
|
'ProfilePic' => $Picture,
|
||||||
|
'Reference_Name' => $referredby,
|
||||||
|
'Reference_ContactNumber' => $referrercontno,
|
||||||
|
'Remarks' => $addinfo,
|
||||||
|
'CreatedBy' => $createdby,
|
||||||
|
'personalEmailId' => $comEmailId,
|
||||||
|
'DriverLicense' => $driverlicense,
|
||||||
|
'LicenseValidtill' => $License_ExpiryDate,
|
||||||
|
'VoterID' => $VoterID,
|
||||||
|
'PFNO' => $PFno,
|
||||||
|
'ESI' => $ESIno,
|
||||||
|
'NomineeDetails' => $Nominee,
|
||||||
|
'is_management_team' => $is_management_team,
|
||||||
|
'esi_applicable' => $esi_applicable,
|
||||||
|
'pf_applicable' => $pf_applicable,
|
||||||
|
'work_location' => $work_location
|
||||||
);
|
);
|
||||||
|
|
||||||
//print_r($Employee);die();
|
//print_r($Employee);die();
|
||||||
@ -316,8 +346,7 @@ class Employeedetails extends BaseController
|
|||||||
// Get the uploaded files
|
// Get the uploaded files
|
||||||
$files = $this->request->getFiles();
|
$files = $this->request->getFiles();
|
||||||
$fileNames = $this->request->getPost('file_name'); // Get user-entered file names
|
$fileNames = $this->request->getPost('file_name'); // Get user-entered file names
|
||||||
if(isset($files['emp_file']))
|
if (isset($files['emp_file'])) {
|
||||||
{
|
|
||||||
foreach ($files['emp_file'] as $index => $file) {
|
foreach ($files['emp_file'] as $index => $file) {
|
||||||
if ($file->isValid() && !$file->hasMoved()) {
|
if ($file->isValid() && !$file->hasMoved()) {
|
||||||
// Move the file to the desired directory
|
// Move the file to the desired directory
|
||||||
@ -353,20 +382,23 @@ class Employeedetails extends BaseController
|
|||||||
|
|
||||||
// $this->session->set_flashdata('Success', 'New Employee created successfully!');
|
// $this->session->set_flashdata('Success', 'New Employee created successfully!');
|
||||||
$this->session->setFlashdata('success', 'New Employee created successfully!');
|
$this->session->setFlashdata('success', 'New Employee created successfully!');
|
||||||
|
return json_encode('true');
|
||||||
// echo "<script>alert('New Employee Created successfully!');</script>";
|
// echo "<script>alert('New Employee Created successfully!');</script>";
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// $this->session->set_flashdata('Error', 'New Employee details not saved');
|
// $this->session->set_flashdata('Error', 'New Employee details not saved');
|
||||||
$this->session->setFlashdata('error', 'Record Not Saved!');
|
$this->session->setFlashdata('error', 'Record Not Saved!');
|
||||||
|
return json_encode('false');
|
||||||
// echo "<script>alert('Record Not Saved!');</script>";
|
// echo "<script>alert('Record Not Saved!');</script>";
|
||||||
// redirect('employeeListing', 'refresh');
|
// redirect('employeeListing', 'refresh');
|
||||||
}
|
}
|
||||||
return redirect()->route('employeeListing');
|
// return redirect()->route('employeeListing');
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function deleteEmployeeFile(){
|
function deleteEmployeeFile()
|
||||||
|
{
|
||||||
$id = $this->request->getPost('id');
|
$id = $this->request->getPost('id');
|
||||||
$update = $this->empFiles->set(['is_active' => 0])->where('id', $id)->update();
|
$update = $this->empFiles->set(['is_active' => 0])->where('id', $id)->update();
|
||||||
if ($update) {
|
if ($update) {
|
||||||
@ -379,8 +411,6 @@ class Employeedetails extends BaseController
|
|||||||
* This function is used to load the add new Employee form with dropdown values */
|
* This function is used to load the add new Employee form with dropdown values */
|
||||||
function addemployee()
|
function addemployee()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$GenderConfigID = 'C013';
|
$GenderConfigID = 'C013';
|
||||||
$MartialConfigID = 'C012';
|
$MartialConfigID = 'C012';
|
||||||
$QualificationConfigID = 'C014';
|
$QualificationConfigID = 'C014';
|
||||||
@ -405,7 +435,8 @@ class Employeedetails extends BaseController
|
|||||||
// {
|
// {
|
||||||
|
|
||||||
|
|
||||||
$this->loadViews("addEmployee", $this->global, $data, NULL);
|
// $this->loadViews("addEmployee", $this->global, $data, NULL);
|
||||||
|
$this->loadViews("addEmployeenew", $this->global, $data, NULL);
|
||||||
|
|
||||||
|
|
||||||
// }
|
// }
|
||||||
@ -449,7 +480,6 @@ class Employeedetails extends BaseController
|
|||||||
$query = $this->employeedetails_model->checkAadharExists($id);
|
$query = $this->employeedetails_model->checkAadharExists($id);
|
||||||
$response = ($query !== null && !empty($query)) ? $query[0]['AadharNo'] : null;
|
$response = ($query !== null && !empty($query)) ? $query[0]['AadharNo'] : null;
|
||||||
return $this->response->setJSON($response);
|
return $this->response->setJSON($response);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -503,7 +533,9 @@ class Employeedetails extends BaseController
|
|||||||
if (in_array($photo->getExtension(), $allowedTypes)) {
|
if (in_array($photo->getExtension(), $allowedTypes)) {
|
||||||
// Generate unique file name
|
// Generate unique file name
|
||||||
$newName = $photo->getRandomName();
|
$newName = $photo->getRandomName();
|
||||||
if(!is_dir($uploadDir)) { mkdir($uploadDir, 0777, true); }
|
if (!is_dir($uploadDir)) {
|
||||||
|
mkdir($uploadDir, 0777, true);
|
||||||
|
}
|
||||||
// Move the uploaded file to the upload directory
|
// Move the uploaded file to the upload directory
|
||||||
$photo->move($uploadDir, $newName);
|
$photo->move($uploadDir, $newName);
|
||||||
|
|
||||||
@ -549,7 +581,7 @@ class Employeedetails extends BaseController
|
|||||||
|
|
||||||
$this->global['pageTitle'] = 'View Employee';
|
$this->global['pageTitle'] = 'View Employee';
|
||||||
|
|
||||||
$this->loadViews("editEmployee", $this->global, $data, NULL);
|
$this->loadViews("editEmployeenew", $this->global, $data, NULL);
|
||||||
}
|
}
|
||||||
/* To Check the email exists in the database or not for the employee*/
|
/* To Check the email exists in the database or not for the employee*/
|
||||||
function checkMailEmp()
|
function checkMailEmp()
|
||||||
@ -571,7 +603,8 @@ class Employeedetails extends BaseController
|
|||||||
/* To Update the employee details*/
|
/* To Update the employee details*/
|
||||||
function UpdateEmployee()
|
function UpdateEmployee()
|
||||||
{
|
{
|
||||||
|
// echo "<pre>";
|
||||||
|
// print_r($this->request->getPost());die;
|
||||||
$EmpId = $this->request->getPost('employeeid');
|
$EmpId = $this->request->getPost('employeeid');
|
||||||
|
|
||||||
//$mail = $this->this->.post('emailid');
|
//$mail = $this->this->.post('emailid');
|
||||||
@ -619,7 +652,9 @@ class Employeedetails extends BaseController
|
|||||||
$allowedTypes = ['jpg', 'jpeg', 'png', 'gif'];
|
$allowedTypes = ['jpg', 'jpeg', 'png', 'gif'];
|
||||||
if (in_array($photo->getExtension(), $allowedTypes)) {
|
if (in_array($photo->getExtension(), $allowedTypes)) {
|
||||||
$newName = $photo->getRandomName();
|
$newName = $photo->getRandomName();
|
||||||
if(!is_dir($uploadDir)) { mkdir($uploadDir, 0777, true); }
|
if (!is_dir($uploadDir)) {
|
||||||
|
mkdir($uploadDir, 0777, true);
|
||||||
|
}
|
||||||
$photo->move($uploadDir, $newName);
|
$photo->move($uploadDir, $newName);
|
||||||
$Picture = $newName;
|
$Picture = $newName;
|
||||||
}
|
}
|
||||||
@ -628,17 +663,21 @@ class Employeedetails extends BaseController
|
|||||||
} else {
|
} else {
|
||||||
//echo 'Not Exists';
|
//echo 'Not Exists';
|
||||||
$photo = $this->request->getFile('photo');
|
$photo = $this->request->getFile('photo');
|
||||||
|
if(isset($photo)){
|
||||||
if ($photo->isValid() && !$photo->hasMoved()) {
|
if ($photo->isValid() && !$photo->hasMoved()) {
|
||||||
$uploadDir = ROOTPATH . 'public/uploads/images/';
|
$uploadDir = ROOTPATH . 'public/uploads/images/';
|
||||||
$allowedTypes = ['jpg', 'jpeg', 'png', 'gif'];
|
$allowedTypes = ['jpg', 'jpeg', 'png', 'gif'];
|
||||||
if (in_array($photo->getExtension(), $allowedTypes)) {
|
if (in_array($photo->getExtension(), $allowedTypes)) {
|
||||||
$newName = $photo->getRandomName();
|
$newName = $photo->getRandomName();
|
||||||
if(!is_dir($uploadDir)) { mkdir($uploadDir, 0777, true); }
|
if (!is_dir($uploadDir)) {
|
||||||
|
mkdir($uploadDir, 0777, true);
|
||||||
|
}
|
||||||
$photo->move($uploadDir, $newName);
|
$photo->move($uploadDir, $newName);
|
||||||
$Picture = $newName;
|
$Picture = $newName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//echo $Picture;
|
//echo $Picture;
|
||||||
|
|
||||||
$FirstName = $this->request->getPost('FirstName');
|
$FirstName = $this->request->getPost('FirstName');
|
||||||
@ -720,23 +759,52 @@ class Employeedetails extends BaseController
|
|||||||
$License_ExpiryDate = null;
|
$License_ExpiryDate = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
//echo $DOB;
|
// echo $DOB;die;
|
||||||
$Employee = array(
|
$Employee = array(
|
||||||
'FirstName' => $FirstName, 'LastName' => $LastName, 'FatherName' => $FatherName, 'Gender' => $Gender,
|
'FirstName' => $FirstName,
|
||||||
'DateofBirth' => $DOB, 'ContactNumber' => $ContactNumber, 'EmailId' => $EmailId,
|
'LastName' => $LastName,
|
||||||
'BloodGroup' => $BloodGroup, 'MartialStatus' => $MartialStatus, 'DateofJoining' => $DOJ,
|
'FatherName' => $FatherName,
|
||||||
'PreviousYearsOfExp' => $Previousexperience, 'Designation' => $desigination,
|
'Gender' => $Gender,
|
||||||
'Departmentcode' => $departmentCode, 'PresentAddress' => $CurrentAddress,
|
'DateofBirth' => $DOB,
|
||||||
'PermanentAddress' => $permanentaddress, 'EmergencyContactName' => $emergencycontactname,
|
'ContactNumber' => $ContactNumber,
|
||||||
'EmergencyContactNumber' => $emergencycontactnumber, 'Edu_Qualification' => $eduqualifaction,
|
'EmailId' => $EmailId,
|
||||||
'Additional_Qualification' => $addqualification, 'AadharNo' => $aadharno, 'PANNo' => $panno,
|
'BloodGroup' => $BloodGroup,
|
||||||
'BankAccountNo' => $accountno, 'IFSCCode' => $ifsccode, 'BankBranchName' => $bankbranchname,
|
'MartialStatus' => $MartialStatus,
|
||||||
'BankAddress' => $bankaddress, 'PassportNo' => $passportno, 'Passport_Valid_till' => $Valid,
|
'DateofJoining' => $DOJ,
|
||||||
'IsActive' => $IsActive, 'ProfilePic' => $Picture, 'Reference_Name' => $referredby,
|
'PreviousYearsOfExp' => $Previousexperience,
|
||||||
'Reference_ContactNumber' => $referrercontno, 'Remarks' => $addinfo, 'UpdatedBY' => $UpdatedBY,
|
'Designation' => $desigination,
|
||||||
'personalEmailId' => $comEmailId, 'DriverLicense' => $driverlicense, 'LicenseValidtill' => $License_ExpiryDate,
|
'Departmentcode' => $departmentCode,
|
||||||
'VoterID' => $VoterID, 'PFNO' => $pfno, 'ESI' => $esino, 'NomineeDetails' => $Nominee,'is_management_team' => $is_management_team ,
|
'PresentAddress' => $CurrentAddress,
|
||||||
'esi_applicable'=>$esi_applicable,'pf_applicable'=>$pf_applicable,'work_location'=>$work_location
|
'PermanentAddress' => $permanentaddress,
|
||||||
|
'EmergencyContactName' => $emergencycontactname,
|
||||||
|
'EmergencyContactNumber' => $emergencycontactnumber,
|
||||||
|
'Edu_Qualification' => $eduqualifaction,
|
||||||
|
'Additional_Qualification' => $addqualification,
|
||||||
|
'AadharNo' => $aadharno,
|
||||||
|
'PANNo' => $panno,
|
||||||
|
'BankAccountNo' => $accountno,
|
||||||
|
'IFSCCode' => $ifsccode,
|
||||||
|
'BankBranchName' => $bankbranchname,
|
||||||
|
'BankAddress' => $bankaddress,
|
||||||
|
'PassportNo' => $passportno,
|
||||||
|
'Passport_Valid_till' => $Valid,
|
||||||
|
'IsActive' => $IsActive,
|
||||||
|
'ProfilePic' => $Picture,
|
||||||
|
'Reference_Name' => $referredby,
|
||||||
|
'Reference_ContactNumber' => $referrercontno,
|
||||||
|
'Remarks' => $addinfo,
|
||||||
|
'UpdatedBY' => $UpdatedBY,
|
||||||
|
'personalEmailId' => $comEmailId,
|
||||||
|
'DriverLicense' => $driverlicense,
|
||||||
|
'LicenseValidtill' => $License_ExpiryDate,
|
||||||
|
'VoterID' => $VoterID,
|
||||||
|
'PFNO' => $pfno,
|
||||||
|
'ESI' => $esino,
|
||||||
|
'NomineeDetails' => $Nominee,
|
||||||
|
'is_management_team' => $is_management_team,
|
||||||
|
'esi_applicable' => $esi_applicable,
|
||||||
|
'pf_applicable' => $pf_applicable,
|
||||||
|
'work_location' => $work_location
|
||||||
);
|
);
|
||||||
//print_r($Employee);die();
|
//print_r($Employee);die();
|
||||||
$result = $this->employeedetails_model->UpdateEmployee($Employee, $EmpId);
|
$result = $this->employeedetails_model->UpdateEmployee($Employee, $EmpId);
|
||||||
@ -744,8 +812,7 @@ class Employeedetails extends BaseController
|
|||||||
// Get the uploaded files
|
// Get the uploaded files
|
||||||
$files = $this->request->getFiles();
|
$files = $this->request->getFiles();
|
||||||
$fileNames = $this->request->getPost('file_name'); // Get user-entered file names
|
$fileNames = $this->request->getPost('file_name'); // Get user-entered file names
|
||||||
if(isset($files['emp_file']))
|
if (isset($files['emp_file'])) {
|
||||||
{
|
|
||||||
foreach ($files['emp_file'] as $index => $file) {
|
foreach ($files['emp_file'] as $index => $file) {
|
||||||
if ($file->isValid() && !$file->hasMoved()) {
|
if ($file->isValid() && !$file->hasMoved()) {
|
||||||
// Move the file to the desired directory
|
// Move the file to the desired directory
|
||||||
@ -780,16 +847,16 @@ class Employeedetails extends BaseController
|
|||||||
|
|
||||||
if ($result + $empPayUpdate > 0) {
|
if ($result + $empPayUpdate > 0) {
|
||||||
$this->session->setFlashdata('success', 'You Have Successfully updated the Employee Record!');
|
$this->session->setFlashdata('success', 'You Have Successfully updated the Employee Record!');
|
||||||
|
return json_encode(true);
|
||||||
} else {
|
} else {
|
||||||
$this->session->setFlashdata('error', 'Record Not Updated!');
|
$this->session->setFlashdata('error', 'Record Not Updated!');
|
||||||
|
return json_encode(false);
|
||||||
}
|
}
|
||||||
return redirect()->route('employeeListing');
|
// return redirect()->route('employeeListing');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function exportemployee()
|
function exportemployee()
|
||||||
{
|
{
|
||||||
|
|
||||||
$exportData = $this->employeedetails_model->export_excel();
|
$exportData = $this->employeedetails_model->export_excel();
|
||||||
|
|
||||||
$file_name = 'Employee_Details' . ' ' . '.xls'; //save our workbook as this file name
|
$file_name = 'Employee_Details' . ' ' . '.xls'; //save our workbook as this file name
|
||||||
@ -849,10 +916,12 @@ class Employeedetails extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($exportData) {
|
if ($exportData) {
|
||||||
$i = 6;$s = 1;
|
$i = 6;
|
||||||
|
$s = 1;
|
||||||
foreach ($exportData as $data) {
|
foreach ($exportData as $data) {
|
||||||
$rowData = [
|
$rowData = [
|
||||||
'A'. $i,$data['EmpID'],
|
'A' . $i,
|
||||||
|
$data['EmpID'],
|
||||||
'B' . $i => $data['FirstName'] . '-' . $data['LastName'],
|
'B' . $i => $data['FirstName'] . '-' . $data['LastName'],
|
||||||
'C' . $i => $data['FatherName'],
|
'C' . $i => $data['FatherName'],
|
||||||
'D' . $i => $data['Gender'],
|
'D' . $i => $data['Gender'],
|
||||||
@ -900,7 +969,6 @@ class Employeedetails extends BaseController
|
|||||||
$i++;
|
$i++;
|
||||||
$s++;
|
$s++;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// $writer = new Xlsx($spreadsheet);
|
// $writer = new Xlsx($spreadsheet);
|
||||||
// $writer->save($file_name);
|
// $writer->save($file_name);
|
||||||
@ -928,6 +996,4 @@ class Employeedetails extends BaseController
|
|||||||
$writer->save('php://output');
|
$writer->save('php://output');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
1420
app/Views/addEmployeenew.php
Normal file
1420
app/Views/addEmployeenew.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -814,12 +814,14 @@ legend {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="col-md-6 pad"><span>Personal Email ID</span>
|
<div class="col-md-6 pad">
|
||||||
|
<span>Personal Email ID</span>
|
||||||
<input type="mail" name="emailid"
|
<input type="mail" name="emailid"
|
||||||
value="<?php echo $EmailId ; ?>" id="email"
|
value="<?php echo $EmailId ; ?>" id="email"
|
||||||
placeholder="Email ID" maxlength="100" class="form-control">
|
placeholder="Email ID" maxlength="100" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 pad"> <span>Official Email ID</span>
|
<div class="col-md-6 pad">
|
||||||
|
<span>Official Email ID</span>
|
||||||
<input type="email" name="comemailid" id="mail"
|
<input type="email" name="comemailid" id="mail"
|
||||||
placeholder="Official Email ID"
|
placeholder="Official Email ID"
|
||||||
value="<?php echo $personalEmailId;?>" maxlength="100"
|
value="<?php echo $personalEmailId;?>" maxlength="100"
|
||||||
@ -887,7 +889,8 @@ legend {
|
|||||||
<!-- Text input-->
|
<!-- Text input-->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-12"><span>Current Address</span><span
|
<div class="col-md-12">
|
||||||
|
<span>Current Address</span><span
|
||||||
class="badge">*</span>
|
class="badge">*</span>
|
||||||
<input type="text" id="currentaddress" pattern=".{1,500}"
|
<input type="text" id="currentaddress" pattern=".{1,500}"
|
||||||
required name="currentaddress" maxlength="500"
|
required name="currentaddress" maxlength="500"
|
||||||
@ -908,7 +911,8 @@ legend {
|
|||||||
<!-- Text input-->
|
<!-- Text input-->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-12"><span>Permanent Address</span><span
|
<div class="col-md-12">
|
||||||
|
<span>Permanent Address</span><span
|
||||||
class="badge">*</span>
|
class="badge">*</span>
|
||||||
<input type="text" id="permanentaddress" required
|
<input type="text" id="permanentaddress" required
|
||||||
name="permanentaddress" pattern=".{0,500}"
|
name="permanentaddress" pattern=".{0,500}"
|
||||||
@ -927,13 +931,15 @@ legend {
|
|||||||
<!-- Text input-->
|
<!-- Text input-->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-6"><span>Emergency Contact Name</span>
|
<div class="col-md-6">
|
||||||
|
<span>Emergency Contact Name</span>
|
||||||
<input type="text" id="emergencycontactname" maxlength="100"
|
<input type="text" id="emergencycontactname" maxlength="100"
|
||||||
name="emergencycontactname"
|
name="emergencycontactname"
|
||||||
value="<?php echo $EmergencyContactName ; ?>"
|
value="<?php echo $EmergencyContactName ; ?>"
|
||||||
placeholder="Emergency Contact Name" class="form-control">
|
placeholder="Emergency Contact Name" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6"><span>Emergency Contact Number</span>
|
<div class="col-md-6">
|
||||||
|
<span>Emergency Contact Number</span>
|
||||||
<input type="text" id="emergencycontactnumber"
|
<input type="text" id="emergencycontactnumber"
|
||||||
name="emergencycontactnumber"
|
name="emergencycontactnumber"
|
||||||
onchange="getValidEmergencyNumber();" maxlength="10"
|
onchange="getValidEmergencyNumber();" maxlength="10"
|
||||||
@ -953,7 +959,8 @@ legend {
|
|||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-3"><span>Designation</span><span
|
<div class="col-md-3">
|
||||||
|
<span>Designation</span><span
|
||||||
class="badge">*</span>
|
class="badge">*</span>
|
||||||
<select type="text" id="desigination" name="desigination"
|
<select type="text" id="desigination" name="desigination"
|
||||||
required class="form-control select2">
|
required class="form-control select2">
|
||||||
@ -975,7 +982,8 @@ legend {
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3"><span>Department</span><span
|
<div class="col-md-3">
|
||||||
|
<span>Department</span><span
|
||||||
class="badge">*</span>
|
class="badge">*</span>
|
||||||
<select type="text" id="departmentname" name="departmentname"
|
<select type="text" id="departmentname" name="departmentname"
|
||||||
required class="form-control select2">
|
required class="form-control select2">
|
||||||
@ -999,7 +1007,8 @@ legend {
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3"><span>Date Of Joining</span><span
|
<div class="col-md-3">
|
||||||
|
<span>Date Of Joining</span><span
|
||||||
class="badge">*</span>
|
class="badge">*</span>
|
||||||
<input id="dateofjoining" name="dateofjoining"
|
<input id="dateofjoining" name="dateofjoining"
|
||||||
value="<?php echo $DOJ; ?>" maxlength="10" required
|
value="<?php echo $DOJ; ?>" maxlength="10" required
|
||||||
@ -1051,7 +1060,8 @@ legend {
|
|||||||
placeholder="Referred By" maxlength="100"
|
placeholder="Referred By" maxlength="100"
|
||||||
class="form-control">
|
class="form-control">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3" style="display:none"><span>Referrer Contact Number</span>
|
<div class="col-md-3" style="display:none">
|
||||||
|
<span>Referrer Contact Number</span>
|
||||||
<input type="text" id="referrercontno" name="referrercontno"
|
<input type="text" id="referrercontno" name="referrercontno"
|
||||||
value="<?php echo $Reference_ContactNumber ; ?>"
|
value="<?php echo $Reference_ContactNumber ; ?>"
|
||||||
onchange="getValidReferNumber();" maxlength="10"
|
onchange="getValidReferNumber();" maxlength="10"
|
||||||
@ -1384,16 +1394,6 @@ legend {
|
|||||||
|
|
||||||
<div class="files">
|
<div class="files">
|
||||||
|
|
||||||
<div class="col-md-12 ">
|
|
||||||
<div class="col-md-10"></div>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<button type="button" class="btn btn-primary btn-sm a1"
|
|
||||||
onclick="appendFilesFileds()" id="day">
|
|
||||||
Add New File
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php foreach ($emp_data as $key => $value) { ?>
|
<?php foreach ($emp_data as $key => $value) { ?>
|
||||||
|
|
||||||
<div class="col-md-12 pad ">
|
<div class="col-md-12 pad ">
|
||||||
@ -1414,6 +1414,7 @@ legend {
|
|||||||
id="<?= $value['id']; ?>"
|
id="<?= $value['id']; ?>"
|
||||||
onclick="removeContact(this)">Delete</button>
|
onclick="removeContact(this)">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
@ -1526,8 +1527,8 @@ function appendFilesFileds(data) {
|
|||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
$('#filesContainer').append(newRowHtml);
|
$('#filesContainer').append(newRowHtml);
|
||||||
$('.a1').hide();
|
// $('.a1').hide();
|
||||||
$('#filesContainer .pad:last .a1').show();
|
// $('#filesContainer .pad:last .a1').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeContact(button) {
|
function removeContact(button) {
|
||||||
|
|||||||
1693
app/Views/editEmployeenew.php
Normal file
1693
app/Views/editEmployeenew.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -135,6 +135,13 @@
|
|||||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
|
<script src="<?php echo base_url(); ?>public/new_assets/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- -->
|
||||||
|
<!-- Plugins js-->
|
||||||
|
<script src="<?php echo base_url(); ?>public/new_assets/libs/twitter-bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Init js-->
|
||||||
|
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/form-wizard.init.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user