129 lines
4.6 KiB
PHP
Executable File
129 lines
4.6 KiB
PHP
Executable File
|
|
<?php ?>
|
|
<style type="text/css">
|
|
.num {
|
|
text-align: right;
|
|
}
|
|
</style>
|
|
|
|
<div class="content-page">
|
|
<div class="content">
|
|
<!-- Start Content-->
|
|
<div class="container-fluid">
|
|
<!-- start page title -->
|
|
<div>
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<div class="page-title-box page-title-box-alt">
|
|
<h4 class="page-title">Employee Monthly Payslip </h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="row">
|
|
<div class="col-md-2" style="padding: 10px;margin-left: 24px;">
|
|
<?php
|
|
$attributes = array('id' => 'paylist');
|
|
echo form_open('paysliplist', $attributes);
|
|
$today = date('m-Y');
|
|
$data = array('type' => 'text', 'name' => 'month', 'id' => 'month', 'value' => $today, 'class' => 'form-control select2', ' data-provide' => 'datepicker', 'data-date-format' => 'M-yyyy', 'data-date-min-view-mode' => '1');
|
|
echo form_input($data);
|
|
?>
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
<input id="changemonth" value="Change Month" class="btn btn-success" title='click here to view payslip Data'>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<table id="monthlylistingss" class="table dt-responsive nowrap w-100">
|
|
<thead>
|
|
|
|
<tr>
|
|
<th>Month Year</th>
|
|
<th>Employee Id</th>
|
|
<th>Employee Name</th>
|
|
<th>Paid Days</th>
|
|
<th>Salary in ₹</th>
|
|
<th>Company Contribution in ₹</th>
|
|
<th>Loan Recoverd in ₹</th>
|
|
<th>Loan Balance in ₹</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tbody">
|
|
<?php
|
|
if (!empty($PayInfo)) {
|
|
|
|
foreach ($PayInfo as $record) {
|
|
?>
|
|
<tr>
|
|
<td style="text-align:right;"><?php echo $record->PayOn ?></td>
|
|
<td><?php echo $record->EmpID ?></td>
|
|
<td><?php echo $record->FName . " " . $record->Lname ?></td>
|
|
<td style="text-align:right;"><?php echo ($record->NoofDaysWorked + $record->Paid_Leave) ?></td>
|
|
<td style="text-align:right;"><?php echo $record->LessAdvance ?></td>
|
|
<td style="text-align:right;"><?php echo $record->TotalCompCon ?></td>
|
|
<td style="text-align:right;"><?php if (is_numeric($record->Advance)) {
|
|
echo number_format($record->Advance, 2, '.', '');
|
|
} else {
|
|
echo $record->Advance;
|
|
} ?></td>
|
|
<td style="text-align:right;"><?php echo $record->BalanceAdvance ?></td>
|
|
<td>
|
|
<a href="<?php echo base_url() . 'payslip/editPayslip/' . $record->EmpID . '/' . $record->PayOn; ?>"><i class="btn btn-success">EDIT</i></a>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div> <!-- end card body-->
|
|
</div> <!-- end card -->
|
|
</div><!-- end col-->
|
|
</div>
|
|
</div>
|
|
</div> <!-- container -->
|
|
</div> <!-- content -->
|
|
</div>
|
|
|
|
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
|
|
// $("#month").datepicker({
|
|
// minViewMode: 1,
|
|
// format: 'mm-yyyy'
|
|
// });
|
|
|
|
var dropdown = "<?php echo $dropdownvalue; ?>";
|
|
$('#month').val(dropdown);
|
|
|
|
$('#monthlylistings').DataTable({
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"ordering": true,
|
|
"aaSorting": [
|
|
[0, "desc"]
|
|
],
|
|
"info": true,
|
|
"autoWidth": true
|
|
|
|
});
|
|
});
|
|
|
|
$('#changemonth').on("click", function() {
|
|
|
|
$("#paylist").attr("method", "post");
|
|
|
|
$("#paylist").attr("action", "<?php echo base_url() ?>payslip/reload_paysliplist");
|
|
|
|
$("#paylist").submit();
|
|
|
|
});
|
|
</script>
|