emp module dev 24/10 changes 1 -vadivel J
This commit is contained in:
parent
2e1abe5f96
commit
a9d0f350e8
@ -198,6 +198,40 @@ class Employeedetails extends BaseController
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
/**
|
||||
* This function is used to save the new Employee form in the database
|
||||
*/
|
||||
|
||||
|
||||
function AddNewEmployee()
|
||||
{
|
||||
@ -365,16 +399,15 @@ class Employeedetails extends BaseController
|
||||
$this->empFiles->save([
|
||||
'file_name' => $fileNames[$index], // User-entered file name
|
||||
'emp_file' => $newName, // New file name
|
||||
'emp_id' => $result,
|
||||
'emp_id' => $result['EmpID'],
|
||||
'path' => $path
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$EmpID = $result;
|
||||
$EmpID = $result['EmpID'];
|
||||
$Total_Salary = $this->request->getPost('Total_salary');
|
||||
$Basic_Pay = $this->request->getPost('Basic_Pay');
|
||||
$HRA_Rate = $this->request->getPost('HRA_Rate');
|
||||
@ -628,12 +661,45 @@ class Employeedetails extends BaseController
|
||||
}
|
||||
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
/* To Update the employee details*/
|
||||
|
||||
|
||||
function UpdateEmployee()
|
||||
{
|
||||
|
||||
$EmpId = $this->request->getPost('employeeid');
|
||||
$EmpId = $this->request->getGet('empId');
|
||||
|
||||
$EmpId = $this->request->getPost('employeeid');
|
||||
$PictureName = $this->request->getPost('Image');
|
||||
$ModifyPictureName = $this->request->getPost('ModifyImage');
|
||||
$Picture = "";
|
||||
@ -853,9 +919,8 @@ class Employeedetails extends BaseController
|
||||
$this->empFiles->save([
|
||||
'file_name' => $fileNames[$index], // User-entered file name
|
||||
'emp_file' => $newName, // New file name
|
||||
'emp_id' => $result,
|
||||
'emp_id' => $EmpId,
|
||||
'path' => $path
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -21,4 +21,3 @@ class EmpFilesModel extends Model
|
||||
];
|
||||
|
||||
}
|
||||
?>
|
||||
@ -1003,19 +1003,19 @@
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<div class="row">
|
||||
<div class="col-md-3"><label>Aadhar Number</label> <span
|
||||
<div class="col-md-4"><label>Aadhar Number</label> <span
|
||||
class="badge">*</span>
|
||||
<input type="text" id="aadharno" name="aadharno" maxlength="14"
|
||||
onchange="ValidateAadhar();" class="form-control"
|
||||
onkeypress="return isNumberKey(event)" required>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>File Name</label>
|
||||
<div class="col-md-4">
|
||||
<label>Aadhar File Name</label>
|
||||
<input type="text" id="file_name" name="file_name1" maxlength="255"
|
||||
class="form-control" value="Aadhar">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Select Aadhar File</label>
|
||||
<input type="file" name="emp_file1" class="">
|
||||
</div>
|
||||
@ -1027,7 +1027,7 @@
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3"><label>PAN Number</label>
|
||||
<div class="col-md-4"><label>PAN Number</label>
|
||||
<input type="text" id="panno" maxlength="10"
|
||||
style="text-transform:uppercase" name="panno"
|
||||
onchange="validatePAN();" class="form-control"
|
||||
@ -1036,26 +1036,21 @@
|
||||
onkeypress="return alpha(event);">
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>PAN File Name</label>
|
||||
<input type="text" id="file_name" name="file_name2" maxlength="255"
|
||||
class="form-control" value="PAN">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Select PAN File</label>
|
||||
<input type="file" name="emp_file2" class="">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3"><label>Passport Number</label>
|
||||
<div class="col-md-4"><label>Passport Number</label>
|
||||
<input type="text" id="passportno" maxlength="9"
|
||||
onchange="ValidatePassport();" name="passportno"
|
||||
style="text-transform:uppercase" class="form-control"
|
||||
@ -1063,44 +1058,39 @@
|
||||
The first character cannot be Q, X or Z. (eg:A12 34567)" onkeypress="return alpha(event);">
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Passport File Name</label>
|
||||
<input type="text" id="file_name" name="file_name3" maxlength="255"
|
||||
class="form-control" value="Passport">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Select Passport File</label>
|
||||
<input type="file" name="emp_file3" class="">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<label>Bank PassBok Name</label>
|
||||
<input type="text" id="file_name" name="file_name4" maxlength="255"
|
||||
class="form-control" value="Bank Passbook">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Bank PassBok File</label>
|
||||
<input type="file" name="emp_file4" class="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<label>Other Document File Name</label>
|
||||
<input type="text" id="file_name" name="file_name5" maxlength="255"
|
||||
class="form-control" value="Other Document">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Other Document File </label>
|
||||
<input type="file" name="emp_file5" class="">
|
||||
</div>
|
||||
|
||||
@ -145,6 +145,7 @@ if (!empty($EmpDetails)) {
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
@ -207,8 +208,8 @@ if (!empty($EmpDetails)) {
|
||||
<div class="box-header">
|
||||
|
||||
<img id="profilepicture"
|
||||
src="<?php echo base_url() . $ProfilePic; ?>" alt="your image"
|
||||
style="width: 139px;" />
|
||||
src="<?php echo base_url() . $ProfilePic; ?>"
|
||||
alt="your image" style="width: 139px;" />
|
||||
|
||||
|
||||
|
||||
@ -220,14 +221,16 @@ if (!empty($EmpDetails)) {
|
||||
|
||||
<div class="form-row">
|
||||
|
||||
<label for="photo">Select profile picture<br /><small>(only .jpg or
|
||||
<label for="photo">Select profile picture<br /><small>(only .jpg
|
||||
or
|
||||
.png)</small>
|
||||
</label>
|
||||
|
||||
<br>
|
||||
|
||||
<input type='file' onchange="readURL(this);" id="photo"
|
||||
value="<?php echo base_url() . $ProfilePic; ?>" name="photo" />
|
||||
value="<?php echo base_url() . $ProfilePic; ?>"
|
||||
name="photo" />
|
||||
|
||||
|
||||
<input type="hidden" name="Image" id="Image"
|
||||
@ -281,11 +284,13 @@ if (!empty($EmpDetails)) {
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 pad">
|
||||
<label>Father / Husband Name</label><span class="badge">*</span>
|
||||
<label>Father / Husband Name</label><span
|
||||
class="badge">*</span>
|
||||
<input type="text" name="FatherName" id="FatherName"
|
||||
maxlength="200" value="<?php echo $FatherName; ?>"
|
||||
placeholder="Father / Husband Name" class="form-control"
|
||||
required onkeypress="return onlyAlphabets(event);">
|
||||
placeholder="Father / Husband Name"
|
||||
class="form-control" required
|
||||
onkeypress="return onlyAlphabets(event);">
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 pad">
|
||||
@ -294,7 +299,8 @@ if (!empty($EmpDetails)) {
|
||||
value="<?php echo $ContactNumber; ?>"
|
||||
onchange="getMobileValidation();" id="ContactNumber"
|
||||
required placeholder="Contact Number" maxlength="10"
|
||||
class="form-control" onkeypress="return isNumberKey(event)">
|
||||
class="form-control"
|
||||
onkeypress="return isNumberKey(event)">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -305,7 +311,8 @@ if (!empty($EmpDetails)) {
|
||||
<div class="col-md-4 pad">
|
||||
<label>Gender</label><span class="badge">*</span>
|
||||
<select id="gender" name="gender" type="text"
|
||||
placeholder="Gender" required class="form-control select2">
|
||||
placeholder="Gender" required
|
||||
class="form-control select2">
|
||||
<option value="<?php echo $Gender; ?>">
|
||||
<?php echo $Gender; ?>
|
||||
</option>
|
||||
@ -340,7 +347,8 @@ if (!empty($EmpDetails)) {
|
||||
<div class="col-md-4 pad">
|
||||
<label>Age</label><span class="badge">*</span>
|
||||
<input type="text" name="age" placeholder="Age" id="age"
|
||||
value="<?php echo $Age; ?>" class="form-control" readonly>
|
||||
value="<?php echo $Age; ?>" class="form-control"
|
||||
readonly>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -495,8 +503,9 @@ if (!empty($EmpDetails)) {
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Department</label><span class="badge">*</span>
|
||||
<select type="text" id="departmentname" name="departmentname"
|
||||
required class="form-control select2">
|
||||
<select type="text" id="departmentname"
|
||||
name="departmentname" required
|
||||
class="form-control select2">
|
||||
<option value="<?php echo $Departmentcode; ?>">
|
||||
<?php echo $Departmentcode . " - " . $DepartmentName; ?>
|
||||
</option>
|
||||
@ -546,8 +555,9 @@ if (!empty($EmpDetails)) {
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Qualification</label><span class="badge">*</span>
|
||||
<select type="text" id="eduqualifaction" name="eduqualifaction"
|
||||
required class="form-control select2">
|
||||
<select type="text" id="eduqualifaction"
|
||||
name="eduqualifaction" required
|
||||
class="form-control select2">
|
||||
<option value="<?php echo $Edu_Qualification; ?>">
|
||||
<?php echo $Edu_Qualification; ?>
|
||||
</option>
|
||||
@ -569,7 +579,8 @@ if (!empty($EmpDetails)) {
|
||||
</div>
|
||||
<div class="col-md-3" style="display:none">
|
||||
<label>Additional Qualification</label>
|
||||
<input type="text" id="addqualification" name="addqualification"
|
||||
<input type="text" id="addqualification"
|
||||
name="addqualification"
|
||||
value="<?php echo $Additional_Qualification; ?>"
|
||||
maxlength="100" placeholder="Additional Qualification"
|
||||
class="form-control">
|
||||
@ -586,7 +597,8 @@ if (!empty($EmpDetails)) {
|
||||
<input type="text" id="referrercontno" name="referrercontno"
|
||||
value="<?php echo $Reference_ContactNumber; ?>"
|
||||
onchange="getValidReferNumber();" maxlength="10"
|
||||
placeholder="Referrer Contact Number" class="form-control"
|
||||
placeholder="Referrer Contact Number"
|
||||
class="form-control"
|
||||
onkeypress="return isNumberKey(event)">
|
||||
</div>
|
||||
|
||||
@ -662,15 +674,16 @@ if (!empty($EmpDetails)) {
|
||||
<div class="col-md-3">
|
||||
<label>Bank Name</label>
|
||||
<input type="text" id="bankbranchname" name="bankbranchname"
|
||||
class="form-control" value="<?php echo $BankBranchName; ?>"
|
||||
required>
|
||||
class="form-control"
|
||||
value="<?php echo $BankBranchName; ?>" required>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Account Number</label>
|
||||
<input type="text" id="accountno" maxlength="20"
|
||||
name="accountno" placeholder="Account Number"
|
||||
class="form-control" value="<?php echo $BankAccountNo; ?>"
|
||||
class="form-control"
|
||||
value="<?php echo $BankAccountNo; ?>"
|
||||
onkeypress="return isNumberKey(event)">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
@ -767,9 +780,10 @@ if (!empty($EmpDetails)) {
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label>ESI Number</label>
|
||||
<input type="text" id="esino" name="esino" maxlength="10"
|
||||
onchange="validateESI();" class="form-control"
|
||||
title=" 10 digit number" value="<?php echo $esino; ?>"
|
||||
<input type="text" id="esino" name="esino"
|
||||
maxlength="10" onchange="validateESI();"
|
||||
class="form-control" title=" 10 digit number"
|
||||
value="<?php echo $esino; ?>"
|
||||
onkeypress="return isNumberKey(event)">
|
||||
</div>
|
||||
</div>
|
||||
@ -792,9 +806,10 @@ if (!empty($EmpDetails)) {
|
||||
<div class="form-group">
|
||||
<label>UAN</label>
|
||||
<input type="text" id="pfno" name="pfno" maxlength="22"
|
||||
value="<?php echo $pfno; ?>" onchange="validatePF();"
|
||||
class="form-control" style="text-transform:uppercase"
|
||||
pattern="\d{12}" title="12 Digit number"
|
||||
value="<?php echo $pfno; ?>"
|
||||
onchange="validatePF();" class="form-control"
|
||||
style="text-transform:uppercase" pattern="\d{12}"
|
||||
title="12 Digit number"
|
||||
onkeypress="return alpha(event);">
|
||||
</div>
|
||||
</div>
|
||||
@ -841,13 +856,11 @@ if (!empty($EmpDetails)) {
|
||||
<label class="switch">
|
||||
<input type="checkbox" name="tds_applicable"
|
||||
value="<?= $tds_applicable; ?>" <?php echo $tds_applicable == '1' ? 'checked' : ''; ?>
|
||||
onchange="updateSwitchValue(this)"
|
||||
/>
|
||||
onchange="updateSwitchValue(this)" />
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
|
||||
<label
|
||||
class="mt-4">TDS
|
||||
<label class="mt-4">TDS
|
||||
Applicable</label>
|
||||
|
||||
|
||||
@ -864,8 +877,7 @@ if (!empty($EmpDetails)) {
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
|
||||
<label
|
||||
class="mt-4">ESI
|
||||
<label class="mt-4">ESI
|
||||
Applicable</label>
|
||||
|
||||
|
||||
@ -882,8 +894,7 @@ if (!empty($EmpDetails)) {
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
|
||||
<label
|
||||
class="mt-4">PF
|
||||
<label class="mt-4">PF
|
||||
Applicable</label>
|
||||
|
||||
|
||||
@ -907,13 +918,48 @@ if (!empty($EmpDetails)) {
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="fourth">
|
||||
<form id="proofForm" method="post" enctype="multipart/form-data" action="#" class="form-horizontal">
|
||||
<form id="proofForm" method="post" enctype="multipart/form-data" action="#"
|
||||
class="form-horizontal">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<?php if (count($emp_data) > 0) {
|
||||
|
||||
$aadharFileName = '';
|
||||
$panFileName = '';
|
||||
$passportFileName = '';
|
||||
$bankPassBookFileName = '';
|
||||
$otherDocumentFileName = '';
|
||||
$aadharFile = '';
|
||||
$panFile = '';
|
||||
$passportFile = '';
|
||||
$bankPassBookFile = '';
|
||||
$otherDocumentFile = '';
|
||||
|
||||
foreach ($emp_data as $emp_proofFile) {
|
||||
|
||||
if ($emp_proofFile['file_name'] == 'Aadhar') {
|
||||
$aadharFileName = $emp_proofFile['file_name'];
|
||||
$aadharFile = $emp_proofFile['emp_file'];
|
||||
|
||||
} elseif ($emp_proofFile['file_name'] == 'PAN') {
|
||||
$panFileName = $emp_proofFile['file_name'];
|
||||
$panFile = $emp_proofFile['emp_file'];
|
||||
} elseif ($emp_proofFile['file_name'] == 'Passport') {
|
||||
$passportFileName = $emp_proofFile['file_name'];
|
||||
$passportFile = $emp_proofFile['emp_file'];
|
||||
} elseif ($emp_proofFile['file_name'] == 'Bank Passbook') {
|
||||
$bankPassBookFileName = $emp_proofFile['file_name'];
|
||||
$bankPassBookFile = $emp_proofFile['emp_file'];
|
||||
} else {
|
||||
$otherDocumentFileName = $emp_proofFile['file_name'];
|
||||
$otherDocumentFile = $emp_proofFile['emp_file'];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@ -924,13 +970,13 @@ if (!empty($EmpDetails)) {
|
||||
|
||||
<label>File Name</label>
|
||||
<input type="text" maxlength="255" class="form-control"
|
||||
value="<?php echo $value['file_name']; ?>" readonly>
|
||||
value="" readonly>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-1" style="margin-top: 32px;">
|
||||
<a href="<?php echo base_url() . 'public/uploads/images/emp_files/' . $value['emp_file']; ?>"
|
||||
<a href=""
|
||||
download>
|
||||
<i class="fa fa-download" aria-hidden="true"
|
||||
style="font-size: 25px;"></i>
|
||||
@ -938,7 +984,7 @@ if (!empty($EmpDetails)) {
|
||||
</div>
|
||||
<div class="col-md-4" align="left" style="margin-top: 32px;">
|
||||
<button type="button" class="btn btn-danger btn-sm"
|
||||
id="<?= $value['id']; ?>"
|
||||
id=""
|
||||
onclick="removeContact(this)">Delete
|
||||
</button>
|
||||
|
||||
@ -948,27 +994,38 @@ if (!empty($EmpDetails)) {
|
||||
|
||||
<!-- new code -->
|
||||
<div class="row">
|
||||
<div class="col-md-3"><label>Aadhar Number</label> <span
|
||||
<div class="col-md-4"><label>Aadhar Number</label> <span
|
||||
class="badge">*</span>
|
||||
<input type="text" id="aadharno" name="aadharno" maxlength="14"
|
||||
onchange="ValidateAadhar();" class="form-control"
|
||||
<input type="text" id="aadharno" name="aadharno"
|
||||
maxlength="14" onchange="ValidateAadhar();"
|
||||
class="form-control"
|
||||
onkeypress="return isNumberKey(event)" required>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>File Name</label>
|
||||
<input type="text" id="file_name" name="file_name1" maxlength="255"
|
||||
class="form-control" value="<?= $value['emp_file']?>">
|
||||
<label>Aadhar File Name</label>
|
||||
<input type="text" id="file_name" name="file_name1"
|
||||
maxlength="255" class="form-control"
|
||||
value="<?= $aadharFileName; ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Select Aadhar File</label>
|
||||
<input type="file" name="emp_file1" class="" value="">
|
||||
<div class="col-md-1">
|
||||
<a href="<?php echo base_url() . 'public/uploads/images/emp_files/' . $aadharFile; ?>"
|
||||
download>
|
||||
<i class="fa fa-download mt-4" aria-hidden="true"
|
||||
style="font-size: 25px;"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Update Aadhar File</label>
|
||||
<input type="file" name="emp_file1" class=""
|
||||
value="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3"><label>PAN Number</label>
|
||||
<div class="col-md-4"><label>PAN Number</label>
|
||||
<input type="text" id="panno" maxlength="10"
|
||||
style="text-transform:uppercase" name="panno"
|
||||
onchange="validatePAN();" class="form-control"
|
||||
@ -979,80 +1036,116 @@ if (!empty($EmpDetails)) {
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>PAN File Name</label>
|
||||
<input type="text" id="file_name" name="file_name2" maxlength="255"
|
||||
class="form-control" value="PAN">
|
||||
<input type="text" id="file_name" name="file_name2"
|
||||
maxlength="255" class="form-control" value="<?=$panFileName?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Select PAN File</label>
|
||||
<div class="col-md-1">
|
||||
<a href="<?php echo base_url() . 'public/uploads/images/emp_files/' . $panFile; ?>"
|
||||
download>
|
||||
<i class="fa fa-download mt-4" aria-hidden="true"
|
||||
style="font-size: 25px;"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Update PAN File</label>
|
||||
<input type="file" name="emp_file2" class="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3"><label>Passport Number</label>
|
||||
<div class="col-md-4"><label>Passport Number</label>
|
||||
<input type="text" id="passportno" maxlength="9"
|
||||
onchange="ValidatePassport();" name="passportno"
|
||||
style="text-transform:uppercase" class="form-control"
|
||||
pattern="[aA-prPR-wyWY]{1}[1-9]{1}\d{1}\s\d{4}[1-9]{1}" title="The first digit or the last digit will never be 0
|
||||
The first character cannot be Q, X or Z. (eg:A12 34567)" onkeypress="return alpha(event);">
|
||||
pattern="[aA-prPR-wyWY]{1}[1-9]{1}\d{1}\s\d{4}[1-9]{1}"
|
||||
title="The first digit or the last digit will never be 0
|
||||
The first character cannot be Q, X or Z. (eg:A12 34567)"
|
||||
onkeypress="return alpha(event);">
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Passport File Name</label>
|
||||
<input type="text" id="file_name" name="file_name3" maxlength="255"
|
||||
class="form-control" value="Passport">
|
||||
<input type="text" id="file_name" name="file_name3"
|
||||
maxlength="255" class="form-control" value="<?=$passportFileName; ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-1">
|
||||
<a href="<?php echo base_url() . 'public/uploads/images/emp_files/' . $passportFile; ?>"
|
||||
download>
|
||||
<i class="fa fa-download mt-4" aria-hidden="true"
|
||||
style="font-size: 25px;"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Select Passport File</label>
|
||||
<input type="file" name="emp_file3" class="">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-3">
|
||||
<label>Bank PassBok Name</label>
|
||||
<input type="text" id="file_name" name="file_name4" maxlength="255"
|
||||
class="form-control" value="Bank Passbook">
|
||||
<input type="text" id="file_name" name="file_name4"
|
||||
maxlength="255" class="form-control"
|
||||
value="<?= $bankPassBookFileName; ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-1">
|
||||
<a href="<?php echo base_url() . 'public/uploads/images/emp_files/' . $bankPassBookFile; ?>"
|
||||
download>
|
||||
<i class="fa fa-download mt-4" aria-hidden="true"
|
||||
style="font-size: 25px;"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Bank PassBok File</label>
|
||||
<input type="file" name="emp_file4" class="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-3">
|
||||
<label>Other Document File Name</label>
|
||||
<input type="text" id="file_name" name="file_name5" maxlength="255"
|
||||
class="form-control" value="Other Document">
|
||||
<input type="text" id="file_name" name="file_name5"
|
||||
maxlength="255" class="form-control"
|
||||
value="<?= $otherDocumentFileName?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-1">
|
||||
<a href="<?php echo base_url() . 'public/uploads/images/emp_files/' . $otherDocumentFile; ?>"
|
||||
download>
|
||||
<i class="fa fa-download mt-4" aria-hidden="true"
|
||||
style="font-size: 25px;"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Other Document File </label>
|
||||
<input type="file" name="emp_file5" class="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3"><label>Aadhar Number</label> <span
|
||||
<div class="col-md-4"><label>Aadhar Number</label> <span
|
||||
class="badge">*</span>
|
||||
<input type="text" id="aadharno" name="aadharno" maxlength="14"
|
||||
onchange="ValidateAadhar();" class="form-control"
|
||||
<input type="text" id="aadharno" name="aadharno"
|
||||
maxlength="14" onchange="ValidateAadhar();"
|
||||
class="form-control"
|
||||
onkeypress="return isNumberKey(event)" required>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>File Name</label>
|
||||
<input type="text" id="file_name" name="file_name1" maxlength="255"
|
||||
class="form-control" value="Aadhar">
|
||||
<div class="col-md-4">
|
||||
<label>Aadhar File Name</label>
|
||||
<input type="text" id="file_name" name="file_name1"
|
||||
maxlength="255" class="form-control" value="Aadhar">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Select Aadhar File</label>
|
||||
<input type="file" name="emp_file1" class="">
|
||||
</div>
|
||||
@ -1060,7 +1153,7 @@ if (!empty($EmpDetails)) {
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3"><label>PAN Number</label>
|
||||
<div class="col-md-4"><label>PAN Number</label>
|
||||
<input type="text" id="panno" maxlength="10"
|
||||
style="text-transform:uppercase" name="panno"
|
||||
onchange="validatePAN();" class="form-control"
|
||||
@ -1068,13 +1161,12 @@ if (!empty($EmpDetails)) {
|
||||
title=" 5 character,4 Digit Numbers,1 character (ex:ABCDE1234A) "
|
||||
onkeypress="return alpha(event);">
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>PAN File Name</label>
|
||||
<input type="text" id="file_name" name="file_name2" maxlength="255"
|
||||
class="form-control" value="PAN">
|
||||
<input type="text" id="file_name" name="file_name2"
|
||||
maxlength="255" class="form-control" value="PAN">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Select PAN File</label>
|
||||
<input type="file" name="emp_file2" class="">
|
||||
</div>
|
||||
@ -1082,20 +1174,21 @@ if (!empty($EmpDetails)) {
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3"><label>Passport Number</label>
|
||||
<div class="col-md-4"><label>Passport Number</label>
|
||||
<input type="text" id="passportno" maxlength="9"
|
||||
onchange="ValidatePassport();" name="passportno"
|
||||
style="text-transform:uppercase" class="form-control"
|
||||
pattern="[aA-prPR-wyWY]{1}[1-9]{1}\d{1}\s\d{4}[1-9]{1}" title="The first digit or the last digit will never be 0
|
||||
The first character cannot be Q, X or Z. (eg:A12 34567)" onkeypress="return alpha(event);">
|
||||
pattern="[aA-prPR-wyWY]{1}[1-9]{1}\d{1}\s\d{4}[1-9]{1}"
|
||||
title="The first digit or the last digit will never be 0
|
||||
The first character cannot be Q, X or Z. (eg:A12 34567)"
|
||||
onkeypress="return alpha(event);">
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Passport File Name</label>
|
||||
<input type="text" id="file_name" name="file_name3" maxlength="255"
|
||||
class="form-control" value="Passport">
|
||||
<input type="text" id="file_name" name="file_name3"
|
||||
maxlength="255" class="form-control" value="Passport">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Select Passport File</label>
|
||||
<input type="file" name="emp_file3" class="">
|
||||
</div>
|
||||
@ -1103,26 +1196,28 @@ if (!empty($EmpDetails)) {
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<label>Bank PassBok Name</label>
|
||||
<input type="text" id="file_name" name="file_name4" maxlength="255"
|
||||
class="form-control" value="Bank Passbook">
|
||||
<input type="text" id="file_name" name="file_name4"
|
||||
maxlength="255" class="form-control"
|
||||
value="Bank Passbook">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Bank PassBok File</label>
|
||||
<input type="file" name="emp_file4" class="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<label>Other Document File Name</label>
|
||||
<input type="text" id="file_name" name="file_name5" maxlength="255"
|
||||
class="form-control" value="Other Document">
|
||||
<input type="text" id="file_name" name="file_name5"
|
||||
maxlength="255" class="form-control"
|
||||
value="Other Document">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-4">
|
||||
<label>Other Document File </label>
|
||||
<input type="file" name="emp_file5" class="">
|
||||
</div>
|
||||
@ -1139,7 +1234,8 @@ if (!empty($EmpDetails)) {
|
||||
class="btn btn-secondary">Previous</a>
|
||||
</li>
|
||||
<li class="next list-inline-item float-right">
|
||||
<button type="submit" class="btn btn-primary submit float-right">Submit</button>
|
||||
<button type="submit"
|
||||
class="btn btn-primary submit float-right">Submit</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -1880,7 +1976,7 @@ if (!empty($EmpDetails)) {
|
||||
$('#loader').show();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '<?php echo base_url() ?>employeedetails/UpdateEmployee', // Replace with your form submission URL
|
||||
url: '<?php echo base_url() ?>employeedetails/UpdateEmployee?empId=<?= $EmpID ?>',
|
||||
data: combinedFormData,
|
||||
processData: false, // Prevent jQuery from processing the data
|
||||
contentType: false, // Prevent jQuery from setting the content type
|
||||
|
||||
Loading…
Reference in New Issue
Block a user