employee details export xl

This commit is contained in:
venbatechnologies@gmail.com 2017-09-08 12:43:20 +05:30
parent 2932e31295
commit 3ed992a929
2 changed files with 52 additions and 51 deletions

View File

@ -327,7 +327,8 @@ class employeedetails extends BaseController
'personalEmailId'=>$comEmailId,'DriverLicense'=>$driverlicense, 'personalEmailId'=>$comEmailId,'DriverLicense'=>$driverlicense,
'LicenseValidtill'=>$License_ExpiryDate,'VoterID'=>$VoterID,'PFNO'=>$PFno,'ESI'=>$ESIno, 'LicenseValidtill'=>$License_ExpiryDate,'VoterID'=>$VoterID,'PFNO'=>$PFno,'ESI'=>$ESIno,
'NomineeDetails'=>$Nominee); 'NomineeDetails'=>$Nominee);
//$this->load->model('employeedetails_model');
$this->load->model('employeedetails_model');
//print_r($Employee);die(); //print_r($Employee);die();
$result = $this->employeedetails_model->addNewemployee($Employee); $result = $this->employeedetails_model->addNewemployee($Employee);
@ -807,12 +808,12 @@ echo "<script>alert('Record Not Updated!');</script>"; redirect('employeeListin
$this->excel->getActiveSheet()->setCellValue('AE5', 'IsActive'); $this->excel->getActiveSheet()->setCellValue('AE5', 'IsActive');
$this->excel->getActiveSheet()->setCellValue('AF5', 'PFNO'); $this->excel->getActiveSheet()->setCellValue('AF5', 'PFNO');
$this->excel->getActiveSheet()->setCellValue('AG5', 'ESI'); $this->excel->getActiveSheet()->setCellValue('AG5', 'ESI');
$this->excel->getActiveSheet()->setCellValue('AH5', 'Nominee Name'); $this->excel->getActiveSheet()->setCellValue('AH5', 'Nominee Details');
$this->excel->getActiveSheet()->setCellValue('AI5', 'PF_Balance'); // $this->excel->getActiveSheet()->setCellValue('AI5', 'PF_Balance');
$this->excel->getActiveSheet()->setCellValue('AJ5', 'PF_Bal_On'); // $this->excel->getActiveSheet()->setCellValue('AJ5', 'PF_Bal_On');
$this->excel->getActiveSheet()->setCellValue('AK5', 'Remarks'); $this->excel->getActiveSheet()->setCellValue('AI5', 'Remarks');
$this->excel->getActiveSheet()->setCellValue('AL5', 'CreatedBy'); $this->excel->getActiveSheet()->setCellValue('AJ5', 'CreatedBy');
$this->excel->getActiveSheet()->setCellValue('AM5', 'UpdatedBY'); $this->excel->getActiveSheet()->setCellValue('AK5', 'UpdatedBY');
@ -902,10 +903,10 @@ echo "<script>alert('Record Not Updated!');</script>"; redirect('employeeListin
$this->excel->getActiveSheet()->getStyle('AJ5')->getFont()->setBold(true); $this->excel->getActiveSheet()->getStyle('AJ5')->getFont()->setBold(true);
$this->excel->getActiveSheet()->getStyle('AK5')->getFont()->setSize(12); $this->excel->getActiveSheet()->getStyle('AK5')->getFont()->setSize(12);
$this->excel->getActiveSheet()->getStyle('AK5')->getFont()->setBold(true); $this->excel->getActiveSheet()->getStyle('AK5')->getFont()->setBold(true);
$this->excel->getActiveSheet()->getStyle('AL5')->getFont()->setSize(12); // $this->excel->getActiveSheet()->getStyle('AL5')->getFont()->setSize(12);
$this->excel->getActiveSheet()->getStyle('AL5')->getFont()->setBold(true); // $this->excel->getActiveSheet()->getStyle('AL5')->getFont()->setBold(true);
$this->excel->getActiveSheet()->getStyle('AM5')->getFont()->setSize(12); // $this->excel->getActiveSheet()->getStyle('AM5')->getFont()->setSize(12);
$this->excel->getActiveSheet()->getStyle('AM5')->getFont()->setBold(true); // $this->excel->getActiveSheet()->getStyle('AM5')->getFont()->setBold(true);
@ -952,12 +953,12 @@ echo "<script>alert('Record Not Updated!');</script>"; redirect('employeeListin
$this->excel->getActiveSheet()->setCellValue('AE'. $i,$data['IsActive']); $this->excel->getActiveSheet()->setCellValue('AE'. $i,$data['IsActive']);
$this->excel->getActiveSheet()->setCellValue('AF'. $i,$data['PFNO']); $this->excel->getActiveSheet()->setCellValue('AF'. $i,$data['PFNO']);
$this->excel->getActiveSheet()->setCellValue('AG'. $i,$data['ESI']); $this->excel->getActiveSheet()->setCellValue('AG'. $i,$data['ESI']);
$this->excel->getActiveSheet()->setCellValue('AH'. $i,$data['UANO']); $this->excel->getActiveSheet()->setCellValue('AH'. $i,$data['NomineeDetails']);
$this->excel->getActiveSheet()->setCellValue('AI'. $i,$data['PF_Balance']); // $this->excel->getActiveSheet()->setCellValue('AI'. $i,$data['PF_Balance']);
$this->excel->getActiveSheet()->setCellValue('AJ'. $i,$data['PF_Bal_On']); // $this->excel->getActiveSheet()->setCellValue('AJ'. $i,$data['PF_Bal_On']);
$this->excel->getActiveSheet()->setCellValue('AK'. $i,$data['Remarks']); $this->excel->getActiveSheet()->setCellValue('AI'. $i,$data['Remarks']);
$this->excel->getActiveSheet()->setCellValue('AL'. $i,$data['CreatedByName']); $this->excel->getActiveSheet()->setCellValue('AJ'. $i,$data['CreatedByName']);
$this->excel->getActiveSheet()->setCellValue('AM'. $i,$data['UpdatedByName']); $this->excel->getActiveSheet()->setCellValue('AK'. $i,$data['UpdatedByName']);

View File

@ -950,7 +950,7 @@ function onlyAlphabets(evt) {
<input type="text" id="panno" style="text-transform: uppercase" maxlength="10" name="panno" placeholder="PAN Number" onchange="validatePAN();" class="form-control" value="<?php echo $PANNo ; ?>" onkeypress="return alpha(event);" pattern="([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}" title=" 5 character,4 Digit Numbers,1 character (ex:ABCDE1234A) "> <input type="text" id="panno" style="text-transform: uppercase" maxlength="10" name="panno" placeholder="PAN Number" onchange="validatePAN();" class="form-control" value="<?php echo $PANNo ; ?>" onkeypress="return alpha(event);" pattern="([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}" title=" 5 character,4 Digit Numbers,1 character (ex:ABCDE1234A) ">
</div> </div>
<div class="col-md-3"><span>Passport Number</span> <div class="col-md-3"><span>Passport Number</span>
<input type="text" id="passportno" name="passportno" maxlength="9" placeholder="Passport Number" onkeypress="return alpha(event);" onchange="ValidatePassport();" class="form-control" value="<?php echo $PassportNo ; ?>" pattern="[A-PR-WY]{1}[1-9]{1}\d{1}\s\d{4}[1-9]{1}" title="The first digit or the last digit will never be 0 <input type="text" id="passportno" name="passportno" maxlength="9" placeholder="Passport Number" onkeypress="return alpha(event);" onchange="ValidatePassport();" class="form-control" value="<?php echo $PassportNo ; ?>" pattern="[Aa-PpRr-WwYy]{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)" style="text-transform: uppercase"> The first character cannot be Q, X or Z. (eg:A12 34567)" style="text-transform: uppercase">
</div> </div>