105 lines
2.7 KiB
PHP
Executable File
105 lines
2.7 KiB
PHP
Executable File
<?php
|
|
// print_r($list);
|
|
// ?>
|
|
<!-- <CENTER><strong><h3 class="box-title"> Receipt and Payment List</h3></strong></CENTER> -->
|
|
<div class="content-wrapper">
|
|
|
|
|
|
<section class="content">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header">
|
|
<center><b><h3 class="box-title"> Advance List</h3></b></center>
|
|
<!-- <div align="right" style="padding-right:10px">
|
|
<a href="addNewIncomeExpense" class="btn btn-success" align="right"style="padding-right:10px" >Add New</a>
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table id="inexlist" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
|
<div align="right" style="padding-right:10px">
|
|
<div id="content" > </div>
|
|
<div class="modal fade" role="dialog">
|
|
|
|
<thead style="background-color: #CFCFCF;">>
|
|
<tr>
|
|
<th>Account Type</th>
|
|
<th>DATE</th>
|
|
<th>Account Name</th>
|
|
<th>Supplier Name</th>
|
|
<th>Cash Type</th>
|
|
<th>Amount</th>
|
|
<th>Details</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="inexlistbody">
|
|
|
|
<?php if(!empty($list))
|
|
{
|
|
$base = base_url();
|
|
foreach($list as $l)
|
|
{
|
|
?>
|
|
|
|
<tr>
|
|
<td><?php echo '<a href="'.$base.'cashbook/incomeExpenseList/'.$l->id.'">'.$l->type.'</a>';?></td>
|
|
<td style="text-align:right;"><?php echo format_date($l->date, 0, 'd-m-Y'); ?></td>
|
|
<td><?php echo $l->name;?></td>
|
|
<td><?php echo $l->SupplierName;?></td>
|
|
|
|
<td><?php echo $l->cashtype;?></td>
|
|
<td style="text-align:right;"><?php echo $l->total;?></td>
|
|
<td><?php echo $l->description;?></td>
|
|
<td>
|
|
<a href="<?php echo base_url(); ?>cashbook/editcashbook?sid=<?php echo $l->id;?>"><i class="fa fa-pencil" data-toggle="tooltip" data-placement="left" title="Click here to view/Edit the ".<?php echo $l->type; ?>." Details "></i> </a>
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div> </section>
|
|
</div>
|
|
<!-- <script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script> -->
|
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|
$('#inexlist').DataTable({
|
|
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"aaSorting": [[ 1, "desc" ]],
|
|
"ordering": true,
|
|
// "columnDefs" : [{"targets":1, "type":"date-eu"}],
|
|
"info": true,
|
|
"autoWidth": true
|
|
|
|
});
|
|
});
|
|
</script>
|
|
|