payslip UI design

This commit is contained in:
venbatechnologies@gmail.com 2017-09-12 13:08:04 +05:30
parent 9aeb0cf912
commit e94fca232a
15 changed files with 277 additions and 266 deletions

0
application/logs/log-2017-09-05.php Normal file → Executable file
View File

0
application/logs/log-2017-09-11.php Normal file → Executable file
View File

View File

@ -0,0 +1,6 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-09-12 09:32:30 --> Severity: Notice --> Undefined property: stdClass::$Loan_Balance /opt/lampp/htdocs/12sept222/siddharth_application/application/views/monthlyListing.php 84
ERROR - 2017-09-12 09:32:30 --> Severity: Notice --> Undefined property: stdClass::$Loan_Balance /opt/lampp/htdocs/12sept222/siddharth_application/application/views/monthlyListing.php 84
ERROR - 2017-09-12 09:32:30 --> Severity: Notice --> Undefined property: stdClass::$Loan_Balance /opt/lampp/htdocs/12sept222/siddharth_application/application/views/monthlyListing.php 84
ERROR - 2017-09-12 09:32:30 --> Severity: Notice --> Undefined property: stdClass::$Loan_Balance /opt/lampp/htdocs/12sept222/siddharth_application/application/views/monthlyListing.php 84

View File

