CHANGE_VIEW_ALIGNMENT_FIX

This commit is contained in:
aadhavan valli 2024-09-06 17:24:09 +05:30
parent 6e2df9bcaa
commit 75e6d7653c
7 changed files with 1610 additions and 1514 deletions

View File

@ -244,6 +244,7 @@ class Supplier extends BaseController
$file2 = $this->request->getFile('Cert_GST'); $file2 = $this->request->getFile('Cert_GST');
$file3 = $this->request->getFile('Cert_BANK'); $file3 = $this->request->getFile('Cert_BANK');
$path = ROOTPATH.'public/uploads/images/'; $path = ROOTPATH.'public/uploads/images/';
if($PAN){ $supplier['PAN'] = $PAN;} if($PAN){ $supplier['PAN'] = $PAN;}
if($GSTNo){ $supplier['GSTNO'] = $GSTNo;} if($GSTNo){ $supplier['GSTNO'] = $GSTNo;}
if ($file2 && $file2->isValid() && !$file2->hasMoved()) { if ($file2 && $file2->isValid() && !$file2->hasMoved()) {

View File

@ -769,7 +769,7 @@ if (!empty($filenames)) {
url: "<?php echo base_url() ?>companycontroller/deletefile", url: "<?php echo base_url() ?>companycontroller/deletefile",
success: function(data) { success: function(data) {
if (data) { if (data) {
$('#content').loader('hide'); // $('#content').loader('hide');
alert(data); alert(data);
location.reload(); location.reload();
@ -940,7 +940,7 @@ if (!empty($filenames)) {
//if(bankname != '' || ifsccode != '' || bankaddress != '' ) //if(bankname != '' || ifsccode != '' || bankaddress != '' )
//{ //{
$('#content').loader('show'); // $('#content').loader('show');
$.ajax({ $.ajax({
data: { data: {
@ -951,7 +951,7 @@ if (!empty($filenames)) {
success: function(data) { success: function(data) {
$('#content').loader('hide'); // $('#content').loader('hide');
alert(data); alert(data);

View File

@ -3,14 +3,10 @@
$Empcnt = ''; $Empcnt = '';
//echo $DEPCode; //echo $DEPCode;
//echo ROLE_MANAGER; //echo ROLE_MANAGER;
if(!empty($EmpCount)) if (!empty($EmpCount)) {
{ foreach ($EmpCount as $Emp) {
foreach ($EmpCount as $Emp)
{
$Empcnt = $Emp->EmpCount; $Empcnt = $Emp->EmpCount;
} }
} }
?> ?>
@ -19,13 +15,14 @@ if(!empty($EmpCount))
<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">
@ -56,13 +53,15 @@ if(!empty($EmpCount))
<script> <script>
$( function() $(function() {
{
//$( "#datepick" ).datepicker({maxDate: 'Date-1', dateFormat: 'dd-mm-yy' }).val(); //$( "#datepick" ).datepicker({maxDate: 'Date-1', dateFormat: 'dd-mm-yy' }).val();
//$( "#datepic" ).datepicker({maxDate: 'Date-1', dateFormat: 'dd-mm-yy' }).val(); //$( "#datepic" ).datepicker({maxDate: 'Date-1', dateFormat: 'dd-mm-yy' }).val();
// $("#datepic").datepicker({ defaultDate: '-2m'}); // $("#datepic").datepicker({ defaultDate: '-2m'});
$('#datepick').datepicker({maxDate: 'Date-1', dateFormat: 'dd-mm-yy' }).datepicker('setDate',new Date()); $('#datepick').datepicker({
maxDate: 'Date-1',
dateFormat: 'dd-mm-yy'
}).datepicker('setDate', new Date());
}); });
</script> </script>
@ -70,9 +69,7 @@ if(!empty($EmpCount))
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() {
$(document).ready(function()
{
//$("#employee").select2(); //$("#employee").select2();
//$("#employeeAttan").select2(); //$("#employeeAttan").select2();
$("#emp").select2(); $("#emp").select2();
@ -81,7 +78,6 @@ if(!empty($EmpCount))
<script type="text/javascript"> <script type="text/javascript">
function synczohobooks() { function synczohobooks() {
var sync = true var sync = true
@ -91,32 +87,34 @@ function synczohobooks(){
url: "<?php echo base_url() ?>user/zohobooks_api_fetch_all", url: "<?php echo base_url() ?>user/zohobooks_api_fetch_all",
type: "post", type: "post",
data:{sync}, data: {
sync
},
success: function(data) { success: function(data) {
console.log(data); console.log(data);
alert("Sync Completed"); alert("Sync Completed");
},failure:function(data){alert("Failed");}, },
failure: function(data) {
alert("Failed");
},
complete: function() { complete: function() {
$('#loader_wrapper').css("display", "none"); $('#loader_wrapper').css("display", "none");
} }
}); });
} }
</script> </script>
<style> <style>
.small-box .icon .small-box .icon {
{
top: 0px !important; top: 0px !important;
} }
</style> </style>
<?php <?php
if($DEPCode == HR) if ($DEPCode == HR) {
{
?> ?>
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content Header (Page header) --> <!-- Content Header (Page header) -->
@ -132,7 +130,9 @@ function synczohobooks(){
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-aqua"> <div class="small-box bg-aqua">
<a href="#" class="small-box-footer"><p> <strong>TOTAL NO OF EMPLOYEES</strong> </p> </a> <a href="#" class="small-box-footer">
<p> <strong>TOTAL NO OF EMPLOYEES</strong> </p>
</a>
<div class="inner"> <div class="inner">
<?php <?php
if (!empty($totemp)) { if (!empty($totemp)) {
@ -158,11 +158,12 @@ function synczohobooks(){
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-red"> <div class="small-box bg-red">
<a target= "_blank" href="<?php echo base_url(); ?>loanreports" class="small-box-footer"> <p> <strong>TOTAL LOAN</strong> </p></a> <a target="_blank" href="<?php echo base_url(); ?>loanreports" class="small-box-footer">
<p> <strong>TOTAL LOAN</strong> </p>
</a>
<div class="inner"> <div class="inner">
<?php if(!empty($totloan)) <?php if (!empty($totloan)) {
{
foreach ($totloan as $req_p) { foreach ($totloan as $req_p) {
?> ?>
@ -181,11 +182,8 @@ function synczohobooks(){
</div> </div>
<a target="_blank" href="<?php echo base_url(); ?>loanreports" class="small-box-footer"> <a target="_blank" href="<?php echo base_url(); ?>loanreports" class="small-box-footer">
LOAN TO BE RECOVERED : <?php if(!empty($totrec)) LOAN TO BE RECOVERED : <?php if (!empty($totrec)) {
{ foreach ($totrec as $ordervalue) {
foreach($totrec as $ordervalue)
{
?> ?>
@ -206,11 +204,15 @@ function synczohobooks(){
<!-- small box --> <!-- small box -->
<div class="small-box bg-yellow"> <div class="small-box bg-yellow">
<a class="small-box-footer"> <p><strong>SALARY COST</strong></p></a> <a class="small-box-footer">
<p><strong>SALARY COST</strong></p>
</a>
<div class="inner" style="padding: 14px;"> <div class="inner" style="padding: 14px;">
<h3 ><div class="fa fa-rupee" id="today_salary" style="font-size:bold"> <b><?php echo $employeeSalary;?></b> <h3>
</div></h3> <div class="fa fa-rupee" id="today_salary" style="font-size:bold"> <b><?php echo $employeeSalary; ?></b>
</div>
</h3>
<input type="text" id="datepick" placeholder="Select Date" style="color:#000;width:30%" /> <input type="text" id="datepick" placeholder="Select Date" style="color:#000;width:30%" />
@ -219,7 +221,8 @@ function synczohobooks(){
<i class="ion ion-calculator"></i> <i class="ion ion-calculator"></i>
</div> </div>
<a class="small-box-footer" style="z-index:0; "> THIS MONTH : <i class="fa fa-rupee"></i> <div id="totalSalary"> <?php echo $totalSalary;?> </div> <a class="small-box-footer" style="z-index:0; "> THIS MONTH : <i class="fa fa-rupee"></i>
<div id="totalSalary"> <?php echo $totalSalary; ?> </div>
</a> </a>
</div> </div>
</div> </div>
@ -227,11 +230,14 @@ function synczohobooks(){
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-green"> <div class="small-box bg-green">
<a href="#" class="small-box-footer"> <p> <strong>TOTAL EMPLOYEES ABSENT</strong> </p></a> <a href="#" class="small-box-footer">
<p> <strong>TOTAL EMPLOYEES ABSENT</strong> </p>
</a>
<h3> <h3>
<div class="inner" id="today_abs"> <div class="inner" id="today_abs">
<h3> <?php echo $today; ?></h3> <h3> <?php echo $today; ?></h3>
</div></h3> </div>
</h3>
<p>ABSENT</p><br> <p>ABSENT</p><br>
<div class="icon"> <div class="icon">
<i class="ion ion-android-calendar"></i> <i class="ion ion-android-calendar"></i>
@ -256,8 +262,7 @@ function synczohobooks(){
<?php <?php
$options = array("0" => 'Select Employee'); $options = array("0" => 'Select Employee');
//print_r( $options); //print_r( $options);
if(!empty($emplist)) if (!empty($emplist)) {
{
foreach ($emplist as $SID): foreach ($emplist as $SID):
$options[$SID->EmpID] = $SID->name . ' ' . ' - ' . ' ' . $SID->EmpID; $options[$SID->EmpID] = $SID->name . ' ' . ' - ' . ' ' . $SID->EmpID;
endforeach; endforeach;
@ -292,18 +297,25 @@ function synczohobooks(){
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
google.charts.load('current', {'packages':['gauge']}); google.charts.load('current', {
'packages': ['gauge']
});
google.charts.setOnLoadCallback(drawChart); google.charts.setOnLoadCallback(drawChart);
function drawChart() { function drawChart() {
var data = google.visualization.arrayToDataTable([ var data = google.visualization.arrayToDataTable([
['Label', 'Value'], ['Label', 'Value'],
['Year', 0] ['Year', 0]
]); ]);
var options = { var options = {
width: 600, height: 250, width: 600,
redFrom: 0, redTo: 20, height: 250,
yellowFrom:20, yellowTo: 50, redFrom: 0,
greenFrom:50, greenTo: 100, redTo: 20,
yellowFrom: 20,
yellowTo: 50,
greenFrom: 50,
greenTo: 100,
minorTicks: 5 minorTicks: 5
}; };
var chart = new google.visualization.Gauge(document.getElementById('chart_div')); var chart = new google.visualization.Gauge(document.getElementById('chart_div'));
@ -313,12 +325,13 @@ function synczohobooks(){
var id = $('#emp').val(); var id = $('#emp').val();
$("#yearabs").val(''); $("#yearabs").val('');
if(id != 0) if (id != 0) {
{
$('#content').loader('show'); $('#content').loader('show');
$.ajax({ $.ajax({
data:{id:id}, data: {
id: id
},
dataType: 'json', dataType: 'json',
type: "POST", type: "POST",
url: "<?php echo base_url(); ?>user/attendanceyear", url: "<?php echo base_url(); ?>user/attendanceyear",
@ -340,9 +353,7 @@ function synczohobooks(){
}); });
//$('#content').loader('hide'); //$('#content').loader('hide');
} } else {
else
{
alert('Please select the Employee'); alert('Please select the Employee');
$('#totaldays').text(0); $('#totaldays').text(0);
$('#worked').text(0); $('#worked').text(0);
@ -355,7 +366,6 @@ function synczohobooks(){
}); });
} }
</script> </script>
<!------ Month------> <!------ Month------>
@ -424,7 +434,8 @@ function synczohobooks(){
<div class="inner" id="abs_name"> <div class="inner" id="abs_name">
<!-- <h3> <?php // echo $abs_name;?></h3> <!-- <h3> <?php // echo $abs_name;
?></h3>
--> -->
@ -476,11 +487,12 @@ function synczohobooks(){
} }
?> ?>
<script type="text/javascript"> <script type="text/javascript">
google.charts.load('current', {'packages':['gauge']}); google.charts.load('current', {
'packages': ['gauge']
});
google.charts.setOnLoadCallback(drawChart); google.charts.setOnLoadCallback(drawChart);
function drawChart() function drawChart() {
{
var data = google.visualization.arrayToDataTable([ var data = google.visualization.arrayToDataTable([
['Label', 'Value'], ['Label', 'Value'],
@ -489,10 +501,14 @@ function synczohobooks(){
]); ]);
var options = { var options = {
width: 600, height: 250, width: 600,
redFrom: 0, redTo: 20, height: 250,
yellowFrom:20, yellowTo: 50, redFrom: 0,
greenFrom:50, greenTo: 100, redTo: 20,
yellowFrom: 20,
yellowTo: 50,
greenFrom: 50,
greenTo: 100,
minorTicks: 5 minorTicks: 5
}; };
var chart = new google.visualization.Gauge(document.getElementById('chart_divs')); var chart = new google.visualization.Gauge(document.getElementById('chart_divs'));
@ -508,12 +524,13 @@ $('#emp').change(function() {
//alert(datepick); //alert(datepick);
$("#monthabs").val(''); $("#monthabs").val('');
if(id != 0) if (id != 0) {
{
$('#content').loader('show'); $('#content').loader('show');
$.ajax({ $.ajax({
data:{id:id}, data: {
id: id
},
dataType: 'json', dataType: 'json',
type: "POST", type: "POST",
url: "<?php echo base_url(); ?>user/monthattendance", url: "<?php echo base_url(); ?>user/monthattendance",
@ -539,9 +556,7 @@ $("#monthabs").val('');
}); });
//$('#content').loader('hide'); //$('#content').loader('hide');
} } else {
else
{
//alert('Please select the Employee'); //alert('Please select the Employee');
$("#present").text(0); $("#present").text(0);
$("#total_days").text(0); $("#total_days").text(0);
@ -553,14 +568,8 @@ $("#monthabs").val('');
}); });
} }
</script> </script>
<script> <script>
$('#datepick').change(function() { $('#datepick').change(function() {
//var datepick = $('#emp').val(); //var datepick = $('#emp').val();
//alert(); //alert();
@ -571,7 +580,9 @@ $('#datepick').change(function() {
$.ajax({ $.ajax({
data:{id:id}, data: {
id: id
},
dataType: 'json', dataType: 'json',
type: "POST", type: "POST",
url: "<?php echo base_url(); ?>user/dateFunctionChangeVales", url: "<?php echo base_url(); ?>user/dateFunctionChangeVales",
@ -597,17 +608,12 @@ $('#datepick').change(function() {
}); });
}); });
</script> </script>
<!-- \\\\\\\\\\\\\\\ HR END of the part ////////////////////////--> <!-- \\\\\\\\\\\\\\\ HR END of the part ////////////////////////-->
<!-- Dashboard for admin || $role == ROLE_MANAGER --> <!-- Dashboard for admin || $role == ROLE_MANAGER -->
<?php <?php
if($role == ROLE_ADMIN && $DEPCode != MANAGEMENT && $DEPCode != HR) if ($role == ROLE_ADMIN && $DEPCode != MANAGEMENT && $DEPCode != HR) {
{
?> ?>
<div class="content-page"> <div class="content-page">
<div class="content"> <div class="content">
@ -643,7 +649,8 @@ $('#datepick').change(function() {
<div> <div>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="User Registrations">User Registrations</h5> <h5 class="text-muted font-weight-normal mt-0 text-truncate" title="User Registrations">User Registrations</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup"><?php $users = isset($UserCount[0]->users) ? $UserCount[0]->users : 0; ?> <h3 class="my-2 py-1"><span data-plugin="counterup"><?php $users = isset($UserCount[0]->users) ? $UserCount[0]->users : 0; ?>
<h3><?= $users; ?></h3></span></h3> <h3><?= $users; ?></h3>
</span></h3>
<p class="mb-0 text-muted"> <p class="mb-0 text-muted">
<?php $employees = isset($EmpCount[0]->EmpCount) ? $EmpCount[0]->EmpCount : 0; ?> <?php $employees = isset($EmpCount[0]->EmpCount) ? $EmpCount[0]->EmpCount : 0; ?>
<?php echo $employees > 1 ? '<small>' . $employees . ' Employees </small>' : ($employees == 1 ? '<small>' . $employees . ' Employee</small>' : ''); ?></span> <?php echo $employees > 1 ? '<small>' . $employees . ' Employees </small>' : ($employees == 1 ? '<small>' . $employees . ' Employee</small>' : ''); ?></span>
@ -651,9 +658,10 @@ $('#datepick').change(function() {
</div> </div>
<div class="avatar-sm"> <div class="avatar-sm">
<span class="avatar-title bg-soft-primary rounded"> <span class="avatar-title bg-soft-primary rounded">
<i class="fe-arrow-right" style="color:black;"> <a href="<?php echo base_url(); ?>userListing"> <i class="fe-arrow-right" style="color:black;">
<a href="<?php echo base_url(); ?>userListing"></a>
</i> </i>
</a>
</span> </span>
</div> </div>
@ -681,13 +689,14 @@ $('#datepick').change(function() {
<!-- 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">
@ -714,8 +723,7 @@ $('#datepick').change(function() {
<?php <?php
} }
if($DEPCode == MANAGEMENT) if ($DEPCode == MANAGEMENT) {
{
?> ?>
<head> <head>
@ -727,14 +735,108 @@ $('#datepick').change(function() {
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) {
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+" "+ var e = function(b, c) {
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"}, b.extend(!0, c.defaults, {
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); 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 + " " +
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> </script>
<style> <style>
table { table {
margin: 0 auto; margin: 0 auto;
width: 100%; width: 100%;
@ -745,7 +847,11 @@ 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;
@ -761,9 +867,6 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
text-align: right; text-align: right;
left: -20%; left: -20%;
} }
</style> </style>
<div> <div>
<section class="content"> <section class="content">
@ -772,12 +875,12 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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)
{
?> ?>
@ -801,8 +904,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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) {
?> ?>
@ -829,11 +931,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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">
@ -843,11 +942,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
} }
} }
?> ?>
<?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>
@ -870,8 +966,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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) {
?> ?>
@ -951,11 +1046,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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>
@ -970,11 +1062,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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>
@ -989,11 +1078,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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>
@ -1007,11 +1093,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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>
@ -1045,11 +1128,9 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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($typebal)) if (!empty($typebal)) {
{
foreach ($typebal as $serviceb) foreach ($typebal as $serviceb)
$sb=$service->totalservicebudget-$serviceb->sr; $sb = $service->totalservicebudget - $serviceb->sr; {
{
?> ?>
<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 <input type="text" class="knob" data-thickness="0.4" data-readonly="true" value=<?php
@ -1069,11 +1150,9 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<?php // if(!empty($totalrevenuepo)) <?php // if(!empty($totalrevenuepo))
// { // {
foreach ($revenuebudgt as $revenue) foreach ($revenuebudgt as $revenue)
if(!empty($typebal)) if (!empty($typebal)) {
{
foreach ($typebal as $revenueb) foreach ($typebal as $revenueb)
$rb=$revenue->totalrevenuebudget-$revenueb->rv; $rb = $revenue->totalrevenuebudget - $revenueb->rv; {
{
?> ?>
<div class="knob-label"><strong style="color:#dd4b39">REVENUE BUDGET</strong></div> <div class="knob-label"><strong style="color:#dd4b39">REVENUE BUDGET</strong></div>
@ -1093,8 +1172,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<?php foreach ($importbudgt as $import) <?php foreach ($importbudgt as $import)
if (!empty($typebal)) { if (!empty($typebal)) {
foreach ($typebal as $importb) foreach ($typebal as $importb)
$im=$import->totalimportbudget-$importb->im; $im = $import->totalimportbudget - $importb->im; {
{
?> ?>
<div class="knob-label"><strong style="color:#00a65a">IMPORT BUDGET</strong></div> <div class="knob-label"><strong style="color:#00a65a">IMPORT BUDGET</strong></div>
@ -1112,8 +1190,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<?php foreach ($capitalbud as $capital) <?php foreach ($capitalbud as $capital)
if (!empty($typebal)) { if (!empty($typebal)) {
foreach ($typebal as $capitalb) foreach ($typebal as $capitalb)
$ca=$capital->totalcapitalbudget-$capitalb->ca; $ca = $capital->totalcapitalbudget - $capitalb->ca; {
{
?> ?>
<div class="knob-label"><strong style="color:#f39c12">CAPITAL BUDGET</strong></div> <div class="knob-label"><strong style="color:#f39c12">CAPITAL BUDGET</strong></div>
@ -1185,10 +1262,10 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<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(); ?>public/assets/plugins/morris/morris.min.js"></script> <script src="<?php echo base_url(); ?>public/assets/plugins/morris/morris.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
/* jQueryKnob */ $(".knob").knob({ /* jQueryKnob */
$(".knob").knob({
/*change : function (value) { /*change : function (value) {
@ -1211,29 +1288,41 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
draw: function() { // "tron" case draw: function() { // "tron" case
if (this.$.data('skin') == 'tron') { var a = this.angle(this.cv) // Angle if (this.$.data('skin') == 'tron') {
var a = this.angle(this.cv) // Angle
, sa = this.startAngle // Previous start angle ,
sa = this.startAngle // Previous start angle
, sat = this.startAngle // Start angle ,
sat = this.startAngle // Start angle
, ea // Previous end angle ,
ea // Previous end angle
, eat = sat + a // End angle , eat = sat + a // End angle
, r = true; this.g.lineWidth = this.lineWidth; this.o.cursor ,
r = true;
this.g.lineWidth = this.lineWidth;
this.o.cursor
&& (sat = eat - 0.3) &&
(sat = eat - 0.3)
&& (eat = eat + 0.3); if (this.o.displayPrevious) { &&
(eat = eat + 0.3);
if (this.o.displayPrevious) {
ea = this.startAngle + this.angle(this.value); ea = this.startAngle + this.angle(this.value);
this.o.cursor this.o.cursor
&& (sa = ea - 0.3) &&
(sa = ea - 0.3)
&& (ea = ea + 0.3); &&
(ea = ea + 0.3);
this.g.beginPath(); this.g.beginPath();
@ -1243,13 +1332,15 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
this.g.stroke(); this.g.stroke();
} this.g.beginPath(); }
this.g.beginPath();
this.g.strokeStyle = r ? this.o.fgColor : this.fgColor; this.g.strokeStyle = r ? this.o.fgColor : this.fgColor;
this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false); this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false);
this.g.stroke(); this.g.lineWidth = 2; this.g.stroke();
this.g.lineWidth = 2;
this.g.beginPath(); this.g.beginPath();
@ -1257,7 +1348,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false); this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false);
this.g.stroke(); return false; this.g.stroke();
return false;
} }
@ -1268,7 +1360,6 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
/* END JQUERY KNOB */ /* END JQUERY KNOB */
}) })
</script> </script>
<!-- Main row --> <!-- Main row -->
@ -1286,7 +1377,6 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<script src="<?php echo base_url(); ?>public/assets/plugins/knob/jquery.knob.js"></script> <script src="<?php echo base_url(); ?>public/assets/plugins/knob/jquery.knob.js"></script>
<script> <script>
/* ChartJS /* ChartJS
* ------- * -------
* Here we will create a few charts using ChartJS * Here we will create a few charts using ChartJS
@ -1437,8 +1527,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
// Get context with jQuery - using jQuery's .get() method. // Get context with jQuery - using jQuery's .get() method.
var pieChartCanvas = $("#pieChart").get(0).getContext("2d"); var pieChartCanvas = $("#pieChart").get(0).getContext("2d");
var pieChart = new Chart(pieChartCanvas); var pieChart = new Chart(pieChartCanvas);
var PieData = [ var PieData = [{
{
value: 700, value: 700,
color: "#f56954", color: "#f56954",
highlight: "#f56954", highlight: "#f56954",
@ -1507,9 +1596,6 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
// //----------------- // //-----------------
// //- END PIE CHART - // //- END PIE CHART -
// //----------------- // //-----------------
</script> </script>

View File

@ -313,6 +313,10 @@ if (!empty($supplier)) {
<!-- Supplier Information --> <!-- Supplier Information -->
<div class="col-md-12" style="margin-bottom: 27px;"> <div class="col-md-12" style="margin-bottom: 27px;">
<div class="form-row" style="margin-bottom:10px;"> <div class="form-row" style="margin-bottom:10px;">
<div class="col-md-2">
<label class="col-form-label" for="SupplierID">Supplier ID<span class="badge">*</span></label>
<input type="text" name="SupplierID" id="SupplierID" class="form-control" readonly value="<?php echo $SupplierID; ?>">
</div>
<div class="col-md-3"> <div class="col-md-3">
<label class="col-form-label" for="SupplierName">Supplier Name<span class="badge">*</span></label> <label class="col-form-label" for="SupplierName">Supplier Name<span class="badge">*</span></label>
<input type="text" name="SupplierName" maxlength="100" id="supplierName" class="form-control" required value="<?php echo $SupplierName; ?>"> <input type="text" name="SupplierName" maxlength="100" id="supplierName" class="form-control" required value="<?php echo $SupplierName; ?>">

View File

@ -183,7 +183,7 @@
], ],
pageLength: 10, // Default rows per page pageLength: 10, // Default rows per page
lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options
responsive: true, // Responsive table // responsive: true, // Responsive table
order: [], // Default ordering (column index 0, descending) order: [], // Default ordering (column index 0, descending)
language: { language: {
paginate: { paginate: {

View File

@ -204,7 +204,7 @@
<label for="cost" class="col-form-label">Cost</label> <label for="cost" class="col-form-label">Cost</label>
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<input type="number" name="cost" id="cost" class="form-control" onchange="totalCalculate()"> <input type="number" name="cost" id="cost" class="form-control" required onchange="totalCalculate()">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
@ -323,7 +323,7 @@
var expenseId = $(this).data('id'); var expenseId = $(this).data('id');
var supplier_list = [<?php echo $supplier_list; ?>]; var supplier_list = [<?php echo $supplier_list; ?>];
$('#supplierid').empty(); // Clear the supplier dropdown $('#supplierid').empty(); // Clear the supplier dropdown
$('#supplierid').append('<option>Select Supplier</option>'); $('#supplierid').append('<option value="0">Select Supplier</option>');
supplier_list[0].forEach(function(supplier) { supplier_list[0].forEach(function(supplier) {
$('#supplierid').append('<option value="' + supplier.SupplierID + '">' + supplier.SupplierName + '</option>'); $('#supplierid').append('<option value="' + supplier.SupplierID + '">' + supplier.SupplierName + '</option>');
}); });
@ -392,7 +392,7 @@
$('#payment_method').val(''); $('#payment_method').val('');
var supplier_list = [<?php echo $supplier_list; ?>]; var supplier_list = [<?php echo $supplier_list; ?>];
$('#supplierid').empty(); // Clear the supplier dropdown $('#supplierid').empty(); // Clear the supplier dropdown
$('#supplierid').append('<option>Select Supplier</option>'); $('#supplierid').append('<option value="0">Select Supplier</option>');
supplier_list[0].forEach(function(supplier) { supplier_list[0].forEach(function(supplier) {
$('#supplierid').append('<option value="' + supplier.SupplierID + '">' + supplier.SupplierName + '</option>'); $('#supplierid').append('<option value="' + supplier.SupplierID + '">' + supplier.SupplierName + '</option>');
@ -405,8 +405,10 @@
$('#tempClick').on('click', function(e) { $('#tempClick').on('click', function(e) {
e.preventDefault(); e.preventDefault();
if ($('#supplierid').val() != 0) {
// Native HTML5 form validation // Native HTML5 form validation
if ($('#expenseForm')[0].checkValidity()) { if ($('#expenseForm')[0].checkValidity()) {
var formData = new FormData($('#expenseForm')[0]); // Use FormData to handle file upload var formData = new FormData($('#expenseForm')[0]); // Use FormData to handle file upload
console.log(formActionUrl); console.log(formActionUrl);
@ -436,6 +438,9 @@
// If form is invalid, show native validation messages // If form is invalid, show native validation messages
$('#expenseForm')[0].reportValidity(); $('#expenseForm')[0].reportValidity();
} }
} else {
alert("Select Supplier");
}
}); });

View File

@ -178,7 +178,7 @@
url: "<?php echo base_url() ?>deletesupplier", url: "<?php echo base_url() ?>deletesupplier",
success: function(data) { success: function(data) {
if (data) { if (data) {
$('#content').loader('hide'); // $('#content').loader('hide');
alert(data); alert(data);
location.reload(); location.reload();
} }