add and Edit employee added
This commit is contained in:
parent
b09634c86a
commit
7f48d01873
@ -16,11 +16,23 @@
|
|||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
$('#checksame').click(function(){
|
$('#checksame').click(function(){
|
||||||
|
if ($('#checksame').prop('checked'))
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
$('#permanentaddress').val($('#currentaddress').val());
|
$('#permanentaddress').val($('#currentaddress').val());
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$('#permanentaddress').val('');
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function blockKeyPress(evt)
|
function blockKeyPress(evt)
|
||||||
{
|
{
|
||||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||||
|
|||||||
@ -44,6 +44,10 @@ if(!empty($EmpDetails))
|
|||||||
$FatherName = $Emp->FatherName;
|
$FatherName = $Emp->FatherName;
|
||||||
$Gender = $Emp->Gender;
|
$Gender = $Emp->Gender;
|
||||||
$DateofBirth = $Emp->DateofBirth;
|
$DateofBirth = $Emp->DateofBirth;
|
||||||
|
$from = new DateTime($DateofBirth);
|
||||||
|
$to = new DateTime('today');
|
||||||
|
$Age = $from->diff($to)->y;
|
||||||
|
//echo $Age;
|
||||||
$ContactNumber = $Emp->ContactNumber;
|
$ContactNumber = $Emp->ContactNumber;
|
||||||
$EmailId = $Emp->EmailId;
|
$EmailId = $Emp->EmailId;
|
||||||
$BloodGroup = $Emp->BloodGroup;
|
$BloodGroup = $Emp->BloodGroup;
|
||||||
@ -97,7 +101,18 @@ if(!empty($EmpDetails))
|
|||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
$('#checksame').click(function(){
|
$('#checksame').click(function(){
|
||||||
|
if ($('#checksame').prop('checked'))
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
$('#permanentaddress').val($('#currentaddress').val());
|
$('#permanentaddress').val($('#currentaddress').val());
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$('#permanentaddress').val('');
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -430,7 +445,7 @@ function ValidatePassport()
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 pad">
|
<div class="col-md-6 pad">
|
||||||
<input type="text" name="age" placeholder="Age" id="age" class="form-control" readonly>
|
<input type="text" name="age" placeholder="Age" id="age" value="<?php echo $Age ; ?>" class="form-control" readonly>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 pad">
|
<div class="col-md-6 pad">
|
||||||
<input type="text" name="ContactNumber" value="<?php echo $ContactNumber ; ?>" onchange="getMobileValidation();" onkeypress="return event.charCode >= 48 && event.charCode <= 57" id="ContactNumber" required placeholder="Contact Number" maxlength="10" class="form-control">
|
<input type="text" name="ContactNumber" value="<?php echo $ContactNumber ; ?>" onchange="getMobileValidation();" onkeypress="return event.charCode >= 48 && event.charCode <= 57" id="ContactNumber" required placeholder="Contact Number" maxlength="10" class="form-control">
|
||||||
@ -615,16 +630,16 @@ function ValidatePassport()
|
|||||||
<!-- Text input-->
|
<!-- Text input-->
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-3"><span class="badge">*</span>
|
<div class="col-md-3">
|
||||||
<input type="text" id="accountno" onkeypress="return event.charCode >= 48 && event.charCode <= 57" maxlength="15" name="accountno" placeholder="Account Number" class="form-control" value="<?php echo $BankAccountNo ; ?>">
|
<input type="text" id="accountno" onkeypress="return event.charCode >= 48 && event.charCode <= 57" maxlength="15" name="accountno" placeholder="Account Number" class="form-control" value="<?php echo $BankAccountNo ; ?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3"><span class="badge">*</span>
|
<div class="col-md-3">
|
||||||
<input type="text" id="ifsccode" name="ifsccode" placeholder="IFSC Code" maxlength="10" class="form-control" value="<?php echo $IFSCCode ; ?>">
|
<input type="text" id="ifsccode" name="ifsccode" placeholder="IFSC Code" maxlength="10" class="form-control" value="<?php echo $IFSCCode ; ?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3"><span class="badge">*</span>
|
<div class="col-md-3">
|
||||||
<input type="text" id="bankbranchname" maxlength="200" name="bankbranchname" placeholder="Bank Branch Name" class="form-control" value="<?php echo $BankBranchName ; ?>">
|
<input type="text" id="bankbranchname" maxlength="200" name="bankbranchname" placeholder="Bank Branch Name" class="form-control" value="<?php echo $BankBranchName ; ?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3"><span class="badge">*</span>
|
<div class="col-md-3">
|
||||||
<input type="text" id="bankaddress" maxlength="200" name="bankaddress" placeholder="Bank Address" class="form-control" value="<?php echo $BankAddress ; ?>">
|
<input type="text" id="bankaddress" maxlength="200" name="bankaddress" placeholder="Bank Address" class="form-control" value="<?php echo $BankAddress ; ?>">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user