permissiontime

This commit is contained in:
venbatechnologies 2017-12-19 11:34:34 +05:30
parent 10a4af5f37
commit 0f353b2a3f
2 changed files with 276 additions and 281 deletions

View File

@ -7,8 +7,8 @@ if(!empty($EmpCount))
{ {
foreach ($EmpCount as $Emp) foreach ($EmpCount as $Emp)
{ {
$Empcnt = $Emp->EmpCount; $Empcnt = $Emp->EmpCount;
} }
} }
@ -18,20 +18,20 @@ if(!empty($EmpCount))
<div class="content-wrapper"> <div class="content-wrapper">
<section class="content"> <section class="content">
<!-- Dashboard for Account department--> <!-- Dashboard for Account department-->
<?php <?php
if($DEPCode == FINANCE) if($DEPCode == FINANCE)
{ {
?> ?>
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content Header (Page header) --> <!-- Content Header (Page header) -->
<section class="content-header"> <section class="content-header">
<center><h1> Accounts Department Dashboard</h1> </center> <center><h1> Accounts Department Dashboard</h1> </center>
</section> </section>
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<!-- Info boxes --> <!-- Info boxes -->
<center> <center>
<div class="row"> <div class="row">
<!-- fix for small devices only --> <!-- fix for small devices only -->
<div class="clearfix visible-sm-block"></div> <div class="clearfix visible-sm-block"></div>
@ -45,17 +45,12 @@ if(!empty($EmpCount))
</div> </div>
</div> </div>
</div> </div>
</center> </center>
<div>
<marquee direction="up" scrollamount="2" height="150px;"> <font color="Brown"> <h1><b>Guidelines:</b></h1><h3> # PaySlip menu in header has two sub menu ( 1.Upload Salary , 2.PaySlip Generator)<br/><br/> </section>
# Upload salary menu is used to upload the Salary Excel file into the database<br/><br/>
# Payslip generator menu is to generate the salary slip for individual Employess or All Employees</h3>
</center> </font></marquee>
</div>
</section>
</div> </div>
<?php <?php
} }
?> ?>
<!-- HR Start part to--> <!-- HR Start part to-->
@ -505,12 +500,12 @@ $("#monthabs").val('');
<!-- \\\\\\\\\\\\\\\ HR END of the part ////////////////////////--> <!-- \\\\\\\\\\\\\\\ HR END of the part ////////////////////////-->
<!-- Dashboard for admin--> <!-- Dashboard for admin-->
<?php <?php
if($role == ROLE_ADMIN && $DEPCode != MANAGEMENT) if($role == ROLE_ADMIN && $DEPCode != MANAGEMENT && $DEPCode != HR)
{ {
?> ?>
<div class="content"> <div class="content">
<!-- Content Header (Page header) --> <!-- Content Header (Page header) -->
<section class="content-header"> <section class="content-header">
<h1> Admin Dashboard </h1> <h1> Admin Dashboard </h1>
@ -538,29 +533,29 @@ $("#monthabs").val('');
<!-- ./col --> <!-- ./col -->
</div> </div>
</section> </section>
<!-- /.content --> <!-- /.content -->
</div> </div>
<?php <?php
} }
?> ?>
<!-- Dashboard for Manager department--> <!-- Dashboard for Manager department-->
<?php <?php
if($role == ROLE_MANAGER && $DEPCode != MANAGEMENT) if($role == ROLE_MANAGER && $DEPCode != MANAGEMENT)
{ {
?> ?>
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content Header (Page header) --> <!-- Content Header (Page header) -->
<section class="content-header"> <section class="content-header">
<center><h1> Manager Department Dashboard</h1> </center> <center><h1> Manager Department Dashboard</h1> </center>
</section> </section>
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<!-- Info boxes --> <!-- Info boxes -->
<center> <center>
<div class="row"> <div class="row">
<!-- fix for small devices only --> <!-- fix for small devices only -->
<div class="clearfix visible-sm-block"></div> <div class="clearfix visible-sm-block"></div>
@ -574,19 +569,17 @@ $("#monthabs").val('');
</div> </div>
</div> </div>
</div> </div>
</center> </center>
<div>
<marquee direction="up" scrollamount="2" height="150px;">Hi This Is Manager Login </marquee> </section>
</div>
</section>
</div> </div>
<?php <?php
} }
if($DEPCode == MANAGEMENT) if($DEPCode == MANAGEMENT)
{ {
?> ?>
<head> <head>
<link href="<?php echo base_url();?>assets/plugins/morris/morris.css" rel="stylesheet" type="text/css" /> <link href="<?php echo base_url();?>assets/plugins/morris/morris.css" rel="stylesheet" type="text/css" />
@ -595,7 +588,7 @@ $("#monthabs").val('');
<script> <script>
/*! /*!
DataTables Bootstrap 3 integration DataTables Bootstrap 3 integration
©2011-2014 SpryMedia Ltd - datatables.net/license ©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(); (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="&hellip;";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+" "+ 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="&hellip;";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+" "+
@ -615,7 +608,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
} }
th, td { white-space: nowrap; } th, td { white-space: nowrap; }
div.dataTables_wrapper { div.dataTables_wrapper {
margin: 0 auto; margin: 0 auto;
@ -625,7 +618,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
width: 100%; width: 100%;
} }
.dataTables_paginate { .dataTables_paginate {
margin-top: -25px; margin-top: -25px;
position: absolute; position: absolute;
text-align: right; text-align: right;
@ -634,20 +627,20 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
</style> </style>
<div class="content-wrapper"> <div class="content-wrapper">
<section class="content"> <section class="content">
<!-- Info boxes --> <!-- Info boxes -->
<div class="row"> <div class="row">
<div class="col-md-3 col-sm-6 col-xs-12"> <div class="col-md-3 col-sm-6 col-xs-12">
<a href="<?php echo base_url(); ?>Requisition"> <a href="<?php echo base_url(); ?>Requisition">
<div class="info-box" style="min-height: 105px;"> <div class="info-box" style="min-height: 105px;">
<span class="info-box-icon bg-aqua" style="height: 105px;padding:25px;"><i<i class="fa fa-spinner"></span> <span class="info-box-icon bg-aqua" style="height: 105px;padding:25px;"><i<i class="fa fa-spinner"></span>
<?php <?php
if(!empty($details)) if(!empty($details))
{ {
foreach($details as $req) foreach($details as $req)
{ {
?> ?>
@ -656,24 +649,24 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<span class="info-box-text" style="color:#00c0ef;"><strong>TODAY'S REQUESTS</strong></span> <span class="info-box-text" style="color:#00c0ef;"><strong>TODAY'S REQUESTS</strong></span>
<span class="info-box-number"style="color:black;"><?php echo $req->TODAY_REQUESTS;?></span> <span class="info-box-number"style="color:black;"><?php echo $req->TODAY_REQUESTS;?></span>
</div> </div>
<?php <?php
} }
} }
?> ?>
<!-- /.info-box-content --> <!-- /.info-box-content -->
</div> </div>
</a> </a>
<!-- /.info-box --> <!-- /.info-box -->
</div> </div>
<!-- /.col --> <!-- /.col -->
<div class="col-md-3 col-sm-6 col-xs-12"> <div class="col-md-3 col-sm-6 col-xs-12">
<a href="<?php echo base_url(); ?>reportpending"> <a href="<?php echo base_url(); ?>reportpending">
<div class="info-box" style="min-height: 105px;"> <div class="info-box" style="min-height: 105px;">
<span class="info-box-icon bg-red" style="height: 105px;padding:25px;"><i class="fa fa-hourglass-end"></i></span> <span class="info-box-icon bg-red" style="height: 105px;padding:25px;"><i class="fa fa-hourglass-end"></i></span>
<?php if(!empty($pending_details)) <?php if(!empty($pending_details))
{ {
foreach($pending_details as $req_p){ foreach($pending_details as $req_p){
?> ?>
@ -683,11 +676,11 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
</div> </div>
<?php <?php
} }
} }
?> ?>
<!-- /.info-box-content --> <!-- /.info-box-content -->
</div> </div>
</a> </a>
<!-- /.info-box --> <!-- /.info-box -->
</div> </div>
<!-- /.col --> <!-- /.col -->
@ -696,66 +689,66 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<div class="clearfix visible-sm-block"></div> <div class="clearfix visible-sm-block"></div>
<div class="col-md-3 col-sm-6 col-xs-12"> <div class="col-md-3 col-sm-6 col-xs-12">
<a href="<?php echo base_url(); ?>TotalOrder"> <a href="<?php echo base_url(); ?>TotalOrder">
<div class="info-box" style="min-height: 105px;"> <div class="info-box" style="min-height: 105px;">
<span class="info-box-icon bg-green" style="height: 105px;padding:25;"><i class="fa fa-industry" style="padding: 5px;"></i></span> <span class="info-box-icon bg-green" style="height: 105px;padding:25;"><i class="fa fa-industry" style="padding: 5px;"></i></span>
<?php if(!empty($totalpurchaseorder)) <?php if(!empty($totalpurchaseorder))
{ {
foreach($totalpurchaseorder as $po) foreach($totalpurchaseorder as $po)
{ {
?> ?>
<div class="info-box-content"> <div class="info-box-content">
<span class="info-box-text" style="color:#00a65a;"><strong>TOTAL PURCHASE ORDER</strong></span> <span class="info-box-text" style="color:#00a65a;"><strong>TOTAL PURCHASE ORDER</strong></span>
<span class="info-box-number"style="color:black;"><strong><?php echo $po->totalpurchaseorder;?></strong></span> <span class="info-box-number"style="color:black;"><strong><?php echo $po->totalpurchaseorder;?></strong></span>
<?php <?php
} }
} }
?> ?>
<?php if(!empty($totalordervalue)) <?php if(!empty($totalordervalue))
{ {
foreach($totalordervalue as $ordervalue) foreach($totalordervalue as $ordervalue)
{ {
?> ?>
<span class="info-box-text" style="color:#00a65a;"><strong>TOTAL ORDER VALUE</strong></span> <span class="info-box-text" style="color:#00a65a;"><strong>TOTAL ORDER VALUE</strong></span>
<span class="info-box-number"style="color:black;"><strong><i class="fa fa-rupee " ></i> <?php echo $ordervalue->totalordervalue;?></strong></span> <span class="info-box-number"style="color:black;"><strong><i class="fa fa-rupee " ></i> <?php echo $ordervalue->totalordervalue;?></strong></span>
<?php <?php
} }
} }
?> ?>
</div> </div>
<!-- /.info-box-content --> <!-- /.info-box-content -->
</div> </div>
</a> </a>
<!-- /.info-box --> <!-- /.info-box -->
</div> </div>
<!-- /.col --> <!-- /.col -->
<div class="col-md-3 col-sm-6 col-xs-12"> <div class="col-md-3 col-sm-6 col-xs-12">
<a href="<?php echo base_url(); ?>openOrder"> <a href="<?php echo base_url(); ?>openOrder">
<div class="info-box" style="min-height: 105px;"> <div class="info-box" style="min-height: 105px;">
<span class="info-box-icon bg-yellow" style="height: 105px;padding:25px;"><i class="fa fa-hourglass-1 " style="padding: 5px;"></i></span> <span class="info-box-icon bg-yellow" style="height: 105px;padding:25px;"><i class="fa fa-hourglass-1 " style="padding: 5px;"></i></span>
<?php if(!empty($pendingpo)) <?php if(!empty($pendingpo))
{ {
foreach($pendingpo as $pendingpolist){ foreach($pendingpo as $pendingpolist){
?> ?>
<div class="info-box-content"> <div class="info-box-content">
<span class="info-box-text" style="color:#f39c12;"><strong>PENDING PURCHASE ORDER</strong></span> <span class="info-box-text" style="color:#f39c12;"><strong>PENDING PURCHASE ORDER</strong></span>
<span class="info-box-number"style="color:black;"><?php echo $pendingpolist->pending;?></span> <span class="info-box-number"style="color:black;"><?php echo $pendingpolist->pending;?></span>
</div> </div>
<?php <?php
} }
} }
?> ?>
<!-- /.info-box-content --> <!-- /.info-box-content -->
</div> </div>
</a> </a>
<!-- /.info-box --> <!-- /.info-box -->
</div> </div>
<!-- /.col --> <!-- /.col -->
@ -791,19 +784,19 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<div class="col-md-8"> <div class="col-md-8">
<p class="text-center"> <p class="text-center">
<strong> <strong>
<?php <?php
if (date('m') >= 4) { if (date('m') >= 4) {
$yearl = date('Y').'-'.(date('Y')+1); $yearl = date('Y').'-'.(date('Y')+1);
} else { } else {
$yearl = (date('Y')-1).'-'.date('Y'); $yearl = (date('Y')-1).'-'.date('Y');
} }
$ab=$yearl; $ab=$yearl;
$fa=substr($ab,0,-5); $fa=substr($ab,0,-5);
$aa=substr($ab,5,5); $aa=substr($ab,5,5);
echo '1 April, '.$fa.' - 31 March, '.$aa.''; echo '1 April, '.$fa.' - 31 March, '.$aa.'';
?> ?>
</strong> </strong>
</p> </p>
<div class="chart"> <div class="chart">
@ -816,86 +809,86 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<div class="col-md-offset-1 col-md-3"> <div class="col-md-offset-1 col-md-3">
<strong style="font-size:18px;">&nbsp; &nbsp;&nbsp; BUDGET AMOUNT</strong> <strong style="font-size:18px;">&nbsp; &nbsp;&nbsp; BUDGET AMOUNT</strong>
<br><br> <br><br>
<div class="progress-group"> <div class="progress-group">
<?php if(!empty($servicebudgt)) <?php if(!empty($servicebudgt))
{ {
foreach($servicebudgt as $service) foreach($servicebudgt as $service)
{ {
?> ?>
<span class="description-text"><strong style="font-size:16px;">SERVICE &nbsp; :&nbsp;&nbsp;</strong><strong style="color:#00c0ef;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $service->totalservicebudget;?></strong></span> <span class="description-text"><strong style="font-size:16px;">SERVICE &nbsp; :&nbsp;&nbsp;</strong><strong style="color:#00c0ef;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $service->totalservicebudget;?></strong></span>
<h5 class="description-header" </h5> <h5 class="description-header" </h5>
<?php <?php
} }
} }
?> ?>
</div> </div>
<br> <br>
<!-- /.progress-group --> <!-- /.progress-group -->
<div class="progress-group"> <div class="progress-group">
<?php if(!empty($revenuebudgt)) <?php if(!empty($revenuebudgt))
{ {
foreach($revenuebudgt as $revenue) foreach($revenuebudgt as $revenue)
{ {
?> ?>
<span class="description-text"><strong style="font-size:16px;">REVENUE :&nbsp;&nbsp;</strong><strong style="color:#dd4b39;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $revenue->totalrevenuebudget;?></strong></span> <span class="description-text"><strong style="font-size:16px;">REVENUE :&nbsp;&nbsp;</strong><strong style="color:#dd4b39;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $revenue->totalrevenuebudget;?></strong></span>
<?php <?php
} }
} }
?> ?>
</div> </div>
<br> <br>
<!-- /.progress-group --> <!-- /.progress-group -->
<div class="progress-group"> <div class="progress-group">
<?php if(!empty($importbudgt)) <?php if(!empty($importbudgt))
{ {
foreach($importbudgt as $import) foreach($importbudgt as $import)
{ {
?> ?>
<span class="description-text"><strong style="font-size:16px;">IMPORT &nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;</strong><strong style="color:#00a65a;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $import->totalimportbudget;?></strong></span> <span class="description-text"><strong style="font-size:16px;">IMPORT &nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;</strong><strong style="color:#00a65a;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $import->totalimportbudget;?></strong></span>
<?php <?php
} }
} }
?> ?>
</div> </div>
<br> <br>
<!-- /.progress-group --> <!-- /.progress-group -->
<div class="progress-group"> <div class="progress-group">
<?php if(!empty($capitalbud)) <?php if(!empty($capitalbud))
{ {
foreach($capitalbud as $capital) foreach($capitalbud as $capital)
{ {
?> ?>
<span class="description-text" ><strong style="font-size:16px;">CAPITAL &nbsp;&nbsp;&nbsp;:&nbsp;&nbsp</strong><strong style="color:#f39c12;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $capital->totalcapitalbudget;?></strong></span> <span class="description-text" ><strong style="font-size:16px;">CAPITAL &nbsp;&nbsp;&nbsp;:&nbsp;&nbsp</strong><strong style="color:#f39c12;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $capital->totalcapitalbudget;?></strong></span>
<?php <?php
} }
} }
?> ?>
</div> </div>
<!-- /.progress-group --> <!-- /.progress-group -->
</div> </div>
<!-- /.col --> <!-- /.col -->
<!-- /.row --> <!-- /.row -->
@ -906,89 +899,89 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
</div> </div>
<!-- /.col --> <!-- /.col -->
</div> </div>
</div> </div>
</div> </div>
<!-- /.row --> <!-- /.row -->
<div class="box-footer"> <div class="box-footer">
<div class="box-body"> <div class="box-body">
<div class="row"> <div class="row">
<div class="col-xs-6 col-md-3 text-center"> <div class="col-xs-6 col-md-3 text-center">
<div class="description-block border-right"> <div class="description-block border-right">
<?php foreach($servicebudgt as $service) <?php foreach($servicebudgt as $service)
if(!empty($servicebal)) if(!empty($servicebal))
{ {
foreach($servicebal as $serviceb) foreach($servicebal as $serviceb)
{ {
?> ?>
<div class="knob-label"><strong style="color:#00c0ef">SERVICE BUDGET</strong></div> <div class="knob-label"><strong style="color:#00c0ef">SERVICE BUDGET</strong></div>
<input type="text" class="knob" data-thickness="0.4" data-readonly="true" value=<?php echo $serviceb->balservicebudget;?> data-min="20" data-max=<?php echo $service->totalservicebudget;?> data-width="" data-height="" data-fgColor="#00c0ef "> <br> <input type="text" class="knob" data-thickness="0.4" data-readonly="true" value=<?php echo $serviceb->balservicebudget;?> data-min="20" data-max=<?php echo $service->totalservicebudget;?> data-width="" data-height="" data-fgColor="#00c0ef "> <br>
<div class="knob-label"><strong>TOTAL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $service->totalservicebudget;?></strong></div> <div class="knob-label"><strong>TOTAL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $service->totalservicebudget;?></strong></div>
<div class="knob-label"><strong>BALANCE :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $serviceb->balservicebudget;?></strong></div> <div class="knob-label"><strong>BALANCE :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $serviceb->balservicebudget;?></strong></div>
</div> </div>
<?php <?php
} }
} }
?> ?>
</div> </div>
<!-- ./col --> <!-- ./col -->
<div class="col-xs-6 col-md-3 text-center"> <div class="col-xs-6 col-md-3 text-center">
<div class="description-block border-right"> <div class="description-block border-right">
<?php // if(!empty($totalrevenuepo)) <?php // if(!empty($totalrevenuepo))
// { // {
foreach($revenuebudgt as $revenue) foreach($revenuebudgt as $revenue)
if(!empty($revenuebal)) if(!empty($revenuebal))
{ {
foreach($revenuebal as $revenueb) foreach($revenuebal as $revenueb)
{ {
?> ?>
<div class="knob-label"><strong style="color:#dd4b39">REVENUE BUDGET</strong></div> <div class="knob-label"><strong style="color:#dd4b39">REVENUE BUDGET</strong></div>
<input type="text" class="knob" data-thickness="0.4" data-readonly="true" value="<?php echo $revenueb->balrevenuebudget;?> " data-min="0" data-max=<?php echo $revenue->totalrevenuebudget;?> data-width="" data-height="" data-fgColor="#dd4b39 "> <br> <input type="text" class="knob" data-thickness="0.4" data-readonly="true" value="<?php echo $revenueb->balrevenuebudget;?> " data-min="0" data-max=<?php echo $revenue->totalrevenuebudget;?> data-width="" data-height="" data-fgColor="#dd4b39 "> <br>
<div class="knob-label"><strong>TOTAL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $revenue->totalrevenuebudget;?> </strong> </div> <div class="knob-label"><strong>TOTAL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $revenue->totalrevenuebudget;?> </strong> </div>
<div class="knob-label"><strong>BALANCE :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $revenueb->balrevenuebudget;?></strong> </div> <div class="knob-label"><strong>BALANCE :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $revenueb->balrevenuebudget;?></strong> </div>
<?php <?php
} }
} }
?> ?>
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
<div class="col-xs-6 col-md-3 text-center"> <div class="col-xs-6 col-md-3 text-center">
<div class="description-block border-right"> <div class="description-block border-right">
<?php foreach($importbudgt as $import) <?php foreach($importbudgt as $import)
if(!empty($importbal)){ if(!empty($importbal)){
foreach($importbal as $importb) foreach($importbal as $importb)
{ {
?> ?>
<div class="knob-label"><strong style="color:#00a65a">IMPORT BUDGET</strong></div> <div class="knob-label"><strong style="color:#00a65a">IMPORT BUDGET</strong></div>
<input type="text" class="knob" data-thickness="0.4" data-readonly="true" value=<?php echo $importb->balimportbudget;?> data-min="0" data-max=<?php echo $import->totalimportbudget;?> data-width="" data-height="" data-fgColor="#00a65a "> <br> <input type="text" class="knob" data-thickness="0.4" data-readonly="true" value=<?php echo $importb->balimportbudget;?> data-min="0" data-max=<?php echo $import->totalimportbudget;?> data-width="" data-height="" data-fgColor="#00a65a "> <br>
<div class="knob-label"><strong>TOTAL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $import->totalimportbudget;?> </strong></div> <div class="knob-label"><strong>TOTAL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $import->totalimportbudget;?> </strong></div>
<div class="knob-label"><strong>BALANCE :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $importb->balimportbudget;?> </strong></div> <div class="knob-label"><strong>BALANCE :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $importb->balimportbudget;?> </strong></div>
</div> </div>
<?php <?php
} }
} }
?> ?>
</div> </div>
<div class="col-xs-6 col-md-3 text-center"> <div class="col-xs-6 col-md-3 text-center">
<div class="description-block border-right"> <div class="description-block border-right">
<?php foreach($capitalbud as $capital) <?php foreach($capitalbud as $capital)
if(!empty($capitalbal)){ if(!empty($capitalbal)){
foreach($capitalbal as $capitalb) foreach($capitalbal as $capitalb)
{ {
?> ?>
<div class="knob-label"><strong style="color:#f39c12">CAPITAL BUDGET</strong></div> <div class="knob-label"><strong style="color:#f39c12">CAPITAL BUDGET</strong></div>
<input type="text" class="knob" data-thickness="0.4" data-readonly="true" value=<?php echo $capitalb->balcapitalbudget;?> data-min="0" data-max=<?php echo $capital->totalcapitalbudget;?> data-fgColor="#f39c12 "><br> <input type="text" class="knob" data-thickness="0.4" data-readonly="true" value=<?php echo $capitalb->balcapitalbudget;?> data-min="0" data-max=<?php echo $capital->totalcapitalbudget;?> data-fgColor="#f39c12 "><br>
<div class="knob-label"><strong>TOTAL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $capital->totalcapitalbudget;?></strong></div> <div class="knob-label"><strong>TOTAL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $capital->totalcapitalbudget;?></strong></div>
<div class="knob-label"><strong>BALANCE :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $capitalb->balcapitalbudget;?></strong> </div> <div class="knob-label"><strong>BALANCE :&nbsp;<i class="fa fa-rupee " ></i> <?php echo $capitalb->balcapitalbudget;?></strong> </div>
<?php <?php
} }
} }
?> ?>
</div> </div>
<!-- ./col --> <!-- ./col -->
@ -996,8 +989,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<!-- /.box-footer --> <!-- /.box-footer -->
</div> </div>
</div> </div>
</div> </div>
<!--<div class="box box-success"> <!--<div class="box box-success">
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">Bar Chart</h3> <h3 class="box-title">Bar Chart</h3>
@ -1050,7 +1043,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
</script>--> </script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="<?php echo base_url(); ?>assets/plugins/morris/morris.min.js"></script> <script src="<?php echo base_url(); ?>assets/plugins/morris/morris.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
@ -1174,29 +1167,29 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
var capital = <?php echo JSON_encode($getTotalcapitalPoCount)?>; var capital = <?php echo JSON_encode($getTotalcapitalPoCount)?>;
var revenue = <?php echo JSON_encode($getTotalrevenuePoCount)?>; var revenue = <?php echo JSON_encode($getTotalrevenuePoCount)?>;
// alert(service.PONO); // alert(service.PONO);
var serviceValues = []; var serviceValues = [];
// var arr = new Array(); // var arr = new Array();
$.each (service,function(idx,obj){ $.each (service,function(idx,obj){
serviceValues.push(obj[0].totalService); serviceValues.push(obj[0].totalService);
}); });
var ImportValues = []; var ImportValues = [];
// var arr = new Array(); // var arr = new Array();
$.each (Import,function(idx,obj){ $.each (Import,function(idx,obj){
ImportValues.push(obj[0].totalImport); ImportValues.push(obj[0].totalImport);
}); });
var capitalValues = []; var capitalValues = [];
// var arr = new Array(); // var arr = new Array();
$.each (capital,function(idx,obj){ $.each (capital,function(idx,obj){
capitalValues.push(obj[0].totalcapital); capitalValues.push(obj[0].totalcapital);
}); });
var revenueValues = []; var revenueValues = [];
// var arr = new Array(); // var arr = new Array();
$.each (revenue,function(idx,obj){ $.each (revenue,function(idx,obj){
revenueValues.push(obj[0].totalrevenue); revenueValues.push(obj[0].totalrevenue);
}); });
//console.log(serviceValues); //console.log(serviceValues);
//alert(arr.total2); //alert(arr.total2);
var salesChartData = { var salesChartData = {
labels: [ "April", "May", "June", "July", "August", "September", "October", "November", "December","January", "February", "March"], labels: [ "April", "May", "June", "July", "August", "September", "October", "November", "December","January", "February", "March"],
@ -1210,7 +1203,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
pointStrokeColor: "rgba(60,141,188,1)", pointStrokeColor: "rgba(60,141,188,1)",
pointHighlightFill: "#fff", pointHighlightFill: "#fff",
pointHighlightStroke: "rgba(60,141,188,1)", pointHighlightStroke: "rgba(60,141,188,1)",
data:[serviceValues[3],serviceValues[4],serviceValues[5],serviceValues[6],serviceValues[7],serviceValues[8],serviceValues[9],serviceValues[10],serviceValues[11],serviceValues[0],serviceValues[1],serviceValues[2]] data:[serviceValues[3],serviceValues[4],serviceValues[5],serviceValues[6],serviceValues[7],serviceValues[8],serviceValues[9],serviceValues[10],serviceValues[11],serviceValues[0],serviceValues[1],serviceValues[2]]
}, },
@ -1383,7 +1376,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<?php <?php
} }
?> ?>
</section> </section>
</div> </div>

View File

@ -1235,7 +1235,9 @@
<label>Date</label> <label>Date</label>
<div class="form-group"> <div class="form-group">
<?php <?php
$date = date('d-m-Y'); $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$date = $dt->format('d-m-Y');
$data = array('name' => 'date','value' => set_value('date',$date),'id'=>'date', 'class' => 'form-control' ,'readonly' => 'true'); $data = array('name' => 'date','value' => set_value('date',$date),'id'=>'date', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data); echo form_input($data);
?> ?>