siddharth_application/application/views/income_expense_list.php
venbatechnologies@gmail.com 7f5ba30d30 emergency po new
2017-11-21 13:38:06 +05:30

85 lines
1.8 KiB
PHP
Executable File

<CENTER><strong><h3 class="box-title">Siddharth Industries - Income & Expense List</h3></strong></CENTER>
<div class="content-wrapper">
<section class="content">
<div class="box">
<div class="box-header">
<div align="right" style="padding-right:10px">
<a href="addNewIncomeExpense" class="btn btn-primary" 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:#ddf">
<tr>
<th>Account Type</th>
<th>DATE</th>
<th>Account Name</th>
<th>Amount</th>
<th>Details</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 date_format(date_create($l->date),'d-m-Y');?></td> <td><?php echo $l->name;?></td> <td style="text-align:right;"><?php echo $l->total;?></td> <td><?php echo $l->description;?></td></tr>
<?php
}
}
?>
</tbody>
</table>
<br>
</div>
</div>
</div>
</div> </section>
</div>
<script>
$(function () {
$('#inexlist').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"aaSorting": [[ 0, "desc" ]],
"ordering": true,
"info": true,
"autoWidth": true
});
});
</script>