320 lines
8.4 KiB
PHP
Executable File
320 lines
8.4 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 {
|
|
position: relative;
|
|
float: right;
|
|
|
|
}
|
|
.btn-success {
|
|
background-color: #00d976;;
|
|
border-color: #00d976;;
|
|
}
|
|
</style>
|
|
|
|
<?php
|
|
//print_r($list);
|
|
// ?>
|
|
<!-- <CENTER><strong><h3 class="box-title"> Receipt and Payment List</h3></strong></CENTER> -->
|
|
<center><b><h3 class="box-title">Receipt and Payment List</h3></b></center>
|
|
<div class="content-wrapper">
|
|
|
|
|
|
<section class="content">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header">
|
|
|
|
<!-- <CENTER><strong><h3 class="box-title"> Advance List</h3></strong></CENTER> -->
|
|
<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>
|
|
|
|
<div class="box-body">
|
|
<!-- <form role="form" id="Datewisecashbookreport" action="<?php echo base_url() ?>Datewisecashbookreport" enctype="multipart/form-data" method="post"> -->
|
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-3">
|
|
<b><label for="From Date">From Date:</label></b>
|
|
<div class="input-group">
|
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar fa-fw"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-3">
|
|
<b><label for="To Date">To Date:</label></b>
|
|
<div class="input-group">
|
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar fa-fw"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
|
|
<b><label for="year">Year:</label></b>
|
|
|
|
<select class="form-control" id="financialyear" name="financialyear">
|
|
<option value="">Select Year</option>
|
|
<?php
|
|
foreach($finyear as $item):
|
|
|
|
{?>
|
|
|
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
|
|
|
|
|
<?php } endforeach; ?>
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-3">
|
|
<div style="padding-right:10px;padding-top: 20px;" align="right">
|
|
|
|
|
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Report">
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
</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>
|
|
<tr>
|
|
<th>Account Type</th>
|
|
<th>DATE</th>
|
|
<th>Account 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->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/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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
|
<script>
|
|
|
|
|
|
// Bootstrap datepicker
|
|
// Set up your table
|
|
$(document).ready(function() {
|
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|
table = $('#inexlist').DataTable( {
|
|
|
|
"aaSorting": [[ 1, "desc" ]],
|
|
"autoWidth": false,
|
|
//"columnDefs" : [{"targets":1, "type":"date-eu"}],
|
|
orderCellsTop: true,
|
|
|
|
|
|
|
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
|
|
buttons: [
|
|
|
|
// {
|
|
// extend: 'excelHtml5',
|
|
// footer: 'true',
|
|
// messageTop: 'Cashbook Report',
|
|
// title: $('h3').text(),
|
|
// exportOptions: {
|
|
// columns: ':visible'
|
|
|
|
// }
|
|
// },
|
|
|
|
// 'colvis'
|
|
]
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
// jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
|
// "date-uk-pre": function ( a ) {
|
|
// var ukDatea = a.split('-');
|
|
// return (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1;
|
|
// },
|
|
|
|
// "date-uk-asc": function ( a, b ) {
|
|
// return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
|
// },
|
|
|
|
// "date-uk-desc": function ( a, b ) {
|
|
// return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
|
// }
|
|
// } );
|
|
|
|
// $('#mySelect').on('change',function(){
|
|
|
|
// table
|
|
// .column(4)
|
|
// .search(this.value)
|
|
// .draw();
|
|
// });
|
|
|
|
$( function() {
|
|
//var dateFormat = "mm/dd/yy",
|
|
from = $( "#min-date" )
|
|
.datepicker({
|
|
dateFormat: "dd-mm-yy",
|
|
defaultDate: "+0d",
|
|
changeMonth: true,
|
|
//numberOfMonths: 1
|
|
|
|
})
|
|
.on( "change", function() {
|
|
to.datepicker("option", "minDate", getDate( this ) );
|
|
}),
|
|
to = $( "#max-date" ).datepicker({
|
|
dateFormat: "dd-mm-yy",
|
|
defaultDate: "+0d",
|
|
changeMonth: true,
|
|
//numberOfMonths: 1
|
|
|
|
})
|
|
.on( "change", function() {
|
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
|
});
|
|
|
|
} );
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
|
|
// $('#inexlist').DataTable({
|
|
// "paging": true,
|
|
// "lengthChange": true,
|
|
// "searching": true,
|
|
// "aaSorting": [[ 0, "desc" ]],
|
|
// "ordering": true,
|
|
//
|
|
// "info": true,
|
|
// "autoWidth": true
|
|
|
|
// });
|
|
from = $( "#min-date" )
|
|
.datepicker({
|
|
dateFormat: "dd-mm-yy",
|
|
defaultDate: "+0d",
|
|
changeMonth: true,
|
|
//numberOfMonths: 1
|
|
|
|
})
|
|
.on( "change", function() {
|
|
to.datepicker("option", "minDate", getDate( this ) );
|
|
}),
|
|
to = $( "#max-date" ).datepicker({
|
|
dateFormat: "dd-mm-yy",
|
|
defaultDate: "+0d",
|
|
changeMonth: true,
|
|
//numberOfMonths: 1
|
|
|
|
})
|
|
.on( "change", function() {
|
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
|
});
|
|
});
|
|
</script>
|
|
-->
|