add and Edit employee added
This commit is contained in:
parent
b09634c86a
commit
7f48d01873
@ -16,11 +16,23 @@
|
||||
|
||||
$(function(){
|
||||
$('#checksame').click(function(){
|
||||
$('#permanentaddress').val($('#currentaddress').val());
|
||||
if ($('#checksame').prop('checked'))
|
||||
|
||||
{
|
||||
|
||||
$('#permanentaddress').val($('#currentaddress').val());
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#permanentaddress').val('');
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
function blockKeyPress(evt)
|
||||
{
|
||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||
|
||||
@ -44,6 +44,10 @@ if(!empty($EmpDetails))
|
||||
$FatherName = $Emp->FatherName;
|
||||
$Gender = $Emp->Gender;
|
||||
$DateofBirth = $Emp->DateofBirth;
|
||||
$from = new DateTime($DateofBirth);
|
||||
$to = new DateTime('today');
|
||||
$Age = $from->diff($to)->y;
|
||||
//echo $Age;
|
||||
$ContactNumber = $Emp->ContactNumber;
|
||||
$EmailId = $Emp->EmailId;
|
||||
$BloodGroup = $Emp->BloodGroup;
|
||||
@ -97,7 +101,18 @@ if(!empty($EmpDetails))
|
||||
|
||||
$(function(){
|
||||
$('#checksame').click(function(){
|
||||
$('#permanentaddress').val($('#currentaddress').val());
|
||||
if ($('#checksame').prop('checked'))
|
||||
|
||||
{
|
||||
|
||||
$('#permanentaddress').val($('#currentaddress').val());
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#permanentaddress').val('');
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@ -430,7 +445,7 @@ function ValidatePassport()
|
||||
</div>
|
||||
|
||||
<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 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">
|
||||
@ -615,16 +630,16 @@ function ValidatePassport()
|
||||
<!-- Text input-->
|
||||
|
||||
<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 ; ?>">
|
||||
</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 ; ?>">
|
||||
</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 ; ?>">
|
||||
</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 ; ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user