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

84 lines
2.9 KiB
PHP

<?php
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
?>
<div class="content-wrapper">
<section class="content">
<div class="box">
<div class="box-header">
<CENTER><h3 class="box-title"><strong>Caskbook - "Monthly Payments"</strong></h3></CENTER>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<table class="table table-bordered table-hover" id="datatable" style="background-color:#fff;font-size:11px;" >
<thead style="background-color:#ddf">
<tr>
<th>Date</th>
<th>Paid To</th>
<th>Paid Type</th>
<th style="text-align:right;"> Amount <?php echo '('.$inrsymbol.')' ?></th>
</tr>
</thead>
<tbody>
<?php if(!empty($monthlymenupayments)){
foreach($monthlymenupayments as $t)
{
?>
<tr>
<td><span><?php echo $t->date?></span></td>
<td align="left"><span><?php echo $t->name ?></span></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 type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
<script type="text/javascript">
$(function () {
$('#datatable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true
});
});
</script>