CHANGE_VIEW_ALIGNMENT_FIX
This commit is contained in:
parent
6e2df9bcaa
commit
75e6d7653c
@ -244,6 +244,7 @@ class Supplier extends BaseController
|
||||
$file2 = $this->request->getFile('Cert_GST');
|
||||
$file3 = $this->request->getFile('Cert_BANK');
|
||||
$path = ROOTPATH.'public/uploads/images/';
|
||||
|
||||
if($PAN){ $supplier['PAN'] = $PAN;}
|
||||
if($GSTNo){ $supplier['GSTNO'] = $GSTNo;}
|
||||
if ($file2 && $file2->isValid() && !$file2->hasMoved()) {
|
||||
|
||||
@ -769,7 +769,7 @@ if (!empty($filenames)) {
|
||||
url: "<?php echo base_url() ?>companycontroller/deletefile",
|
||||
success: function(data) {
|
||||
if (data) {
|
||||
$('#content').loader('hide');
|
||||
// $('#content').loader('hide');
|
||||
alert(data);
|
||||
|
||||
location.reload();
|
||||
@ -940,7 +940,7 @@ if (!empty($filenames)) {
|
||||
|
||||
//if(bankname != '' || ifsccode != '' || bankaddress != '' )
|
||||
//{
|
||||
$('#content').loader('show');
|
||||
// $('#content').loader('show');
|
||||
$.ajax({
|
||||
|
||||
data: {
|
||||
@ -951,7 +951,7 @@ if (!empty($filenames)) {
|
||||
|
||||
success: function(data) {
|
||||
|
||||
$('#content').loader('hide');
|
||||
// $('#content').loader('hide');
|
||||
alert(data);
|
||||
|
||||
|
||||
|
||||
@ -3,14 +3,10 @@
|
||||
$Empcnt = '';
|
||||
//echo $DEPCode;
|
||||
//echo ROLE_MANAGER;
|
||||
if(!empty($EmpCount))
|
||||
{
|
||||
foreach ($EmpCount as $Emp)
|
||||
{
|
||||
if (!empty($EmpCount)) {
|
||||
foreach ($EmpCount as $Emp) {
|
||||
$Empcnt = $Emp->EmpCount;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -19,13 +15,14 @@ if(!empty($EmpCount))
|
||||
<section class="content">
|
||||
<!-- Dashboard for Account department-->
|
||||
<?php
|
||||
if($DEPCode == FINANCE)
|
||||
{
|
||||
if ($DEPCode == FINANCE) {
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<center><h1> Accounts Department Dashboard</h1> </center>
|
||||
<center>
|
||||
<h1> Accounts Department Dashboard</h1>
|
||||
</center>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
@ -56,13 +53,15 @@ if(!empty($EmpCount))
|
||||
|
||||
|
||||
<script>
|
||||
$( function()
|
||||
{
|
||||
$(function() {
|
||||
//$( "#datepick" ).datepicker({maxDate: 'Date-1', dateFormat: 'dd-mm-yy' }).val();
|
||||
|
||||
//$( "#datepic" ).datepicker({maxDate: 'Date-1', dateFormat: 'dd-mm-yy' }).val();
|
||||
// $("#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>
|
||||
@ -70,9 +69,7 @@ if(!empty($EmpCount))
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function() {
|
||||
//$("#employee").select2();
|
||||
//$("#employeeAttan").select2();
|
||||
$("#emp").select2();
|
||||
@ -81,7 +78,6 @@ if(!empty($EmpCount))
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function synczohobooks() {
|
||||
|
||||
var sync = true
|
||||
@ -91,32 +87,34 @@ function synczohobooks(){
|
||||
|
||||
url: "<?php echo base_url() ?>user/zohobooks_api_fetch_all",
|
||||
type: "post",
|
||||
data:{sync},
|
||||
data: {
|
||||
sync
|
||||
},
|
||||
|
||||
success: function(data) {
|
||||
console.log(data);
|
||||
alert("Sync Completed");
|
||||
},failure:function(data){alert("Failed");},
|
||||
},
|
||||
failure: function(data) {
|
||||
alert("Failed");
|
||||
},
|
||||
complete: function() {
|
||||
$('#loader_wrapper').css("display", "none");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
.small-box .icon
|
||||
{
|
||||
.small-box .icon {
|
||||
top: 0px !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<?php
|
||||
if($DEPCode == HR)
|
||||
{
|
||||
if ($DEPCode == HR) {
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
@ -132,7 +130,9 @@ function synczohobooks(){
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<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">
|
||||
<?php
|
||||
if (!empty($totemp)) {
|
||||
@ -158,11 +158,12 @@ function synczohobooks(){
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<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">
|
||||
|
||||
<?php if(!empty($totloan))
|
||||
{
|
||||
<?php if (!empty($totloan)) {
|
||||
foreach ($totloan as $req_p) {
|
||||
|
||||
?>
|
||||
@ -181,11 +182,8 @@ function synczohobooks(){
|
||||
</div>
|
||||
|
||||
<a target="_blank" href="<?php echo base_url(); ?>loanreports" class="small-box-footer">
|
||||
LOAN TO BE RECOVERED : <?php if(!empty($totrec))
|
||||
{
|
||||
foreach($totrec as $ordervalue)
|
||||
|
||||
{
|
||||
LOAN TO BE RECOVERED : <?php if (!empty($totrec)) {
|
||||
foreach ($totrec as $ordervalue) {
|
||||
|
||||
?>
|
||||
|
||||
@ -206,11 +204,15 @@ function synczohobooks(){
|
||||
<!-- small box -->
|
||||
<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;">
|
||||
|
||||
<h3 ><div class="fa fa-rupee" id="today_salary" style="font-size:bold"> <b><?php echo $employeeSalary;?></b>
|
||||
</div></h3>
|
||||
<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%" />
|
||||
|
||||
|
||||
@ -219,7 +221,8 @@ function synczohobooks(){
|
||||
|
||||
<i class="ion ion-calculator"></i>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
@ -227,11 +230,14 @@ function synczohobooks(){
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<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>
|
||||
<div class="inner" id="today_abs">
|
||||
<h3> <?php echo $today; ?></h3>
|
||||
</div></h3>
|
||||
</div>
|
||||
</h3>
|
||||
<p>ABSENT</p><br>
|
||||
<div class="icon">
|
||||
<i class="ion ion-android-calendar"></i>
|
||||
@ -256,8 +262,7 @@ function synczohobooks(){
|
||||
<?php
|
||||
$options = array("0" => 'Select Employee');
|
||||
//print_r( $options);
|
||||
if(!empty($emplist))
|
||||
{
|
||||
if (!empty($emplist)) {
|
||||
foreach ($emplist as $SID):
|
||||
$options[$SID->EmpID] = $SID->name . ' ' . ' - ' . ' ' . $SID->EmpID;
|
||||
endforeach;
|
||||
@ -292,18 +297,25 @@ function synczohobooks(){
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
google.charts.load('current', {'packages':['gauge']});
|
||||
google.charts.load('current', {
|
||||
'packages': ['gauge']
|
||||
});
|
||||
google.charts.setOnLoadCallback(drawChart);
|
||||
|
||||
function drawChart() {
|
||||
var data = google.visualization.arrayToDataTable([
|
||||
['Label', 'Value'],
|
||||
['Year', 0]
|
||||
]);
|
||||
var options = {
|
||||
width: 600, height: 250,
|
||||
redFrom: 0, redTo: 20,
|
||||
yellowFrom:20, yellowTo: 50,
|
||||
greenFrom:50, greenTo: 100,
|
||||
width: 600,
|
||||
height: 250,
|
||||
redFrom: 0,
|
||||
redTo: 20,
|
||||
yellowFrom: 20,
|
||||
yellowTo: 50,
|
||||
greenFrom: 50,
|
||||
greenTo: 100,
|
||||
minorTicks: 5
|
||||
};
|
||||
var chart = new google.visualization.Gauge(document.getElementById('chart_div'));
|
||||
@ -313,12 +325,13 @@ function synczohobooks(){
|
||||
var id = $('#emp').val();
|
||||
$("#yearabs").val('');
|
||||
|
||||
if(id != 0)
|
||||
{
|
||||
if (id != 0) {
|
||||
$('#content').loader('show');
|
||||
|
||||
$.ajax({
|
||||
data:{id:id},
|
||||
data: {
|
||||
id: id
|
||||
},
|
||||
dataType: 'json',
|
||||
type: "POST",
|
||||
url: "<?php echo base_url(); ?>user/attendanceyear",
|
||||
@ -340,9 +353,7 @@ function synczohobooks(){
|
||||
|
||||
});
|
||||
//$('#content').loader('hide');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
alert('Please select the Employee');
|
||||
$('#totaldays').text(0);
|
||||
$('#worked').text(0);
|
||||
@ -355,7 +366,6 @@ function synczohobooks(){
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<!------ Month------>
|
||||
@ -424,7 +434,8 @@ function synczohobooks(){
|
||||
|
||||
<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">
|
||||
google.charts.load('current', {'packages':['gauge']});
|
||||
google.charts.load('current', {
|
||||
'packages': ['gauge']
|
||||
});
|
||||
google.charts.setOnLoadCallback(drawChart);
|
||||
|
||||
function drawChart()
|
||||
{
|
||||
function drawChart() {
|
||||
|
||||
var data = google.visualization.arrayToDataTable([
|
||||
['Label', 'Value'],
|
||||
@ -489,10 +501,14 @@ function synczohobooks(){
|
||||
]);
|
||||
|
||||
var options = {
|
||||
width: 600, height: 250,
|
||||
redFrom: 0, redTo: 20,
|
||||
yellowFrom:20, yellowTo: 50,
|
||||
greenFrom:50, greenTo: 100,
|
||||
width: 600,
|
||||
height: 250,
|
||||
redFrom: 0,
|
||||
redTo: 20,
|
||||
yellowFrom: 20,
|
||||
yellowTo: 50,
|
||||
greenFrom: 50,
|
||||
greenTo: 100,
|
||||
minorTicks: 5
|
||||
};
|
||||
var chart = new google.visualization.Gauge(document.getElementById('chart_divs'));
|
||||
@ -508,12 +524,13 @@ $('#emp').change(function() {
|
||||
//alert(datepick);
|
||||
$("#monthabs").val('');
|
||||
|
||||
if(id != 0)
|
||||
{
|
||||
if (id != 0) {
|
||||
$('#content').loader('show');
|
||||
|
||||
$.ajax({
|
||||
data:{id:id},
|
||||
data: {
|
||||
id: id
|
||||
},
|
||||
dataType: 'json',
|
||||
type: "POST",
|
||||
url: "<?php echo base_url(); ?>user/monthattendance",
|
||||
@ -539,9 +556,7 @@ $("#monthabs").val('');
|
||||
});
|
||||
|
||||
//$('#content').loader('hide');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
//alert('Please select the Employee');
|
||||
$("#present").text(0);
|
||||
$("#total_days").text(0);
|
||||
@ -553,14 +568,8 @@ $("#monthabs").val('');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<script>
|
||||
|
||||
$('#datepick').change(function() {
|
||||
//var datepick = $('#emp').val();
|
||||
//alert();
|
||||
@ -571,7 +580,9 @@ $('#datepick').change(function() {
|
||||
|
||||
|
||||
$.ajax({
|
||||
data:{id:id},
|
||||
data: {
|
||||
id: id
|
||||
},
|
||||
dataType: 'json',
|
||||
type: "POST",
|
||||
url: "<?php echo base_url(); ?>user/dateFunctionChangeVales",
|
||||
@ -597,17 +608,12 @@ $('#datepick').change(function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<!-- \\\\\\\\\\\\\\\ HR END of the part ////////////////////////-->
|
||||
<!-- Dashboard for admin || $role == ROLE_MANAGER -->
|
||||
<?php
|
||||
if($role == ROLE_ADMIN && $DEPCode != MANAGEMENT && $DEPCode != HR)
|
||||
{
|
||||
if ($role == ROLE_ADMIN && $DEPCode != MANAGEMENT && $DEPCode != HR) {
|
||||
?>
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
@ -643,7 +649,8 @@ $('#datepick').change(function() {
|
||||
<div>
|
||||
<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><?= $users; ?></h3></span></h3>
|
||||
<h3><?= $users; ?></h3>
|
||||
</span></h3>
|
||||
<p class="mb-0 text-muted">
|
||||
<?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>
|
||||
@ -651,9 +658,10 @@ $('#datepick').change(function() {
|
||||
</div>
|
||||
<div class="avatar-sm">
|
||||
<span class="avatar-title bg-soft-primary rounded">
|
||||
<i class="fe-arrow-right" style="color:black;">
|
||||
<a href="<?php echo base_url(); ?>userListing"></a>
|
||||
<a href="<?php echo base_url(); ?>userListing"> <i class="fe-arrow-right" style="color:black;">
|
||||
</i>
|
||||
</a>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@ -681,13 +689,14 @@ $('#datepick').change(function() {
|
||||
|
||||
<!-- Dashboard for Manager department-->
|
||||
<?php
|
||||
if($role == ROLE_MANAGER && $DEPCode != MANAGEMENT)
|
||||
{
|
||||
if ($role == ROLE_MANAGER && $DEPCode != MANAGEMENT) {
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<center><h1> Manager Department Dashboard</h1> </center>
|
||||
<center>
|
||||
<h1> Manager Department Dashboard</h1>
|
||||
</center>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
@ -714,8 +723,7 @@ $('#datepick').change(function() {
|
||||
<?php
|
||||
}
|
||||
|
||||
if($DEPCode == MANAGEMENT)
|
||||
{
|
||||
if ($DEPCode == MANAGEMENT) {
|
||||
?>
|
||||
|
||||
<head>
|
||||
@ -727,14 +735,108 @@ $('#datepick').change(function() {
|
||||
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);
|
||||
|
||||
(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>
|
||||
|
||||
table {
|
||||
margin: 0 auto;
|
||||
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 {
|
||||
margin: 0 auto;
|
||||
|
||||
@ -761,9 +867,6 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
text-align: right;
|
||||
left: -20%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
<div>
|
||||
<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">
|
||||
<a href="<?php echo base_url(); ?>Requisition">
|
||||
<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
|
||||
if(!empty($details))
|
||||
{
|
||||
foreach($details as $req)
|
||||
{
|
||||
if (!empty($details)) {
|
||||
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;">
|
||||
<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) {
|
||||
|
||||
?>
|
||||
@ -829,11 +931,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<a href="<?php echo base_url(); ?>TotalOrder">
|
||||
<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>
|
||||
<?php if(!empty($totalpurchaseorder))
|
||||
{
|
||||
foreach($totalpurchaseorder as $po)
|
||||
|
||||
{
|
||||
<?php if (!empty($totalpurchaseorder)) {
|
||||
foreach ($totalpurchaseorder as $po) {
|
||||
|
||||
?>
|
||||
<div class="info-box-content">
|
||||
@ -843,11 +942,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if(!empty($totalordervalue))
|
||||
{
|
||||
foreach($totalordervalue as $ordervalue)
|
||||
|
||||
{
|
||||
<?php if (!empty($totalordervalue)) {
|
||||
foreach ($totalordervalue as $ordervalue) {
|
||||
|
||||
?>
|
||||
<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">
|
||||
<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>
|
||||
<?php if(!empty($pendingpo))
|
||||
{
|
||||
<?php if (!empty($pendingpo)) {
|
||||
foreach ($pendingpo as $pendingpolist) {
|
||||
|
||||
?>
|
||||
@ -951,11 +1046,8 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<br><br>
|
||||
|
||||
<div class="progress-group">
|
||||
<?php if(!empty($servicebudgt))
|
||||
{
|
||||
foreach($servicebudgt as $service)
|
||||
|
||||
{
|
||||
<?php if (!empty($servicebudgt)) {
|
||||
foreach ($servicebudgt as $service) {
|
||||
|
||||
?>
|
||||
<span class="description-text"><strong style="font-size:16px;">SERVICE : </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>
|
||||
<!-- /.progress-group -->
|
||||
<div class="progress-group">
|
||||
<?php if(!empty($revenuebudgt))
|
||||
{
|
||||
foreach($revenuebudgt as $revenue)
|
||||
|
||||
{
|
||||
<?php if (!empty($revenuebudgt)) {
|
||||
foreach ($revenuebudgt as $revenue) {
|
||||
|
||||
?>
|
||||
<span class="description-text"><strong style="font-size:16px;">REVENUE : </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>
|
||||
<!-- /.progress-group -->
|
||||
<div class="progress-group">
|
||||
<?php if(!empty($importbudgt))
|
||||
{
|
||||
foreach($importbudgt as $import)
|
||||
|
||||
{
|
||||
<?php if (!empty($importbudgt)) {
|
||||
foreach ($importbudgt as $import) {
|
||||
|
||||
?>
|
||||
<span class="description-text"><strong style="font-size:16px;">IMPORT : </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>
|
||||
<!-- /.progress-group -->
|
||||
<div class="progress-group">
|
||||
<?php if(!empty($capitalbud))
|
||||
{
|
||||
foreach($capitalbud as $capital)
|
||||
|
||||
{
|
||||
<?php if (!empty($capitalbud)) {
|
||||
foreach ($capitalbud as $capital) {
|
||||
|
||||
?>
|
||||
<span class="description-text"><strong style="font-size:16px;">CAPITAL :  </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="description-block border-right">
|
||||
<?php foreach ($servicebudgt as $service)
|
||||
if(!empty($typebal))
|
||||
{
|
||||
if (!empty($typebal)) {
|
||||
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>
|
||||
<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))
|
||||
// {
|
||||
foreach ($revenuebudgt as $revenue)
|
||||
if(!empty($typebal))
|
||||
{
|
||||
if (!empty($typebal)) {
|
||||
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>
|
||||
@ -1093,8 +1172,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<?php foreach ($importbudgt as $import)
|
||||
if (!empty($typebal)) {
|
||||
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>
|
||||
@ -1112,8 +1190,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<?php foreach ($capitalbud as $capital)
|
||||
if (!empty($typebal)) {
|
||||
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>
|
||||
@ -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="<?php echo base_url(); ?>public/assets/plugins/morris/morris.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
/* jQueryKnob */ $(".knob").knob({
|
||||
/* jQueryKnob */
|
||||
$(".knob").knob({
|
||||
|
||||
|
||||
/*change : function (value) {
|
||||
@ -1211,29 +1288,41 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
|
||||
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
|
||||
|
||||
, 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);
|
||||
|
||||
this.o.cursor
|
||||
|
||||
&& (sa = ea - 0.3)
|
||||
&&
|
||||
(sa = ea - 0.3)
|
||||
|
||||
&& (ea = ea + 0.3);
|
||||
&&
|
||||
(ea = ea + 0.3);
|
||||
|
||||
this.g.beginPath();
|
||||
|
||||
@ -1243,13 +1332,15 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
|
||||
this.g.stroke();
|
||||
|
||||
} this.g.beginPath();
|
||||
}
|
||||
this.g.beginPath();
|
||||
|
||||
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.stroke(); this.g.lineWidth = 2;
|
||||
this.g.stroke();
|
||||
this.g.lineWidth = 2;
|
||||
|
||||
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.stroke(); return false;
|
||||
this.g.stroke();
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
@ -1268,7 +1360,6 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
/* END JQUERY KNOB */
|
||||
|
||||
})
|
||||
|
||||
</script>
|
||||
<!-- 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>
|
||||
|
||||
/* 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.
|
||||
var pieChartCanvas = $("#pieChart").get(0).getContext("2d");
|
||||
var pieChart = new Chart(pieChartCanvas);
|
||||
var PieData = [
|
||||
{
|
||||
var PieData = [{
|
||||
value: 700,
|
||||
color: "#f56954",
|
||||
highlight: "#f56954",
|
||||
@ -1507,9 +1596,6 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
// //-----------------
|
||||
// //- END PIE CHART -
|
||||
// //-----------------
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -313,6 +313,10 @@ if (!empty($supplier)) {
|
||||
<!-- Supplier Information -->
|
||||
<div class="col-md-12" style="margin-bottom: 27px;">
|
||||
<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">
|
||||
<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; ?>">
|
||||
|
||||
@ -183,7 +183,7 @@
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
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)
|
||||
language: {
|
||||
paginate: {
|
||||
|
||||
@ -204,7 +204,7 @@
|
||||
<label for="cost" class="col-form-label">Cost</label>
|
||||
</div>
|
||||
<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 class="form-group row">
|
||||
@ -323,7 +323,7 @@
|
||||
var expenseId = $(this).data('id');
|
||||
var supplier_list = [<?php echo $supplier_list; ?>];
|
||||
$('#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) {
|
||||
$('#supplierid').append('<option value="' + supplier.SupplierID + '">' + supplier.SupplierName + '</option>');
|
||||
});
|
||||
@ -392,7 +392,7 @@
|
||||
$('#payment_method').val('');
|
||||
var supplier_list = [<?php echo $supplier_list; ?>];
|
||||
$('#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) {
|
||||
$('#supplierid').append('<option value="' + supplier.SupplierID + '">' + supplier.SupplierName + '</option>');
|
||||
@ -405,8 +405,10 @@
|
||||
$('#tempClick').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
if ($('#supplierid').val() != 0) {
|
||||
// Native HTML5 form validation
|
||||
if ($('#expenseForm')[0].checkValidity()) {
|
||||
|
||||
var formData = new FormData($('#expenseForm')[0]); // Use FormData to handle file upload
|
||||
console.log(formActionUrl);
|
||||
|
||||
@ -436,6 +438,9 @@
|
||||
// If form is invalid, show native validation messages
|
||||
$('#expenseForm')[0].reportValidity();
|
||||
}
|
||||
} else {
|
||||
alert("Select Supplier");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
@ -178,7 +178,7 @@
|
||||
url: "<?php echo base_url() ?>deletesupplier",
|
||||
success: function(data) {
|
||||
if (data) {
|
||||
$('#content').loader('hide');
|
||||
// $('#content').loader('hide');
|
||||
alert(data);
|
||||
location.reload();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user