siddharth_application/application/views/cashbookdepmenu.php
2021-04-23 12:07:34 +05:30

126 lines
4.3 KiB
PHP

<?php
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
?>
<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">
<section class="content">
<div class="box">
<div class="box-header">
<CENTER><h3 class="box-title"><strong>Cashbook Department</strong></h3></CENTER>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<table class="table table-bordered table-hover" id="req" style="background-color:#fff;font-size:11px;" >
<thead style="background-color:#ddf">
<tr>
<th>Account Name</th>
<th>Paid Type</th>
<th style="text-align:right;"> Amount <?php echo '('.$inrsymbol.')' ?></th>
</tr>
</thead>
<tbody>
<?php if(!empty($depmenu)){
foreach($depmenu as $t)
{
?>
<tr>
<td align="left"><a href="<?php echo base_url(); ?>report/cashbookmenudepartment?sid=<?php echo $t->account_code;?>"><span><?php echo $t->name?></span></a></td>
<td align="left"><span><?php echo $t->type?></span></td>
<td align="right"><span><?php echo number_format($t->total,2,'.','');?></span></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</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-3'l><'col-md-9'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
buttons: [
{
extend: 'excelHtml5',
footer: 'true',
//messageTop: $('h3').text(),
title: $('h3').text(),
exportOptions: {
columns: ':visible'
}
},
'colvis'
]
} );
} );
</script>