@ -17,7 +17,11 @@ $("#due_started").datepicker({
</script>
<style type="text/css">
.num {
text-align:right;
}
</style>
<div class="content-wrapper">
@ -31,7 +35,7 @@ $("#due_started").datepicker({
<section class="content">
<div style="text-align:right;">
<a href="<?php echo base_url() ?>emppayListings" class="btn btn-info" value="Back"/>Back</a>
<a href="<?php echo base_url() ?>emppayListings" class="btn btn-primary" value="Back"/>Back</a>
</div>
<br>
<div class="row">
@ -68,9 +72,9 @@ $("#due_started").datepicker({
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<label for="EmpID">Employee ID</label><font color="Red">*</font>
<span for="EmpID">Employee ID</span><font color="Red">*</font>
<div class="form-group">
<?php
@ -94,25 +98,38 @@ $("#due_started").datepicker({
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<label for="Basic_Pay">Total Salary</label><font color="Red">*</font>
<span for="Basic_Pay">Total Salary</span><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'Total_salary','id' => 'Total_salary','value' => set_value('Total_salary'),'pattern' => '([0-9]{1,8}([.][0-9]{1,2})?)', 'class' => 'form-control', 'style'=>'text-transform:uppercase;','title' => 'Enter Valid Total salary Amount,Minimum Four Digit Positive Number','onchange'=>'calculalteHRA();');
$data = array('name' => 'Total_salary','id' => 'Total_salary','value' => set_value('Total_salary'),'pattern' => '([0-9]{1,8}([.][0-9]{1,2})?)', 'class' => 'form-control num', 'style'=>'text-transform:uppercase;','title' => 'Enter Valid Total salary Amount,Minimum Four Digit Positive Number','onchange'=>'calculalteHRA();');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<label for="Basic_Pay">Basic Pay</label><font color="Red">*</font>
<span for="Basic_Pay">Basic Pay</span><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'Basic_Pay','id' => 'Basic_Pay','value' => set_value('Basic_Pay'),'pattern' => '[0-9]{4,6}', 'class' => 'form-control', 'style'=>'text-transform:uppercase;','title' => 'Enter Valid Basic Pay Amount,Minimum Four Digit Positive Number','readonly'=>'readonly');
$data = array('name' => 'Basic_Pay','id' => 'Basic_Pay','value' => set_value('Basic_Pay'),'pattern' => '[0-9]{4,6}', 'class' => 'form-control num', 'style'=>'text-transform:uppercase;','title' => 'Enter Valid Basic Pay Amount,Minimum Four Digit Positive Number','readonly'=>'readonly');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<span for="HRA_Rate">HRA Rate(%)</span><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'HRA_Rate','id'=>'HRA_Rate','value' => set_value('HRA_Rate'), 'class' => 'form-control num','style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,2}([.][0-9]{1,2})?)', 'title'=>'Enter the Valid HRA Rate,Minimum 1 digit,Maximum 2 digit','onfocusout'=>'validateHRA();','onchange'=>'calculalteHRA();');
echo form_input($data);
?>
</div>
@ -120,111 +137,90 @@ $("#due_started").datepicker({
</div>
</div><!--row completed div-->
</div><!--row completed div-->
<div class="row">
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<label for="HRA_Rate">HRA Rate(%)</label><font color="Red">*</font>
<span for="HRA_Rate">HRA Amount</span><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'HRA_Rate','id'=>'HRA_Rate','value' => set_value('HRA_Rate'), 'class' => 'form-control','style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,2}([.][0-9]{1,2})?)', 'title'=>'Enter the Valid HRA Rate,Minimum 1 digit,Maximum 2 digit','onfocusout'=>'validateHRA();','onchange'=>'calculalteHRA();');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="HRA_Rate">HRA Amount</label><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'HRA_Amount','id'=>'HRA_Amount','value' => set_value('HRA_Amount'), 'class' => 'form-control','style'=>'text-transform:uppercase;','readonly'=>'readonly');
$data = array('name' => 'HRA_Amount','id'=>'HRA_Amount','value' => set_value('HRA_Amount'), 'class' => 'form-control num','style'=>'text-transform:uppercase;','readonly'=>'readonly');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<label for="OT_Rate">OT Rate(Per Hour)</label><font color="Red">*</font>
<span for="OT_Rate">OT Rate(Per Hour)</span><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'OT_Rate','value' => set_value('OT_Rate'), 'class' => 'form-control' ,'style'=>'text-transform:uppercase;','pattern="([0-9]{1,3}([.][0-9]{1,2})?' ,'title'=>'Enter the Valid OT Rate, Minimum 1 digit, Maximum 2 digit');
$data = array('name' => 'OT_Rate','value' => set_value('OT_Rate'), 'class' => 'form-control num' ,'style'=>'text-transform:uppercase;','pattern="([0-9]{1,3}([.][0-9]{1,2})?' ,'title'=>'Enter the Valid OT Rate, Minimum 1 digit, Maximum 2 digit');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<span for="Allowances">Allowances</span><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'Allowances','value' => set_value('Allowances'), 'class' => 'form-control num' ,'style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,5}([.][0-9]{1,2})?)','title'=>'Enter the Valid Allowances,Minimum 1 digit , Maximum 5 digit ');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<span for="PF_Rate">PF Rate(%)</span><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'PF_Rate','value' => set_value('PF_Rate'),'class' => 'form-control num' ,'style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,2}([.][0-9]{1,2})?)', 'title'=>'Enter the valid PF Rate,Minimum 1 digit,Maximum 2 digit');
echo form_input($data);
?>
</div>
</div>
</div>
</div><!--row completed div-->
</div><!--row completed div-->
<div class="row">
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<label for="Allowances">Allowances</label><font color="Red">*</font>
<span for="ESI_Rate">ESI Rate(%)</span><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'Allowances','value' => set_value('Allowances'), 'class' => 'form-control' ,'style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,5}([.][0-9]{1,2})?)','title'=>'Enter the Valid Allowances,Minimum 1 digit , Maximum 5 digit ');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="PF_Rate">PF Rate(%)</label><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'PF_Rate','value' => set_value('PF_Rate'),'class' => 'form-control' ,'style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,2}([.][0-9]{1,2})?)', 'title'=>'Enter the valid PF Rate,Minimum 1 digit,Maximum 2 digit');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="ESI_Rate">ESI Rate(%)</label><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'ESI_Rate','value' => set_value('ESI_Rate'), 'class' => 'form-control' ,'style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,2}([.][0-9]{1,2})?)','title'=>'Enter the Valid ESI Rate,Minimum 1 digit,Maximum 2 digit');
$data = array('name' => 'ESI_Rate','value' => set_value('ESI_Rate'), 'class' => 'form-control num' ,'style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,2}([.][0-9]{1,2})?)','title'=>'Enter the Valid ESI Rate,Minimum 1 digit,Maximum 2 digit');
echo form_input($data);
?>
</div>
</div>
</div>
<!--for food allowances-->
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<label for="Food_Allowances">Food Allowances(Per Day)</label><font color="Red">*</font>
<span for="Food_Allowances">Food Allowances(Per Day)</span><font color="Red">*</font>
<div class="form-group">
<?php
$data = array('name' => 'Food_Allowances','value' => set_value('Food_Allowances'), 'class' => 'form-control','pattern'=>'([0-9]{1,3}([.][0-9]{1,2})?)','onfocusout'=>'validateFood();', 'title'=>'Enter the Valid Food Allowances,Minimun 1 Digit,Maximum 4 Digit');
$data = array('name' => 'Food_Allowances','value' => set_value('Food_Allowances'), 'class' => 'form-control num','pattern'=>'([0-9]{1,3}([.][0-9]{1,2})?)','onfocusout'=>'validateFood();', 'title'=>'Enter the Valid Food Allowances,Minimun 1 Digit,Maximum 4 Digit');
echo form_input($data);
?>
</div>
@ -245,7 +241,7 @@ $("#due_started").datepicker({
<span for="Pay_Data_ID">Loan Amount</span>
<input type="text" class="form-control" id="Loan_Amount" name="Loan_Amount" value="0.00" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" onchange="duecalculation();">
<input type="text" class="form-control num" id="Loan_Amount" name="Loan_Amount" value="0.00" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" onchange="duecalculation();">
</div>
</div>
</div>
@ -257,7 +253,7 @@ $("#due_started").datepicker({
<div class="form-group">
<div class="form-group">
<span for="EmpID">Loan Issue(d) Date</span>
<input type="text" class="form-control" id="loan_issued_date" name="loan_issued_date" value="" onchange="dateCalulation();">
<input type="text" class="form-control num" id="loan_issued_date" name="loan_issued_date" value="" onchange="dateCalulation();">
</div>
</div>
</div>
@ -267,7 +263,7 @@ $("#due_started").datepicker({
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Monthly Due</span>
<input type="text" value="0.00" class="form-control" id="monthly_due" name="monthly_due" value="" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 6 Digit" onchange="duecalculation();">
<input type="text" value="0.00" class="form-control num" id="monthly_due" name="monthly_due" value="" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 6 Digit" onchange="duecalculation();">
</div>
</div>
</div>
@ -275,7 +271,7 @@ $("#due_started").datepicker({
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Due Started</span>
<input type="text" class="form-control requried" id="due_started" name="due_started" value="" onchange="dateCalulation();">
<input type="text" class="form-control requried num" id="due_started" name="due_started" value="" onchange="dateCalulation();">
</div>
</div>
</div>
@ -283,7 +279,7 @@ $("#due_started").datepicker({
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">No Of Due(s)</span>
<input type="text" value="0" class="form-control requried" id="no_of_due" name="no_of_due" value="" pattern="[0-9]{1,2}" title="Minimum 1 digit,Maximum 2 Digit" readonly>
<input type="text" value="0" class="form-control requried num" id="no_of_due" name="no_of_due" value="" pattern="[0-9]{1,2}" title="Minimum 1 digit,Maximum 2 Digit" readonly>
</div>
</div>
</div>
@ -291,7 +287,7 @@ $("#due_started").datepicker({
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Paid Amount</span>
<input type="text" value="0.00" class="form-control requried" id="Paid_Amount" name="Paid_Amount" value="0" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit" readonly>
<input type="text" value="0.00" class="form-control requried num" id="Paid_Amount" name="Paid_Amount" value="0" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit" readonly>
</div>
</div>
</div>
@ -299,8 +295,8 @@ $("#due_started").datepicker({
<input type="hidden" id="paid_due" name="paid_due" value="0">
</div>
<div class="box-footer" style="text-align:right">
<input type="submit" class="btn btn-info" value="Submit" onmouseover="finalCheck();"/>
<input type="reset" class="btn btn-info" value="Reset" />
<input type="submit" class="btn btn-primary" value="Submit" onmouseover="finalCheck();"/>
<input type="reset" class="btn btn-primary" value="Reset" />
</div>

View File

@ -121,6 +121,11 @@ if(!empty($emppay))
?>
<style type="text/css">
.num {
text-align:right;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
@ -134,7 +139,7 @@ if(!empty($emppay))
<section class="content">
<div style="text-align:right;">
<a href="<?php echo base_url() ?>emppayListings" class="btn btn-info" value="Back">Back</a>
<a href="<?php echo base_url() ?>emppayListings" class="btn btn-primary" value="Back">Back</a>
</div>
<br/>
<div class="row">
@ -166,7 +171,7 @@ if(!empty($emppay))
<input type="hidden" readonly id="Pay_Data_ID" name="Pay_Data_ID" value="<?php echo $Pay_Data_ID; ?>">
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="EmpID">Employee ID</span>
@ -175,7 +180,7 @@ if(!empty($emppay))
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for ="Food_Allowances">Employee Name</span>
@ -184,57 +189,61 @@ if(!empty($emppay))
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Total Salary</span><font color="Red">*</font>
<input type="text" class="form-control requried" id="Total_Salary" name="Total_Salary" value="<?php echo number_format($TotalSalary,0,'',''); ?>" pattern="([0-9]{1,8}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" onchange="calculateBasic();">
<input type="text" class="form-control requried num" id="Total_Salary" name="Total_Salary" value="<?php echo number_format($TotalSalary,0,'',''); ?>" pattern="([0-9]{1,8}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" onchange="calculateBasic();">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Basic Pay</span><font color="Red">*</font>
<input type="text" class="form-control requried" id="Basic_Pay" name="Basic_Pay" value="<?php echo $Basic_Pay; ?>" readonly>
<input type="text" class="form-control requried num" id="Basic_Pay" name="Basic_Pay" value="<?php echo $Basic_Pay; ?>" readonly>
</div>
</div>
</div>
<div class="col-md-4">
</div>
<div class="row">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="HRA_Rate">HRA_Rate(%)</span><font color="Red">*</font>
<input type="text" class="form-control required" id="HRA_Rate" name="HRA_Rate" value="<?php echo $HRA_Rate; ?>" pattern="([0-9]{1,2}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit" onchange="calculateBasic();">
<input type="text" class="form-control required num" id="HRA_Rate" name="HRA_Rate" value="<?php echo $HRA_Rate; ?>" pattern="([0-9]{1,2}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit" onchange="calculateBasic();">
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="HRA_Rate">HRA_Amount</span><font color="Red">*</font>
<input type="text" class="form-control required" id="HRA_Amount" name="HRA_Amount" value="<?php echo number_format($HRA_Amount,0,'',''); ?>" readonly>
<input type="text" class="form-control required num" id="HRA_Amount" name="HRA_Amount" value="<?php echo number_format($HRA_Amount,0,'',''); ?>" readonly>
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="OT_Rate">OT_Rate(Per Hour)</span><font color="Red">*</font>
<input type="text" class="form-control required num" id="OT_Rate" name="OT_Rate" value="<?php echo $OT_Rate; ?>" pattern="([0-9]{1,3}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 4 Digit">
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Allowances">Allowances</span><font color="Red">*</font>
<input type="text" class="form-control required num" id="Allowances" name="Allowances" value="<?php echo $Allowances; ?>" pattern="([0-9]{1,5}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 4 Digit">
</div>
</div>
</div>
</div>
@ -244,56 +253,34 @@ if(!empty($emppay))
<div class="col-md-4">
<div class="form-group">
<div class="form-group">
<span for="OT_Rate">OT_Rate(Per Hour)</span><font color="Red">*</font>
<input type="text" class="form-control required" id="OT_Rate" name="OT_Rate" value="<?php echo $OT_Rate; ?>" pattern="([0-9]{1,3}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 4 Digit">
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-group">
<span for="Allowances">Allowances</span><font color="Red">*</font>
<input type="text" class="form-control required" id="Allowances" name="Allowances" value="<?php echo $Allowances; ?>" pattern="([0-9]{1,5}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 4 Digit">
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="PF_Rate">PF_Rate(%)</span><font color="Red">*</font>
<input type="text" class="form-control required" id="PF_Rate" name="PF_Rate" value="<?php echo $PF_Rate; ?>" pattern="([0-9]{1,2}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit">
<input type="text" class="form-control required num" id="PF_Rate" name="PF_Rate" value="<?php echo $PF_Rate; ?>" pattern="([0-9]{1,2}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="ESI_Rate">ESI_Rate(%)</span><font color="Red">*</font>
<input type="text" class="form-control required" id="ESI_Rate" name="ESI_Rate" value="<?php echo $ESI_Rate; ?>" pattern="([0-9]{1,2}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit">
<input type="text" class="form-control required num" id="ESI_Rate" name="ESI_Rate" value="<?php echo $ESI_Rate; ?>" pattern="([0-9]{1,2}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit">
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for ="Food_Allowances">Food Allowances(Per Day)</span><font color="Red">*</font>
<input type="text" class="form-control required" id="Food_Allowances" name="Food_Allowances" value="<?php echo $Food_Allowances; ?>" pattern="([0-9]{1,3}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 3 Digit">
<input type="text" class="form-control required num" id="Food_Allowances" name="Food_Allowances" value="<?php echo $Food_Allowances; ?>" pattern="([0-9]{1,3}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 3 Digit">
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<legend>Loan Details</legend>
</div>
@ -306,7 +293,7 @@ if(!empty($emppay))
<span for="Pay_Data_ID">Loan Amount</span>
<input type="text" class="form-control" id="Loan_Amount" name="Loan_Amount" value="<?php echo $Loan_Amount; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" onchange="duecalculation();">
<input type="text" class="form-control num" id="Loan_Amount" name="Loan_Amount" value="<?php echo $Loan_Amount; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" onchange="duecalculation();">
</div>
</div>
</div>
@ -318,7 +305,7 @@ if(!empty($emppay))
<div class="form-group">
<div class="form-group">
<span for="EmpID">Loan Issue(d) Date</span>
<input type="text" class="form-control" id="loan_issued_date" name="loan_issued_date" value="<?php echo $Loan_issued_date;?>" onchange="dateCalulation();">
<input type="text" class="form-control num" id="loan_issued_date" name="loan_issued_date" value="<?php echo $Loan_issued_date;?>" onchange="dateCalulation();">
</div>
</div>
</div>
@ -328,7 +315,7 @@ if(!empty($emppay))
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Monthly Due</span>
<input type="text" class="form-control requried" id="monthly_due" name="monthly_due" value="<?php echo $Monthly_due; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" onchange="duecalculation();">
<input type="text" class="form-control requried num" id="monthly_due" name="monthly_due" value="<?php echo $Monthly_due; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 4 digit,Maximum 6 Digit" onchange="duecalculation();">
</div>
</div>
</div>
@ -336,7 +323,7 @@ if(!empty($emppay))
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Due Started</span>
<input type="text" class="form-control requried" id="due_started" name="due_started" value="<?php echo $Due_start_date; ?>" onchange="dateCalulation();">
<input type="text" class="form-control requried num" id="due_started" name="due_started" value="<?php echo $Due_start_date; ?>" onchange="dateCalulation();">
</div>
</div>
</div>
@ -344,7 +331,7 @@ if(!empty($emppay))
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">No Of Due(s)</span>
<input type="text" class="form-control requried" id="no_of_due" name="no_of_due" value="<?php echo $No_of_dues; ?>" pattern="[0-9]{1,2}" title="Minimum 1 digit,Maximum 2 Digit" readonly>
<input type="text" class="form-control requried num" id="no_of_due" name="no_of_due" value="<?php echo $No_of_dues; ?>" pattern="[0-9]{1,2}" title="Minimum 1 digit,Maximum 2 Digit" readonly>
</div>
</div>
</div>
@ -353,7 +340,7 @@ if(!empty($emppay))
<div class="form-group">
<div class="form-group">
<span for="Basic_Pay">Paid Amount</span>
<input type="text" class="form-control requried" id="Paid_Amount" name="Paid_Amount" value="<?php echo $Paid_Amount; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit" readonly>
<input type="text" class="form-control requried num" id="Paid_Amount" name="Paid_Amount" value="<?php echo $Paid_Amount; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit" readonly>
</div>
</div>
</div>
@ -416,8 +403,8 @@ if(!empty($emppay))
<div id="content">
<div class="box-footer" style="text-align:right">
<input type="submit" class="btn btn-info" value="Submit" onmouseover="finalCheck();"/>
<input type="reset" class="btn btn-info" value="Reset" />
<input type="submit" class="btn btn-primary" value="Submit" onmouseover="finalCheck();"/>
<input type="reset" class="btn btn-primary" value="Reset" />
</div>
</div>

View File

@ -155,6 +155,11 @@ function validateLOP(){
// }
</script>
<style type="text/css">
.num {
text-align:right;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
@ -168,7 +173,7 @@ function validateLOP(){
<section class="content">
<div style="text-align:right;">
<a href="<?php echo base_url() ?>monthlyListings" class="btn btn-info" value="Back">Back</a>
<a href="<?php echo base_url() ?>monthlyListings" class="btn btn-primary" value="Back">Back</a>
</div>
<br/>
<div class="row">
@ -182,65 +187,73 @@ function validateLOP(){
<form role="form" id="edit" action="<?php echo base_url() ?>monthlypay/editmonthly" method="post">
<div class="box-body">
<div class="row">
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="month_year">Month Year:</span>
<span for="month_year">Month Year</span>
<input type="text" class="form-control" readonly id="MonthYear" name="Month_Year" value="<?php echo $Month_Year;?>">
<input type="text" class="form-control num" readonly id="MonthYear" name="Month_Year" value="<?php echo $Month_Year;?>">
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="EmpID">Employee ID:</span>
<span for="EmpID">Employee ID</span>
<input type="text" class="form-control" readonly id="EmployeeID" name="EmpID" value="<?php echo $EmpID; ?>">
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="EmpID">Employee Name:</span>
<span for="EmpID">Employee Name</span>
<input type="text" class="form-control" readonly id="EmployeeName" name="EmployeeName" value="<?php echo $Empname; ?>" readonly>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="LOP_Days">LOP Days:</span>
<input type="text" class="form-control requried" id="LOPDays" onfocusout="validateLOP();" title="lopdays" name="LOP_Days" pattern="[0-9]{1,2}([.][0-9]{1,2})?" value="<?php echo $LOP_Days; ?>">
<span for="LOP_Days">LOP Days</span>
<input type="text" class="form-control num requried" id="LOPDays" onfocusout="validateLOP();" title="lopdays" name="LOP_Days" pattern="[0-9]{1,2}([.][0-9]{1,2})?" value="<?php echo $LOP_Days; ?>">
</div>
</div>
</div>
<div class="col-md-4">
</div>
<div class="row">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="OT_Hrs_Worked">OverTime Hours Worked:</span>
<input type="text" class="form-control required" id="OT_Hrs_Worked" name="OT_Hrs_Worked" pattern="[0-9]{1,3}([.][0-9]{1,2})?" value="<?php echo $OT_Hrs_Worked; ?>">
<span for="OT_Hrs_Worked">OverTime Hours Worked</span>
<input type="text" class="form-control required num" id="OT_Hrs_Worked" name="OT_Hrs_Worked" pattern="[0-9]{1,3}([.][0-9]{1,2})?" value="<?php echo $OT_Hrs_Worked; ?>">
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Loan_Recovered">Loan Recovered:</span>
<input type="text" class="form-control required" id="Loan_Recovered" name="Loan_Recovered" value="<?php echo $Loan_Recovered; ?>"> <!-- pattern="[0-9]{1,7}([.][0-9]{1,2})?"-->
<span for="Loan_Recovered">Loan Recovered</span>
<input type="text" class="form-control required num" id="Loan_Recovered" name="Loan_Recovered" value="<?php echo $Loan_Recovered; ?>"> <!-- pattern="[0-9]{1,7}([.][0-9]{1,2})?"-->
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Incentives">Incentives</span>
<input type="text" class="form-control required num" id="Incentives" name="Incentives" pattern="[0-9]{1,7}([.][0-9]{1,2})?" value="<?php echo $Incentives; ?>">
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<div class="form-group">
<span for="Other_Deductions">Other Deductions</span>
<input type="text" class="form-control required num" id="Other_Deductions" name="Other_Deductions" pattern="[0-9]{1,6}([.][0-9]{1,2})?" value="<?php echo $Other_Deductions; ?>">
</div>
</div>
</div>
@ -253,22 +266,7 @@ function validateLOP(){
<div class="row">
<div class="col-md-4">
<div class="form-group">
<div class="form-group">
<span for="Incentives">Incentives:</span>
<input type="text" class="form-control required" id="Incentives" name="Incentives" pattern="[0-9]{1,7}([.][0-9]{1,2})?" value="<?php echo $Incentives; ?>">
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-group">
<span for="Other_Deductions">Other Deductions:</span>
<input type="text" class="form-control required" id="Other_Deductions" name="Other_Deductions" pattern="[0-9]{1,6}([.][0-9]{1,2})?" value="<?php echo $Other_Deductions; ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
@ -314,8 +312,8 @@ function validateLOP(){
</div>
<div id="content">
<div class="box-footer" style="text-align:right">
<input type="submit" class="btn btn-info" value="Submit" onclick="validateAll();"/>
<input type="reset" class="btn btn-info" value="Reset" />
<input type="submit" class="btn btn-primary" value="Submit" onclick="validateAll();"/>
<input type="reset" class="btn btn-primary" value="Reset" />
</div>
</div>

0
application/views/editdepartment.php Normal file → Executable file
View File

View File

@ -20,7 +20,7 @@
<div class="box">
<div class="box-header">
<div class="box-tools">
<!-- <div class="box-tools">
<form action="<?php echo base_url() ?>emppaydate/emppayListing" method="POST" id="searchList">
<div class="input-group">
<input type="text" name="searchText" value="<?php echo $searchText; ?>" class="form-control input-sm pull-right" style="width: 150px;" placeholder="Search"/>
@ -29,27 +29,26 @@
</div>
</div>
</form>
</div>
</div> -->
</div><!-- /.box-header -->
<div class="box-body table-responsive no-padding" >
<table id="datatable" class="table table-hover tableSorter" >
<tr bgcolor="steelblue">
<th>Employee ID</th>
<th>Employee Name</th>
<th>Total Salary in </th>
<th>Basic Pay in </th>
<th>HRA Rate in %</th>
<th>HRA Amount in </th>
<th>OT Rate in </th>
<th>Allowances in </th>
<th>PF Ratein %</th>
<th>ESI Rate in %</th>
<th>Food Allowances in </th>
<th>Action</th>
<div class="box-body">
<table id="datatable" class="table table-bordered table-hover" style="font-size:12px;text-align: right;">
<thead>
<tr style="background-color:#ddf">
<th width="7%">Emp ID</th>
<th width="8%">Emp Name</th>
<th width="8%"> Total Sal in </th>
<th width="8%">Basic Pay in </th>
<th width="8%">HRA Rate in %</th>
<th width="8%">HRA Amt in </th>
<th width="8%">OT Rate in </th>
<th width="9%">Allowances in </th>
<th width="8%">PF Ratein %</th>
<th width="8%">ESI Rate in %</th>
<th width="8%">Food Allow in </th>
<th width="7%">Action</th>
</tr>
</thead>
<?php
@ -59,28 +58,19 @@
{
?>
<tr>
<td><?php echo $record->EmpID ?></td>
<td><?php echo $record->FirstName ." ". $record->LastName?></td>
<td><?php echo $record->TotalSalary; ?></td>
<td style="text-align: left;"><?php echo $record->EmpID ?></td>
<td style="text-align: left;"><?php echo $record->FirstName ." ". $record->LastName?></td>
<td><?php echo $record->TotalSalary; ?></td>
<td><?php echo $record->Basic_Pay ?></td>
<td><?php echo $record->HRA_Rate ?></td>
<td><?php echo $record->HRA_Amount; ?></td>
<td><?php echo $record->HRA_Amount; ?></td>
<td><?php echo $record->OT_Rate ?></td>
<td><?php echo $record->Allowances ?></td>
<td><?php echo $record->PF_Rate ?></td>
<td><?php echo $record->ESI_Rate ?></td>
<td><?php echo $record->Food_Allowances ?></td>
<td>
<a href="<?php echo base_url().'emppaydate/editOldemppay/'.$record->Pay_Data_ID; ?>"><i class="btn btn-info">EDIT</i></a>
<td><?php echo $record->Food_Allowances ?></td>
<td>
<a href="<?php echo base_url().'emppaydate/editOldemppay/'.$record->Pay_Data_ID; ?>"><i class="btn btn-primary">EDIT</i></a>
</td>
</tr>
<?php
@ -90,9 +80,9 @@
</table>
</div><!-- /.box-body -->
<div class="box-footer clearfix">
<!-- <div class="box-footer clearfix">
<?php echo $this->pagination->create_links(); ?>
</div>
</div> -->
</div><!-- /.box -->
</div>
</div>
@ -100,13 +90,26 @@
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('ul.pagination li a').click(function (e) {
e.preventDefault();
var link = jQuery(this).get(0).href;
var value = link.substring(link.lastIndexOf('/') + 1);
jQuery("#searchList").attr("action", baseURL + "emppayListings/" + value);
jQuery("#searchList").submit();
});
});
// jQuery(document).ready(function(){
// jQuery('ul.pagination li a').click(function (e) {
// e.preventDefault();
// var link = jQuery(this).get(0).href;
// var value = link.substring(link.lastIndexOf('/') + 1);
// jQuery("#searchList").attr("action", baseURL + "emppayListings/" + value);
// jQuery("#searchList").submit();
// });
// });
$(function () {
$('#datatable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"aaSorting": [[ 0, "desc" ]],
"info": true,
"autoWidth": true
});
});
</script>

View File

@ -1,5 +1,5 @@
<script>
<!-- <script>
$(document).ready(function() {
$('table').tableSort( {
@ -8,7 +8,12 @@ speed:500
} );
});
</script>
</script> -->
<style type="text/css">
.num {
text-align:right;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
@ -33,20 +38,21 @@ speed:500
<div class="box-tools">
<!-- <form action="<?php echo base_url() ?>assetListing" method="POST" id="searchList">-->
<form action="<?php echo base_url() ?>monthlypay/monthlyListing" method="POST" id="searchList">
<div class="input-group">
<!-- <div class="input-group">
<input type="text" name="searchText" value="<?php echo $searchText; ?>" class="form-control input-sm pull-right" style="width: 150px;" placeholder="Search"/>
<div class="input-group-btn">
<button class="btn btn-sm btn-default searchList"><i class="fa fa-search"></i></button>
</div>
</div>
</div> -->
</form>
</div><!--</h3></center>-->
</div><!-- /.box-header -->
<div class="box-body table-responsive no-padding tableSorter">
<table class="table table-hover">
<tr bgcolor="steelblue">
<div class="box-body">
<table id="monthlylistings" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>Month Year</th>
<th>Employee Id</th>
<th>Employee Name</th>
@ -58,6 +64,7 @@ speed:500
<th>Other Deductions in </th>
<th>Action</th>
</tr>
</thead>
<?php
@ -68,23 +75,24 @@ speed:500
?>
<tr>
<td><?php echo $record->Month_Year ?></td>
<td style="text-align:right;"><?php echo $record->Month_Year ?></td>
<td><?php echo $record->EmpID ?></td>
<td><?php echo $record->FirstName ." ". $record->LastName ?></td>
<td><?php echo $record->LOP_Days ?></td>
<td><?php echo $record->OT_Hrs_Worked ?></td>
<td><?php if(is_numeric($record->Loan_Recovered)){echo number_format($record->Loan_Recovered,2,'.','');}else {echo $record->Loan_Recovered;} ?></td>
<td style="text-align:right;"><?php echo $record->LOP_Days ?></td>
<td style="text-align:right;"><?php echo $record->OT_Hrs_Worked ?></td>
<td style="text-align:right;"><?php if(is_numeric($record->Loan_Recovered)){echo number_format($record->Loan_Recovered,2,'.','');}else {echo $record->Loan_Recovered;} ?></td>
<!-- <td><?php echo $record->Loan_Balance ?></td> -->
<td><?php echo $record->Incentives ?></td>
<td><?php echo $record->Other_Deductions ?></td>
<td style="text-align:right;"><?php echo $record->Incentives ?></td>
<td style="text-align:right;"><?php echo $record->Other_Deductions ?></td>
<td>
<a href="<?php echo base_url().'monthlypay/editOldmonthly/'.$record->EmpID.'/'.$record->Month_Year;?>"><i class="btn btn-info">EDIT</i></a>
<a href="<?php echo base_url().'monthlypay/editOldmonthly/'.$record->EmpID.'/'.$record->Month_Year;?>"><i class="btn btn-primary">EDIT</i></a>
</td>
</tr>
<?php
}
}
@ -92,9 +100,9 @@ speed:500
</table>
</div><!-- /.box-body -->
<div class="box-footer clearfix">
<!-- <div class="box-footer clearfix">
<?php echo $this->pagination->create_links(); ?>
</div>
</div> -->
</div><!-- /.box -->
</div>
</div>
@ -102,13 +110,26 @@ speed:500
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('ul.pagination li a').click(function (e) {
e.preventDefault();
var link = jQuery(this).get(0).href;
var value = link.substring(link.lastIndexOf('/') + 1);
jQuery("#searchList").attr("action", baseURL + "monthlyListings/" + value);
jQuery("#searchList").submit();
});
});
// jQuery(document).ready(function(){
// jQuery('ul.pagination li a').click(function (e) {
// e.preventDefault();
// var link = jQuery(this).get(0).href;
// var value = link.substring(link.lastIndexOf('/') + 1);
// jQuery("#searchList").attr("action", baseURL + "monthlyListings/" + value);
// jQuery("#searchList").submit();
// });
// });
$(function () {
$('#monthlylistings').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"aaSorting": [[ 0, "desc" ]],
"info": true,
"autoWidth": true
});
});
</script>

0
uploads/images/Aadhar.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

0
uploads/images/Aadhar1.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

0
uploads/images/documents.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

0
uploads/images/images.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
uploads/images/photo.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
uploads/images/photo1.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB