employee multifile upload option changes

This commit is contained in:
venbatechnologies@gmail.com 2018-03-27 19:55:44 +05:30
parent 301cd1b03e
commit 83f1bd03a0
5 changed files with 1649 additions and 1565 deletions

View File

@ -1,4 +1,3 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); <?php if(!defined('BASEPATH')) exit('No direct script access allowed');
require APPPATH . '/libraries/BaseController.php'; require APPPATH . '/libraries/BaseController.php';
@ -182,6 +181,218 @@ class employeedetails extends BaseController
} }
} }
/**
* To Convert the dateformat (date with time) and stored into DB
*/
function getDateformat($Val)
{
$date = new DateTime($Val);
$retDate = $date->format('Y-m-d H:i:s');
return $retDate;
}
/**
* To Convert the dateformat (date only) and stored into DB
*/
function dateformat($DateValue)
{
$date = DateTime::createFromFormat('d-m-Y', $DateValue);//we should give the date as per DatePicker format.
//if the date picker format is mismatched means it display as invalid date so that we can use this "IF" Conditions (i.e) If the above format returns false then the date is not formatted correctly
if ($date === false) {
return false;
//return null;
}
$retDate = $date->format('Y-m-d'); //in this line using the parsed date., we can create a new formatting for storing value to datebase ("we choosing date value based on datepicker")
// echo "<script>alert($retDate);</script>";
return $retDate;
}
/**
* To check whether the Employee mailid is existing in the database or not
*/
function CheckEmail()
{
$id = $this->input->post('id');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkMailExists($id );
$query = $query[0]['EmailId'];
print_r($query);
}
/**
* To check whether PAN already exist or not
*/
function checkPAN()
{
$id = $this->input->post('id');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkPANExists($id );
$query = $query[0]['PANNo'];
print_r($query);
}
function checkAadharNo()
{
$id = $this->input->post('id');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkAadharExists($id );
$query = $query[0]['AadharNo'];
print_r($query);
}
/**
* To Check the Pan Number is exists in the database or not for the selected Employee
*/
function Pan_validate_emp()
{
$Empid = $this->input->post('employeeid');
$PanNo = $this->input->post('panno');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkPANExists($PanNo,$Empid);
if (count($query)> 0)
{
$this->form_validation->set_message('Pan_validate_emp', 'The Entered PAN Number is already exists in the Database.');
return false;
}
else
{
return true;
}
}
/**
* To Check the aadhar Number is exists in the database or not for the selected Employee
*/
function Aadhar_validate_emp()
{
$Empid = $this->input->post('employeeid');
$AadharNo = $this->input->post('aadharno');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkAadharExists($AadharNo,$Empid);
if (count($query)> 0)
{
$this->form_validation->set_message('Aadhar_validate_emp', 'The Entered Aadhar Number is exists in the Database.');
return false;
}
else
{
return true;
}
}
/**
* To add employee revalant images(for profile pictures)
*/
function add()
{
$picture = '';
if(!empty($_FILES['photo']['name']))
{
$config['upload_path'] = 'uploads/images/';
$config['allowed_types'] = 'jpg|jpeg|png|gif';
$config['file_name'] = $_FILES['photo']['name'];
//Load upload library and initialize configuration
$this->load->library('upload',$config);
$this->upload->initialize($config);
if($this->upload->do_upload('photo'))
{
$uploadData = $this->upload->data();
$picture = $uploadData['file_name'];
}
else
{
$error = array('error' => $this->upload->display_errors());
$picture = '';
}
}
else
{
$picture = '';
}
return $picture ;
}
function additional($filename)
{
//echo "add files";
//echo $_FILES[$filename]['name'];
$picture = '';
if(!empty($_FILES[$filename]['name']))
{
//echo '********';
//echo $_FILES[$filename]['name'];
$config['upload_path'] = 'uploads/images/';
$config['allowed_types'] = '*';
//$config['allowed_types'] = 'jpg|jpeg|png|gif';
$config['file_name'] = $_FILES[$filename]['name'];
//print_r($config);
//Load upload library and initialize configuration
$this->load->library('upload',$config);
$this->upload->initialize($config);
if($this->upload->do_upload($filename))
{
// echo '\\\\\\';
// echo $_FILES[$filename]['name'];
// echo '//////';
$uploadData = $this->upload->data();
$picture = $uploadData['file_name'];
}
else
{
//echo 'asdasdf // inner else // afsdafsdafsdfdasfads';
$error = array('error' => $this->upload->display_errors());
$picture = '';
}
}
else
{
//echo 'outer else';
$picture = '';
}
return $picture ;
}
/**
* To load the add new Employee form with dropdown values
*/
function addemployee()
{
$this->load->model('employeedetails_model');
$GenderConfigID = 'C013';
$MartialConfigID = 'C012';
$QualificationConfigID = 'C014';
$DesignationConfigID = 'C010';
$BloodGroupConfigID = 'C011';
$data['Gender'] = $this->employeedetails_model->getConfigValue($GenderConfigID);
$data['Martial'] = $this->employeedetails_model->getConfigValue($MartialConfigID);
$data['bankdetails']=$this->employeedetails_model->getBankDetails();
$data['Qualification'] = $this->employeedetails_model->getConfigValue($QualificationConfigID);
$data['Designation'] = $this->employeedetails_model->getConfigValue($DesignationConfigID);
$data['BloodGroup'] = $this->employeedetails_model->getConfigValue($BloodGroupConfigID);
$data['Department'] = $this->employeedetails_model->getDepartment();
$this->global['pageTitle'] = 'Resico : Add New Employee';
$this->loadViews("addemployee", $this->global, $data, NULL);
}
/** /**
@ -275,7 +486,7 @@ class employeedetails extends BaseController
$count = $this->input->post('hidecounter'); $count = $this->input->post('hidecounter');
$constant = $this->input->post('hideconstant'); $constant = $this->input->post('hideconstant');
for($i=1;$i<=$constant;$i++){ for($i=1;$i<=$count;$i++){
$Ddname = $this->input->post('Ddname'); $Ddname = $this->input->post('Ddname');
$filename = 'browseFiles'.$i; $filename = 'browseFiles'.$i;
$Pi = $this->additional($filename); $Pi = $this->additional($filename);
@ -293,7 +504,7 @@ class employeedetails extends BaseController
$aadharfilename = $value ; $aadharfilename = $value ;
} }
else{ else{
$aadharfilename = 'NULL'; $aadharfilename = null;
} }
} }
elseif($exp[0] == 'pan' ){ elseif($exp[0] == 'pan' ){
@ -301,7 +512,7 @@ class employeedetails extends BaseController
$panfilename = $value; $panfilename = $value;
} }
else{ else{
$panfilename ='NULL'; $panfilename = null;
} }
} }
elseif($exp[0] = 'voter'){ elseif($exp[0] = 'voter'){
@ -309,7 +520,7 @@ class employeedetails extends BaseController
$voterfilename = $value; $voterfilename = $value;
} }
else{ else{
$voterfilename = 'NULL'; $voterfilename = null;
} }
} }
@ -373,232 +584,6 @@ class employeedetails extends BaseController
} }
} }
/**
* To Convert the dateformat (date with time) and stored into DB
*/
function getDateformat($Val)
{
$date = new DateTime($Val);
$retDate = $date->format('Y-m-d H:i:s');
return $retDate;
}
/**
* To Convert the dateformat (date only) and stored into DB
*/
function dateformat($DateValue)
{
$date = DateTime::createFromFormat('d-m-Y', $DateValue);//we should give the date as per DatePicker format.
//if the date picker format is mismatched means it display as invalid date so that we can use this "IF" Conditions (i.e) If the above format returns false then the date is not formatted correctly
if ($date === false) {
return false;
//return null;
}
$retDate = $date->format('Y-m-d'); //in this line using the parsed date., we can create a new formatting for storing value to datebase ("we choosing date value based on datepicker")
// echo "<script>alert($retDate);</script>";
return $retDate;
}
/**
* To load the add new Employee form with dropdown values
*/
function addemployee()
{
$this->load->model('employeedetails_model');
$GenderConfigID = 'C013';
$MartialConfigID = 'C012';
$QualificationConfigID = 'C014';
$DesignationConfigID = 'C010';
$BloodGroupConfigID = 'C011';
$data['Gender'] = $this->employeedetails_model->getConfigValue($GenderConfigID);
$data['Martial'] = $this->employeedetails_model->getConfigValue($MartialConfigID);
$data['bankdetails']=$this->employeedetails_model->getBankDetails();
$data['Qualification'] = $this->employeedetails_model->getConfigValue($QualificationConfigID);
$data['Designation'] = $this->employeedetails_model->getConfigValue($DesignationConfigID);
$data['BloodGroup'] = $this->employeedetails_model->getConfigValue($BloodGroupConfigID);
$data['Department'] = $this->employeedetails_model->getDepartment();
$this->global['pageTitle'] = 'Resico : Add New Employee';
$this->loadViews("addemployee", $this->global, $data, NULL);
}
/**
* To check whether the Employee mailid is existing in the database or not
*/
function CheckEmail()
{
$id = $this->input->post('id');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkMailExists($id );
$query = $query[0]['EmailId'];
print_r($query);
}
/**
* To check whether PAN already exist or not
*/
function checkPAN()
{
$id = $this->input->post('id');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkPANExists($id );
$query = $query[0]['PANNo'];
print_r($query);
}
function checkAadharNo()
{
$id = $this->input->post('id');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkAadharExists($id );
$query = $query[0]['AadharNo'];
print_r($query);
}
/**
* To Check the Pan Number is exists in the database or not for the selected Employee
*/
function Pan_validate_emp()
{
$Empid = $this->input->post('employeeid');
$PanNo = $this->input->post('panno');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkPANExists($PanNo,$Empid);
if (count($query)> 0)
{
$this->form_validation->set_message('Pan_validate_emp', 'The Entered PAN Number is already exists in the Database.');
return false;
}
else
{
return true;
}
}
/**
* To Check the aadhar Number is exists in the database or not for the selected Employee
*/
function Aadhar_validate_emp()
{
$Empid = $this->input->post('employeeid');
$AadharNo = $this->input->post('aadharno');
$this->load->model('employeedetails_model');
$query = $this->employeedetails_model->checkAadharExists($AadharNo,$Empid);
if (count($query)> 0)
{
$this->form_validation->set_message('Aadhar_validate_emp', 'The Entered Aadhar Number is exists in the Database.');
return false;
}
else
{
return true;
}
}
/**
* To load pagenotfound view
*/
function pageNotFound()
{
$this->global['pageTitle'] = 'Resico : 404 - Page Not Found';
$this->loadViews("404", $this->global, NULL, NULL);
}
/**
* To add employee revalant images(for profile pictures)
*/
function add()
{
// echo "add files";
// die();
//echo $files;
$picture = '';
if(!empty($_FILES['photo']['name']))
{
$config['upload_path'] = 'uploads/images/';
$config['allowed_types'] = 'jpg|jpeg|png|gif';
$config['file_name'] = $_FILES['photo']['name'];
//Load upload library and initialize configuration
$this->load->library('upload',$config);
$this->upload->initialize($config);
if($this->upload->do_upload('photo'))
{
$uploadData = $this->upload->data();
$picture = $uploadData['file_name'];
}
else
{
$error = array('error' => $this->upload->display_errors());
$picture = '';
}
}
else
{
$picture = '';
}
return $picture ;
}
function additional($filename)
{
//echo "add files";
//echo $_FILES[$filename]['name'];
$picture = '';
if(!empty($_FILES[$filename]['name']))
{
//echo '********';
//echo $_FILES[$filename]['name'];
$config['upload_path'] = 'uploads/images/';
$config['allowed_types'] = '*';
//$config['allowed_types'] = 'jpg|jpeg|png|gif';
$config['file_name'] = $_FILES[$filename]['name'];
//print_r($config);
//Load upload library and initialize configuration
$this->load->library('upload',$config);
$this->upload->initialize($config);
if($this->upload->do_upload($filename))
{
// echo '\\\\\\';
// echo $_FILES[$filename]['name'];
// echo '//////';
$uploadData = $this->upload->data();
$picture = $uploadData['file_name'];
}
else
{
//echo 'asdasdf // inner else // afsdafsdafsdfdasfads';
$error = array('error' => $this->upload->display_errors());
$picture = '';
}
}
else
{
//echo 'outer else';
$picture = '';
}
return $picture ;
}
/** /**
* To view the employee information and load's the edit employee screen * To view the employee information and load's the edit employee screen
@ -636,26 +621,6 @@ class employeedetails extends BaseController
$this->loadViews("editEmployee", $this->global, $data, NULL); $this->loadViews("editEmployee", $this->global, $data, NULL);
}
/**
* To Check the email exists in the database or not for the employee
*/
function checkMailEmp()
{
$Empid = $this->input->post('employeeid');
$EmailId = $this->input->post('emailid');
$query = $this->employeedetails_model->checkMailExists($EmailId, $Empid);
if (count($query)> 0)
{
$this->form_validation->set_message('checkMailEmp', 'The Entered Email id is exists in the Database.');
return false;
}
else
{
return true;
}
} }
/** /**
@ -663,7 +628,9 @@ class employeedetails extends BaseController
*/ */
function UpdateEmployee() function UpdateEmployee()
{ {
$aadharfilename ='';
$panfilename ='';
$voterfilename = '';
$EmpId = $this->input->post('employeeid'); $EmpId = $this->input->post('employeeid');
$this->load->library('form_validation'); $this->load->library('form_validation');
@ -677,8 +644,8 @@ class employeedetails extends BaseController
$this->form_validation->set_rules('departmentname', 'departmentname', 'callback_Dep_validate'); $this->form_validation->set_rules('departmentname', 'departmentname', 'callback_Dep_validate');
$this->form_validation->set_rules('eduqualifaction', 'eduqualifaction', 'callback_select_validate'); $this->form_validation->set_rules('eduqualifaction', 'eduqualifaction', 'callback_select_validate');
$this->form_validation->set_rules('referrercontno', 'referrercontno', 'trim|min_length[10]|max_length[10]'); $this->form_validation->set_rules('referrercontno', 'referrercontno', 'trim|min_length[10]|max_length[10]');
$this->form_validation->set_rules('aadharno', 'aadharno ','trim|max_length[14]'); //$this->form_validation->set_rules('aadharno', 'aadharno ','trim|max_length[14]');
$this->form_validation->set_rules('panno', 'panno', 'trim|max_length[10]'); //$this->form_validation->set_rules('panno', 'panno', 'trim|max_length[10]');
$this->form_validation->set_rules('passportno', 'passportno', 'trim|min_length[9]|max_length[9]'); $this->form_validation->set_rules('passportno', 'passportno', 'trim|min_length[9]|max_length[9]');
$this->form_validation->set_rules('accountno', 'accountno', 'trim|min_length[10]|max_length[20]'); $this->form_validation->set_rules('accountno', 'accountno', 'trim|min_length[10]|max_length[20]');
$this->form_validation->set_rules('pfno', 'pfno', 'trim|min_length[22]|max_length[22]'); $this->form_validation->set_rules('pfno', 'pfno', 'trim|min_length[22]|max_length[22]');
@ -750,17 +717,51 @@ class employeedetails extends BaseController
$bankbranchname = $this->input->post('bankbranchname'); $bankbranchname = $this->input->post('bankbranchname');
$bankaddress = $this->input->post('bankaddress'); $bankaddress = $this->input->post('bankaddress');
$aadharno = $this->input->post('aadharno'); $aadharno = $this->input->post('aadharno');
$panno = strtoupper($this->input->post('panno')); //$panno = strtoupper($this->input->post('panno'));
$panno = $this->input->post('panno');
$passportno = strtoupper($this->input->post('passportno')); $passportno = strtoupper($this->input->post('passportno'));
$ValidTill = $this->input->post('ValidTill'); $ValidTill = $this->input->post('ValidTill');
$addinfo = $this->input->post('addinfo'); $addinfo = $this->input->post('addinfo');
$driverlicense = strtoupper($this->input->post ( 'Driverlicense' )); $driverlicense = strtoupper($this->input->post ( 'Driverlicense' ));
$licenseExpiryDate = $this->input->post ( 'LicenseExpiryDate' ); $licenseExpiryDate = $this->input->post ( 'LicenseExpiryDate' );
$VoterID = strtoupper($this->input->post ( 'VoterID' )); //$VoterID = strtoupper($this->input->post ( 'VoterID' ));
$VoterID = $this->input->post ( 'VoterID' );
$pfno = strtoupper($this->input->post('pfno')); $pfno = strtoupper($this->input->post('pfno'));
$esino = $this->input->post('esino'); $esino = $this->input->post('esino');
$Nominee = $this->input->post('nomineename'); $Nominee = $this->input->post('nomineename');
$chked = $this->input->post('isactive'); $chked = $this->input->post('isactive');
$count = $this->input->post('hidecounter');
$constant = $this->input->post('hideconstant');
for($i=1;$i<=$count;$i++){
$Ddname = $this->input->post('Ddname');
$filename = 'browseFiles'.$i;
$Pi = $this->additional($filename);
$idproof[$i] = $Ddname[$i]."/".$Pi;
}
if(!empty($idproof)){
foreach ($idproof as $key => $value) {
$exp = explode("/",$value);
if($exp[0] == 'aadhar'){
if(!empty($value)){ $aadharfilename = $value ; }
else{ $aadharfilename = null; }
//$aadharfilename = (!empty($aadharno)) ? $aadharno : null;
}
elseif($exp[0] == 'pan' ){
if(!empty($value)){ $panfilename = $value; }
else{ $panfilename=null; }
//$panfilename = (!empty($panno)) ? $panno : null;
}
elseif($exp[0] = 'voter'){
if(!empty($value)){ $voterfilename = $value;}
else{ $voterfilename=null;}
}
}}
$voter = (!empty($VoterID)) ? $VoterID : $voterfilename ;
$pan = (!empty($panno)) ? $panno : $panfilename;
$aadhar = (!empty($aadharno)) ? $aadharno : $aadharfilename;
if( $chked != '') if( $chked != '')
{ {
@ -801,14 +802,14 @@ class employeedetails extends BaseController
'Departmentcode'=>$departmentCode,'PresentAddress'=>$CurrentAddress, 'Departmentcode'=>$departmentCode,'PresentAddress'=>$CurrentAddress,
'PermanentAddress'=>$permanentaddress,'EmergencyContactName'=>$emergencycontactname, 'PermanentAddress'=>$permanentaddress,'EmergencyContactName'=>$emergencycontactname,
'EmergencyContactNumber'=>$emergencycontactnumber,'Edu_Qualification'=>$eduqualifaction, 'EmergencyContactNumber'=>$emergencycontactnumber,'Edu_Qualification'=>$eduqualifaction,
'Additional_Qualification'=>$addqualification,'AadharNo'=>$aadharno,'PANNo'=>$panno, 'Additional_Qualification'=>$addqualification,'AadharNo'=>$aadhar ,'PANNo'=>$pan ,
'BankAccountNo'=>$accountno,'IFSCCode'=>$ifsccode,'BankBranchName'=>$bankbranchname, 'BankAccountNo'=>$accountno,'IFSCCode'=>$ifsccode,'BankBranchName'=>$bankbranchname,
'BankAddress'=>$bankaddress,'PassportNo'=>$passportno,'Passport_Valid_till'=>$Valid, 'BankAddress'=>$bankaddress,'PassportNo'=>$passportno,'Passport_Valid_till'=>$Valid,
'IsActive'=>$IsActive,'ProfilePic'=>$Picture,'Reference_Name'=>$referredby, 'IsActive'=>$IsActive,'ProfilePic'=>$Picture,'Reference_Name'=>$referredby,
'Reference_ContactNumber'=>$referrercontno,'Remarks'=>$addinfo,'UpdatedBY'=>$UpdatedBY, 'Reference_ContactNumber'=>$referrercontno,'Remarks'=>$addinfo,'UpdatedBY'=>$UpdatedBY,
'personalEmailId'=>$comEmailId,'DriverLicense'=>$driverlicense,'LicenseValidtill'=>$License_ExpiryDate, 'personalEmailId'=>$comEmailId,'DriverLicense'=>$driverlicense,'LicenseValidtill'=>$License_ExpiryDate,
'VoterID'=>$VoterID,'PFNO'=>$pfno,'ESI'=>$esino,'NomineeDetails'=>$Nominee); 'VoterID'=>$voter,'PFNO'=>$pfno,'ESI'=>$esino,'NomineeDetails'=>$Nominee);
// print_r($Employee);
$result = $this->employeedetails_model->UpdateEmployee($Employee,$EmpId); $result = $this->employeedetails_model->UpdateEmployee($Employee,$EmpId);
if($result > 0) if($result > 0)
@ -825,6 +826,24 @@ class employeedetails extends BaseController
} }
function updateidproof(){
$id = $this->input->post('id');
$name = $this->input->post('name');
$deletedata = $this->employeedetails_model->removefiles($name,$id);
echo $deletedata;
}
/**
* To load pagenotfound view
*/
function pageNotFound()
{
$this->global['pageTitle'] = 'Resico : 404 - Page Not Found';
$this->loadViews("404", $this->global, NULL, NULL);
}
/** /**
* To export report of supplier details in excel * To export report of supplier details in excel
*/ */

