364 lines
11 KiB
PHP
364 lines
11 KiB
PHP
|
|
|
|
<?php
|
|
$today_in='';
|
|
$today_ex='';
|
|
$month_in='';
|
|
$month_ex='';
|
|
$year_in='';
|
|
$year_ex='';
|
|
if(!empty($cashbook))
|
|
{
|
|
|
|
}
|
|
if(!empty($monthlyreport))
|
|
{
|
|
|
|
}
|
|
|
|
if(!empty($todayincome))
|
|
{
|
|
foreach ($todayincome as $ti)
|
|
{
|
|
$today_in=$ti->todaydata;
|
|
}}
|
|
|
|
if(!empty($todayexpense))
|
|
{
|
|
foreach ($todayexpense as $te)
|
|
{
|
|
$today_ex=$te->todaydata;
|
|
}}
|
|
|
|
if(!empty($monthlywiseincome))
|
|
{
|
|
foreach ($monthlywiseincome as $mi)
|
|
{
|
|
$month_in = $mi->monthlydata;
|
|
}}
|
|
|
|
if(!empty($monthlywiseexpense))
|
|
{
|
|
foreach ($monthlywiseexpense as $me)
|
|
{
|
|
$month_ex = $me->monthlydata;
|
|
}}
|
|
if(!empty($yearexpense))
|
|
{
|
|
foreach ($yearexpense as $ye)
|
|
{
|
|
$year_ex=$ye->yearlydata;
|
|
}}
|
|
|
|
if(!empty($yearincome))
|
|
{
|
|
foreach ($yearincome as $yi)
|
|
{
|
|
$year_in = $yi->yearlydata;
|
|
}}
|
|
|
|
|
|
|
|
?>
|
|
<head>
|
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
|
|
|
<link href="<?php echo base_url();?>assets/plugins/morris/morris.css" rel="stylesheet" type="text/css" />
|
|
|
|
</head>
|
|
<script>
|
|
/*!
|
|
DataTables Bootstrap 3 integration
|
|
©2011-2014 SpryMedia Ltd - datatables.net/license
|
|
*/
|
|
(function(l,q){var e=function(b,c){b.extend(!0,c.defaults,{dom:"<'row'<'col-sm-9'l><'col-sm-3'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-9'i><'col-sm-3'p>>",renderer:"bootstrap"});b.extend(c.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm"});c.ext.renderer.pageButton.bootstrap=function(g,e,r,s,i,m){var t=new c.Api(g),u=g.oClasses,j=g.oLanguage.oPaginate,d,f,n=0,p=function(c,e){var k,h,o,a,l=function(a){a.preventDefault();
|
|
b(a.currentTarget).hasClass("disabled")||t.page(a.data.action).draw(!1)};k=0;for(h=e.length;k<h;k++)if(a=e[k],b.isArray(a))p(c,a);else{f=d="";switch(a){case "ellipsis":d="…";f="disabled";break;case "first":d=j.sFirst;f=a+(0<i?"":" disabled");break;case "previous":d=j.sPrevious;f=a+(0<i?"":" disabled");break;case "next":d=j.sNext;f=a+(i<m-1?"":" disabled");break;case "last":d=j.sLast;f=a+(i<m-1?"":" disabled");break;default:d=a+1,f=i===a?"active":""}d&&(o=b("<li>",{"class":u.sPageButton+" "+
|
|
f,id:0===r&&"string"===typeof a?g.sTableId+"_"+a:null}).append(b("<a>",{href:"#","aria-controls":g.sTableId,"data-dt-idx":n,tabindex:g.iTabIndex}).html(d)).appendTo(c),g.oApi._fnBindAction(o,{action:a},l),n++)}},h;try{h=b(q.activeElement).data("dt-idx")}catch(l){}p(b(e).empty().html('<ul class="pagination"/>').children("ul"),s);h&&b(e).find("[data-dt-idx="+h+"]").focus()};c.TableTools&&(b.extend(!0,c.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn btn-default",disabled:"disabled"},
|
|
collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info"},select:{row:"active"}}),b.extend(!0,c.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}}))};"function"===typeof define&&define.amd?define(["jquery","datatables"],e):"object"===typeof exports?e(require("jquery"),require("datatables")):jQuery&&e(jQuery,jQuery.fn.dataTable)})(window,document);
|
|
|
|
</script>
|
|
<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;
|
|
|
|
}
|
|
table{
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
clear: both;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
word-wrap:break-word;
|
|
|
|
}
|
|
|
|
th, td { white-space: nowrap; }
|
|
div.dataTables_wrapper {
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
div.container {
|
|
width: 100%;
|
|
}
|
|
|
|
.dataTables_paginate {
|
|
margin-top: -25px;
|
|
position: absolute;
|
|
text-align: right;
|
|
left: -20%;
|
|
}
|
|
|
|
#container {
|
|
min-width: 310px;
|
|
max-width: 800px;
|
|
height: 400px;
|
|
margin: 0 auto
|
|
}
|
|
|
|
|
|
</style>
|
|
<div>
|
|
<section class="content-header">
|
|
|
|
</section>
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<!-- Info boxes -->
|
|
<center>
|
|
<div class="row">
|
|
|
|
<!-- fix for small devices only -->
|
|
<div class="clearfix visible-sm-block"></div>
|
|
<div class="col-md-4">
|
|
<div class="info-box">
|
|
<span class="info-box-icon bg-red" style="height: 90px;padding:25px;"><i class="fa fa-hourglass-end"></i></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-number"><?php echo "Today's Exp & Inc" ?></span>
|
|
|
|
<span class="info-box-text text-center"><?php echo "Income : ".$today_in ?> Rs</span>
|
|
<span class="info-box-text text-center"><?php echo "Expense : ".$today_ex ?> Rs</span>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- fix for small devices only -->
|
|
<div class="clearfix visible-sm-block"></div>
|
|
<div class="col-md-4">
|
|
<div class="info-box">
|
|
<span class="info-box-icon bg-aqua" style="height: 90px;padding:25px;"><i<i class="fa fa-spinner"></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-number"><?php echo "Month Exp & Inc" ?></span>
|
|
<span class="info-box-text text-center"><?php echo "Income :".$month_in ?>Rs</span>
|
|
<span class="info-box-text text-center"><?php echo "Expense :".$month_ex ?>Rs</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- fix for small devices only -->
|
|
<div class="clearfix visible-sm-block"></div>
|
|
<div class="col-md-4">
|
|
<div class="info-box">
|
|
<span class="info-box-icon bg-green" style="height: 90px;padding:25;"><i class="fa fa-industry" style="padding: 5px;"></i></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-number"><?php echo "year Exp & Inc" ?></span>
|
|
<span class="info-box-text text-center"><?php echo "Income :".$year_in ?>Rs</span>
|
|
<span class="info-box-text text-center"><?php echo "Expense :".$year_ex ?>Rs</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</center>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div id="container"></div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Left col -->
|
|
<div class="col-md-12">
|
|
<!-- TABLE: LATEST ORDERS -->
|
|
<div class="box box-info">
|
|
<!--<div class="box-header with-border">-->
|
|
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
|
<!--</div>-->
|
|
<!-- /.box-header -->
|
|
|
|
|
|
|
|
|
|
<div class="box-body">
|
|
<div>
|
|
<table class="table table-bordered table-hover" id="req" style="font-size:13px;">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
<th>Account Code</th>
|
|
<th>Paid To</th>
|
|
<th>Paid Type</th>
|
|
<th>Amount</th>
|
|
|
|
<th>Description</th>
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if(!empty($cashbook)){
|
|
foreach($cashbook as $cash)
|
|
{
|
|
?>
|
|
<tr>
|
|
|
|
<td><span><?php echo $cash->date?></span></td>
|
|
<td align="left"><span><?php echo $cash->account_code?></span></td>
|
|
<td align="left"><span><?php echo $cash->towhom?></span></td>
|
|
<td align="left"><span><?php echo $cash->type?></span></td>
|
|
<td align="left"><span><?php echo $cash->total?></span></td>
|
|
|
|
<td align="left"><span><?php echo $cash->description?></span></td>
|
|
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
}
|
|
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box -->
|
|
</div>
|
|
<!-- /.col -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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 src="https://code.highcharts.com/highcharts.js"></script>
|
|
<script src="https://code.highcharts.com/modules/series-label.js"></script>
|
|
<script src="https://code.highcharts.com/modules/exporting.js"></script>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
table = $('#req').DataTable( {
|
|
"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-4'i><'col-md-8'p>>",
|
|
buttons: [
|
|
{
|
|
extend: 'collection',
|
|
text: 'Export Cashbook Reports',
|
|
buttons: [
|
|
'excel'
|
|
]
|
|
}
|
|
]
|
|
} );
|
|
} );
|
|
</script>
|
|
<script src="<?php echo base_url();?>assets/plugins/chartjs/Chart.min.js"></script>
|
|
<script src="<?php echo base_url(); ?>assets/plugins/knob/jquery.knob.js"></script>
|
|
<script>
|
|
Highcharts.chart('container', {
|
|
|
|
title: {
|
|
text: 'Solar Employment Growth by Sector, 2010-2016'
|
|
},
|
|
|
|
subtitle: {
|
|
text: 'Source: thesolarfoundation.com'
|
|
},
|
|
|
|
yAxis: {
|
|
title: {
|
|
text: 'Number of Employees'
|
|
}
|
|
},
|
|
legend: {
|
|
layout: 'vertical',
|
|
align: 'right',
|
|
verticalAlign: 'middle'
|
|
},
|
|
|
|
plotOptions: {
|
|
series: {
|
|
label: {
|
|
connectorAllowed: false
|
|
},
|
|
pointStart: 2010
|
|
}
|
|
},
|
|
|
|
series: [{
|
|
name: 'Installation',
|
|
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
|
|
}, {
|
|
name: 'Manufacturing',
|
|
data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
|
|
}, {
|
|
name: 'Sales & Distribution',
|
|
data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
|
|
}, {
|
|
name: 'Project Development',
|
|
data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227]
|
|
}, {
|
|
name: 'Other',
|
|
data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
|
|
}],
|
|
|
|
responsive: {
|
|
rules: [{
|
|
condition: {
|
|
maxWidth: 500
|
|
},
|
|
chartOptions: {
|
|
legend: {
|
|
layout: 'horizontal',
|
|
align: 'center',
|
|
verticalAlign: 'bottom'
|
|
}
|
|
}
|
|
}]
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|