118 lines
3.5 KiB
PHP
118 lines
3.5 KiB
PHP
|
|
|
|
|
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
|
<style>
|
|
|
|
.dataTables_filter {
|
|
width: 50%;
|
|
float: right;
|
|
text-align: right;
|
|
}
|
|
.dataTables_paginate {
|
|
width: 50%;
|
|
float: right;
|
|
text-align: right;
|
|
}
|
|
div.dt-buttons {
|
|
position: relative;
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
<div class="content-wrapper">
|
|
<div class="col-md-8 col-md-offset-2">
|
|
<div id="panel-quick-actions" class="panel panel-default quick-actions">
|
|
<div class="panel-heading">
|
|
<center><b>Yearly Payments</b></center>
|
|
</div>
|
|
<div class="btn-group btn-group-justified no-margin">
|
|
|
|
<div>
|
|
<table class="table table-bordered table-hover" id="req" style="font-size:13px;">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
<th>Account Code</th>
|
|
<!--<th>month</th>-->
|
|
<!--<th>Paid To</th>-->
|
|
<th>Paid Type</th>
|
|
<th>Amount</th>
|
|
|
|
<!--<th>Description</th>-->
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if(!empty($yearmonthwise)){
|
|
foreach($yearmonthwise as $ym)
|
|
{
|
|
?>
|
|
<tr>
|
|
|
|
<td><span><?php echo $ym->date?></span></td>
|
|
<!--<td align="right"><span><a href="<?= base_url() ?>report/yearmonthwise"><?php echo $ym->month?></a></span></td>-->
|
|
<td align="left"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $ym->account_code;?>"><span><?php echo $ym->account_code?></span></a></td>
|
|
<!--<td align="right"><span><?php echo $ym->towhom?></span></td>-->
|
|
<td align="left"><span><?php echo $ym->type?></span></td>
|
|
<td align="right"><span><?php echo $ym->total?></span></td>
|
|
|
|
<!--<td align="right"><span><?php echo $ym->description?></span></td>-->
|
|
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
}
|
|
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
|
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
|
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
|
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
|
|
|
<script>
|
|
|
|
|
|
// Bootstrap datepicker
|
|
// Set up your table
|
|
$(document).ready(function() {
|
|
table = $('#req').DataTable( {
|
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
buttons: [
|
|
{
|
|
extend: 'collection',
|
|
text: 'Export Cashbook Reports',
|
|
buttons: [
|
|
'excel'
|
|
]
|
|
}
|
|
]
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
</script>
|
|
|