View File

@ -236,6 +236,24 @@ class employeedetails_model extends CI_Model
return $result; return $result;
} }
function removefiles($value,$Empid){
$str = explode("/",$value);
if($str[0] == 'pan'){ $this->db->set('PANNo', null); }
else if( $str[0] == 'aadhar'){ $this->db->set('AadharNo', null); }
else if( $str[0] == 'voter'){ $this->db->set('VoterID', null); }
unlink("uploads/images/".$str[1]);
$this->db->where('EmpID =',$Empid);
$this->db->update('T_Employee_Details');
$aff = $this->db->affected_rows();
return $aff;
// $this->db->set('PANNo', null);
// $this->db->where('EmpID =',$Empid);
// $this->db->update('T_Employee_Details');
// $aff = $this->db->affected_rows();
// return $aff;
}
/** /**
* To get Asset's information for export xl * To get Asset's information for export xl
*/ */

View File

@ -1,384 +1,3 @@
<script>
$(document).ready(function(){
$("#gender").select2();
$("#bloodgroup").select2();
$("#MartialStatus").select2();
$("#desigination").select2();
$("#departmentname").select2();
$("#eduqualifaction").select2();
$("#bankbranchname").select2();
document.getElementById('aadharno').addEventListener('input', function (e) {
e.target.value = e.target.value.replace(/[^\d]/g, '').replace(/(.{4})/g, '$1 ').trim();
});
});
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#profilepicture')
.attr('src', e.target.result)
.width(180)
.height(180);
};
reader.readAsDataURL(input.files[0]);
}
}
$(function() {
var d = new Date();
var month = d.getMonth();
var day = d.getDate();
var year = d.getFullYear() ;
var SIAStartYear = year - 2007;
var mindt = year-70;
var maxdt = year-15;
/** Date picker for Employee's DOB */
$("#DateofBirth").datepicker({
minDate : new Date(mindt,1,1),
maxDate : new Date(maxdt,1,1),
dateFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true,
yearRange: '-100:+0'
});
/** Date picker for Employee's DOJ */
$("#dateofjoining").datepicker({
minDate : new Date(year-SIAStartYear,1,1),
maxDate :'now',
dateFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true,
});
/** Date picker for Passport Expiry Date */
$("#ValidTill").datepicker({
dateFormat: 'dd-mm-yy',
minDate :'now',
changeMonth: true,
changeYear: true,
yearRange: '-0:+100'
});
/** Date picker for Driving License Expiry Date */
$("#LicenseExpiryDate").datepicker({
dateFormat: 'dd-mm-yy',
minDate :'now',
changeMonth: true,
changeYear: true,
yearRange: '-0:+100'
});
/** Address copy from Current into Permanent using Checkbox */
$('#checksame').click(function(){
if ($('#checksame').prop('checked'))
{
$('#permanentaddress').val($('#currentaddress').val());
}
else
{
$('#permanentaddress').val('');
}
});
});
function blockKeyPress(evt)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
swal(charCode);
if(charCode == 8 || charCode == 46 )
{
return false;
}
else
{
return false;
}
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode != 46 && charCode != 32 && charCode >= 33
&& (charCode < 48 || charCode > 57))
return false;
return true;
}
function alpha(evt) {
var k;
document.all ? k = evt.keyCode : k = evt.which;
return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || k == 32 || k == 33 || (k >= 48 && k <= 57));
}
//PAN Validate
function validatePAN() {
//var reg = /(?=.*[A-Za-z]).{5,}(?=.*[0-9]).{4,}(?=.*[A-Za-z]).{1,}$/;
var regpan = /^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/;
var PAN = $('#panno').val();
if(PAN != '')
{
if (regpan.test(PAN) == false)
{
swal('Please Enter Valid PAN Number');
return (false);
}
else
{
return true;
}
}
}
function ValidateAadhar(){
//var reg = /^\d{12}$/
var reg = /^\d{4}\s\d{4}\s\d{4}$/
var aadhar = $('#aadharno').val();
//var aadhar_count = $('#aadharno').val().length;
if(aadhar != '' )// && aadhar_count != '')
{
if(reg.test(aadhar)== false)
{
swal('Please Enter Valid Aadhar Number');
return (false);
}
else
{
return true;
}
}
}
function getMobileValidation() {
var contactNumber = $('#ContactNumber').val().length;
if(contactNumber < 10)
{
swal('Please Enter valid Contact Number');
return false;
}
else
{
return true;
}
}
function getValidEmergencyNumber() {
var contactNumber = $('#emergencycontactnumber').val().length;
if(contactNumber < 10)
{
swal('Please Enter valid Emergency Contact Number');
return false;
}
else
{
return true;
}
}
function getValidReferNumber() {
var contactNumber = $('#referrercontno').val().length;
if(contactNumber > 0 && contactNumber < 10)
{
swal('Please Enter valid Refernce Contact Number');
return false;
}
else
{
return true;
}
}
function validateEmail() {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var email = $('#emailid').val();
if(email != '')
{
if (reg.test(email) == false)
{
swal('Please Enter Valid Personal Email Address');
return (false);
}
else
{
return true;
}
}
else
{
swal('Please Enter email id');
}
}
function validatecomEmail() {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var email = $('#mail').val();
if(email != '')
{
if (reg.test(email) == false)
{
swal('Please Enter Valid Company Email Address');
return (false);
}
else
{
return true;
}
}
else
{
swal('Please Enter email id');
}
}
function validateDriverLicense() {
var reg = /^[a-zA-Z]{2}[0-9]{2}\s[0-9]{11}$/;
var VehicleNo = $('#Driverlicense').val();
if(VehicleNo != "")
{
if (reg.test(VehicleNo) == false)
{
swal('Please Enter Valid Driver License Number');
return (false);
}
else
{
return true;
}
}
}
function getAge() {
var dateString = $("#DateofBirth").val();
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;
var yyyy = today.getFullYear();
if(dd<10){
dd='0'+dd;
}
if(mm<10){
mm='0'+mm;
}
var today = dd+'-'+mm+'-'+yyyy;
var ageyear = yyyy - dateString.split("-")[2];
var agemonth = mm - dateString.split("-")[1];
var agedate = dateString.split("-")[0];
if (agemonth < 0 || (agemonth == 0 && dd < agedate )) {
ageyear--;
}
$("#age").val(ageyear);
}
function resetphoto()
{
$("#photo").src("");
}
function ValidatePassport()
{
var regsaid = /^[aA-prPR-wyWY][1-9]\d\s?\d{4}[1-9]$/ig;
var passport = $("#passportno").val();
if(regsaid.test(passport) == false)
{
swal('You have entered invalid Passport.');
return (false);
}
else
{
return true;
}
}
function onlyAlphabets(evt) {
var charCode;
if (window.event)
charCode = window.event.keyCode; //for IE
else
charCode = evt.which; //for firefox
if (charCode == 32) //for &lt;space&gt; symbol
return true;
if (charCode > 31 && charCode < 65) //for characters before 'A' in ASCII Table
return false;
if (charCode > 90 && charCode < 97) //for characters between 'Z' and 'a' in ASCII Table
return false;
if (charCode > 122) //for characters beyond 'z' in ASCII Table
return false;
return true;
}
function validatePF() {
var regpf = /^([a-zA-Z]){5}([0-9]){17}$/;
var PF = $('#pfno').val();
if(PF != '')
{
if (regpf.test(PF) == false)
{
swal('Please Enter Valid PF Number');
return (false);
}
else
{
return true;
}
}
}
function validateESI() {
var reg = /(?=.*[0-9]).{10,}$/;
var ESI = $('#esino').val();
if(ESI != '')
{
if (reg.test(ESI) == false)
{
swal('Please Enter Valid ESI Number');
return (false);
}
else
{
return true;
}
}
}
</script>
<style> <style>
.form-group .form-group
{ {
@ -449,8 +68,8 @@ function validateESI() {
</div> </div>
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<div class="col-md-6 pad"><span>Personal Email ID</span><!--<span class="badge">*</span>--> <div class="col-md-6 pad"><span>Personal Email ID</span><span class="badge">*</span>
<input type="email" name="emailid" id="emailid" maxlength="100" class="form-control"> <input type="email" name="emailid" id="emailid" required maxlength="100" class="form-control">
</div> </div>
<div class="col-md-6 pad"><span>Gender</span><span class="badge">*</span> <div class="col-md-6 pad"><span>Gender</span><span class="badge">*</span>
<select id="gender" name="gender" type="text" required class="form-control select2"> <select id="gender" name="gender" type="text" required class="form-control select2">
@ -651,24 +270,24 @@ function validateESI() {
<legend>ID Proof</legend> <legend>ID Proof</legend>
<div class="col-md-12 pad"> <div class="col-md-12 pad">
<div class="col-md-3"><span>Aadhar Number</span> <!-- <div class="col-md-3"><span>Aadhar Number</span>
<input type="text" id="aadharno" name="aadharno" maxlength="14" onchange="ValidateAadhar();" class="form-control" onkeypress="return isNumberKey(event)"> <input type="text" id="aadharno" name="aadharno" maxlength="14" onchange="ValidateAadhar();" class="form-control" onkeypress="return isNumberKey(event)">
</div> </div>
<div class="col-md-3"><span>PAN Number</span> <div class="col-md-3"><span>PAN Number</span>
<input type="text" id="panno" maxlength="10" style="text-transform:uppercase" name="panno" onchange="validatePAN();" class="form-control" pattern="([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}" title=" 5 character,4 Digit Numbers,1 character (ex:ABCDE1234A) " onkeypress="return alpha(event);"> <input type="text" id="panno" maxlength="10" style="text-transform:uppercase" name="panno" onchange="validatePAN();" class="form-control" pattern="([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}" title=" 5 character,4 Digit Numbers,1 character (ex:ABCDE1234A) " onkeypress="return alpha(event);">
</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" 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);"> <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);">
</div> </div>
<div class="col-md-3"><span>Passport Expiry Date</span> <div class="col-md-3"><span>Passport Expiry Date</span>
<input id="ValidTill" name="ValidTill" onkeypress="return false;" maxlength="10" class="form-control"> <input id="ValidTill" name="ValidTill" onkeypress="return false;" maxlength="10" class="form-control">
</div> </div>
</div> <!-- </div>
<div class="col-md-12 pad"> <div class="col-md-12 pad">
<div class="col-md-3"><span>Voter ID</span> <div class="col-md-3"><span>Voter ID</span>
<input type="text" id="VoterID" name="voterID" maxlength="12" class="form-control" style="text-transform: uppercase" > <input type="text" id="VoterID" name="voterID" maxlength="12" class="form-control" style="text-transform: uppercase" >
</div> </div> -->
<div class="col-md-3"><span>Driving License</span> <div class="col-md-3"><span>Driving License</span>
<input type="text" id="Driverlicense" onchange="validateDriverLicense();" style="text-transform:uppercase" pattern="[a-zA-Z]{2}[0-9]{2}\s[0-9]{11}" title="EX:TN82 12345678900" maxlength="16" name="driverlicense" class="form-control" onkeypress="return alpha(event);"> <input type="text" id="Driverlicense" onchange="validateDriverLicense();" style="text-transform:uppercase" pattern="[a-zA-Z]{2}[0-9]{2}\s[0-9]{11}" title="EX:TN82 12345678900" maxlength="16" name="driverlicense" class="form-control" onkeypress="return alpha(event);">
</div> </div>
@ -708,8 +327,8 @@ function validateESI() {
</div> </div>
<div id="newdiv"></div><!-- this div for add more section--> <div id="newdiv"></div><!-- this div for add more section-->
<input type="hidden" name="hidecounter" id="hidecounter" value="0" /> <input type="hidden" name="hidecounter" id="hidecounter" value="0" readonly />
<input type="hidden" name="hideconstant" id="hideconstant" value="0" /> <input type="hidden" name="hideconstant" id="hideconstant" value="0" readonly />
</div> </div>
<!-- Command --> <!-- Command -->
@ -766,6 +385,388 @@ function validateESI() {
<script src="<?php echo base_url(); ?>assets/js/addUser.js" type="text/javascript"></script> <script src="<?php echo base_url(); ?>assets/js/addUser.js" type="text/javascript"></script>
<script> <script>
$(document).ready(function(){
$("#gender").select2();
$("#bloodgroup").select2();
$("#MartialStatus").select2();
$("#desigination").select2();
$("#departmentname").select2();
$("#eduqualifaction").select2();
$("#bankbranchname").select2();
// document.getElementById('aadharno').addEventListener('input', function (e) {
// e.target.value = e.target.value.replace(/[^\d]/g, '').replace(/(.{4})/g, '$1 ').trim();
// });
});
$(function() {
var d = new Date();
var month = d.getMonth();
var day = d.getDate();
var year = d.getFullYear() ;
var SIAStartYear = year - 2007;
var mindt = year-70;
var maxdt = year-15;
/** Date picker for Employee's DOB */
$("#DateofBirth").datepicker({
minDate : new Date(mindt,1,1),
maxDate : new Date(maxdt,1,1),
dateFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true,
yearRange: '-100:+0'
});
/** Date picker for Employee's DOJ */
$("#dateofjoining").datepicker({
minDate : new Date(year-SIAStartYear,1,1),
maxDate :'now',
dateFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true,
});
/** Date picker for Passport Expiry Date */
$("#ValidTill").datepicker({
dateFormat: 'dd-mm-yy',
minDate :'now',
changeMonth: true,
changeYear: true,
yearRange: '-0:+100'
});
/** Date picker for Driving License Expiry Date */
$("#LicenseExpiryDate").datepicker({
dateFormat: 'dd-mm-yy',
minDate :'now',
changeMonth: true,
changeYear: true,
yearRange: '-0:+100'
});
/** Address copy from Current into Permanent using Checkbox */
$('#checksame').click(function(){
if ($('#checksame').prop('checked'))
{
$('#permanentaddress').val($('#currentaddress').val());
}
else
{
$('#permanentaddress').val('');
}
});
});
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#profilepicture')
.attr('src', e.target.result)
.width(180)
.height(180);
};
reader.readAsDataURL(input.files[0]);
}
}
function blockKeyPress(evt)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
swal(charCode);
if(charCode == 8 || charCode == 46 )
{
return false;
}
else
{
return false;
}
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode != 46 && charCode != 32 && charCode >= 33
&& (charCode < 48 || charCode > 57))
return false;
return true;
}
function alpha(evt) {
var k;
document.all ? k = evt.keyCode : k = evt.which;
return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || k == 32 || k == 33 || (k >= 48 && k <= 57));
}
function onlyAlphabets(evt) {
var charCode;
if (window.event)
charCode = window.event.keyCode; //for IE
else
charCode = evt.which; //for firefox
if (charCode == 32) //for &lt;space&gt; symbol
return true;
if (charCode > 31 && charCode < 65) //for characters before 'A' in ASCII Table
return false;
if (charCode > 90 && charCode < 97) //for characters between 'Z' and 'a' in ASCII Table
return false;
if (charCode > 122) //for characters beyond 'z' in ASCII Table
return false;
return true;
}
//PAN Validate
// function validatePAN() {
// //var reg = /(?=.*[A-Za-z]).{5,}(?=.*[0-9]).{4,}(?=.*[A-Za-z]).{1,}$/;
// var regpan = /^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/;
// var PAN = $('#panno').val();
// if(PAN != '')
// {
// if (regpan.test(PAN) == false)
// {
// swal('Please Enter Valid PAN Number');
// return (false);
// }
// else
// {
// return true;
// }
// }
// }
// function ValidateAadhar(){
// //var reg = /^\d{12}$/
// var reg = /^\d{4}\s\d{4}\s\d{4}$/
// var aadhar = $('#aadharno').val();
// //var aadhar_count = $('#aadharno').val().length;
// if(aadhar != '' )// && aadhar_count != '')
// {
// if(reg.test(aadhar)== false)
// {
// swal('Please Enter Valid Aadhar Number');
// return (false);
// }
// else
// {
// return true;
// }
// }
// }
function getMobileValidation() {
var contactNumber = $('#ContactNumber').val().length;
if(contactNumber < 10)
{
swal('Please Enter valid Contact Number');
return false;
}
else
{
return true;
}
}
function getValidEmergencyNumber() {
var contactNumber = $('#emergencycontactnumber').val().length;
if(contactNumber < 10)
{
swal('Please Enter valid Emergency Contact Number');
return false;
}
else
{
return true;
}
}
function getValidReferNumber() {
var contactNumber = $('#referrercontno').val().length;
if(contactNumber > 0 && contactNumber < 10)
{
swal('Please Enter valid Refernce Contact Number');
return false;
}
else
{
return true;
}
}
function validateEmail() {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var email = $('#emailid').val();
if(email != '')
{
if (reg.test(email) == false)
{
swal('Please Enter Valid Personal Email Address');
return (false);
}
else
{
return true;
}
}
else
{
swal('Please Enter email id');
}
}
function validatecomEmail() {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var email = $('#mail').val();
if(email != '')
{
if (reg.test(email) == false)
{
swal('Please Enter Valid Company Email Address');
return (false);
}
else
{
return true;
}
}
else
{
swal('Please Enter email id');
}
}
function validateDriverLicense() {
var reg = /^[a-zA-Z]{2}[0-9]{2}\s[0-9]{11}$/;
var VehicleNo = $('#Driverlicense').val();
if(VehicleNo != "")
{
if (reg.test(VehicleNo) == false)
{
swal('Please Enter Valid Driver License Number');
return (false);
}
else
{
return true;
}
}
}
function getAge() {
var dateString = $("#DateofBirth").val();
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;
var yyyy = today.getFullYear();
if(dd<10){
dd='0'+dd;
}
if(mm<10){
mm='0'+mm;
}
var today = dd+'-'+mm+'-'+yyyy;
var ageyear = yyyy - dateString.split("-")[2];
var agemonth = mm - dateString.split("-")[1];
var agedate = dateString.split("-")[0];
if (agemonth < 0 || (agemonth == 0 && dd < agedate )) {
ageyear--;
}
$("#age").val(ageyear);
}
function resetphoto()
{
$("#photo").src("");
}
function ValidatePassport()
{
var regsaid = /^[aA-prPR-wyWY][1-9]\d\s?\d{4}[1-9]$/ig;
var passport = $("#passportno").val();
if(regsaid.test(passport) == false)
{
swal('You have entered invalid Passport.');
return (false);
}
else
{
return true;
}
}
function validatePF() {
var regpf = /^([a-zA-Z]){5}([0-9]){17}$/;
var PF = $('#pfno').val();
if(PF != '')
{
if (regpf.test(PF) == false)
{
swal('Please Enter Valid PF Number');
return (false);
}
else
{
return true;
}
}
}
function validateESI() {
var reg = /(?=.*[0-9]).{10,}$/;
var ESI = $('#esino').val();
if(ESI != '')
{
if (reg.test(ESI) == false)
{
swal('Please Enter Valid ESI Number');
return (false);
}
else
{
return true;
}
}
}
function Validate() function Validate()
{ {
if($("#FirstName").val().length < 1) if($("#FirstName").val().length < 1)
@ -901,7 +902,6 @@ function Validate()
{ {
$.ajax({ $.ajax({
data:{id:id}, data:{id:id},
type:"POST", type:"POST",
url:"<?php echo base_url();?>employeedetails/CheckEmail", url:"<?php echo base_url();?>employeedetails/CheckEmail",
success:function(data) { success:function(data) {
@ -911,17 +911,45 @@ function Validate()
// $('#emailid').val(''); // $('#emailid').val('');
// $('#emailid').focus(); // $('#emailid').focus();
var answer = confirm(data+""+" Employee already exists in the database.Do you want to change the Email id ?") // var answer = confirm(data+""+" Employee already exists in the database.Do you want to change the Email id ?")
if (answer) { // if (answer) {
// $('#emailid').val('');
// $('#emailid').focus();
// }
// else
// {
// swal('please edit the emailid in the edit employee screen');
// window.location = 'employeedetails/employeeListing';
// }
swal({
title: data+" "+" Email already exists in the database.",
text: " Do you want to change the Email id ?",
type: "info",
showCancelButton: true,
confirmButtonColor: '#5d0411',
confirmButtonText: "Yes",
closeOnConfirm: false,
closeOnCancel: false
},
function(isConfirm){
// swal( "'" + materialname + "' - related materials are ," , related_name);
// $("#MaterialName").focus();
if (isConfirm){
swal.close();
$('#emailid').val(''); $('#emailid').val('');
$('#emailid').focus(); $('#emailid').focus();
} return false;
else } else {
{ swal("Cancelled", "please edit the emailid in the edit employee screen", "error");
swal('please edit the emailid in the edit employee screen');
window.location = 'employeedetails/employeeListing'; window.location = 'employeedetails/employeeListing';
} }
});//sweet alert closed....
} }
} }
@ -965,7 +993,8 @@ $('#bankbranchname').change(function()
$("#addmorebutton").click(function(){ $("#addmorebutton").click(function(){
if(counter>2){ if(counter>2){
alert(" constant counter 3 error msg "); // alert(" constant counter 3 error msg ");
swal(" No More files to Add ");
return false; return false;
} }
else{ else{
@ -984,7 +1013,7 @@ div.innerHTML='<div class="col-md-12">'+
'<input type="file" name="browseFiles'+counterConstant+'" onchange="Copyfilename(this.name);"><br>'+ '<input type="file" name="browseFiles'+counterConstant+'" onchange="Copyfilename(this.name);"><br>'+
'</div>'+ '</div>'+
'<div class="col-md-3">'+ '<div class="col-md-3">'+
'<input class="btn btn-danger btn-sm remove remove_this" type="button" id="removebtn'+counterConstant+'" value="REMOVE" onclick="removeRow(this.id)"></div>'+ '<button class="btn btn-danger remove remove_this" id="removebtn'+counterConstant+'" onclick="removeRow(this.id)"><i class="fa fa-trash"></i></button></div>'+
'</div>'+ '</div>'+
'</div>'; '</div>';
$('#newdiv').append(div); $('#newdiv').append(div);
@ -1002,7 +1031,9 @@ div.innerHTML='<div class="col-md-12">'+
function removeRow(input) { function removeRow(input) {
var number = input.replace(/[^0-9]+/ig,""); var number = input.replace(/[^0-9]+/ig,"");
var ddvalue = $('#mulfilename'+number+' option:selected').val();
temparray.splice($.inArray(ddvalue, temparray), 1);
//console.log(temparray);
if(counter >= 1){ if(counter >= 1){
counter--; counter--;
$("#divid"+number).remove(); $("#divid"+number).remove();
@ -1012,13 +1043,13 @@ div.innerHTML='<div class="col-md-12">'+
} }
function changeFunc(input) { function changeFunc(input) {
alert("onchange function "); //alert("onchange function ");
var number = input.replace(/[^0-9]+/ig,""); var number = input.replace(/[^0-9]+/ig,"");
var ddvalue = $('#mulfilename'+number+' option:selected').val(); var ddvalue = $('#mulfilename'+number+' option:selected').val();
alert(ddvalue); //alert(ddvalue);
if(ddvalue != 'default'){ temparray.push(ddvalue); } if(ddvalue != 'default'){ temparray.push(ddvalue); }
alert(temparray); //alert(temparray);
// $.each(temparray,function(t,temp){ // $.each(temparray,function(t,temp){
// $('#mulfilename'+(counterConstant+1)+' option[value='+temp+']').remove(); // $('#mulfilename'+(counterConstant+1)+' option[value='+temp+']').remove();
@ -1038,5 +1069,4 @@ div.innerHTML='<div class="col-md-12">'+
} }
</script> </script>

File diff suppressed because it is too large Load Diff

View File

@ -1123,16 +1123,16 @@
<ul class="treeview-menu"> <ul class="treeview-menu">
<li> <li>
<a href="<?php echo base_url(); ?>attendance"> <a href="<?php echo base_url(); ?>attendance">
<i class="fa fa-refresh fa-spin "></i> <i class="fa fa-refresh"></i>
<span>Monthly Attendance</span> <span>Monthly Attendance</span>
</a> </a>
</li> </li>
<li> <!-- <li>
<a href="<?php echo base_url(); ?>permissionlist"> <a href="<?php echo base_url(); ?>permissionlist">
<i class="fa fa-user-circle "></i> <i class="fa fa-user-circle "></i>
<span>Permission Slip</span> <span>Permission Slip</span>
</a> </a>
</li> </li> -->
</ul> </ul>
</li> </li>
@ -1155,16 +1155,16 @@
<ul class="treeview-menu"> <ul class="treeview-menu">
<li> <li>
<a href="<?php echo base_url(); ?>attendance"> <a href="<?php echo base_url(); ?>attendance">
<i class="fa fa-refresh fa-spin "></i> <i class="fa fa-refresh"></i>
<span>Monthly Attendance</span> <span>Monthly Attendance</span>
</a> </a>
</li> </li>
<li> <!-- <li>
<a href="<?php echo base_url(); ?>permissionlist"> <a href="<?php echo base_url(); ?>permissionlist">
<i class="fa fa-user-circle "></i> <i class="fa fa-user-circle "></i>
<span>Permission Slip</span> <span>Permission Slip</span>
</a> </a>
</li> </li> -->
</ul> </ul>
</li> </li>