header file issues fixed
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
<?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';
|
||||||
@ -189,6 +190,9 @@ class employeedetails extends BaseController
|
|||||||
|
|
||||||
function AddNewEmployee()
|
function AddNewEmployee()
|
||||||
{
|
{
|
||||||
|
$aadharfilename ='';
|
||||||
|
$panfilename ='';
|
||||||
|
$voterfilename = '';
|
||||||
|
|
||||||
$this->load->library('form_validation');
|
$this->load->library('form_validation');
|
||||||
|
|
||||||
@ -268,49 +272,49 @@ class employeedetails extends BaseController
|
|||||||
$ESIno = $this->input->post('esino');
|
$ESIno = $this->input->post('esino');
|
||||||
$Nominee = $this->input->post('nomineename');
|
$Nominee = $this->input->post('nomineename');
|
||||||
$createdby = $this->session->userdata ( 'userId' );
|
$createdby = $this->session->userdata ( 'userId' );
|
||||||
$Ddname = $this->input->post('ddName');//dropdown
|
$count = $this->input->post('hidecounter');
|
||||||
//print_r($Ddname);die;
|
$constant = $this->input->post('hideconstant');
|
||||||
//$browseFiles[] = $_FILES['browseFiles']['name'];
|
|
||||||
$browseFiles = $_FILES['browseFiles']['name'];
|
for($i=1;$i<=$constant;$i++){
|
||||||
// print_r($browseFiles);
|
$Ddname = $this->input->post('Ddname');
|
||||||
// print_r($Ddname);
|
$filename = 'browseFiles'.$i;
|
||||||
// echo "dropdown values".$Ddname[0];
|
$Pi = $this->additional($filename);
|
||||||
// echo "browse data files".$browseFiles[0];
|
//$idproof[$i] = array($Ddname[$i],$Pi);
|
||||||
|
$idproof[$i] = $Ddname[$i]."/".$Pi;
|
||||||
|
|
||||||
//$aadharname = $Ddname[0]."-".$browseFiles[0];
|
|
||||||
if($Ddname[0] != '' && $browseFiles[0] != '')
|
|
||||||
{
|
|
||||||
$aadharfilename = $Ddname[0]."-".$browseFiles[0];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$aadharfilename = null;
|
|
||||||
}
|
|
||||||
//$panname = $Ddname[1]."-".$browseFiles[1];
|
|
||||||
if($Ddname[1] != '' && $browseFiles[1] != '')
|
|
||||||
{
|
|
||||||
$panfilename = $Ddname[1]."-".$browseFiles[1];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$panfilename = null;
|
|
||||||
}
|
|
||||||
//$votername = $Ddname[2]."-".$browseFiles[2];
|
|
||||||
if($Ddname[2] != '' && $browseFiles[2] != '')
|
|
||||||
{
|
|
||||||
$voterfilename = $Ddname[2]."-".$browseFiles[2];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$voterfilename = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//die();//echo count($browseFiles);
|
foreach ($idproof as $key => $value) {
|
||||||
|
|
||||||
//print_r($browseFiles);
|
$exp = explode("/",$value);
|
||||||
|
if($exp[0] == 'aadhar'){
|
||||||
|
|
||||||
|
if(!empty($value)){
|
||||||
|
$aadharfilename = $value ;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$aadharfilename = 'NULL';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif($exp[0] == 'pan' ){
|
||||||
|
if(!empty($value)){
|
||||||
|
$panfilename = $value;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$panfilename ='NULL';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif($exp[0] = 'voter'){
|
||||||
|
if(!empty($value)){
|
||||||
|
$voterfilename = $value;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$voterfilename = 'NULL';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//$path = 'uploads/images/';
|
|
||||||
$oth = $this->do_upload();
|
|
||||||
|
|
||||||
if($licenseExpiryDate != '')
|
if($licenseExpiryDate != '')
|
||||||
{
|
{
|
||||||
@ -351,11 +355,7 @@ class employeedetails extends BaseController
|
|||||||
|
|
||||||
$this->load->model('employeedetails_model');
|
$this->load->model('employeedetails_model');
|
||||||
|
|
||||||
print_r($Employee);
|
// print_r($Employee);
|
||||||
// echo "\n";
|
|
||||||
// print_r($Ddname);
|
|
||||||
// echo "\n";
|
|
||||||
// print_r($browseFiles);
|
|
||||||
// die();
|
// die();
|
||||||
$result = $this->employeedetails_model->addNewemployee($Employee);
|
$result = $this->employeedetails_model->addNewemployee($Employee);
|
||||||
|
|
||||||
@ -368,58 +368,11 @@ class employeedetails extends BaseController
|
|||||||
{
|
{
|
||||||
$this->session->set_flashdata('Error', 'New Employee details not saved');
|
$this->session->set_flashdata('Error', 'New Employee details not saved');
|
||||||
echo "<script>alert('Record Not Saved!');</script>";redirect('employeeListing','refresh');
|
echo "<script>alert('Record Not Saved!');</script>";redirect('employeeListing','refresh');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function do_upload()
|
|
||||||
{
|
|
||||||
echo "i am a do upload function";
|
|
||||||
|
|
||||||
$this->load->library('upload');
|
|
||||||
|
|
||||||
$files = $_FILES;
|
|
||||||
$cpt = count($_FILES['browseFiles']['name']);
|
|
||||||
echo $cpt;
|
|
||||||
|
|
||||||
for($i=0; $i<$cpt; $i++)
|
|
||||||
{
|
|
||||||
$_FILES['browseFiles']['name']= $files['browseFiles']['name'][$i];
|
|
||||||
$_FILES['browseFiles']['type']= $files['browseFiles']['type'][$i];
|
|
||||||
$_FILES['browseFiles']['tmp_name']= $files['browseFiles']['tmp_name'][$i];
|
|
||||||
$_FILES['browseFiles']['error']= $files['browseFiles']['error'][$i];
|
|
||||||
$_FILES['browseFiles']['size']= $files['browseFiles']['size'][$i];
|
|
||||||
//echo $_FILES['browseFiles']['name'];
|
|
||||||
$this->upload->initialize($this->set_upload_options());
|
|
||||||
if($this->upload->do_upload('browseFiles'))
|
|
||||||
{
|
|
||||||
echo "do_upload function";
|
|
||||||
// $uploadData = $this->upload->data();
|
|
||||||
// $picture = $uploadData['file_name'];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "not upload function";
|
|
||||||
// $error = array('error' => $this->upload->display_errors());
|
|
||||||
// $picture = '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private function set_upload_options()
|
|
||||||
{
|
|
||||||
//upload an image options
|
|
||||||
echo "upload an image options";
|
|
||||||
//die();
|
|
||||||
$config = array();
|
|
||||||
//$config['upload_path'] = './Images/';
|
|
||||||
$config['upload_path'] = 'uploads/images/';
|
|
||||||
$config['allowed_types'] = 'gif|jpg|png';
|
|
||||||
$config['max_size'] = '0';
|
|
||||||
$config['overwrite'] = FALSE;
|
|
||||||
|
|
||||||
return $config;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* To Convert the dateformat (date with time) and stored into DB
|
* To Convert the dateformat (date with time) and stored into DB
|
||||||
*/
|
*/
|
||||||
@ -599,6 +552,54 @@ private function set_upload_options()
|
|||||||
return $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
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -12,22 +12,7 @@ $(document).ready(function(){
|
|||||||
e.target.value = e.target.value.replace(/[^\d]/g, '').replace(/(.{4})/g, '$1 ').trim();
|
e.target.value = e.target.value.replace(/[^\d]/g, '').replace(/(.{4})/g, '$1 ').trim();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
function driver_designition()
|
|
||||||
{
|
|
||||||
// alert('i am in driver_designition function');
|
|
||||||
//$('#desigination').on('change', function () {
|
|
||||||
var opt = $("#desigination").val();
|
|
||||||
if(opt == 'DRIVER')
|
|
||||||
{
|
|
||||||
$("#Driverlicense").attr("required", "true");
|
|
||||||
$("#LicenseExpiryDate").attr("required", "true");
|
|
||||||
//alert(opt);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// alert('else statement');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function readURL(input) {
|
function readURL(input) {
|
||||||
if (input.files && input.files[0]) {
|
if (input.files && input.files[0]) {
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
@ -44,10 +29,52 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#checksame').click(function(){
|
|
||||||
alert('asdfsadfsfd');
|
|
||||||
if ($('#checksame').prop('checked'))
|
|
||||||
|
|
||||||
|
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());
|
$('#permanentaddress').val($('#currentaddress').val());
|
||||||
@ -116,7 +143,6 @@ var PAN = $('#panno').val();
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ValidateAadhar(){
|
function ValidateAadhar(){
|
||||||
//alert('validation entered');
|
|
||||||
//var reg = /^\d{12}$/
|
//var reg = /^\d{12}$/
|
||||||
var reg = /^\d{4}\s\d{4}\s\d{4}$/
|
var reg = /^\d{4}\s\d{4}\s\d{4}$/
|
||||||
var aadhar = $('#aadharno').val();
|
var aadhar = $('#aadharno').val();
|
||||||
@ -124,31 +150,16 @@ function ValidateAadhar(){
|
|||||||
|
|
||||||
if(aadhar != '' )// && aadhar_count != '')
|
if(aadhar != '' )// && aadhar_count != '')
|
||||||
{
|
{
|
||||||
//alert('this is aadhar :'+aadhar);
|
|
||||||
// if(aadhar_count < 12)
|
|
||||||
// {
|
|
||||||
// //alert(aadhar1);
|
|
||||||
// alert('Aadhar card should be in 12 digits');
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
if(reg.test(aadhar)== false)
|
if(reg.test(aadhar)== false)
|
||||||
{
|
{
|
||||||
//alert('alskdjsakjf');
|
|
||||||
swal('Please Enter Valid Aadhar Number');
|
swal('Please Enter Valid Aadhar Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//alert('value inserted into database');
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// //alert('aadhar is blank');
|
|
||||||
// alert('please Enter Aadhar number');
|
|
||||||
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -239,7 +250,6 @@ function validateDriverLicense() {
|
|||||||
|
|
||||||
|
|
||||||
var reg = /^[a-zA-Z]{2}[0-9]{2}\s[0-9]{11}$/;
|
var reg = /^[a-zA-Z]{2}[0-9]{2}\s[0-9]{11}$/;
|
||||||
// alert();
|
|
||||||
var VehicleNo = $('#Driverlicense').val();
|
var VehicleNo = $('#Driverlicense').val();
|
||||||
if(VehicleNo != "")
|
if(VehicleNo != "")
|
||||||
{
|
{
|
||||||
@ -287,47 +297,6 @@ $("#age").val(ageyear);
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$(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;
|
|
||||||
|
|
||||||
$("#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'
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
$("#dateofjoining").datepicker({
|
|
||||||
minDate : new Date(year-SIAStartYear,0,1),
|
|
||||||
maxDate :'now',
|
|
||||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
//alert(new Date(year-SIAStartYear,1,1));
|
|
||||||
$("#ValidTill").datepicker({dateFormat: 'dd-mm-yy',minDate :'now',changeMonth: true, changeYear: true,yearRange: '-0:+100'
|
|
||||||
});
|
|
||||||
$("#LicenseExpiryDate").datepicker({
|
|
||||||
dateFormat: 'dd-mm-yy',
|
|
||||||
minDate :'now',
|
|
||||||
changeMonth: true,
|
|
||||||
changeYear: true,
|
|
||||||
yearRange: '-0:+100'
|
|
||||||
|
|
||||||
});
|
|
||||||
// $( ".selector" ).datepicker({
|
|
||||||
// dateFormat: 'yy-mm-dd' });
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
function resetphoto()
|
function resetphoto()
|
||||||
{
|
{
|
||||||
$("#photo").src("");
|
$("#photo").src("");
|
||||||
@ -337,7 +306,7 @@ function ValidatePassport()
|
|||||||
{
|
{
|
||||||
var regsaid = /^[aA-prPR-wyWY][1-9]\d\s?\d{4}[1-9]$/ig;
|
var regsaid = /^[aA-prPR-wyWY][1-9]\d\s?\d{4}[1-9]$/ig;
|
||||||
var passport = $("#passportno").val();
|
var passport = $("#passportno").val();
|
||||||
//alert(passport);
|
|
||||||
if(regsaid.test(passport) == false)
|
if(regsaid.test(passport) == false)
|
||||||
{
|
{
|
||||||
swal('You have entered invalid Passport.');
|
swal('You have entered invalid Passport.');
|
||||||
@ -411,9 +380,6 @@ function validateESI() {
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
span {
|
|
||||||
font-weight:800;
|
|
||||||
}
|
|
||||||
.form-group
|
.form-group
|
||||||
{
|
{
|
||||||
padding-bottom:4%;
|
padding-bottom:4%;
|
||||||
@ -428,13 +394,9 @@ function validateESI() {
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<!-- Content Header (Page header) -->
|
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1>
|
<h1> <CENTER>Resico Industries Employee Profile</CENTER> </h1>
|
||||||
<CENTER>Resico Industries Employee Profile</CENTER>
|
|
||||||
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="content">
|
<section class="content">
|
||||||
@ -443,56 +405,36 @@ function validateESI() {
|
|||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- left column -->
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<!-- general form elements -->
|
|
||||||
|
|
||||||
<div class="box box-primary">
|
<div class="box box-primary">
|
||||||
<!-- /.box-header -->
|
|
||||||
<!-- form start -->
|
|
||||||
|
|
||||||
|
|
||||||
<form role="form" id="addemployee" action="<?php echo base_url() ?>employeedetails/AddNewEmployee" method="post" enctype="multipart/form-data">
|
<form role="form" id="addemployee" action="<?php echo base_url() ?>employeedetails/AddNewEmployee" method="post" enctype="multipart/form-data">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-10 col-md-offset-1">
|
<div class="col-md-10 col-md-offset-1">
|
||||||
<form class="form-horizontal" role="form" >
|
<!-- <form class="form-horizontal" role="form" > -->
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
||||||
<!-- Form Name -->
|
|
||||||
<legend>Personal Information</legend>
|
<legend>Personal Information</legend>
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
|
|
||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
<img id="profilepicture" src="<?php echo base_url().'assets/dist/img/avatar.png' ?>" alt="your image" style="width: 139px;"/><br/>
|
<img id="profilepicture" src="<?php echo base_url(); ?>assets/dist/img/avatar.png" alt="your image" style="width: 139px;"/><br/>
|
||||||
<input type='file' onchange="readURL(this);" id="photo" name="photo"/>
|
<input type='file' onchange="readURL(this);" id="photo" name="photo"/>
|
||||||
<label for="photo">Select profile picture<br/><small>(only .jpg or .png)</small></label>
|
<label for="photo">Select profile picture<br/><small>(only .jpg or .png)</small></label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
<div class="col-md-6 pad"><span>First Name</span><span class="badge">*</span>
|
||||||
<div class="col-md-6 pad">
|
|
||||||
<span>First Name</span><span class="badge">*</span>
|
|
||||||
<input type="text" name="FirstName" onkeypress="return onlyAlphabets(event);" maxlength="100" id="FirstName" class="form-control" required>
|
<input type="text" name="FirstName" onkeypress="return onlyAlphabets(event);" maxlength="100" id="FirstName" class="form-control" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 pad"><span>Last Name</span><span class="badge">*</span>
|
<div class="col-md-6 pad"><span>Last Name</span><span class="badge">*</span>
|
||||||
<input type="text" name="LastName" onkeypress="return onlyAlphabets(event);" maxlength="100" id="LastName" class="form-control" required>
|
<input type="text" name="LastName" onkeypress="return onlyAlphabets(event);" maxlength="100" id="LastName" class="form-control" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="col-md-6 pad"><span>Father / Husband Name</span><span class="badge">*</span>
|
<div class="col-md-6 pad"><span>Father / Husband Name</span><span class="badge">*</span>
|
||||||
<input type="text" name="FatherName" onkeypress="return onlyAlphabets(event);" id="FatherName" maxlength="200"
|
<input type="text" name="FatherName" onkeypress="return onlyAlphabets(event);" id="FatherName" maxlength="200" class="form-control" required>
|
||||||
class="form-control" required>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 pad"><span>Date Of Birth</span><span class="badge">*</span>
|
<div class="col-md-6 pad"><span>Date Of Birth</span><span class="badge">*</span>
|
||||||
<input id="DateofBirth" required name="DateofBirth" onkeypress="return false;" maxlength="10" onchange="getAge();" class="form-control">
|
<input id="DateofBirth" required name="DateofBirth" onkeypress="return false;" maxlength="10" onchange="getAge();" class="form-control">
|
||||||
@ -505,13 +447,11 @@ function validateESI() {
|
|||||||
<div class="col-md-6 pad"><span>Contact Number</span><span class="badge">*</span>
|
<div class="col-md-6 pad"><span>Contact Number</span><span class="badge">*</span>
|
||||||
<input type="text" name="ContactNumber" onchange="return getMobileValidation();" id="ContactNumber" required pattern="(.){10,10}" maxlength="10" class="form-control" onkeypress="return isNumberKey(event)">
|
<input type="text" name="ContactNumber" onchange="return getMobileValidation();" id="ContactNumber" required pattern="(.){10,10}" maxlength="10" class="form-control" onkeypress="return isNumberKey(event)">
|
||||||
</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" 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">
|
||||||
<option value="">Select Gender</option>
|
<option value="">Select Gender</option>
|
||||||
@ -533,13 +473,10 @@ function validateESI() {
|
|||||||
<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" maxlength="100" class="form-control">
|
<input type="email" name="comemailid" id="mail" maxlength="100" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-6 pad" style="padding: 10px 0px;">
|
<div class="col-md-6 pad" style="padding: 10px 0px;">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
<span>Blood group</span><span class="badge">*</span>
|
||||||
<span>Blood group</span><!--<span class="badge">*</span>-->
|
<select id="bloodgroup" name="bloodgroup" required class="form-control select2">
|
||||||
<select id="bloodgroup" name="bloodgroup" class="form-control select2">
|
|
||||||
<option value="">Select Blood group</option>
|
<option value="">Select Blood group</option>
|
||||||
<?php
|
<?php
|
||||||
if(!empty($BloodGroup))
|
if(!empty($BloodGroup))
|
||||||
@ -554,8 +491,8 @@ function validateESI() {
|
|||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6"><span>Marital Status</span><!--<span class="badge">*</span>-->
|
<div class="col-md-6"><span>Marital Status</span><span class="badge">*</span>
|
||||||
<select id="MartialStatus" name="MartialStatus" type="text" placeholder="Marital status" class="form-control select2">
|
<select id="MartialStatus" name="MartialStatus" type="text" required placeholder="Marital status" class="form-control select2">
|
||||||
<option value="">Select Marital Status</option>
|
<option value="">Select Marital Status</option>
|
||||||
<?php
|
<?php
|
||||||
if(!empty($Martial))
|
if(!empty($Martial))
|
||||||
@ -575,51 +512,40 @@ function validateESI() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Address Section -->
|
<!-- Address Section -->
|
||||||
<!-- Form Name -->
|
|
||||||
<legend>Address Details</legend>
|
<legend>Address Details</legend>
|
||||||
<!-- Text input-->
|
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-12"><span>Address</span><span class="badge">*</span>
|
<div class="col-md-12"><span>Current Address</span><span class="badge">*</span>
|
||||||
<input type="text" id="currentaddress" required name="currentaddress" pattern=".{0,500}" maxlength="500" class="form-control">
|
<input type="text" id="currentaddress" required name="currentaddress" pattern=".{0,500}" maxlength="500" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input type="checkbox" id="checksame" name="sameaddress" onclick="CheckClick"> Current address same as permanent address
|
<input type="checkbox" id="checksame" name="sameaddress" onclick="CheckClick"> Current address same as permanent address
|
||||||
</div>
|
</div>
|
||||||
</div>-->
|
</div>
|
||||||
<!-- Text input-->
|
<div class="col-md-12 pad">
|
||||||
<!--<div class="col-md-12 pad">
|
|
||||||
<div class="col-md-12"><span>Permanent Address</span><span class="badge">*</span>
|
<div class="col-md-12"><span>Permanent Address</span><span class="badge">*</span>
|
||||||
<input type="text" id="permanentaddress" required name="permanentaddress" pattern=".{0,500}" maxlength="500" class="form-control">
|
<input type="text" id="permanentaddress" required name="permanentaddress" pattern=".{0,500}" maxlength="500" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div>
|
||||||
<!-- Text input-->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Emergency Contact Section -->
|
<!-- Emergency Contact Section -->
|
||||||
<!-- Form Name -->
|
|
||||||
<legend>Emergency Contact Information</legend>
|
<legend>Emergency Contact Information</legend>
|
||||||
<!-- Text input-->
|
<!-- Text input-->
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-6"><span>Emergency Contact Name</span><!--<span class="badge">*</span>-->
|
<div class="col-md-6"><span>Emergency Contact Name</span><span class="badge">*</span>
|
||||||
<input type="text" id="emergencycontactname" onkeypress="return onlyAlphabets(event);" maxlength="100" name="emergencycontactname" class="form-control">
|
<input type="text" id="emergencycontactname" onkeypress="return onlyAlphabets(event);" maxlength="100" required name="emergencycontactname" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6"><span>Emergency Contact Number</span><!--<span class="badge">*</span>-->
|
<div class="col-md-6"><span>Emergency Contact Number</span><span class="badge">*</span>
|
||||||
<input type="text" id="emergencycontactnumber" name="emergencycontactnumber" onchange="return getValidEmergencyNumber();" pattern="(.){10,10}" maxlength="10" class="form-control" onkeypress="return isNumberKey(event)">
|
<input type="text" id="emergencycontactnumber" name="emergencycontactnumber" onchange="return getValidEmergencyNumber();" required pattern="(.){10,10}" maxlength="10" class="form-control" onkeypress="return isNumberKey(event)">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- profile Section -->
|
<!-- profile Section -->
|
||||||
<!-- Form Name -->
|
|
||||||
<legend>Work Profile</legend>
|
<legend>Work Profile</legend>
|
||||||
<!-- Text input-->
|
|
||||||
|
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-3"><span>Designation</span><span class="badge">*</span>
|
<div class="col-md-3"><span>Designation</span><span class="badge">*</span>
|
||||||
<select type="text" id="desigination" name="desigination" required class="form-control select2">
|
<select type="text" id="desigination" name="desigination" required class="form-control select2">
|
||||||
@ -636,8 +562,8 @@ function validateESI() {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3"><span>Department</span><span class="badge">*</span>
|
<div class="col-md-3"><span>Department</span><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="">Select Department</option>
|
<option value="">Select Department</option>
|
||||||
@ -653,8 +579,8 @@ function validateESI() {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3"><span>Date Of Joining</span><span class="badge">*</span>
|
<div class="col-md-3"><span>Date Of Joining</span><span class="badge">*</span>
|
||||||
<input id="dateofjoining" name="dateofjoining" onkeypress="return false;" maxlength="10" required class="form-control">
|
<input id="dateofjoining" name="dateofjoining" onkeypress="return false;" maxlength="10" required class="form-control">
|
||||||
</div>
|
</div>
|
||||||
@ -679,7 +605,6 @@ function validateESI() {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3"><span>Additional Qualification</span>
|
<div class="col-md-3"><span>Additional Qualification</span>
|
||||||
<input type="text" id="addqualification" name="addqualification" maxlength="100" class="form-control">
|
<input type="text" id="addqualification" name="addqualification" maxlength="100" class="form-control">
|
||||||
@ -688,13 +613,11 @@ function validateESI() {
|
|||||||
<input type="text" id="referredby" onkeypress="return onlyAlphabets(event);" name="referredby" maxlength="100" class="form-control">
|
<input type="text" id="referredby" onkeypress="return onlyAlphabets(event);" name="referredby" maxlength="100" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3"><span>Referrer Contact Number</span>
|
<div class="col-md-3"><span>Referrer Contact Number</span>
|
||||||
<input type="text" id="referrercontno" name="referrercontno" onchange=" return getValidReferNumber();"
|
<input type="text" id="referrercontno" name="referrercontno" onchange=" return getValidReferNumber();" maxlength="10" onkeypress="return isNumberKey(event)" class="form-control">
|
||||||
maxlength="10" onkeypress="return isNumberKey(event)" class="form-control">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<legend>Bank Details</legend>
|
<legend>Bank Details</legend>
|
||||||
<!-- Text input-->
|
|
||||||
|
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-3"><span>Bank Name</span>
|
<div class="col-md-3"><span>Bank Name</span>
|
||||||
@ -714,8 +637,6 @@ function validateESI() {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- <input type="text" id="bankbranchname" onkeypress="return alpha(event);" maxlength="200" name="bankbranchname" class="form-control"> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3"><span>Account Number</span>
|
<div class="col-md-3"><span>Account Number</span>
|
||||||
<input type="text" id="accountno" onkeypress="return isNumberKey(event)" maxlength="20" name="accountno" class="form-control">
|
<input type="text" id="accountno" onkeypress="return isNumberKey(event)" maxlength="20" name="accountno" class="form-control">
|
||||||
@ -729,42 +650,34 @@ function validateESI() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<legend>ID Proof</legend>
|
<legend>ID Proof</legend>
|
||||||
<!-- Text input-->
|
|
||||||
|
|
||||||
<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
|
<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);">
|
||||||
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>
|
||||||
|
|
||||||
<div class="col-md-3"><span>Driving License Expiry Date</span>
|
<div class="col-md-3"><span>Driving License Expiry Date</span>
|
||||||
<input id="LicenseExpiryDate" name="licenseExpiryDate" onkeypress="return false;" maxlength="10" class="form-control">
|
<input id="LicenseExpiryDate" name="licenseExpiryDate" onkeypress="return false;" maxlength="10" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<legend>Employee benefits</legend>
|
<legend>Employee benefits</legend>
|
||||||
<!-- Text input-->
|
|
||||||
|
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
<div class="col-md-6"><span>PF Number</span>
|
<div class="col-md-6"><span>PF Number</span>
|
||||||
<input type="text" id="pfno" name="pfno" maxlength="22" onchange="validatePF();" class="form-control" style="text-transform:uppercase" pattern="([a-zA-Z]){5}([0-9]){17}" title=" 5 Character and 17 Digit number (ex:ABCDE12345678901234567)" onkeypress="return alpha(event);">
|
<input type="text" id="pfno" name="pfno" maxlength="22" onchange="validatePF();" class="form-control" style="text-transform:uppercase" pattern="([a-zA-Z]){5}([0-9]){17}" title=" 5 Character and 17 Digit number (ex:ABCDE12345678901234567)" onkeypress="return alpha(event);">
|
||||||
@ -787,21 +700,18 @@ function validateESI() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<legend>Multiple File</legend>
|
<legend>Multiple File</legend>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="col-md-offset-10 col-md-1" >
|
||||||
|
<input type="button" class="btn btn-primary" id ="addmorebutton" value=" + ADD FILES.."><p><br/></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-md-12 pad table-repsonsive" id="file_div">
|
<div id="newdiv"></div><!-- this div for add more section-->
|
||||||
<table class="table table-bordered" id="item_table">
|
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
|
||||||
<tr>
|
<input type="hidden" name="hideconstant" id="hideconstant" value="0" />
|
||||||
<th>Upload your files</th>
|
|
||||||
<th>Select your id</th>
|
|
||||||
<th><button type="button" id="addbtn" name="add" class="btn btn-success btn-sm add"><span class="glyphicon glyphicon-plus"></span></button></th>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<!-- <input type="submit" name="submit_file" value="SUBMIT"> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Command -->
|
<!-- Command -->
|
||||||
|
|
||||||
<div class="col-md-12 pad">
|
<div class="col-md-12 pad">
|
||||||
@ -813,7 +723,7 @@ function validateESI() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
<!-- </form> -->
|
||||||
</div><!-- /.col-lg-12 -->
|
</div><!-- /.col-lg-12 -->
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
|
|
||||||
@ -888,25 +798,25 @@ function Validate()
|
|||||||
{ return false; }
|
{ return false; }
|
||||||
|
|
||||||
|
|
||||||
// if($("#emailid").val().length < 1)
|
if($("#emailid").val().length < 1)
|
||||||
// {
|
{
|
||||||
// swal('Please Enter Personal Email ID');
|
swal('Please Enter Personal Email ID');
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
// else if(!validateEmail())
|
else if(!validateEmail())
|
||||||
// {
|
{
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if($("#mail").val().length < 1)
|
if($("#mail").val().length < 1)
|
||||||
// {
|
{
|
||||||
// swal('Please Enter Company Email ID');
|
swal('Please Enter Company Email ID');
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
// else if(!validatecomEmail())
|
else if(!validatecomEmail())
|
||||||
// {
|
{
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
if($("option:selected", $("#gender")).val() == '-1')
|
if($("option:selected", $("#gender")).val() == '-1')
|
||||||
{
|
{
|
||||||
@ -922,12 +832,12 @@ function Validate()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if($("option:selected", $("#bloodgroup")).val() == "-1")
|
if($("option:selected", $("#bloodgroup")).val() == "-1")
|
||||||
// {
|
{
|
||||||
// swal('Please Select Blood group ');
|
swal('Please Select Blood group ');
|
||||||
// $("#bloodgroup").focus();
|
$("#bloodgroup").focus();
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
if($("#currentaddress").val().length < 1)
|
if($("#currentaddress").val().length < 1)
|
||||||
{
|
{
|
||||||
swal('Please Enter Current Address');
|
swal('Please Enter Current Address');
|
||||||
@ -938,18 +848,18 @@ function Validate()
|
|||||||
swal('Please Enter Permanent Address');
|
swal('Please Enter Permanent Address');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// if($("#emergencycontactname").val().length < 1)
|
if($("#emergencycontactname").val().length < 1)
|
||||||
// {
|
{
|
||||||
// swal('Please Enter Emergency Contact Name');
|
swal('Please Enter Emergency Contact Name');
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
// if($("#emergencycontactnumber").val().length < 1)
|
if($("#emergencycontactnumber").val().length < 1)
|
||||||
// {
|
{
|
||||||
// swal('Please Enter Emergency Contact Number');
|
swal('Please Enter Emergency Contact Number');
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
// else if(!getValidEmergencyNumber())
|
else if(!getValidEmergencyNumber())
|
||||||
// { return false;}
|
{ return false;}
|
||||||
|
|
||||||
|
|
||||||
if($("option:selected", $("#desigination")).val() == "-1")
|
if($("option:selected", $("#desigination")).val() == "-1")
|
||||||
@ -997,7 +907,7 @@ function Validate()
|
|||||||
success:function(data) {
|
success:function(data) {
|
||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
// alert(data+""+" Employee already exists in the database.Please Change the Email id")
|
// swal(data+""+" Employee already exists in the database.Please Change the Email id")
|
||||||
// $('#emailid').val('');
|
// $('#emailid').val('');
|
||||||
// $('#emailid').focus();
|
// $('#emailid').focus();
|
||||||
|
|
||||||
@ -1021,95 +931,6 @@ function Validate()
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// $('#panno').change(function() {
|
|
||||||
|
|
||||||
// var id = $('#panno').val();
|
|
||||||
// if(id != '')
|
|
||||||
// {
|
|
||||||
// $.ajax({
|
|
||||||
// data:{id:id},
|
|
||||||
|
|
||||||
// type:"POST",
|
|
||||||
// url:"<?php echo base_url();?>employeedetails/checkPAN",
|
|
||||||
// success:function(data) {
|
|
||||||
// if(data)
|
|
||||||
// {
|
|
||||||
// // alert( data+""+" Employee already exists in the database.Please Change the Pan Card Number");
|
|
||||||
// // $('#panno').val('');
|
|
||||||
// // $('#panno').focus();
|
|
||||||
|
|
||||||
// var answer = confirm(data + " " +" Employee details is already exists in the database.Do you want to change the Employee details?")
|
|
||||||
// if (answer)
|
|
||||||
// {
|
|
||||||
// $('#panno').val('');
|
|
||||||
// $('#panno').focus();
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// swal('please edit the PAN number in the Edit employee screen');
|
|
||||||
// window.location = 'employeedetails/employeeListing';
|
|
||||||
// }
|
|
||||||
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// //alert();
|
|
||||||
// swal('Please enter the PAN Number');
|
|
||||||
// $('#panno').focus();
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// });
|
|
||||||
// //
|
|
||||||
// $('#aadharno').change(function() {
|
|
||||||
|
|
||||||
// var id = $('#aadharno').val();
|
|
||||||
// if(id != '')
|
|
||||||
// {
|
|
||||||
// $.ajax({
|
|
||||||
// data:{id:id},
|
|
||||||
|
|
||||||
// type:"POST",
|
|
||||||
// url:"<?php echo base_url();?>employeedetails/checkAadharNo",
|
|
||||||
// success:function(data) {
|
|
||||||
// if(data)
|
|
||||||
// {
|
|
||||||
// // alert( data+""+" Employee already exists in the database.Please Change the Aadhar card Number");
|
|
||||||
// // $('#aadharno').val('');
|
|
||||||
// // $('#aadharno').focus();
|
|
||||||
|
|
||||||
// var answer = confirm(data + " " +" employee details is already exists in the database.Do you want to change the Employee details?")
|
|
||||||
// if (answer)
|
|
||||||
// {
|
|
||||||
// $('#aadharno').val('');
|
|
||||||
// $('#aadharno').focus();
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// swal('please edit the aadhar number in the edit employee screen');
|
|
||||||
// window.location = 'employeedetails/employeeListing';
|
|
||||||
// }
|
|
||||||
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// //alert();
|
|
||||||
// swal('Please enter the Aadhar Number');
|
|
||||||
// $('#aadharno').focus();
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// });
|
|
||||||
|
|
||||||
$('#bankbranchname').change(function()
|
$('#bankbranchname').change(function()
|
||||||
{
|
{
|
||||||
@ -1135,22 +956,87 @@ $('#bankbranchname').change(function()
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
|
||||||
<script>
|
|
||||||
$("#addbtn").click(function () {
|
|
||||||
var counter = 0;
|
var counter = 0;
|
||||||
if(counter <= 2){
|
var counterConstant = 0;
|
||||||
var html = '';
|
var temparray = [];
|
||||||
html += '<tr>';
|
|
||||||
html += '<td><input type="file" name="browseFiles[]" onchange="readURL(this)" class="form-control" /></td>';
|
|
||||||
html += '<td><select name="ddName[]" class="form-control"><option value="default">Select ID Name</option><option value="pan">Pan Card</option><option value="aadhar">Aadhar card</option><option value="voter">Voter ID Card</option></select></td>';
|
//
|
||||||
html += '<td><button type="button" id="removebtn" name="remove" class="btn btn-danger btn-sm remove"><span class="glyphicon glyphicon-minus"></span></button></td></tr>';
|
$("#addmorebutton").click(function(){
|
||||||
$('#item_table').append(html); }
|
|
||||||
|
if(counter>2){
|
||||||
|
alert(" constant counter 3 error msg ");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
});
|
counterConstant++;
|
||||||
$(document).on('click','.remove',function() {
|
|
||||||
//alert('removebtn');
|
var div = document.createElement('div');
|
||||||
$(this).closest('tr').remove();
|
div.id = "divid"+counterConstant;
|
||||||
|
div.className="row";
|
||||||
|
div.innerHTML='<div class="col-md-12">'+
|
||||||
|
'<div class="col-md-3">'+
|
||||||
|
'<select name="Ddname['+counterConstant+']" id="mulfilename'+counterConstant+'" class="form-control" onchange="changeFunc(this.id);"><option value="default">Select ID Name</option><option value="pan">Pan Card</option><option value="aadhar">Aadhar Card</option><option value="voter">Voter ID Card</option></select>'+
|
||||||
|
'</div>'+
|
||||||
|
'<div class="col-md-6">'+
|
||||||
|
'<input type="file" name="browseFiles'+counterConstant+'" onchange="Copyfilename(this.name);"><br>'+
|
||||||
|
'</div>'+
|
||||||
|
'<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>'+
|
||||||
|
'</div>'+
|
||||||
|
'</div>';
|
||||||
|
$('#newdiv').append(div);
|
||||||
|
|
||||||
|
$('#hidecounter').val(counter);
|
||||||
|
$('#hideconstant').val(counterConstant);
|
||||||
|
|
||||||
|
$.each(temparray,function(t,temp){
|
||||||
|
$('#mulfilename'+(counterConstant)+' option[value='+temp+']').remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function removeRow(input) {
|
||||||
|
|
||||||
|
var number = input.replace(/[^0-9]+/ig,"");
|
||||||
|
|
||||||
|
if(counter >= 1){
|
||||||
|
counter--;
|
||||||
|
$("#divid"+number).remove();
|
||||||
|
$('#hidecounter').val(counter);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function changeFunc(input) {
|
||||||
|
alert("onchange function ");
|
||||||
|
|
||||||
|
var number = input.replace(/[^0-9]+/ig,"");
|
||||||
|
var ddvalue = $('#mulfilename'+number+' option:selected').val();
|
||||||
|
alert(ddvalue);
|
||||||
|
if(ddvalue != 'default'){ temparray.push(ddvalue); }
|
||||||
|
alert(temparray);
|
||||||
|
|
||||||
|
// $.each(temparray,function(t,temp){
|
||||||
|
// $('#mulfilename'+(counterConstant+1)+' option[value='+temp+']').remove();
|
||||||
|
// });
|
||||||
|
|
||||||
|
//var $list = $("#myList"),toRemove = $();
|
||||||
|
|
||||||
|
// for(var i = selectedItems.length; i--;) {
|
||||||
|
// toRemove = toRemove.add($list.find('option[value="' + selectedItems[i] + '"]'));
|
||||||
|
// }
|
||||||
|
// toRemove.remove();
|
||||||
|
|
||||||
|
//$('#mulfilename'+(number+1)+' option[value='+temp+']').prop('disabled',true);
|
||||||
|
// $('#mulfilename option:not(:first)').filter(function() {
|
||||||
|
// return $.inArray($.trim($(this).text()), types) == -1;
|
||||||
|
// }).remove();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -104,11 +104,12 @@ if(!empty($EmpDetails))
|
|||||||
$personalEmailId = $Emp->personalEmailId;
|
$personalEmailId = $Emp->personalEmailId;
|
||||||
$DriverLicense = $Emp->DriverLicense;
|
$DriverLicense = $Emp->DriverLicense;
|
||||||
$VoterID = $Emp->VoterID;
|
$VoterID = $Emp->VoterID;
|
||||||
echo $AadharNo.$PANNo.$VoterID;
|
|
||||||
|
|
||||||
// print_r (explode("-",$AadharNo));
|
$a=array();
|
||||||
// print_r (explode("-",$PANNo));
|
if (!empty($AadharNo)){array_push($a,$AadharNo);}
|
||||||
// print_r (explode("-",$VoterID));
|
if (!empty($PANNo)){array_push($a,$PANNo); }
|
||||||
|
if (!empty($VoterID)){array_push($a,$VoterID); }
|
||||||
|
print_r($a);
|
||||||
|
|
||||||
$pfno = $Emp->PFNO;
|
$pfno = $Emp->PFNO;
|
||||||
$esino = $Emp->ESI;
|
$esino = $Emp->ESI;
|
||||||
@ -139,6 +140,7 @@ if(!empty($EmpDetails))
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
@ -550,7 +552,7 @@ function getAge() {
|
|||||||
$("#age").val(ageyear);
|
$("#age").val(ageyear);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var index = 0 ;
|
||||||
$(function() {
|
$(function() {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
|
|
||||||
@ -580,6 +582,46 @@ $(function() {
|
|||||||
$("#LicenseExpiryDate").datepicker({dateFormat: 'dd-mm-yy',minDate :'now',changeMonth: true, changeYear: true,yearRange: '-0:+100'
|
$("#LicenseExpiryDate").datepicker({dateFormat: 'dd-mm-yy',minDate :'now',changeMonth: true, changeYear: true,yearRange: '-0:+100'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#gender").select2();
|
||||||
|
$("#bloodgroup").select2();
|
||||||
|
$("#MartialStatus").select2();
|
||||||
|
$("#desigination").select2();
|
||||||
|
$("#departmentname").select2();
|
||||||
|
$("#eduqualifaction").select2();
|
||||||
|
$("#bankbranchname").select2();
|
||||||
|
alert('good way');
|
||||||
|
var js_array =<?php echo json_encode($a);?>;
|
||||||
|
alert(js_array[0]);
|
||||||
|
var mybaseurl='<?php echo base_url('uploads/images');?>';
|
||||||
|
$.each(js_array,function(j,ja){
|
||||||
|
alert(ja);
|
||||||
|
var ss = ja.split("/");
|
||||||
|
alert(ss[0]);
|
||||||
|
alert(ss[1]);
|
||||||
|
var div = document.createElement('div');
|
||||||
|
div.id = "dbdivid"+index;
|
||||||
|
div.className="row";
|
||||||
|
div.innerHTML='<div class="col-md-12">'+
|
||||||
|
'<div class="col-md-3">'+
|
||||||
|
'<input type="text" name="Ddname'+index+'" id="Ddname'+index+'" class="form-control" value="'+ss[0]+'" readonly/>'+
|
||||||
|
'</div>'+
|
||||||
|
'<div class="col-md-6">'+
|
||||||
|
'<b>File Name:</b><input type="text" name="filename'+index+'" id="filename" class="form-control" value="'+ss[1]+'" readonly/>'+
|
||||||
|
'</div>'+
|
||||||
|
'<div class="col-md-3">'+
|
||||||
|
'<a href="'+mybaseurl+'/'+ss[1]+'" class="btn btn-primary active" target="_blank" role="button"><i class="fa fa-download" ></i>Download</a>'+
|
||||||
|
'<button class="btn btn-danger" id="delbtn'+index+'" onclick="deleted(this.id)"><i class="fa fa-trash"></i> Remove</button>'+
|
||||||
|
'</div>'+
|
||||||
|
'</div>';
|
||||||
|
$('#newdiv').append(div);
|
||||||
|
index++;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function resetphoto()
|
function resetphoto()
|
||||||
@ -601,18 +643,6 @@ function ValidatePassport()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$(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 onlyAlphabets(evt) {
|
function onlyAlphabets(evt) {
|
||||||
var charCode;
|
var charCode;
|
||||||
@ -633,6 +663,12 @@ function onlyAlphabets(evt) {
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
.test input {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* <span class="test">Your name is <input type="text" value="SAM" readonly="readonly" /></span> */
|
||||||
span {
|
span {
|
||||||
font-weight:800;
|
font-weight:800;
|
||||||
}
|
}
|
||||||
@ -1102,8 +1138,16 @@ function onlyAlphabets(evt) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<legend>Multiple File</legend>
|
<legend>Multiple File</legend>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="col-md-offset-10 col-md-1" >
|
||||||
|
<input type="button" class="btn btn-primary" id ="addmorebutton" value=" + ADD FILES.."><p><br/></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-md-12 pad table-repsonsive" id="file_div">
|
<div id="newdiv"></div><!-- this div for add more section-->
|
||||||
|
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
|
||||||
|
<input type="hidden" name="hideconstant" id="hideconstant" value="0" />
|
||||||
|
<!-- <div class="col-md-12 pad table-repsonsive" id="file_div">
|
||||||
<table class="table table-bordered" id="item_table">
|
<table class="table table-bordered" id="item_table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Upload your files</th>
|
<th>Upload your files</th>
|
||||||
@ -1111,7 +1155,7 @@ function onlyAlphabets(evt) {
|
|||||||
<th><button type="button" id="addbtn" name="add" class="btn btn-success btn-sm add"><span class="glyphicon glyphicon-plus"></span></button></th>
|
<th><button type="button" id="addbtn" name="add" class="btn btn-success btn-sm add"><span class="glyphicon glyphicon-plus"></span></button></th>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div> -->
|
||||||
<!-- <input type="submit" name="submit_file" value="SUBMIT"> -->
|
<!-- <input type="submit" name="submit_file" value="SUBMIT"> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1267,17 +1311,86 @@ function onlyAlphabets(evt) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#addbtn").click(function () {
|
|
||||||
var html = '';
|
var counter = 0;
|
||||||
html += '<tr>';
|
var counterConstant = 0;
|
||||||
html += '<td><input type="file" name="browseFiles[]" onchange="readURL(this)" class="form-control" /></td>';
|
var temparray = [];
|
||||||
html += '<td><select name="ddName[]" class="form-control"><option value="default">Select ID Name</option><option value="pan">Pan Card</option><option value="aadhar">Aadhar card</option><option value="voter">Voter ID Card</option></select></td>';
|
|
||||||
html += '<td><button type="button" id="removebtn" name="remove" class="btn btn-danger btn-sm remove"><span class="glyphicon glyphicon-minus"></span></button></td></tr>';
|
|
||||||
$('#item_table').append(html);
|
//
|
||||||
});
|
$("#addmorebutton").click(function(){
|
||||||
$(document).on('click','.remove',function() {
|
|
||||||
//alert('removebtn');
|
if(counter>2){
|
||||||
$(this).closest('tr').remove();
|
alert(" constant counter 3 error msg ");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
|
counter++;
|
||||||
|
counterConstant++;
|
||||||
|
|
||||||
|
var div = document.createElement('div');
|
||||||
|
div.id = "divid"+counterConstant;
|
||||||
|
div.className="row";
|
||||||
|
div.innerHTML='<div class="col-md-12">'+
|
||||||
|
'<div class="col-md-3">'+
|
||||||
|
'<select name="Ddname['+counterConstant+']" id="mulfilename'+counterConstant+'" class="form-control" onchange="changeFunc(this.id);"><option value="default">Select ID Name</option><option value="pan">Pan Card</option><option value="aadhar">Aadhar Card</option><option value="voter">Voter ID Card</option></select>'+
|
||||||
|
'</div>'+
|
||||||
|
'<div class="col-md-6">'+
|
||||||
|
'<input type="file" name="browseFiles'+counterConstant+'" onchange="Copyfilename(this.name);"><br>'+
|
||||||
|
'</div>'+
|
||||||
|
'<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>'+
|
||||||
|
'</div>'+
|
||||||
|
'</div>';
|
||||||
|
$('#newdiv').append(div);
|
||||||
|
|
||||||
|
$('#hidecounter').val(counter);
|
||||||
|
$('#hideconstant').val(counterConstant);
|
||||||
|
|
||||||
|
$.each(temparray,function(t,temp){
|
||||||
|
$('#mulfilename'+(counterConstant)+' option[value='+temp+']').remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function removeRow(input) {
|
||||||
|
|
||||||
|
var number = input.replace(/[^0-9]+/ig,"");
|
||||||
|
|
||||||
|
if(counter >= 1){
|
||||||
|
counter--;
|
||||||
|
$("#divid"+number).remove();
|
||||||
|
$('#hidecounter').val(counter);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function changeFunc(input) {
|
||||||
|
alert("onchange function ");
|
||||||
|
|
||||||
|
var number = input.replace(/[^0-9]+/ig,"");
|
||||||
|
var ddvalue = $('#mulfilename'+number+' option:selected').val();
|
||||||
|
alert(ddvalue);
|
||||||
|
if(ddvalue != 'default'){ temparray.push(ddvalue); }
|
||||||
|
alert(temparray);
|
||||||
|
|
||||||
|
// $.each(temparray,function(t,temp){
|
||||||
|
// $('#mulfilename'+(counterConstant+1)+' option[value='+temp+']').remove();
|
||||||
|
// });
|
||||||
|
|
||||||
|
//var $list = $("#myList"),toRemove = $();
|
||||||
|
|
||||||
|
// for(var i = selectedItems.length; i--;) {
|
||||||
|
// toRemove = toRemove.add($list.find('option[value="' + selectedItems[i] + '"]'));
|
||||||
|
// }
|
||||||
|
// toRemove.remove();
|
||||||
|
|
||||||
|
//$('#mulfilename'+(number+1)+' option[value='+temp+']').prop('disabled',true);
|
||||||
|
// $('#mulfilename option:not(:first)').filter(function() {
|
||||||
|
// return $.inArray($.trim($(this).text()), types) == -1;
|
||||||
|
// }).remove();
|
||||||
|
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -356,9 +356,9 @@
|
|||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
<?php if($check2 == 1){break;} }?>
|
<?php if($check2 == 1){break;} }?>
|
||||||
<?php foreach($DepAccesslist as $dep){ $check1=0;
|
<?php foreach($DepAccesslist as $dep){ $check1=0; $check5=0;
|
||||||
$assd= $dep->AssDep;?>
|
$assd= $dep->AssDep;?>
|
||||||
<?php if($assd == FINANCE || $DEPCode == FINANCE){ $check2=1; ?>
|
<?php if($assd == FINANCE || $DEPCode == FINANCE){ $check5=1; ?>
|
||||||
|
|
||||||
<li><a href="<?php echo base_url(); ?>costListing" >
|
<li><a href="<?php echo base_url(); ?>costListing" >
|
||||||
<i class="fa fa-cart-plus"></i>
|
<i class="fa fa-cart-plus"></i>
|
||||||
@ -372,7 +372,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
<?php if($check2 == 1){break;} }?>
|
<?php if($check5 == 1){break;} }?>
|
||||||
<?php foreach($DepAccesslist as $dep){ $check1=0;
|
<?php foreach($DepAccesslist as $dep){ $check1=0;
|
||||||
$assd= $dep->AssDep;?>
|
$assd= $dep->AssDep;?>
|
||||||
<?php if($assd == HR || $assd == SYSTEM_ADMIN || $DEPCode == HR || $DEPCode == ADMIN || $assd == ADMIN){ $check2=1; ?>
|
<?php if($assd == HR || $assd == SYSTEM_ADMIN || $DEPCode == HR || $DEPCode == ADMIN || $assd == ADMIN){ $check2=1; ?>
|
||||||
|
|||||||
@ -686,11 +686,11 @@ function validate()
|
|||||||
swal('Please Add Line Item');
|
swal('Please Add Line Item');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(isExceed == 1)
|
// else if(isExceed == 1)
|
||||||
{
|
// {
|
||||||
swal('You dont have Budget and You cant Raise New Requisition');
|
// swal('You dont have Budget and You cant Raise New Requisition');
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
@ -733,11 +733,11 @@ function validateBeforeAdd()
|
|||||||
$("#CostCenter").focus();
|
$("#CostCenter").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if( isExceed == '1')
|
// else if( isExceed == '1')
|
||||||
{
|
// {
|
||||||
swal('You dont have available Budget Amount. You cant raise new Requisition');
|
// swal('You dont have available Budget Amount. You cant raise new Requisition');
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$('#myModal1').modal('show');
|
$('#myModal1').modal('show');
|
||||||
|
|||||||
0
uploads/images/avatar.png
Normal file → Executable file
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
0
uploads/images/avatar2.png
Normal file → Executable file
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
0
uploads/images/avatar3.png
Normal file → Executable file
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
0
uploads/images/avatar4.png
Normal file → Executable file
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
0
uploads/images/avatar5.png
Normal file → Executable file
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
0
uploads/images/user1-128x128.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
0
uploads/images/user2-160x160.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
0
uploads/images/user3-128x128.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
0
uploads/images/user4-128x128.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |