126 lines
3.9 KiB
PHP
Executable File
126 lines
3.9 KiB
PHP
Executable File
|
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
<style>
|
|
.dataTables_filter input {padding: 4px;}
|
|
.dataTables_filter {
|
|
width: 50%;
|
|
float: right;
|
|
text-align: right;
|
|
}
|
|
.dataTables_paginate {
|
|
width: 50%;
|
|
float: right;
|
|
text-align: right;
|
|
}
|
|
div.dt-buttons {
|
|
font-size: 15px;
|
|
position: relative;
|
|
float: right;
|
|
}
|
|
.btn-success {
|
|
background-color: #5d0411;
|
|
border-color: #5d0411;
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
<div class="content-wrapper">
|
|
<section class="content">
|
|
<div class="box">
|
|
<div class="container-fluid">
|
|
<div class="box-header">
|
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>Month Report(<?php $month=$_GET['sid'];echo $month;?>)</b></p></h3></center>
|
|
</div><!-- /. box header -->
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<table id="yrly_mthwise" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;table-layout:auto;">
|
|
<thead style="background-color:#ddf">
|
|
<tr>
|
|
<th>Account Name</th>
|
|
<th>Paid Type</th>
|
|
<th style="text-align:right;"> Receipt (₹)</th>
|
|
<th style="text-align:right;"> Payment (₹)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$ti=0.00;
|
|
$tvt=0.00;
|
|
if(!empty($yearmonthwise)){
|
|
foreach($yearmonthwise as $ym)
|
|
{
|
|
?>
|
|
<tr>
|
|
|
|
<td align="left"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $ym->account_code;?>&d=<?php echo $ym->month?>&c=<?php echo $ym->type?>"><span><?php echo $ym->name?></span></a></td>
|
|
<td align="left"><span><?php echo $ym->type?></span></td>
|
|
<td align="right"><span><?php
|
|
$ti= $ti + number_format($ym->income,2,'.','');
|
|
echo number_format($ym->income,2,'.','');?></span></td>
|
|
<td align="right"><span><?php
|
|
$tvt= $tvt + number_format($ym->expense,2,'.','');
|
|
echo number_format($ym->expense,2,'.','');?></span></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
|
|
}
|
|
?>
|
|
</tbody>
|
|
<tfoot width="100%">
|
|
<tr>
|
|
<td style="text-align:left;"><strong>Total</strong></td>
|
|
<td> </td>
|
|
<td style="text-align:right"><strong><?php echo number_format($ti,2,'.','');?> </strong> </td>
|
|
<td style="text-align:right"><strong><?php echo number_format($tvt,2,'.','');?> </strong> </td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div><!-- /. row -->
|
|
</div><!-- /. col md 12 -->
|
|
</div><!-- /.container-fluid -->
|
|
</div><!-- /. box -->
|
|
</section><!-- /. content -->
|
|
</div><!-- /. content-wrapper -->
|
|
|
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
|
|
|
<script>
|
|
|
|
|
|
// Bootstrap datepicker
|
|
// Set up your table
|
|
$(document).ready(function() {
|
|
table = $('#yrly_mthwise').DataTable( {
|
|
"dom": "<'row'<'col-md-5'l><'col-md-7'Bf>>" +
|
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
"bSort": false,
|
|
buttons: [
|
|
|
|
{
|
|
extend: 'excelHtml5',
|
|
footer: 'true',
|
|
//messageTop: $('h3').text(),
|
|
title: $('h3').text(),
|
|
exportOptions: {
|
|
columns: ':visible'
|
|
|
|
}
|
|
},
|
|
|
|
'colvis'
|
|
]
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
</script>
|
|
|